var szAuthorizedSite; var szSiteStatus; var szCompleteMenuURL; var tbAccess = [["worldware.ch","1"], ["gbasystem.com","1"], ["creafly.ch","1"], ["mpgservices.ch","1"], ["sports-time.ch","1"], ["microinformatic.ch","1"], ["thermoflux.ch","1"], ["exclusive-ladies.ch","1"], ["localhost","1"], ["ws070","1"], ["clairdeluneboutique.com","1"], ["picasso","1"], ["homebeaulieu.ch","1"], ["wangmo.ch","1"], ["hafez.ch","1"], ["dupeyrou.ch","1"], ["sysware.ch","1"], ["alfor.ch","1"], ["chantevent.ch","1"], ["bibnet.ch","1"], ["phoebus.org","1"], ["prelat.ch","1"], ["expo02finder","1"], ["hotellaprairie.ch","1"], ["anippa.ch","1"], ["lucy-net.ch","1"], ["hifibox.ch","1"], ["aptitude.ch/emailpro","1"], ["lespommiers.ch","1"], ["aptitude.ch","1"], ["homepetitchezard.ch","1"], ["192.168.250.210:3228","1"], ["thermoflux.ch","1"], ["anedep.ch","1"], ["gacm.ch","1"], ["i-comet.ch","1"], ["teamlacroix.ch","1"], ["la-lorraine.ch","1"], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""]]; var ActClicked; var szColor_mouse; var szColor_on; var szColor_off; var szColor_title; var szSkin="default"; //ButtonType/ButtonLibelle var tbButton = [["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""], ["",""]]; var browser=0; function fnCheck() { var i=0; var bAccess=false; szCompleteMenuURL=parent.szThisURL+"skin/menu_ie.htm"; //alert("avant\n"+szCompleteMenuURL+" ; "+window.location); //alert(parent.szCompteur); if(szCompleteMenuURL==window.location) { while(tbAccess[i][0]!="" && !bAccess) { //alert(decoupe[1]+"\n"+tbAccess[i][0]); //alert(parent.szThisURL.search(tbAccess[i][0])); //if (parent.szThisURL==tbAccess[i][0] && tbAccess[i][1]==1) if (parent.szThisURL.search(tbAccess[i][0])>0 && tbAccess[i][1]==1) { bAccess=true; //alert("oui "+tbAccess[i][0]); } else { bAccess=false; //alert("non "+tbAccess[i][0]); }; i++; }; if (bAccess) { //location.replace("partner.htm"); szSiteStatus=1; } else { szSiteStatus=0; alert("Error: "+parent.szThisURL+"\n\nCe site n'est pas correctement enregistré chez WORLDWARE\nVeuillez contacter le webMaster svp\n\nLa barre de navigation est désactivée!"); //location.replace(parent.szWWLIB+"skins/no_ok.htm"); } }; }; function fnInitSkin() { fnCheck(); if (navigator.userAgent.substring(0,9) == "Mozilla/3") {browser=1} if (navigator.userAgent.substring(0,9) == "Mozilla/4") {browser=1} if (navigator.userAgent.substring(0,9) == "Mozilla/5") {browser=1} if (browser == 1) { picoff = new Image();picoff.src = szBg+"/button_off."+szImageType; picon = new Image();picon.src = szBg+"/button_mouse."+szImageType; piccl = new Image();piccl.src = szBg+"/button_on."+szImageType; //alert(picoff.src); } }; function on(i) { szColor='document.all.bt'+i+'.style.color="'+szColor_mouse+'"'; if (browser == 1 && ActClicked != i) { document.images[i].src= picon.src; //alert(szColor); eval(szColor); } } function off(i) { szColor='document.all.bt'+i+'.style.color="'+szColor_off+'"'; if (browser == 1 && ActClicked != i) { document.images[i].src= picoff.src; eval(szColor); } } function cl(i) { if (browser == 1) { document.images[ActClicked].src = picoff.src; szColor='document.all.bt'+ActClicked+'.style.color="'+szColor_off+'"'; eval(szColor); document.images[i].src = piccl.src; szColor='document.all.bt'+i+'.style.color="'+szColor_on+'"'; eval(szColor); ActClicked=i; } } function fnButton(iIndex) /* Modifiée le 27/07/2001 pour la compatibilité IE 5.5, 5.0, 4.0 - Déplacement de la balise après les div - Ajout du style cursor : default */ { var sziIndex; var iType; if (iIndex<10) { sziIndex="0000"+iIndex; } else { sziIndex="000"+iIndex; }; //alert(iIndex+" "+sziIndex); iType=tbButton[iIndex][0]; switch (iType) { case 0: // Vide document.write('