/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
/*
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6||this.ie7
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie7 ||this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
*/
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion; this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ie=this.ie4||this.ie5||this.ie6 || this.ie7
this.mac=this.agent.indexOf("Mac")>-1
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns7=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
return this
}
var bw=new lib_bwcheck() //Making browsercheck object


//var sitelink = "##PERCORSOSITO##"

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0
oCMenu.frame="frmMain"
oCMenu.useNS4links=1
oCMenu.checkselect=1

oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1
oCMenu.wait=500
oCMenu.usebar=0 
oCMenu.barcolor="#CECFCE" 
oCMenu.barwidth="menu" 
oCMenu.barheight="menu" 
oCMenu.barx="menu" 
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

var tmpTOP = ((toppage.y2-480)/2)+15;
var pxfromtop = 0;
if (tmpTOP<=0)
	tmpTOP=15;
if (fromtop==0)
	pxfromtop=tmpTOP;
else
	pxfromtop=fromtop;

oCMenu.rows=1
oCMenu.fromleft=0 
oCMenu.fromtop = pxfromtop
oCMenu.pxbetween=0

var fontsize = "8pt"
var heightsize = 18

var offset = "((toppage.x2-750)/2)"
var menusize = 200
if (bw.ns4)
	offset = offset + "-9"
if (bw.ns6)
	offset = offset + "-8"
oCMenu.menuplacement=new Array(offset+"+"+larghezzaMenu,offset+"+"+(larghezzaMenu*2),offset+"+"+(larghezzaMenu*3))

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=larghezzaMenu
oCMenu.level[0].height=23
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].hovercolor="white" 
oCMenu.level[0].style="font-family: arial; font-size: 12px; font-weight: bold; text-align:center;"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1
oCMenu.level[0].NS4font="arial"
oCMenu.level[0].NS4fontSize="1"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom"

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=larghezzaMenu
oCMenu.level[1].height=20
oCMenu.level[1].bgcoloroff="#6D8ED1"
oCMenu.level[1].bgcoloron="#003399"
oCMenu.level[1].textcolor="black"
oCMenu.level[1].hovercolor="black"
oCMenu.level[1].style="font-family: arial; font-size: "+fontsize+"; font-weight: bold;"
oCMenu.level[1].border=1
oCMenu.level[1].bordercolor="#FFFFFF"
oCMenu.level[1].offsetX=-1
oCMenu.level[1].offsetY=-1
oCMenu.level[1].NS4font="verdana"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"
oCMenu.level[1].align="bottom"

oCMenu.level[2]=new Array() 
oCMenu.level[2].width=200
oCMenu.level[2].height=23
oCMenu.level[2].bgcoloroff="#D9ECB3"
oCMenu.level[2].bgcoloron="#9ACC37"
oCMenu.level[2].textcolor="black"
oCMenu.level[2].hovercolor="black"
oCMenu.level[2].style="font-family: verdana; font-size: "+fontsize+"; font-weight: normal;"
oCMenu.level[2].border=1
oCMenu.level[2].bordercolor="#FFFFFF"
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=-1
oCMenu.level[2].NS4font="verdana"
oCMenu.level[2].NS4fontSize="2"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].align="bottom"


var iniziaformattazionetop
iniziaformattazionetop = 					'<table width="100%" height="19" border="0" style="margin-top:2px; border-collapse:collapse" cellpadding="0" cellspacing="0">'
iniziaformattazionetop = iniziaformattazionetop +		'<tr>'
iniziaformattazionetop = iniziaformattazionetop +			'<td align="center" style="border-left:1px solid white">'
iniziaformattazionetop = iniziaformattazionetop +			'<font style="font-family: arial; font-weight:bold; font-size:12px; color:#FFFFFF;">'

