<!--

//Detecting the browser type
var isNetscape = (navigator.appName == "Netscape");
var isMacIE = ( (navigator.userAgent.indexOf("IE 4")  > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );
var layerRef = (isNetscape) ? "document" : "document.all";
var styleRef = (isNetscape) ? "" : ".style";
var DHTML_Enabled = ( (document.layers || document.all) && !isMacIE );
var ie_v4=(navigator.appVersion.search(/MSIE\s+(\d)/)==-1 ? false : RegExp.$1==4);

// To hide from old browsers generate the menu
// dynamically, invisible at the beginning
function MenuCall(Content, Width, BackgrColor, MenuNumber) 
  {
      MenuID=MenuNumber;
      WidthMenu=Width;
      Color=BackgrColor;

      if (DHTML_Enabled) 
         {
            if (isNetscape) 
               { 
                 document.write("<LAYER  class=menu   bgcolor="+Color+"  width="+WidthMenu+"  visibility=hidden  id="+MenuID+"   onMouseover=\"MenuActivate('"+MenuID+"')\" onMouseOut=\"MenuKill('"+MenuID+"')\">"+Content+"</LAYER>");	
               } 
            else 
               {  
	           document.write("<DIV class=menu   id="+MenuID+"  STYLE=\"  position:absolute; visibility:hidden; background:"+Color+"\"  onMouseover=\"MenuActivate('"+MenuID+"')\" onMouseOut=\"MenuKill('"+MenuID+"')\">"+Content+"</DIV>");
		     eval(layerRef + '["'+MenuID+'"]'+ styleRef + '.width ='+WidthMenu);
	          }
        }

  }

// To activate a menu just change the visibility parameter
function MenuActivate(MenuNumber) 
  {
         MenuID=MenuNumber;

         if (DHTML_Enabled) 
            { 
               if (isNetscape) 
                  { 
                      MenuIDPlace=MenuID+"Place"
                      CoordX=document.anchors[MenuIDPlace].x;
                      CoordY=document.anchors[MenuIDPlace].y +document.images["Menu1Picture"].height;
                      eval(layerRef + '["'+MenuID+'"]' + styleRef + '.top = '+CoordY);
                      eval(layerRef + '["'+MenuID+'"]' + styleRef + '.left = '+CoordX);
                      eval(layerRef + '["'+MenuID+'"]' + styleRef + '.visibility = "visible"');                     
                        
                  } 
               else 
                  {
                      eval(layerRef + '["'+MenuID+'"]' + styleRef + '.visibility = "visible"');
                  }
        }
   }
// To de-activate a menu just change the visibility parameter
function MenuKill(MenuNumber) 
   {
   	if (ie_v4==false){
   	  try{
		MenuID=MenuNumber;
		if (DHTML_Enabled) 
			{	
	//But first fixing a bug in IE4
			if (  (!isNetscape)&&(window.event.toElement.tagName== 'A') )
				{
				return;
				}  
			if (  (!isNetscape)&&(window.event.toElement.tagName== 'DIV') )
				{
				return;
				} 
	// Now changing the visibility parameter
				eval(layerRef + '["'+MenuID+'"]' + styleRef + '.visibility = "hidden"');
			}
		}catch(e){}
		}
	if (ie_v4==true){	
	MenuID=MenuNumber;
		if (DHTML_Enabled) 
			{	
	//But first fixing a bug in IE4
			if (  (!isNetscape)&&(window.event.toElement.tagName== 'A') )
				{
				return;
				}  
			if (  (!isNetscape)&&(window.event.toElement.tagName== 'DIV') )
				{
				return;
				} 
	// Now changing the visibility parameter
				eval(layerRef + '["'+MenuID+'"]' + styleRef + '.visibility = "hidden"');
			}
	}
   }
   
 /*function ShowMenuContent ()
  {
	bordercolor = "#898989";   // mouseover_font_color
	mouseover_background_color = "#FFFFFF";
	background_color = "#EEEEEE";
	mouseover_font_color = "#000099";
	font_color = "#000066";
		
	MenuContent=    "<table cellpadding=3 cellspacing=0 style=\"width:130px;\" bordercolor="+bordercolor+" border=1 cellspacing=0 cellpadding=0>   "+
					"         <tr><td align=left style='cursor:hand' onMouseover='this.style.backgroundColor=\""+mouseover_background_color+"\"' onMouseout='this.style.backgroundColor=\""+background_color+"\"' onclick='window.document.all.item(\"aENG\").click()')'><A id='aENG' class='toplink'href=\"stlfix_ENG.html?main=<%=main%>&prbut=<%=prbut%>&UserLang=ENG\">     "+
					"       English</A><BR>              "+
					"       </td></tr>					 "+	
					"		<tr><td align=left style='cursor:hand' onMouseover='this.style.backgroundColor=\""+mouseover_background_color+"\"' onMouseout='this.style.backgroundColor=\""+background_color+"\"' onclick='window.document.all.item(\"aFRA\").click()'><A id='aFRA' class='toplink'href=\"stlfix_FRA.html?main=<%=main%>&prbut=<%=prbut%>&UserLang=FRA\">     "+ 
					"    	Fran&ccedil;ais</A></td></tr></table>                   ";
					

	MenuWidth="70";
	MenuCall(MenuContent, MenuWidth, background_color, 'Menu1');
 }*/
// that's all

//-->
