
//////////////////////////////////////////////////////
    font_family='verdana';
    font_size = '7pt';
    line_heigth='3';
    font_weight= 'bold';
    padding_left= '4px';
    
	hovercolor   = "#D8D8D8";	 // color name/code
	bgcolor      = "#E5E5E5";	// color name/code
	background   = "";	       // picture url
	
	menu_border  = 0;			// IE only
	border_color = "#000000";	// IE only
	
	arrow_pic    = "arrow.gif"; // url of arrow picture for submenus

//////////////////////////////////////////////////////


//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()


No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
layer = (document.all && No3) ? "document.all['L'+menu].style" : (document.layers && No3) ? "document.layers['L'+menu]" : 0;
if (bw.dom && !(bw.ie4 || bw.ie5)) layer="document.getElementById('L' + menu).style"
img = (document.all && No3) ? "document.all['img'+menu]" : (document.layers && No3) ? "document.images['img'+menu]" : 0;
if (bw.dom && !(bw.ie4 || bw.ie5)) img="document.getElementById('img' + menu)"

var timer;

function Show() { 


  if(layer) {
  	if(timer) clearTimeout(timer);
	
	for(menu=0; menu<Layer.length; menu++) { 

    if(Layer[menu] ) {
       if (eval(img)  && (eval(img).src.indexOf("_a_on")>=0)&&(menu!=arguments[1] && menu!=arguments[0]) ) {eval(img).src= eval(img).src.replace("_a_on.gif",".gif")}
       if (menu!=arguments[1] && menu!=arguments[0]) { eval(layer).visibility = "hidden";   } 
  
     }
     }
 
	for(i=0; i<arguments.length; i++) { 
	  menu=arguments[i]; 
	  if (eval(img) && (eval(img).src.indexOf("_a_on")<0) ) {eval(img).src= eval(img).src.replace(".gif","_a_on.gif")}
    	  eval(layer).visibility = "visible"; }
} }

function Hide() { timer = setTimeout("Show()", 100); }

function loadpage (percorsolo,bannertop,linkto){
 



window.open(linkto,'fin2','scrollbars=yes,resizable=yes,width=540,height=490,status=no,location=no,toolbar=yes,menubar=yes');

 return true
}


if(bw.ie4 || bw.ie5 || bw.dom) { if(!background) { background=bgcolor; } else { background = "url("+background+")"; } }

function LayerSpecs(Left,Top,Width) { 
if(No3) {
 var target

	Top+=7;
	if (bw.dom) {Top+=0; Width-=4}
	if (bw.ie4 || bw.ie5) {Width-=2;}
    
	this.left  = Left >1? (Left-2):0;
  // this.left  = Left
	this.top   = Top;
	this.info  = "";
	T=0;
	for(i=3; i<arguments.length;i=i+5) {
	
	target=(arguments[i+1].indexOf("http",0)>=0) ? ' TARGET=\"_BLANK\"':'';

        if(bw.dom || bw.ie4 || bw.ie5) 
        { 
         this.info += "<TR><TD style=\"cursor:hand; line-heigth:"+line_heigth+"; font-weight:"+font_weight+"; padding-left:"+padding_left+"; font-family:"+font_family+"; font-size:"+font_size+"\" OnClick=\"loadpage(\'"+arguments[i]+arguments[i+4]+"\',\'"+arguments[i+2]+"\',\'"+arguments[i+1]+"')\""+" WIDTH="+Width+" onMouseOver='this.bgColor=\""+hovercolor+"\";"+arguments[i+3]+ "' onMouseOut='this.bgColor=\""+bgcolor+"\"'>"+arguments[i+4]+"</TD></TR>"; 
         }
	 else 
        {
     
          this.info += "<LAYER class='tendinans4' onMouseOver='this.bgColor=\""+hovercolor+"\";"+arguments[i+3]+ "' onMouseOut='this.bgColor=\""+bgcolor+"\"'  WIDTH="+Width+" POSITION=RELATIVE TOP="+T+"><A href=\'"+arguments[i+1]+"\' "+target+" OnClick=\"return loadpage(\'"+arguments[i]+arguments[i+4]+"\',\'"+arguments[i+2]+"\')\""+">"+arguments[i+4]+"</A></LAYER>\n"; 
     
         }
	T=(Width>115)? T+18: (arguments[i+4].length>16)? T+27 : T+13
	}
       } 

}

Layer = new Array();
arrow = "<IMG SRC='"+arrow_pic+"' WIDTH=6 HEIGHT=10 BORDER=0 ALT=''>";
