// JAG - Variables Declaration...
NS4 = (document.layers);
NS6 =  ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 5))
IE4 = (document.all);
ver4 = (NS4 || IE4);
MAC45 = (navigator.appVersion.indexOf("MSIE 4.5") != -1)
isMac = (navigator.appVersion.indexOf("Mac") != -1);
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
function menuLoadImage() {
//	MM_preloadImages("");
}
function MM_preloadImages() { //v3.0
    var d=document;
    if(d.images){
        if(!d.MM_p)
            d.MM_p=new Array();
            var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
            for(i=0; i<a.length; i++)
                if (a[i].indexOf("#")!=0){
                    d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
                }
    }
}
function openLegalAdvise(advise,lang) {
  
  switch (advise) {
    case 1:
    langSuffix = lang == "US" ? "en/conditions-of-use" : (lang == "ES" ? "_s" : "conditions-utilisation");
	MM_openBrWindow('http://lotoquebec.com/corporatif/nav/' + langSuffix,'','menubar=yes,scrollbars=yes,resizable=yes,width=700,height=500');
    break;
    case 2:
    langSuffix = lang == "US" ? "en/privacy" : (lang == "ES" ? "_s" : "confidentialite");
	MM_openBrWindow('http://lotoquebec.com/corporatif/nav/' + langSuffix,'','menubar=yes,scrollbars=yes,resizable=yes,width=700,height=500');
    break;
  }
}