/*-

アポタモクス -　インタ－ラクチブ　クリエ－タ－
Apotamox - créateur d'intéraction

-*/

//-------------------------------------------------------------------
function OpenPopin ( strDivName, nWidth, nHeight )
{
	Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 


	//- Options complémentaires possibles
	//- Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 
	/*-

	beforeHide: fBeforeHideFunction
	afterHide: fAfterHideFunction
	onShow : fOnShowFunction
	onUpdate : fOnUpdateFunction
	beforeLoad : fBeforeLoadFunction
	afterLoad : fAfterLoadFunction

	-*/
}

//-------------------------------------------------------------------
function OpenPopinParamPlus ( strDivName, nWidth, nHeight, idPhoto )
{
	//alert(navigator.appName);
	if(navigator.appName == "Microsoft Internet Explorer"){
		strDivName.innerHTML = "<iframe src='../Panier/choix.php?id="+idPhoto+"' width=\"804\" height=\"604\"></iframe>";
	}
	else
	{
		strDivName.innerHTML = "<iframe src='../Panier/choix.php?id="+idPhoto+"' width=\"800\" height=\"600\"></iframe>";
	}
	
	Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 


	//- Options complémentaires possibles
	//- Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 
	/*-

	beforeHide: fBeforeHideFunction
	afterHide: fAfterHideFunction
	onShow : fOnShowFunction
	onUpdate : fOnUpdateFunction
	beforeLoad : fBeforeLoadFunction
	afterLoad : fAfterLoadFunction

	-*/
}

//-------------------------------------------------------------------
function OpenPopinBottom ( strDivName, nWidth, nHeight )
{
	//alert(navigator.appName);
	if(navigator.appName == "Microsoft Internet Explorer"){
		strDivName.innerHTML = "<iframe src='/Site/Panier/front-conditions-generales.php' width=\"804\" height=\"604\"></iframe>";
	}
	else
	{
		strDivName.innerHTML = "<iframe src='/Site/Panier/front-conditions-generales.php' width=\"800\" height=\"600\"></iframe>";
	}
	
	Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 


	//- Options complémentaires possibles
	//- Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 
	/*-

	beforeHide: fBeforeHideFunction
	afterHide: fAfterHideFunction
	onShow : fOnShowFunction
	onUpdate : fOnUpdateFunction
	beforeLoad : fBeforeLoadFunction
	afterLoad : fAfterLoadFunction

	-*/
}


//-------------------------------------------------------------------
//-
//- Exemple d'utilisation du callback AfterHide
//-
//-------------------------------------------------------------------

function OpenPopin_WithAfterHideFunction ( strDivName, nWidth, nHeight, fCloseFunction )
{
	Modalbox.show($(strDivName), {height: nHeight, width: nWidth, afterHide: fCloseFunction }); 
}
	