var iniziaformattazionetop2
iniziaformattazionetop2 = 					'<table width="100%" height="19" border="0" style="margin-top:2px; border-collapse:collapse" cellpadding="0" cellspacing="0">'
iniziaformattazionetop2 = iniziaformattazionetop2 +		'<tr>'
iniziaformattazionetop2 = iniziaformattazionetop2 +			'<td align="center">'
iniziaformattazionetop2 = iniziaformattazionetop2 +			'<font style="font-family: arial; font-weight:bold; font-size:12px; color:#FFFFFF;">'

var fineformattazionetop
fineformattazionetop =						'</font>'
fineformattazionetop = fineformattazionetop +				'</td>'
fineformattazionetop = fineformattazionetop +			'</tr>'
fineformattazionetop = fineformattazionetop +			'</table>'

var iniziaformattazione
iniziaformattazione = 					'<table width="100%" height="' + heightsize + '" border="0" bordercolor="#FFFFFF" style="border-collapse:collapse" cellpadding="0" cellspacing="0">'
iniziaformattazione = iniziaformattazione +		'<tr>'
iniziaformattazione = iniziaformattazione +			'<td align="left" style="padding-left:10px; padding-top:0px; border-top:0px solid white; border-bottom:0px solid #FFFFFF; border-right:0px solid white; border-left:0px solid white;"><font style="font-family: arial; font-size: ' + fontsize + '; color:#FFFFFF;">'

var fineformattazione
fineformattazione =						'</font></td>'
fineformattazione = fineformattazione +			'</tr>'
fineformattazione = fineformattazione +			'</table>'

var iniziaformattazioneSX
iniziaformattazioneSX = 					'<table width="100%" height="' + heightsize + '" border="0" bordercolor="#FFFFFF" style="border-collapse:collapse" cellpadding="0" cellspacing="0">'
iniziaformattazioneSX = iniziaformattazioneSX +		'<tr>'
iniziaformattazioneSX = iniziaformattazioneSX +			'<td align="right" style="padding-right:10px; padding-bottom:5px; border-top:1px solid white; border-left:1px solid white; border-bottom:1px solid white; border-right:1px solid white;">'
iniziaformattazioneSX = iniziaformattazioneSX +			'<font style="font-family: arial; font-size: ' + fontsize + '; color:#FFFFFF;">'

var fineformattazioneSX
fineformattazioneSX =						'</font>'
fineformattazioneSX = fineformattazioneSX +				'</td>'
fineformattazioneSX = fineformattazioneSX +			'</tr>'
fineformattazioneSX = fineformattazioneSX +			'</table>'

var iniziaformattazionefreccia
iniziaformattazionefreccia = 					'<table width="100%" height="' + heightsize + '" border="0" style="border-collapse:collapse" cellpadding="0" cellspacing="0">'
iniziaformattazionefreccia = iniziaformattazionefreccia +		'<tr>'
iniziaformattazionefreccia = iniziaformattazionefreccia +			'<td align="left" style="padding-left:10px; padding-bottom:5px; border-top:0px solid white; border-bottom:0px solid white; border-left:0px solid white">'
iniziaformattazionefreccia = iniziaformattazionefreccia +			'<font style="font-family: arial; font-size: ' + fontsize + '; color:#FFFFFF;">'

var fineformattazionefreccia
fineformattazionefreccia =							'</font>'
fineformattazionefreccia = fineformattazionefreccia + 				'</td>'
fineformattazionefreccia = fineformattazionefreccia + 				'<td width="9" align="right" valign="middle" style="border-top:0px solid white; border-right:0px solid white; border-bottom:0px solid white; ">'
fineformattazionefreccia = fineformattazionefreccia +					'<img src="/images/Graphics/freccia.gif">'
fineformattazionefreccia = fineformattazionefreccia +				'</td>'
fineformattazionefreccia = fineformattazionefreccia +			'</tr>'
fineformattazionefreccia = fineformattazionefreccia +		'</table>'


