if (top.frames.length!=0) top.location=self.document.location;

if (parent.frames.length > 0)
{
window.top.location.href = location.href;
}
	
if (window != top) {top.location=window.location;}

var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	
} else {
	window.open("http://www.gds-strategie.com/getflash/index.htm");
}
function RightClick(e)
{
	flag=false;
	if((navigator.appName=='Netscape' && e.which==3)
	||(navigator.appName=='Microsoft Internet Explorer' && event.button==2)) 
	{
		alert('Interdit/Forbidden');
		return flag;
	}
}
document.onmousedown = RightClick;

function retaille()
{
	ie4 = (document.all) ? true:false;
	h=605;
	l=810;
	window.moveTo(0,0);
	window.resizeTo(l,h);
	self.focus(); 
}

function resize(large,longue)
{
	ie4 = (document.all) ? true:false;
	window.moveTo(0,0);
	window.resizeTo(large,longue);
	self.focus(); 
}

function zoom(chemin)
{
	var addx = 10; 
	var addy = 50; 
	if(navigator.appName=='Microsoft Internet Explorer')
		{ addy = 50; }
   html = '<html><head><title>ZOOM</title></head><body bgcolor="#FFFFFF" scroll="no" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" onBlur="top.close()"><a href="#" onClick="self.close()"><IMG src="'+chemin+'" BORDER=0 NAME=ImageMax onLoad="window.resizeTo(document.ImageMax.width+'+addx+', document.ImageMax.height+'+addy+')"></a></body></html>';
   popupImage = window.open('','_blank','toolbar=no, statusbar=no, location=no, directories=no, menubar=no, scrollbars=no, resizable=yes');
   popupImage.document.open();
   popupImage.document.write(html);
   popupImage.document.close()
};

function openWindow(url, w, h) {
if (h.substring(0,7) == "toolbar")
{
	nReq = h.split(",");
	for (var i=0;i<(nReq.length);i++) {
		if (nReq[i].substring(0, nReq[i].indexOf("=")) == 'width')
			{ w = nReq[i].substring(6, nReq[i].length) ; }
		if (nReq[i].substring(0, nReq[i].indexOf("=")) == 'height')
			{ h = nReq[i].substring(7, nReq[i].length); }
	}
	var windowprops = "toolbar=1, location=0, directories=0, menubar=1, statusbar=0, scrollbars=1, resizable=1, left="+gauche+",width=" + w + ",height=" + h;
	popup = window.open(url,'remote',windowprops);
}
else
{
	var windowprops = "toolbar=0, location=0, directories=0, menubar=0, statusbar=0, scrollbars=0, resizable=0, left="+gauche+",width=" + w + ",height=" + h;
	popup = window.open(url,'remote',windowprops);
	popup.resizeTo(w,h);
}
var haut=0;
var gauche=screen.width - w;
// top="+haut+"
popup.moveTo(gauche,haut);
popup.focus();
// ferme_popup();
}
popup = null;

function ferme_popup() {
  if (popup) popup.close();
  popup = null;
}

function Maj() {
	Date=new Date(document.lastModified)
	var Moistrad=[Date.getMonth()+1]
	var Annee=Date.getYear()
	return Date.getDate()+ "/" + Moistrad +"/" +Annee
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
