/*****************************************************************************
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.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	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.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(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 mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain"
oCMenu.useNS4links=1 
oCMenu.checkselect=1
//oCMenu.offlineUrl="file:///C|/comunediariano/menu/"
oCMenu.onlineUrl="http://www.comunediariano.it/menu/"


oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=1000 

oCMenu.usebar=1 
oCMenu.barcolor="#336699" 
oCMenu.barwidth="menu" //700 // "100%" 
oCMenu.barheight="menu" 
oCMenu.barx="menu"
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=20 
oCMenu.fromtop=104 
oCMenu.pxbetween=10

//avail="50+((toppage.x2-210)/6)" 
//oCMenu.menuplacement=new Array(50,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5")
oCMenu.menuplacement="center"

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=115 
oCMenu.level[0].height=20 
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].hovercolor="#FCCE55" 
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=100
oCMenu.level[1].height=20
oCMenu.level[1].bgcoloroff="#CDDBEB"
oCMenu.level[1].bgcoloron="#006699"
oCMenu.level[1].textcolor="#006699"
oCMenu.level[1].hovercolor="#FCCE55"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#006699"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"

oCMenu.level[2]=new Array()
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].style="padding:2px; font-family: arial,helvetica; font-size:10px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#006699"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].bgcoloroff="#CDDBEB"
oCMenu.level[2].bgcoloron="#006699"
oCMenu.level[2].textcolor="#006699"
oCMenu.level[2].hovercolor="#CDDBEB"

oCMenu.makeMenu('top0','','La Cittą','../ariano/index.html')
  oCMenu.makeMenu('sub00','top0','Dati generali','../ariano/datigene.htm')
  oCMenu.makeMenu('sub01','top0','Cenni storici','../ariano/descstoa.htm')
  oCMenu.makeMenu('sub02','top0','Raggiungici','../ariano/comeragg.htm')
  oCMenu.makeMenu('sub03','top0','Numeri Utili','../ariano/sos.htm')
  oCMenu.makeMenu('sub04','top0','Il Palasport','../palasport/index.html')
  oCMenu.makeMenu('sub05','top0','Arte e Cultura','')
 
   oCMenu.makeMenu('sub051','sub05','Castello normanno','../ariano/castello.htm')
    oCMenu.makeMenu('sub052','sub05','Cattedrale','../ariano/cattedrale.htm')
    oCMenu.makeMenu('sub053','sub05','Musei','../musei/index.html')
    oCMenu.makeMenu('sub054','sub05','Villa comunale','../ariano/villa.htm')
    oCMenu.makeMenu('sub055','sub05','Biblioteche','../ariano/biblio.htm')
    oCMenu.makeMenu('sub056','sub05','Uomini illustri','../ariano/illustri.htm')

oCMenu.makeMenu('sub06','top0','Ospitalitą','')
   oCMenu.makeMenu('sub061','sub06','Alberghi e Ristoranti','../ariano/alberghi-e-ristoranti.htm')
    oCMenu.makeMenu('sub062','sub06','Agriturismi','../ariano/agriturismo.htm')
oCMenu.makeMenu('sub07','top0','Album fotografici','../ariano/album/index.html')





//oCMenu.makeMenu('top1','','Arte e Cultura','','')
 
    //oCMenu.makeMenu('sub10','top1','Castello normanno','../ariano/castello.htm')
    //oCMenu.makeMenu('sub11','top1','Cattedrale','../ariano/cattedrale.htm')
    //oCMenu.makeMenu('sub12','top1','Musei','../musei/index.html')
    //oCMenu.makeMenu('sub13','top1','Villa comunale','../ariano/villa.htm')
    //oCMenu.makeMenu('sub14','top1','Biblioteche','../ariano/biblio.htm')
    //oCMenu.makeMenu('sub15','top1','Uomini illustri','../ariano/illustri.htm')
	
oCMenu.makeMenu('top2','','Amministrazione','../comune/index.html')
	oCMenu.makeMenu('sub20','top2','La Giunta','../comune/giunta.htm')
	oCMenu.makeMenu('sub21','top2','Il Consiglio','../comune/consiglio.htm')
	oCMenu.makeMenu('sub22','top2','Commissioni','../comune/commperm.htm')
	oCMenu.makeMenu('sub23','top2','Statuto','../regolamenti/statuto.htm')
	oCMenu.makeMenu('sub24','top2','Regolamenti','../regolamenti/index.html')
	oCMenu.makeMenu('sub25','top2','Delibere','../delibere/index.html')
  	oCMenu.makeMenu('sub251','sub25','Giunta','../delibere/index.html')
  	oCMenu.makeMenu('sub252','sub25','Consiglio 2006','../delibere/consiglio/2006/index.html')
	oCMenu.makeMenu('sub253','sub25','Consiglio 2005','../delibere/consiglio/2005/index.html')
	oCMenu.makeMenu('sub254','sub25','Consiglio 2004','../delibere/consiglio/2004/index.html')
        oCMenu.makeMenu('sub26','top2','Uffici comunali','../comune/uffici-comunali.htm')
  	//oCMenu.makeMenu('sub261','sub26','Area Amministrativa','../cartaservizi/area_amministrativa.htm')
	//oCMenu.makeMenu('sub262','sub26','Area Finanziaria','../cartaservizi/area_finanziaria.htm')
        //oCMenu.makeMenu('sub263','sub26','Area dei Servizi','../cartaservizi/area_servizi.htm')
        //oCMenu.makeMenu('sub264','sub26','Area Tecnica','../cartaservizi/area_tecnica.htm')
        //oCMenu.makeMenu('sub265','sub26','Area di Vigilanza','../cartaservizi/area_vigilanza.htm')

	
oCMenu.makeMenu('top3','','Bandi e Concorsi','../bandi/index.html')

oCMenu.makeMenu('top4','','Area Finanziaria','')
	oCMenu.makeMenu('sub40','top4','Area P.I.P.','../sap/pip/index.html')
	oCMenu.makeMenu('sub41','top4','Servizio Tributi','../sap/tributi/index.html')
	oCMenu.makeMenu('sub42','top4','S.U.A.P.', 'http://www.arianoirpino.suap.it/','_top')
	    //oCMenu.makeMenu('sub421','sub42','Commercio','../sap/commercio/index.html')
	    //oCMenu.makeMenu('sub423','sub42','Finanziamenti','../sap/finanziamenti/index.html')
	
	 
	    


oCMenu.makeMenu('top5','','Manifestazioni','')
	oCMenu.makeMenu('sub50','top5','Estate arianese','../estate/2006/index.html')
	//oCMenu.makeMenu('sub51','top5','JazzAriano','../jazzariano/index.html')
	oCMenu.makeMenu('sub52','top5','Sante Spine','../santespine/index.html')
	oCMenu.makeMenu('sub53','top5','Vicoli ed Arte','../vicoli/index.html')
	oCMenu.makeMenu('sub54','top5','AFFX','http://www.arianofolkfestival.it/','_blank')	
	oCMenu.makeMenu('sub55','top5','Tradariano','../tradariano/index.html')
	oCMenu.makeMenu('sub56','top5','ArianodInverno','../arianodinverno/index.html')


oCMenu.makeMenu('top6','','Archivio','../archivio.htm')
	//oCMenu.makeMenu('sub60','top6','Elezioni 2004','../elezioni2004/index.html')


		
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()			

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>119){
				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)
}