var iniziaformattazionefrecciaSX
iniziaformattazionefrecciaSX = 					'<table width="100%" height="' + heightsize + '" border="0" style="border-collapse:collapse" cellpadding="0" cellspacing="0">'
iniziaformattazionefrecciaSX = iniziaformattazionefrecciaSX +		'<tr>'
iniziaformattazionefrecciaSX = iniziaformattazionefrecciaSX + 			'<td width="9" align="left" valign="middle" style="border-top:1px solid white; border-bottom:1px solid white; border-left:1px solid white;  ">'
iniziaformattazionefrecciaSX = iniziaformattazionefrecciaSX +				'<img src="/images/interno/menu/frecciaSX.gif">'
iniziaformattazionefrecciaSX = iniziaformattazionefrecciaSX +			'</td>'
iniziaformattazionefrecciaSX = iniziaformattazionefrecciaSX +			'<td align="right" style="padding-right:10px; padding-bottom:5px; border-top:1px solid white; border-bottom:1px solid white; border-right:1px solid white">'
iniziaformattazionefrecciaSX = iniziaformattazionefrecciaSX +			'<font style="font-family: arial; font-size: ' + fontsize + '; color:#FFFFFF;">'

var fineformattazionefrecciaSX
fineformattazionefrecciaSX =							'</font>'
fineformattazionefrecciaSX = fineformattazionefrecciaSX + 				'</td>'
fineformattazionefrecciaSX = fineformattazionefrecciaSX +			'</tr>'
fineformattazionefrecciaSX = fineformattazionefrecciaSX +		'</table>'


function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>menusize){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}

oCMenu.makeMenu('top0','',iniziaformattazionetop2 + 'Maurizio Giordani' + fineformattazionetop,'','','','','','','#003399','#6D8ED1','white','white','','')
//name,parent,text,link,target,width,height,img1,img2,bgcoloroff,bgcoloron,textcolor,hovercolor,onclick,onmouseover,onmouseout
	oCMenu.makeMenu('sub00','top0',iniziaformattazione + 'Chi sono' + fineformattazione,sitelink + '/chisono','','','','','','','','white','white')
	oCMenu.makeMenu('sub01','top0',iniziaformattazione + 'Realizzazioni' + fineformattazione,sitelink + '/realizzazioni','','','','','','','','white','white')
	oCMenu.makeMenu('sub02','top0',iniziaformattazione + 'Incontri' + fineformattazione,sitelink + '/incontri','','','','','','','','white','white')

oCMenu.makeMenu('top1','',iniziaformattazionetop + 'Viaggi e Spedizioni' + fineformattazionetop,'','','','','','','#003399','#6D8ED1','white','white','','')
	oCMenu.makeMenu('sub10','top1',iniziaformattazione + 'Dove sono stato' + fineformattazione,sitelink + '/itinerari/archivio.asp','','','','','','','','white','white')
	oCMenu.makeMenu('sub11','top1',iniziaformattazione + 'Dove andr&ograve;' + fineformattazione,sitelink + '/itinerari','','','','','','','','white','white')
	oCMenu.makeMenu('sub12','top1',iniziaformattazione + 'Photogallery' + fineformattazione,sitelink + '/photogallery','','','','','','','','white','white')

oCMenu.makeMenu('top2','',iniziaformattazionetop + 'Info e Contatti' + fineformattazionetop,'','','','','','','#003399','#6D8ED1','white','white','','')
	oCMenu.makeMenu('sub21','top2',iniziaformattazione + 'Contattami' + fineformattazione,sitelink + '/contatti','','','','','','','','white','white','','')
	oCMenu.makeMenu('sub22','top2',iniziaformattazione + 'Dove sono' + fineformattazione,sitelink + '/dovesono','','','','','','','','white','white','','')
	oCMenu.makeMenu('sub23','top2',iniziaformattazione + 'Gmountain House' + fineformattazione,sitelink + '/shop','','','','','','','','white','white','','')
	oCMenu.makeMenu('sub24','top2',iniziaformattazione + 'Link utili' + fineformattazione,sitelink + '/link','','','','','','','','white','white','','')
//	oCMenu.makeMenu('sub25','top2',iniziaformattazione + 'Partners' + fineformattazione,sitelink + '/partners','','','','','','','','white','white','','')
oCMenu.makeStyle(); 
oCMenu.construct()