function setCookie(arg, value, expire) {
if (expire > 0) {
exdate = new Date();
var x = exdate.getTime();
exdate.setTime(exdate.getTime() + expire*1000);
}
document.cookie = arg + '=' + value + ( (expire > 0)? ';expires='+exdate.toGMTString() : '' ) + ';path=/';
}
function getCookie(type) {
var dc = document.cookie;
var prefix = type+"=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else {
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1) {
end = dc.length;
}
return unescape(dc.substring(begin + prefix.length, end));
}
/*L'indexation du tableau commence � z�ro niveau pro*/
var adressesVideo = new Array(
	/* 1 */"../same_video/playervideo.swf?URLvideo=femme0607.flv",//a modif
	/* 2 */"../same_video/playervideo.swf?URLvideo=mm6ah2006.flv",//a modif
	/* 3 */"../same_video/playervideo.swf?URLvideo=artisanalah2006.flv",//a modif
	/* 4 */"../same_video/playervideo.swf?URLvideo=femmepe05.flv",//a modif
	/* 5 */"../same_video/playervideo.swf?URLvideo=mm6ah0506.flv",//a modif
	/* 6 */"../same_video/playervideo.swf?URLvideo=margielah1.flv",//a modif
	/* 7 */"../same_video/playervideo.swf?URLvideo=papfh2006.flv",//a modif
	/* 8 */"../same_video/playervideo.swf?URLvideo=mm6pe2006.flv",//a modif
	/* 9 */"../same_video/playervideo.swf?URLvideo=artisanalfh2006.flv",//a modif
	/* 10 */"../same_video/playervideo.swf?URLvideo=pe71.flv",//a modif
	/* 11 */"../same_video/playervideo.swf?URLvideo=pe710.flv",//a modif
	/* 12 */"../same_video/playervideo.swf?URLvideo=pe7mm6.flv",//a modif
	/* 13 */"../same_video/playervideo.swf?URLvideo=pe70010.flv",//a modif
	/* 14 */"../same_video/playervideo.swf?URLvideo=ah04.flv",//-----done
	/* 15 */"../same_video/playervideo.swf?URLvideo=flower.flv",//a modif
	/* 16 */"../same_video/playervideo.swf?URLvideo=pe81.flv",//a modif
	/* 17 */"../same_video/playervideo.swf?URLvideo=pe8mm6.flv",//a modif
	/* 18 */"../same_video/playervideo.swf?URLvideo=ah70010.flv",//-----done
	/* 19 */"../same_video/playervideo.swf?URLvideo=pe41.flv",//a modif
	/* 20 */"../same_video/playervideo.swf?URLvideo=ah8mm6.flv",//a modif
	/* 21 */"../same_video/playervideo.swf?URLvideo=ah03.flv",//a modif
	/* 22 */"../same_video/playervideo.swf?URLvideo=ah81.flv",//a modif
	/* 23 */"../same_video/playervideo.swf?URLvideo=pe9mm6.flv",//a modif
	/* 24 */"../same_video/playervideo.swf?URLvideo=mmm_aw09.flv",
	/* 25 */"../same_video/playervideo.swf?URLvideo=BOOKnewsletterlivre.flv",
	/* 26, COLLECTION FEMME PE2011 */"../same_video/playervideo.swf?URLvideo=livre.flv",
	/* 27, NEWS LIGNE 12 */"../same_video/playervideo.swf?URLvideo=line12.flv",
	/* 28 NEWS WHITE OBJECTS */"../same_video/playervideo.swf?URLvideo=white_object-line13.flv",
	/* 29, NEWS MICHEAL STIPE */"../same_video/playervideo.swf?URLvideo=michaelstipe.flv",
	/* 30 :COLLECTION femme PE2010  */"../same_video/playervideo.swf?URLvideo=collection-pe2010.flv",
	/* 31 */"media/popup_parfum.swf",//a modif
	/* 32 */"../same_video/playervideo.swf?URLvideo=untitled.flv",
	/* 33 */"../same_video/playervideo.swf?URLvideo=line13.flv",
	/* 34 */"../same_video/playervideo.swf?URLvideo=somerset.flv",
	/* 35 */"../same_video/playervideo.swf?URLvideo=collection-pe2003.flv",
	/* 36 */"../same_video/playervideo.swf?URLvideo=collection-ah2010.flv",
	/* 37 */"../same_video/playervideo.swf?URLvideo=mmm_mm6_2010.flv",
	/* 38 */"../same_video/playervideo.swf?URLvideo=tshirt_sida.flv",
	/* 39 */"../same_video/playervideo.swf?URLvideo=news_eboutique.flv",
	/* 40, COLLECTION FEMME PE2011*/"../same_video/playervideo.swf?URLvideo=collection_1_pe2011.flv",
	/* 41, COLLECTION MM6 PE2011 40 */"../same_video/playervideo.swf?URLvideo=collection-mm6-pe011.flv",
	/* 42  COLLECTION Homme PE2011 41 */"../same_video/playervideo.swf?URLvideo=collection-10e14-pe011.flv",
	/* 43, NEWS LUNETTES */"../same_video/playervideo.swf?URLvideo=lunettes_licences.flv",
	/* 44, COLLECTION - PE2009*/"../same_video/playervideo.swf?URLvideo=pe2009.flv",
	/* 45, NEWS objets blanc juin 2011*/"../same_video/playervideo.swf?URLvideo=objblanc0611.flv",
	/* 46, COLLECTION femme ah2011 */ "../same_video/playervideo.swf?URLvideo=collection_1_AH2011.flv",
	/* 47, COLLECTION mm6 ah2011 */ "../same_video/playervideo.swf?URLvideo=collection_mm6_AH2011.flv",
	/* 48, COLLECTION homme ah2011 */ "../same_video/playervideo.swf?URLvideo=collection_10_AH2011.flv",
	/* 49, NEWS hotel 2011 */ "../same_video/playervideo.swf?URLvideo=news_hotel_2011.flv",
        /* 50, COLLECTION femme ah2002 */ "../same_video/playervideo.swf?URLvideo=collection_1_ah2002.flv",
        /* 51, COLLECTION femme pe2002 */"../same_video/playervideo.swf?URLvideo=collection_1_pe2002.flv",
        /* 52, COLLECTION femme AH2001 */"../same_video/playervideo.swf?URLvideo=collection_1_ah2001.flv"

        
);

