// JavaScript Document
//NOMI DEI LINK, LARGHEZZA IMMAGINI e NOME PAGINA == subSim
var linksS=new Array();

linksS[0]=new Array();
linksS[0]=['b_lifelike.jpg', 'b_lifelike_f1.jpg', 152, 'index'];


linksS[1]=new Array();
linksS[1]=['b_emozione.jpg', 'b_emozione_f1.jpg', 104, 'emozione'];
//
linksS[2]=new Array();
linksS[2]=['b_imprevedibilita.jpg', 'b_imprevedibilita_f1.jpg', 132, 'imprevedibilita'];
//

linksS[3]=new Array();
linksS[3]=['b_feedback.jpg', 'b_feedback_f1.jpg', 103, 'feedback'];
//

linksS[4]=new Array();
linksS[4]=['b_intelligence.jpg', 'b_intelligence_f1.jpg', 104, 'intelligence'];
//


linksS[5]=new Array();
linksS[5]=['b_simulatori.jpg', 'b_simulatori_f1.jpg', 107, 'simulatori'];
//

linksS[6]=new Array();
linksS[6]=['b_trailer.jpg', 'b_trailer_f1.jpg', 83, 'trailer'];
//

linksS[7]=new Array();
linksS[7]=['b_motore.jpg', 'b_motore_f1.jpg',89, 'motore'];
//
linksS[8]=new Array();
linksS[8]=['b_specifiche.jpg', 'b_specifiche_f1.jpg',85, 'specifiche'];




//URL, ALTERNATE e ID degli swapping
//l'item 2 è l'id non va cambiato anche nelle lingue
var pagesS=new Array();

pagesS[0]=new Array();
pagesS[0]['it']=['index.html', 'LifeLike Interaction','life'];
pagesS[0]['en']=['index.html', 'LifeLike Interaction','life'];


pagesS[1]=new Array();
pagesS[1]['it']=['emozione.html', 'Emozione','emozione'];
pagesS[1]['en']=['emotion.html', 'Emotions','emozione'];


pagesS[2]=new Array();
pagesS[2]['it']=['imprevedibilita.html', 'Imprevedibilit&#225;','imprev'];
pagesS[2]['en']=['unpredictability.html', 'Unpredictability','imprev'];



//
pagesS[3]=new Array();
pagesS[3]['it']=['feedback.html', 'Feedback','feedback'];
pagesS[3]['en']=['feedback.html', 'Feedback','feedback'];


//
pagesS[4]=new Array();
pagesS[4]['it']=['intelligence.html', 'Intelligence','intelligence'];
pagesS[4]['en']=['intelligence.html', 'Intelligence','intelligence'];



//
pagesS[5]=new Array();
pagesS[5]['it']=['simulatori.html', 'Simulatori','simulatori'];
pagesS[5]['en']=['simulations.html', 'Simulations','simulatori'];


//

pagesS[6]=new Array();
pagesS[6]['it']=['trailer.html', 'Trailer','trailer'];
pagesS[6]['en']=['trailers.html', 'Trailers','trailer'];


//

pagesS[7]=new Array();
pagesS[7]['it']=['motore.html', 'Motore','motore'];
pagesS[7]['en']=['engine.html', 'Engine','motore'];


//
pagesS[8]=new Array();
pagesS[8]['it']=['specifiche.html', 'Specifiche','specifiche'];
pagesS[8]['en']=['specs.html', 'Specs','specifiche'];


//




function buildNavSim(l, p){
	//l=lingua
	//p = variabile interna thisPage
	var path=""+relPath+"modules/simulatori-di-realta/images/nav/"+l;
	var shtml="";
	shtml+="<div class=\"riga1\">";
	for(var x=0; x<linksS.length; ++x){
		//se sono in una pagina non linkata nel menu, non swappo  (p="")
		if(linksS[x][3] !=p){
			
			if(p==""){
			
				shtml+="<div style=\"width:"+linksS[x][2]+"px;\"><a href=\""+pagesS[x][l][0]+"\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'"+pagesS[x][l][2]+"\',\'\',\'"+path+"/"+linksS[x][1]+"\',1)\"><img src=\""+path+"/"+linksS[x][0]+"\" alt=\""+pagesS[x][l][1]+"\" name=\""+pagesS[x][l][2]+"\" width=\""+linksS[x][2]+"\" height=\"37\" border=\"0\" id=\""+pagesS[x][l][2]+"\" /></a></div>";
	
			}else{
				
				shtml+="<div style=\"width:"+linksS[x][2]+"px;\"><a href=\""+pagesS[x][l][0]+"\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'"+pagesS[x][l][2]+"\',\'\',\'"+path+"/"+linksS[x][1]+"\',1)\"><img src=\""+path+"/"+linksS[x][0]+"\" alt=\""+pagesS[x][l][1]+"\" name=\""+pagesS[x][l][2]+"\" width=\""+linksS[x][2]+"\" height=\"37\" border=\"0\" id=\""+pagesS[x][l][2]+"\" /></a></div>";
				
			}
	
		}else{
			//swappo il bottone della pagina in cui mi trovo con la gif _f1
			shtml+="<div style=\"width:"+linksS[x][2]+"px;\"><img src=\""+path+"/"+linksS[x][1]+"\" alt=\""+pagesS[x][l][1]+"\" name=\""+pagesS[x][l][2]+"\" width=\""+linksS[x][2]+"\" height=\"37\" border=\"0\" id=\""+pagesS[x][l][2]+"\" /></div>";
			
			}
		
		
		//finito il ciclo devo chiudere riga 1 indserendo il div con l'immagine della bobina, e poi inserisco riga 2
		if(x==linksS.length-1){
			
		//inserisco il div con la grafica della bobina
		shtml+="<div style=\"width:32px\"><img src=\""+relPath+"modules/simulatori-di-realta/images/bobina.jpg\" /></div>";
		//chiudo riga 1
		shtml +="</div>";
		//apro e chiudo riga 2
		shtml+="<div class=\"riga2\"><img src=\""+relPath+"modules/simulatori-di-realta/images/downNav.jpg\" /></div>";
			
		}
		
		
		
		
	
	}
	
	
	if (document.getElementById("navSim"))
	   document.getElementById("navSim").innerHTML = shtml;	
}







function buildFooSimulatori(l){
	//l=lingua
	//p = variabile interna subFormazione
	var path=""+relPath+"modules/simulatori-di-realta/images/"+l;
	var shtml="";
	var pag_progettazione;
	//box simulatori
	shtml+="<div style=\"width:216px; height:181px; float:left\">";
	shtml+="<a href=\"concept.html\"><img src=\""+path+"/fooSimulatore.jpg\" alt=\"\" /></a>";
	shtml+="</div>";
	//box plaza
	shtml+="<div style=\"width:216px; height:181px; float:left; margin-left:114px;\">";
	shtml+="<a href=\"http://plaza.dmsware.com\" target=\"_blank\"><img src=\""+path+"/fooPlaza.jpg\" alt=\"\" /></a>";
	shtml+="</div>";
	//box progettazione
	shtml+="<div style=\"width:216px; height:181px; float:left; margin-left:96px;\">";
	
	if(l=="en"){
		
		pag_progettazione="the_project.html";
		
	} else if(l=="it"){
		
		pag_progettazione="progettazione.html";
	
	}
	
	shtml+="<a href=\""+pag_progettazione+"\"><img src=\""+path+"/fooProgettazione.jpg\" alt=\"\" /></a>";
	
	
	
	shtml+="</div>";
	
	//
	if (document.getElementById("fooSimulatori"))
	   document.getElementById("fooSimulatori").innerHTML = shtml;	

}





