// JavaScript Document


function ScanCookie(variable){
	cook = document.cookie;
	variable += "=";
	place = cook.indexOf(variable,0);
	if (place <= -1)
	return("0");
	else
	{
	end = cook.indexOf(";",place)
	if (end <= -1)
	return(unescape(cook.substring(place+variable.length,cook.length)));
	else
	return(unescape(cook.substring(place+variable.length,end)));
	}
}
function CreationCookie(nom,valeur,permanent)
{
	if(permanent)
{
	dateExp = new Date(2020,01,01);
	dateExp = dateExp.toGMTString();
	ifpermanent = '; expires=' + dateExp + ';';
}
	else
	ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
}

function click()
{
	if(ScanCookie("dejapopup")==0)
{
		
	hauteur=screen.height;
	largeur=screen.width;
	popunder = window.open('interface_kster.html','_blank','top=0,left=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width='+largeur+',height='+hauteur)
	
	
}
}

function pop_mentions()
{
	var desktop = window.open("/mentions.html", "_blank", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=400,height=300" );
}


/////////////////////////////////////////////////////////////////////
//¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦      GESTION DES FLASHS      ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦//
/////////////////////////////////////////////////////////////////////

//flash 
function genereFlash(src,width,height,variables){
	
	if(variables){
			src=src+"?"+variables;
		}

	html='	 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="animFlash" name="animFlash">';
	html+='	  <param name="movie" value="swf/'+src+'" />';
	html+='	   <param name="quality" value="high" />';
	html+='	  <embed src="swf/'+src+'" quality="high"  pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="animFlash" name="animFlash" >';
	html+='	  </embed>';
	html+='	</object>';
	
	document.write(html);
		
}