function cambiapath(tipo,sottotipo,nomepag,id_cat)
{
				switch (tipo) 
				{   
				case "0" :
				       break;
				case "1" :    
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=tit_path><a href=../t0_thehotel.html class=tit_path>The Hotel</a></a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_thehotel.html class=tit_path>The Hotel</a>_<a href=../t1_thehotel_guestroom.html class=tit_path>Guests Rooms</a>_");	      
					 	}
					 	if (sottotipo == "2")
						{   
						    document.write("<a href=../t0_thehotel.html class=tit_path>The Hotel</a>_<a href=../t1_thehotel_dining.html class=tit_path>Dining</a>_");	      
					 	}
					 	if (sottotipo == "3")
						{   
						    document.write("<a href=../t0_thehotel.html class=tit_path>The Hotel</a>_<a href=../t1_thehotel_historygarden.html class=tit_path>History&Gardens</a>_");	      
					 	}
					 	if (sottotipo == "4")
						{   
						    document.write("<a href=../t0_thehotel.html class=tit_path>The Hotel</a>_<a href=../t1_thehotel_sports.html class=tit_path>Sports</a>_");	      
					 	}
					 	if (sottotipo == "5")
						{   
						    document.write("<a href=../t0_thehotel.html class=tit_path>The Hotel</a>_<a href=../t1_thehotel_pools.html class=tit_path>Pools</a>_");	      
					 	}
					 	if (sottotipo == "6")
						{   
						    document.write("<a href=../t0_thehotel.html class=tit_path>The Hotel</a>_<a href=../t1_thehotel_ourteam.html class=tit_path>Our Team</a>_");	      
					 	}
					 	    break; 
					 	       
				case "2" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_spa.html class=tit_path>SPA</a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_spa.html class=tit_path>SPA</a>_<a href=../cgi/t5_spa_packages.asp class=tit_path>Special Offers</a>_");	      
					 	}
						if (sottotipo == "2")
						{   
						    document.write("<a href=../t0_spa.html class=tit_path>SPA</a>_<a href=../t0_spa_treatments.html class=tit_path>Treatments</a>_");	      
					 	}
						if (sottotipo == "3")
						{   
						    document.write("<a href=../t0_spa.html class=tit_path>SPA</a>_<a href=../t0_spa_products.html class=tit_path>Products</a>_");	      
					 	}
					 	    break;
				case "3" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_golf.html class=tit_path>Golf</a>_");	      
					 	}
							break;

				case "4" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_conferencebanquetting.html class=tit_path>Conference&Banqueting</a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_conferencebanquetting.html class=tit_path>Conference&Banqueting</a>_<a href=../t2_conferencebanquetting_facilities.html class=tit_path>Facilities</a>_");	      
					 	}
					 	if (sottotipo == "2")
						{   
						    document.write("<a href=../t0_conferencebanquetting.html class=tit_path>Conference&Banqueting</a>_<a href=../cgi/t5_conferencebanquetting_packages.asp class=tit_path>Special Offers</a>_");	      
					 	}
						if (sottotipo == "3")
						{   
						    document.write("<a href=../t0_conferencebanquetting.html class=tit_path>Conference&Banqueting</a>_<a href=../t0_conferencebanquetting_wedding.html class=tit_path>Wedding</a>_");	      
					 	}
					 	    break;
				case "5" :  
						if (sottotipo == "0")
						{   
						     //document.write("<a href=../t5_events.html class=tit_path>Events</a>_"); //
							document.write("<a href=../cgi/t5_events.asp class=tit_path>Eventi</a>_");
					 	}
					 	    break;
				case "6" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_thelake.html class=tit_path>The Lake</a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_thelake.html class=tit_path>The Lake</a>_<a href=../t3_thelake_tours.html class=tit_path>Tours</a>_");	      
					 	}
						if (sottotipo == "2")
						{   
						    document.write("<a href=../t0_thelake.html class=tit_path>The Lake</a>_<a href=../t5_thelake_attractions.html class=tit_path>Attractions</a>_");	      
					 	}
					 	    break;	 	    
							 	    
				case "7" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_reservationsrates.html class=tit_path>Reservations&Rates</a>_");	      
					 	}
					 	if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_reservationsrates.html class=tit_path>Reservations&Rates</a>_<a href=../cgi/t6_reservationsrates_packages.asp class=tit_path>Special Offers</a>_");	      
					 	}	 	    
					 	  break;   
				case "8" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=tit_path>Location</a>_");	      
					 	}
					 	    break;	 	    
				case "9" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=tit_path>Investors Relator</a>_");	      
					 	}
					 	    break;	 	    
				case "10" :  
						if (sottotipo == "0")
						{   
						    document.write("Press Room_");	      
					 	}
					 	if (sottotipo == "1")
						{   
						    document.write("Press Room_<a href=# class=tit_path>Register</a>_");	      
					 	}
					 	if (sottotipo == "2")
						{   
						    document.write("Press Room_Data Base Photo_");	      
					 	}
					 	if (sottotipo == "3")
						{   
						    document.write("Press Room_<a href=t8_pressroom_databasephoto.asp class=tit_path>Data Base Photo</a>_");	      
					 	}
					 	    break;
				case "11" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=tit_path>Career</a>_");	      
					 	}
					 	    break;
				case "12" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=tit_path>Newsletter</a>_");	      
					 	}
					 	    break;	 	 
				case "13" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=http://www.villadeste.it class=tit_path_bold>Villa d'Este</a>_");	      
					 	}
					 	    break;
				case "14" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_thelake.html class=tit_path>Florence</a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_thelake.html class=tit_path>The Lake</a>_<a href=../t3_thelake_tours.html class=tit_path>Tours</a>_");	      
					 	}
					 	    break;	 	    
							 	    
				default :    alert ("Generata Eccezione."); 
				}
				switch (id_cat) 
				{   
				case "A" :
						document.write("Villa d'Este_") ;
						break;
				case "B" :
						document.write("Villa La Massa_") ;
						break;
				case "C" :
						document.write("Dintorni_") ;
						break;
				case "D" :
						document.write("Golf_") ;
						break;
				}
				document.write(nomepag);
}

