///////////////////////////////////////////////////////////////////////////////////////
/////////           Cap Gemini Ernst & Young Italia S.p.A.                        /////
/////////           Interface Design Lab                                          /////
/////////           Copyright: Cap Gemini Ernst & Young Italia S.p.A.             /////
/////////           Author: Luca Baroni                                           /////
///////////////////////////////////////////////////////////////////////////////////////

// Defining Variables
var fntname, fntsize, vis, locolor, isloaded;
// Setting variables for TopNav Menu
vis = false;
fntname = " Verdana, Arial, Helvetica, Sans-serif"; 
fntsize = 12;
locolor = "#ffffff"; //"#EDB341"; // Colore back celle (sostituire anche in menuiens.js)
setTxtColor = "#000000";
setBackOver = "#FFD634";
setOutLine = "#B4B4B4";

isloaded = false;

// Select case from left for Mac Pc
var Mac = navigator.userAgent;
Mac = Mac.toLowerCase()
var L1 = 208, L2 = 427 //, L3 = 427 ;L4 = 548
if (Mac.indexOf("mac") > -1)
{
	L1++;L2++ //;L3++;L4++
}

// Activate the Menu
function init() {
	menu.activate()
	menu1.activate()
//	menu2.activate()
//	menu3.activate()
	isloaded = true;
	}

// Creating the first drop down menu
//menu = new Menu('container0',98,L1,setOutLine,setBackOver,setTxtColor)
//	//menu.add ("&nbsp;Catalogo","../listino/pr_catalogo_scheda.htm","container0")
//	//menu.add ("&nbsp;Listino","../listino/pr_listino_main.htm","container0")
//	//menu.add ("&nbsp;Ordine birra","#","container0")
//	//menu.add ("&nbsp;Archivio ordini","#","container0")
//	//menu.add ("&nbsp;menu 1 voce 5","#","container0")
//menu.build()
// Creating the second drop down menu
menu = new Menu('container0',98,L1,setOutLine,setBackOver,setTxtColor)
	menu.add ("&nbsp;Cruise","ey_newbuild_cruise.html","container0")
	menu.add ("&nbsp;Ferry","ey_newbuild_ferry.html","container0")
	menu.add ("&nbsp;Naval","ey_newbuild_navy.html","container0")
	menu.add ("&nbsp;High-Tech Ships","ey_newbuild_sophist.html","container0")
	menu.add ("&nbsp;Other Ships","ey_newbuild_lng.html","container0")
menu.build()
// Creating the third drop down menu
menu1 = new Menu('container1',98,L2,setOutLine,setBackOver,setTxtColor)
	menu1.add ("&nbsp;Aker Yards S.A.","ey_companies_alst.html","container1")
	menu1.add ("&nbsp;Aker Yards Oy","ey_companies_kvae.html","container1")
    menu1.add ("&nbsp;Fincantieri S.p.A.","ey_companies_finc.html","container1")
	menu1.add ("&nbsp;Howaldtswerke - Deutsche Werft GmbH","ey_companies_howa.html","container1")
	menu1.add ("&nbsp;NAVANTIA S.L.","ey_companies_izar.html","container1")
	menu1.add ("&nbsp;MEYER WERFT GmbH","ey_companies_jos.html","container1")

	//menu2.add ("&nbsp;Situazione impianti","#","container2")
menu1.build()
// Creating the 4 drop down menu
//menu3 = new Menu('container3',98,L4,setOutLine,setBackOver,setTxtColor)
//	//menu3.add ("&nbsp;Comunicazone","#","container3")
//	//menu3.add ("&nbsp;Servizi ...","#","container3")
//	//menu1.add ("&nbsp;menu 2 voce 3","#","container1")
//	//menu1.add ("&nbsp;menu 2 voce 4","#","container1")
//menu3.build()

function Mostra1(obj,valore){
	if (isloaded) {
		if (valore == 'out') { 
			vis = false; setTimeout('ClearAll("'+obj+'")',1000) 
		} else if (valore == 'hide') { 
			vis = false; 
			document.menuwhatis.src = 'images/ey_menu_whatis_off.gif'
                        document.menunewbuild.src = 'images/ey_menu_newbuild_off.gif'
                        document.menucompanies.src = 'images/ey_menu_companies_off.gif'
                        document.menuproject.src = 'images/ey_menu_project_off.gif'
                        }
		else { vis = true; showHideAll(obj) }
	}
}

document.write(menu.css)
document.write(menu1.css)
//document.write(menu2.css)
//document.write(menu3.css)
document.write(menu.div)
document.write(menu1.div)
//document.write(menu2.div)
//document.write(menu3.div)
