// ------------------box------------------------  
function make_top_box(title){

	document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
	document.write('<tr><td colspan="3" width="100%"><table cellpadding=0 cellspacing=0 border=0 width="100%">');
if (title != undefined){
	document.write('<tr><td width="34" height="34"><img src="Themes/Default/images/box-no.gif" width="34" height="34" border="0"></td>');
	document.write('<td background="Themes/Default/images/box-n.gif" class="box_title" nowrap>&nbsp;'+title+'</td><td width="18"><img src="Themes/Default/images/box-n2.gif" width="18" height="34" border="0">');
	document.write('</td><td background="Themes/Default/images/box-nr.gif" width="100%"><img src="Themes/Default/images/pace.gif" width="1" height="1" border="0"></td><td width="17"><img src="Themes/Default/images/box-ne.gif" width="17" height="34" border="0"></td></tr></table></td></tr>');	
}
else{
	document.write('<tr><td width="34" height="20"><img src="Themes/Default/images/box-no2.gif" width="34" height="20" border="0"></td>');
	document.write('</td><td background="Themes/Default/images/box-nr2.gif" width="100%">&nbsp;</td><td width="17"><img src="Themes/Default/images/box-ne2.gif" width="17" height="20" border="0"></td></tr></table></td></tr>');	
}
	
	document.write('<tr><td background="Themes/Default/images/box-o.gif" width="17">&nbsp;</td><td bgcolor="#B5B4B2" width="100%"><img src="Themes/Default/images/pace.gif" height="6"><br>');
}				

function make_bot_box(){
	document.write('</td><td background="Themes/Default/images/box-e.gif" width="17">&nbsp;</td></tr>');
	document.write('<tr><td><img src="Themes/Default/images/box-so.gif" width="17" height="14" border="0"></td>');
	document.write('<td background="Themes/Default/images/box-s.gif"><img src="Themes/Default/images/pace.gif" width="1" height="14"></td><td><img src="Themes/Default/images/box-se.gif" width="17" height="14" border="0"></td></tr></table>');
}

// ******************************** POPUP **************************************
function synchrone_popup(url,winname,width,height) {
	var scrollbars=0;
	var toolbar=0;
	var location=0;
	var directories=0;
	var status=0;
	var resizable=0;
	var copy=0;
	var menubar=0;
	var ScreenWidth=window.screen.width;
	var ScreenHeight=window.screen.height;
	var movefromedge=0;
	   
		placementx=(ScreenWidth/2)-((width)/2);
		placementy=(ScreenHeight/2)-((height)/2);

	var base_href = "";
	var theBase = document.getElementsByTagName("base");

	if (theBase[0] != undefined && url.substr(0, 4).toLowerCase() != "http")
	{
		base_href = theBase[0].href+"/";
	}	
	window.open(base_href+url,"","width="+width+",height="+height+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",scrollbars="+scrollbars+",menubar="+menubar+",resizable="+resizable+",left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");	
}

function screenres(){
	var myWidth = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
	}

	if (myWidth < 1060)
	{
		document.getElementById("filet_gauche").style.display = "none";
		document.getElementById("filet_droit").style.display = "none";
	}
	else
	{
		document.getElementById("filet_gauche").style.display = "";
		document.getElementById("filet_droit").style.display = "";
	}
	//window.alert( 'Width = ' + myWidth );
}