function get_wnd(path)
{
window.open(path,'','width=700,height=600,scrollbars=yes,resizable=yes,status=yes');
}
function get_wnd1(path)
{
//path = "window.html?win="+path;
path = "index.html?win="+path;
window.open(path,'','width=700,height=600,scrollbars=yes,resizable=yes');
}
function pop_print(pg,lg,doc) {
tmp="print.html?page="+pg+"&lang="+lg+"&doc="+doc;
window.open(tmp,'','resizable=1,toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,width=750,height=650');
}
function launch_printer(path,hidden)
{
var top = 0;
var left = 0;
var width = 750;
var height = 550
if(hidden)
{
left = "10000";
}
window.open(path,'','resizable=1,toolbar=no,status=no,scrollbars=yes,location=no,menubar=yes,width='+width+',height='+height+',top='+top+',left='+left);
}
NS4 = (document.layers) ;
IE4 = (document.all) ;
mac=((IE4)&&(navigator.appVersion.indexOf ("Mac")!=-1));
DOM=document.documentElement&&!NS4&&!IE4;
mswnd=(navigator.appVersion.indexOf("Windows")!=-1||navigator.appVersion.indexOf("WinNT")!=-1);
if(IE4)
{
av=navigator.appVersion;
avi=av.indexOf("MSIE");
if (avi==-1)
version = parseInt (av) ;
else
version = parseInt(av.substr(avi+4)) ;
}
if (NS4 || IE4 || DOM)
{
maxlev = 3;
popupWidth = 200; // longueur de la cellule
levelOffset = 0; // positionnement horizontal du second niveau
bord = 1; // epaisseur du bord de tous le tableau
vertSpace = 3; // hauteur de la cellule
sep = 1; // epaisseur de la ligne séparatrice des cellules
sepFrame = false;
openSameFrame = false;
cntFrame = "content";
contentFrame = "content";
mout = true;
iconSize = 8; // taille de l'icon qui avertit si un sous-niveau existe, afichage à droite du menu
imgFolder = "pics"; // folder pour l'icon
closeDelay = 750; // délais de fermeture du menu en miliseconde
tlmOrigBg = ""; // nav_back_color
tlmOrigCol = ""; // nav_color
bBitmapScheme = false;
bBitmapPopups = false;
popupOpenHeight = 0; // hauteur de l'espace du menu
popupLeftPad = 0; // espace à gauche entre le bord de la cellule et le contenu text
popupRightPad = 0; // espace à droite entre le bord de la cellule et le contenu text
tlmHlBg = "#52C9E1"; // subnav_back_color
tlmHlCol = ""; // subnav_color
borderCol = "#FFFFFF";
menuHorizontal = true; // menu horizontal->true, menu vertical->false
scrollHeight=6;
popupOffset = 10; // positionnement horizontal du premier niveau
popupWidth_vert = 200; // longueur de la cellule
levelOffset_vert = 0; // positionnement horizontal du second niveau
tlmOrigBg_vert = "#FEB321"; // nav_back_color
tlmOrigCol_vert = "#FFFFFF"; // nav_color
tlmHlBg_vert = "#FED17A"; // subnav_back_color
tlmHlCol_vert = "#FFFFFF"; // subnav_color
borderCol_vert = "#000000";
menuHorizontal_vert = false; // menu horizontal->true, menu vertical->false
popupOffset_vert = 0; // positionnement horizontal du premier niveau
}
// Navigation script
//lev0 = new Array ("subnav size","1",false,false,"subnav color","subnav backcolor","nav color","font family","nav backcolor") ;
lev0 = new Array ("11.2","1",false,false,"#FFFFFF","#52C9E1","#FFFFFF","Arial Black","#66E5FF") ;
lev1 = new Array ("11.2","1",false,false,"#FFFFFF","#52C9E1","#FFFFFF","Arial Black","#66E5FF") ;
lev2 = new Array ("11.2","1",false,false,"#FFFFFF","#52C9E1","#FFFFFF","Arial Black","#66E5FF") ;
lev3 = new Array ("11.2","1",false,false,"#FFFFFF","#52C9E1","#FFFFFF","Arial Black","#66E5FF") ;
lev0_vert = new Array ("11.2","1",false,false,"#FFFFFF","#FEB321","#FFFFFF","Arial Black","#FED17A") ;
lev1_vert = new Array ("11.2","1",false,false,"#FFFFFF","#FEB321","#FFFFFF","Arial Black","#FED17A") ;
lev2_vert = new Array ("11.2","1",false,false,"#FFFFFF","#FEB321","#FFFFFF","Arial Black","#FED17A") ;
lev3_vert = new Array ("11.2","1",false,false,"#FFFFFF","#FEB321","#FFFFFF","Arial Black","#FED17A") ;
tpl_layer_mn19 = new Array ("Problèmes de vision","?page=54&lang=fr",1 ,"Maladies de l'oeil","?page=55&lang=fr",1 ,"Fonctionnement de l'oeil","?page=56&lang=fr",1 ,"Examen de la vue","?page=57&lang=fr",1 );tpl_layer_mn3 = new Array ("Verres unifocaux","?page=131&lang=fr",1 ,"Traitements antireflet et couches de protection","?page=132&lang=fr",1 ,"Verres de lunettes photochromiques","?page=144&lang=fr",0 ,"Verres de lunettes de qualité pour la lecture","?page=133&lang=fr",0 ,"Entretien de vos verres de lunettes","?page=134&lang=fr",0 );tpl_layer_mn23 = new Array ("Essilor Belgium","?page=24&lang=fr",0 ,"Processus de production","?page=129&lang=fr",0 ,"Travailler chez Essilor Belgium","?page=37&lang=fr",1 ,"Essilor International","?page=26&lang=fr",0 ,"Contact","?page=38&lang=fr",0 );tpl_layer_mn111 = new Array ("Essilor et National Geographic unis pour une vision naturelle","?page=128&lang=fr",0 );
tpl_layer_mn19_1 = new Array ("Myopie","?page=58&lang=fr",0 ,"Hypermétropie","?page=59&lang=fr",0 ,"Presbytie","?page=60&lang=fr",0 ,"Astigmatisme","?page=61&lang=fr",0 ,"Derrière l'ordinateur","?page=62&lang=fr",0 ,"Lunettes et sport","?page=63&lang=fr",0 ,"Dans la circulation","?page=64&lang=fr",0 ,"Bien voir après 40 ans","?page=65&lang=fr",0 ,"Problèmes de vue chez les enfants","?page=66&lang=fr",0 );tpl_layer_mn19_2 = new Array ("Conjonctivite","?page=67&lang=fr",0 ,"Yeux secs","?page=68&lang=fr",0 ,"Glaucome","?page=69&lang=fr",0 ,"Traitement lazer","?page=70&lang=fr",0 ,"Dégénérescence maculaire","?page=71&lang=fr",0 ,"Réfraction de l'oeil","?page=72&lang=fr",0 ,"Rétinite pigmentaire","?page=73&lang=fr",0 ,"Strabisme","?page=74&lang=fr",0 ,"Cataracte","?page=75&lang=fr",0 ,"Diabète","?page=76&lang=fr",0 ,"Occlusion des vaisseaux de l'oeil","?page=77&lang=fr",0 ,"Taches et éclairs","?page=78&lang=fr",0 );tpl_layer_mn19_3 = new Array ("Comment fonctionne l'oeil ?","?page=79&lang=fr",0 ,"Protection contre les rayons ultraviolets","?page=80&lang=fr",0 );tpl_layer_mn19_4 = new Array ("La réfraction","?page=81&lang=fr",0 ,"La prescription","?page=82&lang=fr",0 ,"Questions fréquemment posées","?page=83&lang=fr",0 );tpl_layer_mn3_1 = new Array ("Eyecode","?page=135&lang=fr",0 ,"Essilor 360","?page=136&lang=fr",0 ,"Essilor Anti-Fatigue","?page=138&lang=fr",0 ,"Verres Stylis®","?page=139&lang=fr",0 );tpl_layer_mn3_2 = new Array ("Crizal Forte","?page=140&lang=fr",0 ,"Crizal Sun","?page=141&lang=fr",0 ,"Trio Clean","?page=142&lang=fr",0 );tpl_layer_mn23_3 = new Array ("Offres d'emploi","?page=43&lang=fr",0 );
tpl_layer_vert_mn54 = new Array ("Myopie","?page=58&lang=fr",0 ,"Hypermétropie","?page=59&lang=fr",0 ,"Presbytie","?page=60&lang=fr",0 ,"Astigmatisme","?page=61&lang=fr",0 ,"Derrière l'ordinateur","?page=62&lang=fr",0 ,"Lunettes et sport","?page=63&lang=fr",0 ,"Dans la circulation","?page=64&lang=fr",0 ,"Bien voir après 40 ans","?page=65&lang=fr",0 ,"Problèmes de vue chez les enfants","?page=66&lang=fr",0 );tpl_layer_vert_mn55 = new Array ("Conjonctivite","?page=67&lang=fr",0 ,"Yeux secs","?page=68&lang=fr",0 ,"Glaucome","?page=69&lang=fr",0 ,"Traitement lazer","?page=70&lang=fr",0 ,"Dégénérescence maculaire","?page=71&lang=fr",0 ,"Réfraction de l'oeil","?page=72&lang=fr",0 ,"Rétinite pigmentaire","?page=73&lang=fr",0 ,"Strabisme","?page=74&lang=fr",0 ,"Cataracte","?page=75&lang=fr",0 ,"Diabète","?page=76&lang=fr",0 ,"Occlusion des vaisseaux de l'oeil","?page=77&lang=fr",0 ,"Taches et éclairs","?page=78&lang=fr",0 );tpl_layer_vert_mn56 = new Array ("Comment fonctionne l'oeil ?","?page=79&lang=fr",0 ,"Protection contre les rayons ultraviolets","?page=80&lang=fr",0 );tpl_layer_vert_mn57 = new Array ("La réfraction","?page=81&lang=fr",0 ,"La prescription","?page=82&lang=fr",0 ,"Questions fréquemment posées","?page=83&lang=fr",0 );
absPath="";
if (sepFrame && !openSameFrame)
{
if (document.URL.lastIndexOf("\\")>document.URL.lastIndexOf("/")) {sepCh = "\\" ;} else {sepCh = "/" ;}
absPath = document.URL.substring(0,document.URL.lastIndexOf(sepCh)+1);
}
if (NS4)
{
document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC='scripts/ns4.js'><"+"/"+"SCRIPT>");
document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC='scripts/ns4_vert.js'><"+"/"+"SCRIPT>");
}
else
{
document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC='scripts/dom.js'><"+"/"+"SCRIPT>");
document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC='scripts/dom_vert.js'><"+"/"+"SCRIPT>");
}
//document.write("\n");
// news ticker function
var newslist=new Array();
var cnt=0; // current news item
var curr = "";
var i=-1; // current letter being typed
//mxt.innerHTML = "
";
//newslist[0]=new Array("International Women's Day >>more...","news.html?wnd=119");
function newsticker()
{
// next character of current item
if (i < newslist[cnt][0].length - 1)
{
i++;
temp1 = newslist[cnt][0];
temp1 = temp1.split('');
curr = curr+temp1[i];
temp2 = newslist[cnt][1];
mtxt.innerHTML = ""+curr+"_";
setTimeout('newsticker()',10)
return;
}
// new item
i = -1; curr = "";
if (cnt @ , ; : \ " . [ ] */
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
/* The following string represents the range of characters allowed in a
username or domainname. It really states which chars aren't allowed. */
var validChars="\[^\\s" + specialChars + "\]"
/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes). E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */
var quotedUser="(\"[^\"]*\")"
/* The following pattern applies for domains that are IP addresses,
rather than symbolic names. E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
/* The following string represents an atom (basically a series of
non-special characters.) */
var atom=validChars + '+'
/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */
var word="(" + atom + "|" + quotedUser + ")"
// The following pattern describes the structure of the user
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
/* Finally, let's start trying to figure out if the supplied address is
valid. */
/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */
var matchArray=emailStr.match(emailPat)
if (matchArray==null) {
/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */
alert("Wrong e-mail format (check @ and .'s)")
return false
}
var user=matchArray[1]
var domain=matchArray[2]
// See if "user" is valid
if (user.match(userPat)==null) {
// user is not valid
alert("TThe username doesn't seems to be valid.")
return false
}
/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */
var IPArray=domain.match(ipDomainPat)
if (IPArray!=null) {
// this is an IP address
for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Invalid destination IP address!")
return false
}
}
return true
}
// Domain is symbolic name
var domainArray=domain.match(domainPat)
if (domainArray==null) {
alert("Invalid domain name")
return false
}
/* domain name seems valid, but now make sure that it ends in a
three-letter word (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding
the domain or country. */
/* Now we need to break up the domain to get a count of how many atoms
it consists of. */
var atomPat=new RegExp(atom,"g")
var domArr=domain.match(atomPat)
var len=domArr.length
if (domArr[domArr.length-1].length<2 ||
domArr[domArr.length-1].length>3) {
// the address must end in a two letter or three letter word.
alert("The e-mail address has an invalid domain extension.")
return false
}
// Make sure there's a host name preceding the domain.
if (len<2) {
var errStr="Wrong domain name."
alert(errStr)
return false
}
// If we've gotten this far, everything's valid!
return true;
}