
_BuildMenu();
	
function _fnOnMouseOver(id, n) {
		

		id.style.color =  "#2153AA";
		//id.style.background = "#3364BB";
		
		image = level + "index_images/arrow_r.gif";
		var img_id = document.getElementById("img" + n);
		img_id.src = image;

		
		if(navigator.appName == "Microsoft Internet Explorer")
		      id.style.cursor='hand';
        else if(navigator.appName == "Netscape") 
				id.style.cursor = "pointer";
		else	id.style.cursor = "pointer";

	}

function _fnOnMouseOut(id, n) {
		
		id.style.color = "#000000";
		//id.style.background = "#2153AA";
		
		image = level + "index_images/blank.gif";
		var img_id = document.getElementById("img" + n);
		img_id.src = image;



	}
	
function _fnMouseClic(_link) {
	
	if(_link == "") return;
	
	document.location.href =  level + _link;
}
	
	
	
function _BuildMenu() {

	var name = new Array();
	var _link = new Array();
	var title = new Array();
	
	name[0] = "Video";
	_link[0] = "video.php?show=list";
	title[0] = "video";
	
	
	name[1] = "Photo";
	_link[1] = "photo_album.php"; // "photo_album.php";
	title[1] = "Foto Album";
	
	name[2] = "Giochi";
	_link[2] = "play.php";
	title[2] = "Gioca";
	
	name[3] = "Informazioni";
	_link[3] = ""; // "info.php";
	title[3] = "Chi siamo";
	
	name[4] = "Ricerche";
	_link[4] = "ricerche/kenzosoft.php";
	title[4] = "Pagina ricerche";
	
	name[5] = "News";
	_link[5] = "news.php";
	title[5] = "Pagina news";
	
	name[6] = "Lab";
	_link[6] = "lab.php";
	title[6] = "Laboratorio";

	
	name[7] = "Login";
	_link[7] = "login.php";
	title[7] = "Login";


	var count = 8;
	
	var img = level + "index_images/blank.gif";

		
	
	document.write("<table border='0' width='100%' align='center' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111'>");	
	document.write("<tr><td width='100%'>");
	document.write("<table width='100%' align='center' border='0' cellpadding='0' cellspacing='0'>");
	//document.write("<tr><td height='5'>&nbsp;</td></tr>");
	
	
		
	for(i=0; i<count; i++) {
	
		//style='background-repeat: no-repeat;'
		document.write("<tr>");
		document.write("<td class='menu2' width='100%'  title='" + title[i] + "' id='" + name[i] + "'  height='25' onmouseover = _fnOnMouseOver(this," + i + ") onmouseout=_fnOnMouseOut(this," + i + ") onclick =_fnMouseClic('" + _link[i] +"')>");
		document.write("<img hspace='2' id='img" + i + "' border='0' src='" + img + "'>");
    	document.write("<a style='text-decoration:none' href='" + _link[i] + "'><font color='#000000'>" + name[i] + "</font></a>");
		document.write("</td></tr>");

    }
	
		document.write("</table>");
		document.write("<tr><td></table>");	    
    
  
              
}

