// JavaScript Document (C)2008 innovation Partners
// Auteur : Emmanuel Chambon

if (document.images)
{
	menu1on=new Image();
	menu1on.src="mw-charte/charte02-accueil2.jpg";
	menu2on=new Image();
	menu2on.src="mw-charte/charte02-contact2.jpg";

	menu1off=new Image();
	menu1off.src="mw-charte/charte02-accueil.jpg";
	menu2off=new Image();
	menu2off.src="mw-charte/charte02-contact.jpg";

}
function rollover(id,name)
{
        if (document.images) { document.images[id].src=eval(name+".src"); }
}
var browser="";
if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)==2) { browser="n2"; }
if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)==3) { browser="n3"; }
if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) { browser="n4"; }
if(navigator.appVersion.indexOf("MSIE 3.0") != -1) { browser="ie3"; }
if(navigator.appVersion.indexOf("MSIE 4.0") != -1) { browser="ie4"; }

// Used to position window for Netscape 4
var w=0;
var h=0;
if ( browser=="n4" )
{
        var screen_height=parent.screen.height;
        var screen_width=parent.screen.width;
        var main_height=parent.window.innerHeight;
        h=(screen_height+main_height);
        w=(screen_width/2)-175;
}

function openwindow(url2)   
{
        var newWind=window.open(url2,"moteur","width=500,height=400,scrollbars=1");
        if (newWind.opener == null)
                { newWind.opener = window; }
        else
        { 
                if ( browser=="n3"  ||  browser=="n4"  ||  browser=="ie4" )
                        newWind.focus();
        }   
        return true; 
}

function open_window(url,scroll,resize,width,height)
{
        mywin  = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable='+resize+',width='+width+',height='+height);
}