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 -1 lors de la mise en ligne
NbSlash=(NbSlash-chiffre-1);      
for (cpt=0;cpt<NbSlash;cpt++) 
	NbRep=NbRep+"../";



if (navigator.appVersion.indexOf("Macintosh") != -1){
	document.write("<LINK REL=stylesheet HREF='"+NbRep+"mystyles.css' TYPE='text/css'>");
	longinput=13;
}
else{
	document.write("<LINK REL=stylesheet HREF='"+NbRep+"mystylesWin.css' TYPE='text/css'>");
	longinput=6;
}

 if (document.images) {
 		profil_util = new Image(250,20);profil_util.src = NbRep+"img/cote_contenu/bulletin/profil_utilisateur.gif";
		profil_util_h = new Image(250,20);profil_util_h.src =NbRep+"img/cote_contenu/bulletin/profil_utilisateur_h.gif";
		offres = new Image(136,20);offres.src = NbRep+"img/menu_principal/offres_emplois.gif";
		offres_h = new Image(136,20);offres_h.src =NbRep+"img/menu_principal/offres_emplois_roll.gif";
		chercher = new Image(115,20);chercher.src = NbRep+"img/menu_principal/ou_chercher.gif";
		chercher_h = new Image(115,20);chercher_h.src =NbRep+"img/menu_principal/ou_chercher_roll.gif";
		portrait = new Image(154,20);portrait.src = NbRep+"img/menu_principal/portrait_marche.gif";
		portrait_h = new Image(154,20);portrait_h.src =NbRep+"img/menu_principal/portrait_marche_roll.gif";
		ressources = new Image(101,20);ressources.src = NbRep+"img/menu_principal/ressources.gif";
		ressources_h = new Image(101,20);ressources_h.src =NbRep+"img/menu_principal/ressources_roll.gif";
		
		autres = new Image(249,22);autres.src = NbRep+"img/menu_cote/autres_sites.gif";
		autres_h = new Image(249,22);autres_h.src =NbRep+"img/menu_cote/autres_sites_h.gif";
}