var nomnav = navigator.appName;
if (nomnav == 'Microsoft Internet Explorer') {
  document.write("<link rel='stylesheet' media='screen' type='text/css' href='/css/vigilance/style_carteIE.css' />");
}
else {
  document.write("<link rel='stylesheet' media='screen' type='text/css' href='/css/vigilance/style_carte.css' />");
}

function showLayer(layerName){
				eval(firstBit+layerName+secondBit+styleRef+'.visibility="visible"');
			}
	
			function hideLayer(layerName){
				eval(firstBit+layerName+secondBit+styleRef+'.visibility="hidden"');
			}
	
			function getXpos(layerName) {
				return eval(firstBit+layerName+secondBit+styleRef+leftVar);
			}
	
			function getYpos(layerName) {
				return eval(firstBit+layerName+secondBit+styleRef+topVar);
			}
	
			function getHeight(layerName) {
				return eval(firstBit+layerName+secondBit+heightVar);
			 }
			 
			 function getWidth(layerName) {
				return eval(firstBit+layerName+secondBit+widthVar);
			 }
				
			function moveLayer(layerName,whereToX,whereToY) {
				eval(firstBit+layerName+secondBit+styleRef+leftVar+'='+whereToX);
				eval(firstBit+layerName+secondBit+styleRef+topVar+'='+whereToY);
			}
	
			function scrollTextDown(layerName,upArrow,downArrow,topStop,inc) {
				if (getYpos(layerName) < topStop) {
					moveLayer(layerName,getXpos(layerName),getYpos(layerName)+inc);
					showLayer(downArrow);
					scrolling=setTimeout('scrollTextDown("'+layerName+'","'+upArrow+'","'+downArrow+'",'+topStop+','+inc+')',10);
				} else {
					hideLayer(upArrow);
				}
			}
	
			function scrollTextUp(layerName,upArrow,downArrow,bottomStop,inc) {
				if (getYpos(layerName)>bottomStop-getHeight(layerName)) {
					moveLayer(layerName,getXpos(layerName),getYpos(layerName)-inc);
					showLayer(upArrow);
					scrolling=setTimeout('scrollTextUp("'+layerName+'","'+upArrow+'","'+downArrow+'",'+bottomStop+','+inc+')',10);
				} else {
					hideLayer(downArrow);
				}
			}
	
			scrolling = null;
	
			function stopScrolling() {
				clearTimeout(scrolling);
			}
	
			function showScroller(layerName,downArrow,minSize) {
				if (getHeight(layerName)>minSize) {
					showLayer(downArrow);
				} else {
					hideLayer(downArrow);
				}
	
	
			}var activeLayer="dummylayer";
			var scrolling = 0;
	
			function display(layerName) {
				if (activeLayer != layerName) {
					hideLayer(activeLayer);
					showLayer(layerName);
					showLayer("mousetrap");
					showLayer("mousetrap2");
				    showLayer("mousetrap3");
					activeLayer=layerName;
				}
			}
	
			function clearLayers() {
				hideLayer(activeLayer);
				hideLayer("mousetrap");
				hideLayer("mousetrap2");
				hideLayer("mousetrap3");
				activeLayer="dummylayer";
			}
			
function wclose() {top.close();}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  fenetre = window.open(theURL,winName,features);
  fenetre.focus() ;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function Ecriture(couche,texte) {
    var obj = MM_findObj(couche);
    if (navigator.appName=="Netscape" && parseFloat(navigator.appVersion)<5) {
        obj.document.write("<span class='grosblanc'>"+texte+"</span>");
        obj.document.close();
    } else {
        obj.innerHTML = texte;
    }
}

function favori(phrase,lien)
{
   if (window.sidebar)
   {
   window.sidebar.addPanel(phrase, lien,"");
   }
   else if( document.all )
   {
   window.external.AddFavorite(lien, phrase);
   }
   else
        {
   return true;
   }
} 