function popVideo(video, numeroVideo)
	{


	var body = top.document.getElementsByTagName('body')[0];
	var info = popup.getInfos(video);

	if (info)
		{
		var vid = video.substring(video.indexOf('-')+1);
		var olddiv = top.document.getElementById('zediv');
		if (typeof(olddiv) == 'object' && olddiv != null) {
		body.removeChild(olddiv);
		}
		
	var div = top.document.getElementById('zediv');

	if (!div)
		{
		div = top.document.createElement('DIV');
		div.style.position = 'absolute';
		div.style.zIndex = 100;
		div.id='zediv';
		body.appendChild(div);
		}

	div.style.top = info.y;
	div.style.left = info.x;
	div.style.width = info.width;
	div.style.height = info.height;
	var inner1 = '<embed src="';
	var inner2 = adressesVideo[numeroVideo-1];
	var inner3 = '" width="539" height="400" alt="" border="0"></a>';
	div.innerHTML = inner1 + inner2 + inner3;

	}

	}

function launchVideo(numeroVideo)
{
	var div  = top.document.getElementById('zediv');
	var inner1 = '<embed src="';
	var inner2 = adressesVideo[numeroVideo-1];
	var inner3 = '" width="539" height="400" alt="" border="0"></embed>';
	div.innerHTML = inner1 + inner2 + inner3;
	}

