/*-

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

-*/

//-------------------------------------------------------------------
function OpenPopin ( strDivName, nWidth, nHeight, fonction )
{
	//alert(strDivName);
	//
	affiche( oInfoImageList, 2, fonction, 1,1);
	
	
	// alert(nWidth);
	// alert(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 OpenPopinTest ( strDivName, nWidth, nHeight, fonction )
{
	//alert(strDivName);
	//
	affiche( oInfoImageList, 2, fonction, 1,1);
	
	Modalbox.show($(strDivName), {height: nHeight, width: nWidth }); 
	
	
	// if(document.getElementById('imagegrand').complete)
	// {
	//alert(document.getElementById('imagegrand').width);
	// }

	//- 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 }); 
}
	