function cambiapath_hp(tipo,sottotipo,nomepag,id_cat)
{
				switch (tipo) 
				{   
				case "0" :
						break;
				case "1" :    
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=txt11><a href=en_a_albergo.asp class=txt11>Hotel</a></a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=en_a_albergo.asp class=txt11>Hotel</a>_<a href=en_b_camere.asp class=txt11>Rooms</a>_");	      
					 	}
					 	if (sottotipo == "2")
						{   
						    document.write("<a href=en_a_albergo.asp class=txt11>Hotel</a>_<a href=en_b_ristoranti.asp class=txt11>Bar and Restaurants</a>_");	      
					 	}
					 	if (sottotipo == "3")
						{   
						    document.write("<a href=en_a_albergo.asp class=txt11>Hotel</a>_<a href=en_b_storia.asp class=txt11>History</a>_");
					 	}
					 	if (sottotipo == "4")
						{   
						    document.write("<a href=en_a_albergo.asp class=txt11>Hotel</a>_<a href=en_b_sport.asp class=txt11>Sport</a>_");	      
					 	}
					 	if (sottotipo == "5")
						{   
						    document.write("<a href=/albergo/en_a_albergo.asp class=txt11>Hotel</a>_");
					 	}
					 	if (sottotipo == "6")
						{   
						    document.write("<a href=/albergo/en_a_albergo.asp class=txt11>Hotel</a>_<a href=/cgi/en_b_news.asp class=txt11>News</a>_");	      
					 	}						
					 	    break; 
					 	       
				case "2" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=en_a_meeting.asp class=txt11>Meeting</a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=en_a_meeting.asp class=txt11>Meeting</a>_<a href=en_b_sale.asp class=txt11>Meeting rooms</a>_");	      
					 	}
						if (sottotipo == "2")
						{   
						    document.write("<a href=en_a_meeting.asp class=txt11>Meeting</a>_<a href=en_b_banchetti.asp class=txt11>Banquets</a>_");	      
					 	}
					 	    break;

				case "3" :  
						if (sottotipo == "0"){   
						    document.write("<a href=en_a_como_illago.asp class=txt11>Como and the lake</a>_");	      
												 	}
						if (sottotipo == "1"){   
						    document.write("<a href=en_a_como_illago.asp class=txt11>Como and the lake</a>_<a href=en_b_citta.asp class=txt11>The town</a>_");	 
													}
						if (sottotipo == "2"){   
						    document.write("<a href=en_a_como_illago.asp class=txt11>Como and the lake</a>_<a href=en_b_lago.asp class=txt11>The lake</a>_");	 
													}
												
						if (sottotipo == "3"){   
						    document.write("<a href=en_a_como_illago.asp class=txt11>Como and the lake</a>_<a href=en_b_lago.asp class=txt11>The lake</a>_<a href=en_f_lago_attrazioni.html class=txt11>Sightseeing</a>_");	 
													}													
							break;
							
				case "4" :  
						if (sottotipo == "0"){   
						    document.write("<a href=en_b_prenotazioni.asp class=txt11>Reservations and rates</a>_");	      
												 	}
						if (sottotipo == "1"){   
						    document.write("<a href=/prenotazioni_prezzi/en_b_prenotazioni.asp class=txt11>Reservations and rates</a>_");	      
												 	}	
						if (sottotipo == "2"){   
						    document.write("<a href=/prenotazioni_prezzi/en_b_prenotazioni.asp class=txt11>Reservations and rates</a>_<a href=t6_reservationsrates_packages.asp class=txt11>Special Offers</a>_");	      
												 	}																													
							break;							
							
	
				case "9" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=txt11>Investor Relations</a>_");
							//Responsabile Rapporti con gli Azionisti	      
					 	}
					 	    break;	 	    
				case "10" :  
						if (sottotipo == "0")
						{   
						    document.write("Press Room_");	      
					 	}
					 	if (sottotipo == "1")
						{   
						    document.write("Press Room_<a href=# class=txt11>Register</a>_");	      
					 	}
					 	if (sottotipo == "2")
						{   
						    document.write("Press Room_Photogallery_");	      
					 	}
					 	if (sottotipo == "3")

						{   
						    document.write("Press Room__<a href=t8_pressroom_databasephoto.asp class=txt11>Photogallery</a>_");	      
					 	}
					 	    break;
				case "11" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=txt11>Career</a>_");	      
					 	}
					 	    break;
				case "12" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=# class=txt11>Newsletter</a>_");	      
					 	}
					 	    break;	 
				case "13" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=http://www.villadeste.it class=txt11_bold>Villa d\'Este</a>_");	      
					 	}
					 	    break;
				case "14" :  
						if (sottotipo == "0")
						{   
						    document.write("<a href=../t0_thelake.asp class=txt11>Florence and its surroundings</a>_");	      
					 	}
						if (sottotipo == "1")
						{   
						    document.write("<a href=../t0_thelake.asp class=txt11>Florence and its surroundings</a>_<a href=../t3_thelake_tours.asp class=txt11>Trips</a>_");	      
					 	}
					 	    break;	 	    
				default :    alert ("Exception generated."); 
				}
				
				switch (id_cat) 
				{   
				case "A" :
						document.write("Villa d'Este_") ;
						break;
				case "B" :
						document.write("Villa La Massa_") ;
						break;
				case "C" :
						document.write("Surroundings_") ;
						break;
				case "D" :
						document.write("Golf_") ;
						break;
				case "E" :
						document.write("Hotel Barchetta_") ;
						break;
				case "F" :
						document.write("Hotel Palace_") ;
						break;
				}
				document.write(nomepag);
}