function closePopup()
{
	var div  = top.document.getElementById('zediv');	
	top.document.getElementsByTagName("body")[0].removeChild(div);
}


function PopUp() {
	/** M&eacute;thodes **/
	this.pop = function() {
	this.baseurl = document.styleSheets[0].href.substring(0, document.styleSheets[0].href.lastIndexOf('/'));
	// on transforme l'objet des arguments en tableau
	this.list = new Array();
	for (var i = 0; i < this.args.length; i++) {
	this.list[i]= this.args[i] ;
	}
	// on m&eacute;lange la liste
	this.list.sort( this.randOrd );
	//alert('Random : ' + this.list );
	this.allowPopup = false;
	// return;
	// on commence les v&eacute;rifications
	var d = new Date();
	var currentTime = d.getTime();
	var lastTime = this.getLastTime();
	var delai = 1;
	if (currentTime - lastTime > delai * 1) {
	// au moins `delai` secondes entre l'affichage de 2 popups
	this.allowPopup = true;
	}
	// on choisit une popup dans la liste
	if (this.allowPopup == true) {
	for (var i =0; i < this.list.length; i++) {
	this.type = this.list[i];
	if (this.getView()) {
	// celle la est bonne
	this.allowPopup = true;
	break;
		}	

		}
	}
if (this.allowPopup == true) {
this.setTime(currentTime);
}
if (this.type != undefined && this.allowPopup) {
var i = this.getInfos(this.type);
if (i) {
//alert(this.type);
setCookie('exposed', true, 0);
setCookie('vues', 0, 0);
this.body = top.document.getElementsByTagName('body')[0];
var olddiv = top.document.getElementById('zediv');
if (typeof(olddiv) == 'object' && olddiv != null) {
this.body.removeChild(olddiv);
}
this.div = top.document.createElement('DIV');
this.div.style.position = 'absolute';
this.div.style.display = 'none';
this.div.style.zIndex = 100;
this.div.id='zediv';
this.body.appendChild(this.div);
this.div.style.top = i.y;
this.div.style.left = i.x;
this.div.style.width = i.width;
this.div.style.height = i.height;
this.div.innerHTML = i.html;
this.div.style.display = 'block';
this.setView(i.cookie, i.expire);
}
}
}
this.getInfos = function(type) {
switch(type) {



case 'defileen-ah2001':
content = '<embed src="media/dialogue/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=52">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'defilefr-ah2001':
content = '<embed src="media/dialogue/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=52">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'defilefr-pe02':
content = '<embed src="media/dialogue/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=51">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'defileen-pe02':
content = '<embed src="media/dialogue/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=51">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'defileen-ah02':
content = '<embed src="media/dialogue/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=50">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'defilefr-ah02':
content = '<embed src="media/dialogue/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=50">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'hotel2011'://_licences
content = '<embed src="../same_video/playervideo.swf?URLvideo=news_hotel_2011.flv" width="539" height="400" wmode="transparent" >';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;



case 'mm6-ah2011-pop':
content = '<embed src="../same_video/playervideo.swf?URLvideo=collection_MM6_AH2011.flv" width="539" height="400" wmode="transparent" >';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;

case 'mm6-fr-ah2011':
content = '<embed src="../../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=47">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'mm6-en-ah2011':
content = '<embed src="../../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=47">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case '10et14-fr-ah2011':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=48">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case '10et14-en-ah2011':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=48">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'collection-fr-ah2011':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=46">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'collection-en-ah2011':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=46">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'objets blancs':
content = '<embed src="same_video/playervideo.swf?URLvideo=objblanc0611.flv" width="539" height="400" wmode="transparent" flashvars="var1=43">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'lunettes_licences'://_licences
content = '<embed src="../same_video/playervideo.swf?URLvideo=lunettes_licences.flv" width="539" height="400" wmode="transparent" flashvars="var1=43">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;



case 'lunettes'://_licences
content = '<embed src="../../same_video/lunettes_licences.swf" width="539" height="400" wmode="transparent" flashvars="var1=43">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'collection-mm6-pe2011-pop':
content = '<embed src="media/dialogue/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=41">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'happy2011':
content = '<embed src="../same_video/happy2011.swf" width="539" height="400" wmode="transparent">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;

case 'visite mmm':
content = '';
return {cookie:1, expire:0, html:content, x:250, y:100, width:6, height:300};
break;
case 'premiere visite':
content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="311" height="137" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="'+this.baseurl+'/media/dialogue/firstime.swf" />'+
'<param name="menu" value="false" />'+
'<param name="quality" value="high" />'+
'<param name="bgcolor" value="#ffffff" />'+
'<param name="wmode" value="transparent"/>'+
'<embed src="'+this.baseurl+'/media/dialogue/firstime.swf" menu="false" quality="high" bgcolor="#ffffff" width="311" height="137" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>';
return {cookie:1, expire:0, html:content, x:250, y:150, width:311, height:137};
break;
case 'collection-mm6-pe2011-en':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=41">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;
case 'collection-mm6-pe2011-fr':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=41">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;
case '10et14-fr-pe2011':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=42">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;
case '10et14-en-pe2011':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=42">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

//COLLECTION FEMME PE2011 FR
case 'collection-fr-pe2011':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=40">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

//COLLECTION FEMME PE2011 EN pop up
case 'collection-en-pe2011':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=40">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

//NEWS EBOUTIQUE
case 'eboutique':
content = '<embed src="../same_video/news_eboutique.swf" width="539" height="400" wmode="transparent" flashvars="var1=39">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'tshirt_sida':
content = '<embed src="../same_video/news_tsida_01122010.swf" width="539" height="400" wmode="transparent" flashvars="var1=38">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'pop_mmm_mm6_2010':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=37">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;

case 'ask_mmm_mm6_2010':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=37">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'collection-ah2010':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=36">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;

case 'collectionEn-ah2010':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=36">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;


case 'online':
content = '<embed src="'+this.baseurl+'/media/dialogue/online.swf" width="311" height="137" alt="" border="0" wmode="transparent">';
return {cookie:1, expire:0, html:content, x:160, y:150, width:311, height:137};
break;
case 'premiere visite':
content = '<embed src="'+this.baseurl+'/media/dialogue/firstime.swf" width="311" height="137" alt="" border="0" wmode="transparent">';
return {cookie:1, expire:0, html:content, x:250, y:150, width:311, height:137};
break;
case 'visite':
content = '<embed src="'+this.baseurl+'/media/dialogue/visite.swf" width="539" height="410" wmode="transparent">';
return {cookie:1, expire:0, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-somerset':
content = '<embed src="../../same_video/somerset.swf" width="539" height="400" wmode="transparent" flashvars="var1=34">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-line13':
content = '<embed src="../../same_video/line13.swf" width="539" height="400" wmode="transparent" flashvars="var1=33">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-untitled':
content = '<embed src="../../same_video/untitled.swf" width="539" height="400" wmode="transparent" flashvars="var1=32">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-parfum-en':
content = '<embed src="media/popup_parfum.swf" width="539" height="400" wmode="transparent" flashvars="var1=31">';
return {expire:0.001, html:content, x:180, y:95, width:500, height:247};
break;
case 'popup-somerset':
content = '<embed src="media/promo/popup_somerset.swf" width="400" height="286" wmode="transparent" flashvars="var1=34">';
return {expire:0.001, html:content, x:230, y:280, width:400, height:286};
break;

case 'defile-ss2010':
content = '<embed src="same_video/collection_ss2010.swf" width="539" height="400" wmode="transparent" flashvars="var1=30">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;

case 'video-nonews-michaelstipe':
content = '<embed src="../../same_video/michaelstipe.swf" width="539" height="400" wmode="transparent" flashvars="var1=29">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-michaelstipe':
content = '<embed src="../../same_video/michaelstipe.swf" width="539" height="400" wmode="transparent" flashvars="var1=29">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-nonews-line12':
content = '<embed src="../../same_video/line12.swf" width="539" height="400" wmode="transparent" flashvars="var1=28">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-line12':
content = '<embed src="../../same_video/line12.swf" width="539" height="400" wmode="transparent" flashvars="var1=28">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-livre':
content = '<embed src="../../same_video/livre.swf" width="539" height="400" wmode="transparent" flashvars="var1=28">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-nonews-blanc':
content = '<embed src="../../same_video/videoblanc.swf" width="539" height="400" wmode="transparent" flashvars="var1=27">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news-blanc':
content = '<embed src="../../same_video/videoblanc.swf" width="539" height="400" wmode="transparent" flashvars="var1=27">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-nonews':
content = '<embed src="../../same_video/videonews.swf" width="539" height="400" wmode="transparent">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'video-news':
content = '<embed src="../../same_video/videonews.swf" width="539" height="400" wmode="transparent">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'videofr-flower':
content = '<embed src="media/dialogue/videofr-flower.swf" width="539" height="400" wmode="transparent">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'videoen-flower':
content = '<embed src="/media/dialogue/videoen-flower.swf" width="539" height="400" wmode="transparent">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe2010':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=30">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe2010':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=30">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-aw91':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=24">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-aw91':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=24">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-femme0607':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=1">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-mm6ah2006':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=2">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-artisanalah2006':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=3">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-mm6pe2006':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=8">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-artisanalfh2006':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=9">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-papfh2006':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=7">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-margielah1':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=6">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-mm6ah0506':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=5">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-femmepe05':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=4">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe71':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=10">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;
case 'defilefr-pe81':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=16">';
return {cookie:1, expire:1, html:content, x:120, y:95, width:539, height:410};
break;
case 'defilefr-pe710':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=11">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe7mm6':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=12">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe8mm6':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=17">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe9mm6':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=23">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe91':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=44">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-ah8mm6':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=20">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-ah81':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=22">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe70010':
content = '<embed src=../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=13">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-ah70010':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=18">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-ah04':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=14">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-pe41':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=19">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defilefr-ah03':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=21">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-femme0607':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=1">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-mm6ah2006':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=2">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-artisanalah2006':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=3">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-mm6pe2006':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=8">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-artisanalfh2006':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=9">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-papfh2006':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=7">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-margielah1':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=6">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-mm6ah0506':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=5">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-femmepe05':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=4">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe71':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=10">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe81':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=16">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe710':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=11">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe7mm6':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=12">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe8mm6':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=17">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe9mm6':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=23">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe91':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=44">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-ah8mm6':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=20">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-ah81':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=22">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe70010':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=13">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-ah04':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=14">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-ah70010':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=18">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe41':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=19">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-ah03':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=21">';
return {cookie:1, expire:1, html:content, x:180, y:95, width:539, height:410};
break;
case 'cv':
content = '';
return {cookie:1, expire:0, html:content, x:250, y:100, width:450, height:300};
break;
case 'defilefr-pe2003':
content = '<embed src="../same_video/ouinonpopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=35">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'defileen-pe2003':
content = '<embed src="../same_video/yesnopopup.swf" width="539" height="400" wmode="transparent" flashvars="var1=35">';
return {expire:0.001, html:content, x:180, y:95, width:539, height:410};
break;
case 'player son':
var lesSons = new Array( '2.mp3', '4.mp3', '288.mp3', '2272.mp3', '8030.mp3', '8037.mp3', '8166.mp3', '8226.mp3', '8274.mp3', '8437.mp3', '8655.mp3', '8671.mp3'); // '1.wav',
var son = lesSons[Math.round(Math.random()*lesSons.length)];
content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="260" height="30" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="'+this.baseurl+'/media/sound.swf?mson='+this.baseurl+'/media/sounds/'+son+'" />'+
'<param name="menu" value="false" />'+
'<param name="quality" value="high" />'+
'<param name="bgcolor" value="#ffffff" />'+
'<param name="wmode" value="transparent"/>'+
'<embed src="'+this.baseurl+'/media/sound.swf?mson='+this.baseurl+'/media/sounds/'+son+'" menu="false" quality="high" bgcolor="#ffffff" width="260" height="30" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>';
return {cookie:3, expire:60, html:content, x:60, y:615, width:260, height:30};
break;

case 'baiser':
content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="'+this.baseurl+'/media/dialogue/baiser.swf" />'+
'<param name="menu" value="false" />'+
'<param name="quality" value="high" />'+
'<param name="bgcolor" value="#ffffff" />'+
'<param name="wmode" value="transparent"/>'+
'<embed src="'+this.baseurl+'/media/dialogue/baiser.swf" menu="false" quality="high" bgcolor="#ffffff" width="320" height="240" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:320, height:240};
break;
/*
case 'oeil':
content = '<a href="javascript:void(top.document.getElementsByTagName(\'body\')[0].removeChild(top.document.getElementById(\'zediv\')))"><embed src="'+this.baseurl+'/media/dialogue/oeil.swf" width="320" height="240" alt="" border="0"></a>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:320, height:240};
break;

case 'doigt':
content = '<a href="javascript:void(top.document.getElementsByTagName(\'body\')[0].removeChild(top.document.getElementById(\'zediv\')))"><embed src="'+this.baseurl+'/media/dialogue/doigt.swf" width="320" height="240" alt="" border="0"></a>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:320, height:240};
break;
*/case 'mmm_opening_en':
content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="345" height="420" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="../media/promo/opening_en.swf" />'+
'<param name="menu" value="false" />'+
'<param name="quality" value="high" />'+
'<param name="bgcolor" value="#ffffff" />'+
'<param name="wmode" value="transparent"/>'+
'<embed src="../media/promo/opening_en.swf" menu="false" quality="high" bgcolor="#ffffff" width="345" height="420" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>';
return {html:content, x:260, y:220, width:345, height:420};
break;
case 'mmm_opening_fr':
content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="345" height="420" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="../media/promo/opening_fr.swf" />'+
'<param name="menu" value="false" />'+
'<param name="quality" value="high" />'+
'<param name="bgcolor" value="#ffffff" />'+
'<param name="wmode" value="transparent"/>'+
'<embed src="../media/promo/opening_fr.swf" menu="false" quality="high" bgcolor="#ffffff" width="345" height="420" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>';
return {html:content, x:260, y:220, width:345, height:420};
break;

case 'sugarfree':
content = '<a href="javascript:void(top.document.getElementsByTagName(\'body\')[0].removeChild(top.document.getElementById(\'zediv\')))"><embed src="'+this.baseurl+'/media/dialogue/sugarfree.swf" width="284" height="175" alt="" border="0"></a>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:284, height:175};
break;

case 'haveaniceday':
content = '<a href="javascript:void(top.document.getElementsByTagName(\'body\')[0].removeChild(top.document.getElementById(\'zediv\')))"><embed src="'+this.baseurl+'/media/dialogue/haveaniceday.swf" width="284" height="175" alt="" border="0"></a>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:284, height:175};
break;

case 'closeme':
content = '<a href="javascript:void(top.document.getElementsByTagName(\'body\')[0].removeChild(top.document.getElementById(\'zediv\')))"><embed src="'+this.baseurl+'/media/dialogue/creature.swf" alt="" width="320" height="240" border="0"></a>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:320, height:240};
break;

case 'imagenplus':
content = '<a href="javascript:void(top.document.getElementsByTagName(\'body\')[0].removeChild(top.document.getElementById(\'zediv\')))"><embed src="'+this.baseurl+'/media/dialogue/imagenplus.swf" width="284" height="175" alt="" border="0"></a>';
return {cookie:1, expire:0, html:content, x:360, y:200, width:284, height:175};
break;

case 'momu':
content = '<embed src="/fr/media/dialogue/momu.swf" width="320" height="240" alt="" border="0" wmode="transparent">';
return {cookie:1, expire:0, html:content, x:149, y:150, width:320, height:240};
break;

default:
return false;
break;
}
}
this.close = function() {
var d = document.getElementById('zediv');
d.style.display = 'none';
}
this.setTime = function(time) {
setCookie('lastPop', time, 0);
}
this.setView = function(c, e) {
var views = getCookie('view'+c);
if (views == null) {
views = '';
}
if (views.indexOf(this.type) == -1) {
views += ',' + this.type;
setCookie('view'+c, views, e);
var cook = getCookie('cookies');
if (cook == null) {
cook = '';
}
var tmp = new Array();
var ctab = cook.split('.');
for (var i=0; i < ctab.length; i++) {
if (c != ctab[i]) {
tmp.push(ctab[i]);
}
}
tmp.push(c);
cook = tmp.join('.');
setCookie('cookies', cook);
}
}
this.getView = function() {
var c = getCookie('cookies');
if (c == null) {
c = '';
}
var popupviewed = '';
var tab = c.split('.');
for (var i = 0; i < tab.length; i++) {
if (tab[i] != '') {
var views = getCookie('view'+tab[i]);
if (views == null) {
views = '';
}
popupviewed += views;
}
}
var p = popupviewed.split(',');
var onpop = true;
for (var k = 0; k < p.length; k++) {
if (this.type == p[k]) {
onpop = false;
}
}
return onpop;
}
this.getLastTime = function() {
return getCookie('lastPop');
}
this.randOrd = function(a, b){
return (Math.round(Math.random())-0.5);
}
/************* fin des m&eacute;thodes ***********/
// on re��it en argument une liste d'eventuelles popups ��afficher
this.args = arguments;
}
var e = '';
e = getCookie('exposed');
if (e == null) {
e = '';
}
if (e != '') {
// on a &eacute;t&eacute; expos&eacute; ��des popup
var v = getCookie('vues');
if (v == null) {
v = 0;
}
setCookie('vues', ++v);
}
function popAmbiance(img) {
var body = top.document.getElementsByTagName('body')[0];
closeAmbiance();
if (typeof(olddiv) == 'object' && olddiv != null) {
body.removeChild(olddiv);
}
var div = top.document.createElement('DIV');
div.style.position = 'absolute';
div.style.zIndex = 200;
div.id='popdiv';
body.appendChild(div);
div.style.top = 80;
div.style.left = 20;
div.innerHTML = "<a href=\"javascript:closeAmbiance()\"><img src=\"images/pop-"+img+".jpg\" border=\"0\"/></a>";
}

function popAmbiance2(img,coll) {
var body = top.document.getElementsByTagName('body')[0];
closeAmbiance();
if (typeof(olddiv) == 'object' && olddiv != null) {
body.removeChild(olddiv);
}
var div = top.document.createElement('DIV');
div.style.position = 'absolute';
div.style.zIndex = 200;
div.id='popdiv';
body.appendChild(div);
div.style.top = 80;
div.style.left = 20;
div.innerHTML = "<a href=\"javascript:closeAmbiance()\"><img src=\"../images/collections/"+coll+"/pop-"+img+".jpg\" border=\"0\"/></a>";
}
function closeAmbiance() {
var body = top.document.getElementsByTagName('body')[0];
var olddiv = top.document.getElementById('popdiv');
if (typeof(olddiv) == 'object' && olddiv != null) {
body.removeChild(olddiv);
}
}


