function menuObjLeft(lay){
	if(N4){
		this.lay = document.layers[lay];
//		this.lay.parentNr = nr;
		this.lay.write = writeLay;
		this.lay.hide = hideLay;
		this.lay.show = showLay;
	}else{
		if(IE4)
			this.lay = document.all[lay];
		else
			this.lay = document.getElementById(lay);
//		this.lay.parentNr = nr;
		this.lay.write = writeLayIE;
		this.lay.hide = hideLayIE;
		this.lay.show = showLayIE;
	}
	this.lay.onmouseover = menuLeftLayOver;
	this.lay.onmouseout = menuLeftLayOut;
}


function menuLeftLayOver(){if(!N4) selVis("hidden");hideAll();this.show();}
function menuLeftLayOut(){hideMarker();if(!N4) selVis("visible");}

var menuArrayLeft = new Array();

function drawMenuLeft(){
//	setGlobals();
	var menuTxtLeft = [	

					[["Immobili-vendita","immoven.htm"]],
					[["Immobili-locazione","immoloc.htm"]],
					[["Garage","garage.htm"]],
					[["Scuole","scuole.htm"]],
					[["Beni-mobili","benmob.htm"]],
					[["Contatti","form.htm"]]
				];
	for(var i=0;i<menuTxtLeft.length;i++){
		menuArrayLeft[i] = new menuObjLeft('leftMenu'+i);
		var mTxtLeft = "";
		for(var n=0;n<menuTxtLeft[i].length;n++){
			if(document.getElementById)
				mTxtLeft += '<tr><td height="15" bgcolor="#004A6B" onmouseover="lOverLeft(this)" onmouseout="lOutLeft(this)" ';
			else
				mTxtLeft += '<tr><td height="15" bgcolor="#004A6B" ';
			if(!N4) 
				mTxtLeft += 'style="cursor:hand"';
			mTxtLeft += 'onclick="goLink(\''+ menuTxtLeft[i][n][1] +'\');return false"><span class="navtextleft"><IMG height=1 src="/img/blank.gif" width=8><A href="'+menuTxtLeft[i][n][1]+'" class="navtextleft">&nbsp;&nbsp;'+menuTxtLeft[i][n][0]+'</A>&nbsp;&nbsp;</span></td></tr>';
		}
		menuArrayLeft[i].lay.write('<table bgcolor="004A6B" cellspacing=0 border=0 width="168">'+mTxtLeft+'</table>');
	}
}
function lOverLeft(obj){
	if(!N4){ 
		obj.style.backgroundColor = "FF6600";
		if(obj.children)
			obj.children[0].children[0].style.color = "FFFFFF";
	}
}
function lOutLeft(obj){
	if(!N4){
		obj.style.backgroundColor = "004A6B";
		if(obj.children)
			obj.children[0].children[0].style.color = "6699CC";
	}
}

