// JavaScript Document
function resizeFlash()
{
	/*var date = new Date();
	var time = date.getTime();
	window.status = time;*/
	//
	var newH,newW;
	var d = document;
	var ih = window.innerHeight;
	var iw = window.innerWidth;
	var ch = d.documentElement.clientHeight;
	var cw = d.documentElement.clientWidth;
	var oh = d.body.offsetHeight;
	var ow = d.body.offsetWidth;
	var objNav = new ClassNav();
	var movie;
	//
	if (objNav.implementation == "activeX")
	{
		movie = d.movie;
	}
	else
	{
		movie = d.movieN;
	}
	//
	if (ih)
	{
		newH = ih;
		newW = iw;
	}
	else if (ch)
	{
		newH = ch;
		newW = cw;
	}
	else if (oh)
	{
		newH = oh;
		newW = ow;
	}
	else
	{
		newH = 560;
		newW = 760;
	}
	newH <= 560 ? movie.height = 560: movie.height = newH;
	newW <= 760 ? movie.width = 760: movie.width = newW;
	window.scrollTo(0,0);
	//window.status = movie.height + " : " + movie.width;
};
function getObjNav()
{
	var objNav,t,movie,d;
	d = document;
	objNav = new ClassNav();
	t = objNav.toUrl();
	if (objNav.implementation == "activeX") movie = d.movie;
	else movie = d.movieN;
	movie.SetVariable("/_level0:objNav", t);
	resizeFlash(); 
}
function openWindow(temp)
{
	var Window2=open("","","scrollbars=1,width=800,height=600");
	Window2.document.open();
	Window2.document.write("<HE"+""+"AD><TI"+""+"TLE>fenętre secondaire !</TI"+""+"TLE></H"+""+"EAD>");
	Window2.document.write("<bo"+""+"dy>"+temp+"</bo"+""+"dy>");
	Window2.document.close();
}
function scan(cible)
{
	var temp="";
	for (var x in cible)
	{
		temp += x + " : " + cible[x] +"<br>";
	}
	openWindow(temp);
}
//
function affichePreloadMovie()
{
	var PercentLoaded = window.movie.PercentLoaded();
	window.status = "Chargement en cours... "+PercentLoaded+"%";
	if(PercentLoaded == 100)
	{
		clearInterval(window.preloadInterval);
		if (top.frames.length > 1) top.location=self.document.location;
		window.status = "Chargement terminé.";
		//window.status = top.frames.length;
	}
}
function preloadMovie()
{
	var objNav = new ClassNav();
	var d = document;
	//scan(objNav);
	if (objNav.implementation == "activeX")
	{
		window.movie = d.movie;
	}
	else
	{
		window.movie = d.movieN;
	}
	//scan(window.movie);
	window.preloadInterval = setInterval("affichePreloadMovie()",50);
}
/////////////////////////////////////////////////// cookies
function EcrireCookie(nom, valeur)
{
	var argv=EcrireCookie.arguments;
	var argc=EcrireCookie.arguments.length;
	var expires=(argc > 2) ? argv[2] : null;
	var path=(argc > 3) ? argv[3] : null;
	var domain=(argc > 4) ? argv[4] : null;
	var secure=(argc > 5) ? argv[5] : false;
	document.cookie=nom+"="+escape(valeur)+
	((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
	((path==null) ? "" : ("; path="+path))+
	((domain==null) ? "" : ("; domain="+domain))+
	((secure==true) ? "; secure" : "");
}
function setCookie(idUtil,pseudo,langue,visite)
{
	<!--
	date=new Date;
	date.setFullYear(date.getFullYear()+1);
	EcrireCookie("utilisateur", idUtil, date, "/");
	EcrireCookie("pseudo", pseudo, date, "/");
	EcrireCookie("langue", langue, date, "/");
	EcrireCookie("visite", visite, date, "/");
	//-->
}
function Open_windows(url,width,height,titre)
{
	//fen = window.open(url,'','width=500,height=390');
	Window2=open("","","width="+width+",height="+height);
	Window2.document.open();
	Window2.document.write("<META HTTP-EQUIV='imagetoolbar' CONTENT='no'>");
	Window2.document.write("<HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	Window2.document.write("<body bgcolor='#000000' oncontextmenu='return false' on><table width='100%' height='100%'><tr><td width='100%' height='100%' align='center' valign='middle'><img src="+url+"></td></tr>");
	Window2.document.write("</table></body>");
	Window2.document.close();
}