var NbRep=new String("");
var NbSlash=0;
var Ref=new String("");
Ref=window.location.pathname;
Ref=Ref.toString();
if (window.location.protocol == "file:"){
	test=/\134/gi;
	Ref=Ref.substr(4);
	Ref=Ref.replace(test,'/')
}
else{
	Ref=Ref.substr(1);
}

if (window.location.host=="proto.ixmedia.com" || window.location.protocol == "file:") chiffre=1;
else chiffre=0;

for (var cpt=0;cpt<Ref.length;cpt++)
	if (Ref.charAt(cpt)=='/') NbSlash++;
if (navigator.appVersion.indexOf("Macintosh") != -1 && window.location.protocol == "file:") NbSlash=NbSlash-1;

//enlever le -2 lors de la mise en ligne
NbSlash=(NbSlash-chiffre)-1;      
for (cpt=0;cpt<NbSlash;cpt++) 
	NbRep=NbRep+"../";

// Style Sheet
if (navigator.appVersion.indexOf("Macintosh") != -1){
	document.write("<LINK REL=stylesheet HREF='"+NbRep+"mystyles.css' TYPE='text/css'>");
}
else{
	document.write("<LINK REL=stylesheet HREF='"+NbRep+"mystylesWin.css' TYPE='text/css'>");
}

if (document.images) {
		//menu
		mission_u = new Image(49,13);mission_u.src = NbRep + "img/page_int/menu/mission_u.gif";
		mission_h = new Image(49,13);mission_h.src = NbRep + "img/page_int/menu/mission_h.gif";
		services_u = new Image(65,13);services_u.src = NbRep + "img/page_int/menu/services_u.gif";
		services_h = new Image(65,13);services_h.src = NbRep + "img/page_int/menu/services_h.gif";
		cours_offerts_u = new Image(111,13);cours_offerts_u.src = NbRep + "img/page_int/menu/cours_offerts_u.gif";
		cours_offerts_h = new Image(111,13);cours_offerts_h.src = NbRep + "img/page_int/menu/cours_offerts_h.gif";
		imac_u = new Image(37,13);imac_u.src = NbRep + "img/page_int/menu/imac_u.gif";
		imac_h = new Image(37,13);imac_h.src = NbRep + "img/page_int/menu/imac_h.gif";
		clients_u = new Image(56,13);clients_u.src = NbRep + "img/page_int/menu/clients_u.gif";
		clients_h = new Image(56,13);clients_h.src = NbRep + "img/page_int/menu/clients_h.gif";
		equipe_u = new Image(39,13);equipe_u.src = NbRep + "img/page_int/menu/equipe_u.gif";
		equipe_h = new Image(39,13);equipe_h.src = NbRep + "img/page_int/menu/equipe_h.gif";
}
