
function loadSection(args){
baseUrlSdm = "/"
		switch (args) {
				case "commedia":
					location.href= "irisnobile2010.html";
					break;
				case "travel":
					location.href= "travelnewc.html";
					break;
				case "profumo":
					location.href= "profumo.html";
					break;
						case "candelecat":
					location.href= "candele.html";
					break;
				case "natale":
					location.href= "limitati.html";
					break;
			case "login":
					location.href= "http://members.acquadiparma.it/reserved/itx";
					break;
			case "loginreg":
					location.href="http://members.acquadiparma.it/reserved/registrazione";
					break;
						case "loginen":
					location.href="http://members.acquadiparma.it/reserved/en";
					break;
			case "loginregen":
					location.href="http://members.acquadiparma.it/reserved/register";
					break;//inserito questo break
			case "loginfr":
					location.href="http://members.acquadiparma.it/reserved/fr";
					break;
			case "loginregfr":
					location.href="http://members.acquadiparma.it/reserved/registration";
					break;					
			case "logines":
					location.href= " http://members.acquadiparma.it/reserved/es";
					break;
			case "loginreges":
					location.href="http://members.acquadiparma.it/reserved/registrar";
					break;										
			case "italiano":
					location.href= "../it/home.html";
					break;
			case "inglese":
					location.href= "../en/home.html";
					break;
			case "home":
					location.href= "home.html";
					break;
			case "theworld":
					location.href= "world_origini.html";
					break;
								case "origini":
					location.href= "world_origini.html";
					break;
								case "evoluzione":
					location.href= "world_evoluzione.html";
					break;
								case "contemporanei":
					location.href= "world_contemporanei.html";
					break;
				case "acquadiparma":
						location.href= "acquadiparma.html";
						break;
				case "blumediterraneovideo":
							location.href= "blumediterraneovideo.html";
							
							break;		
				case "blumediterraneo":
							location.href= "blumediterraneo.html";
							break;
				case "blumediterraneoind":
							location.href= "blumedind.html";
							break;
				case "blumediterraneoirs":
							location.href= "blumediterraneoir.html";
							break;
				case "blumediterraneoiroc":
							location.href= "blu_med_resort_complex.html";
							break;
				case "blumediterraneoirsen":
							location.href= "blu_med_resort_sensorialit.html";
							break;
				case "blumediterraneoirviso":
							location.href= "blu_med_resort_viso.html";
							break;	
				case "blumediterraneoircorpo":
							location.href= "blu_med_resort_corpo.html";
							break;	
				case "blumediterraneoirben":
							location.href= "blu_med_resort_benessere.html";
							break;	
				case "blumediterraneoirgui":
							location.href= "blu_med_resort_guide.html";
							break;						
				case "blumediterraneoIR":
							location.href= "adpcolonia.html";
							break;													
					case "blumediterraneospafor":
							location.href= "blu_med_spa_formule.html";
							break;	
																			
					case "blumediterraneospamet":
							location.href= "blu_med_spa_metodo.html";
							break;	
					case "blumediterraneospatec":
							location.href= "blu_med_spa_tecniche.html";
							break;	
					case "blumediterraneospatrat":
							location.href= "blu_med_spa_viso.html";
							break;	
					case "blumediterraneospapar":
							location.href= "blu_med_spa_partners.html";
							break;	
								
					case "blumediterraneospaviso":
							location.href= "blu_med_spa_viso.html";
							break;	
					case "blumediterraneospacorpo":
							location.href= "blu_med_spa_corpo.html";
							break;	
					case "blumediterraneospamas":
							location.href= "blu_med_spa_massaggi.html";
							break;	
					case "blumediterraneospatra":
							location.href= "blu_med_spa_speciali.html";
							break;	
					case "blumediterraneospamom":
							location.href= "blu_med_spa_evasione.html";
							break;	
					case "contattispa":
							location.href= "blu_med_spa_contact.html";
							break;
				case "stores":
							location.href=baseUrlSdm + "app/stores.html";
							break;
					case "storesen":
							location.href=baseUrlSdm + "app/stores_en.html";
							break;
case "storeses":
							location.href=baseUrlSdm + "app/stores_es.html";
							break;							
					case "events":
							location.href=baseUrlSdm + "press/events.aspx?lang=it";
							break;		
				case "eventsen":
							location.href=baseUrlSdm + "press/events.aspx?lang=en";
							break;			
case "eventsfr":
							location.href=baseUrlSdm + "press/events.aspx?lang=fr";
							break;			
case "eventses":
							location.href=baseUrlSdm + "press/events.aspx?lang=es";
							break;																							
				case "pressarea":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=it"
							break;
					case "pressareaen":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=en"
							break;
					case "pressareafr":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=fr"
							break;
												case "pressareaes":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=es"
							break;
							case "storesfr":
							location.href=baseUrlSdm + "app/stores_fr.html";
							break;
				case "corporate":
							location.href= "corporate_offer.html";
							break;							
				case "brand":
							location.href= "world_brandidentity_quality.html";
							break;		
//sottovoci brand
				case "quality":
							location.href= "world_brandidentity_quality.html";
							break;							
				case "creativity":
							location.href= "world_brandidentity_creativity.html";
							break;							
				case "esclusivity":
							location.href= "world_brandidentity_esclusivity.html";
							break;							
				case "timelesse":
							location.href= "world_brandidentity_elegance.html";
							break;																								
				case "craft":
						location.href= "world_craftmenship_fragrance.html";
							//	location.href= "barbiere.html"; //NICOLA
							break;	
//sottovoci craft
				case "fragranze":
							location.href= "world_craftmenship_fragrance.html";
							break;	
							case "fragranzeadp":
							location.href= "fragranze.html";
							break;							
				case "candele":
							location.href= "world_craftmenship_candles.html";
							break;							
				case "pack":
							location.href= "world_craftmenship_pack.html";
							break;							
				case "lifestyle":
							location.href= "world_craftmenship_lifestyle.html";
							break;							
				case "barbiere":
							location.href= "world_craftmenship_collezionebarbiere.html";
							break;																	
				case "blumediterraneol":
							location.href= "world_blu_med.html";
							break;
								
				case "blumediterraneospa":
							location.href= "blu_med_spa.html";
							break;		
							 
	//sottovoci area PRess
			case "news":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=it" //inserire il link;
							break;							
				case "stampa":
							location.href=baseUrlSdm + "press/press_release.aspx?lang=it" //inserire il link
							break;																	
				case "contact":
							location.href=baseUrl+"press/press_contact.html" //inserire il link
							break;
								
				case "areariservata":
							location.href=baseUrlSdm + "press/login.aspx?lang=it" //inserire il link
							break;	
	//sottovoci area PRess
			case "newsen":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=en"
							break;							
				case "stampaen":
							location.href=baseUrlSdm + "press/press_release.aspx?lang=en" //inserire il link
							break;																	
				case "contacten":
							location.href=baseUrlSdm+"press_contact.html" //inserire il link
							break;
								
				case "areariservataen":
							location.href=baseUrlSdm +" press/login.aspx?lang=en" //inserire il link
							break;	
	//sottovoci area PRess
			case "newsfr":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=fr"
							break;							
				case "stampafr":
							location.href=baseUrlSdm + "press/press_release.aspx?lang=fr" //inserire il link
							break;																	
				case "contactfr":
							location.href="press_contact.html" //inserire il link
							break;
								
				case "areariservatafr":
							location.href=baseUrlSdm +"press/login.aspx?lang=fr" //inserire il link
							break;								
							
					//sottovoci area PRess
			case "newses":
							location.href=baseUrlSdm + "press/press_news.aspx?lang=es"
							break;							
				case "stampaes":
							location.href=baseUrlSdm + "press/press_release.aspx?lang=es" //inserire il link
							break;																	
				case "contactes":
							location.href=baseUrlSdm+"press_contact.html" //inserire il link
							break;
								
				case "areariservataes":
							location.href=baseUrlSdm +"press/login.aspx?lang=en" //inserire il link
							break;					
	//toolbar servizi
		case "contact1":
							location.href= "contact.html";
							break;			
		case "register":
							window.open(baseUrlSdm+'club/register.asp','reg');
							
							break;	
		case "legal":
							window.open( 'legal.html','Legalnotice','width=550,height=450,scrollbars=yes ');
							break;	
		case "map":
							location.href="#";
							break;	
		case "riserved":
								window.open(baseUrlSdm+'admin/','riservata');
							break;	
		case "privacy":
							window.open( 'privacy.html','Privacypolicy','width=550,height=450,scrollbars=Yes,location=no');


							break;	
			case "magnolia":
							//window.open('http://www.acquadiparma.it/magnolia/index.html','magnolia');
							location.href = "adpcolonie.html"; //NICOLA
							
							break;		
			case "homecollection":
							//window.open('http://www.acquadiparma.it/magnolia/index.html','magnolia');
							location.href = "homecollection.html"; //NICOLA
							
							break;		
				
					case "natale2009":
							window.open('http://www.acquadiparma.com/christmas/it/index.html','natale');
							
							break;	
							case "natale2009en":
							window.open('http://www.acquadiparma.com/christmas/en/default.html','natale');
							
							break;								
							case "profumoamb":
							location.href = "ambiente.html"
							
							break;									
							case "profumo":
							location.href = "profumo.html"
							
							break;										
							case "adpbarbiere":
							location.href = "barbiere.html"
							
							break;	
				case "perini":
							window.open('http://www.acquadiparma.it/perininavicup/index.html','perini');
							
							break;		
							
					case "fragrance":
							location.href= "frangrance.html";
							
							break;
							case "traveladp":
							location.href= "travel.html";
							
							break;
							case "hotel":
							location.href= "hotel.html";
							
							break;
							case "nobile":
							location.href= "nobile.html";
							
							break;
							case "colonia":
							location.href= "adpcolonia.html";
							
							break;
							case "spa":
							location.href= "http://www.acquadiparma.it/spa/portocervo/en/";
							break;	
							case "spatrattamenti":
							location.href= "blumed_spatrattamenti.html";
							break;	
				case "spacentri":
							location.href= "blumed_spacentri.html";
							break;				
					
														
					}	
				
				
}

function bookmark(){
var url = window.document.location;
var title = window.document.title;
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
window.external.AddFavorite(url,title);
} else if (navigator.appName == "Netscape") {
window.sidebar.addPanel(title,url,"");
} else {
alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
}
}

		var browser     = '';
		var version     = '';
		var entrance    = '';
		var cond        = '';
		// BROWSER?
		if (browser == ''){
			if (navigator.appName.indexOf('Microsoft') != -1)
				browser = "IE"
			else if (navigator.appName.indexOf('Netscape') != -1)
				browser = "Firefox"
			else browser = "IE";
		}
		
		if (version == ''){
		version= navigator.appVersion;
		paren = version.indexOf('(');
		whole_version = navigator.appVersion.substring(0,paren-1);
		version         = parseInt(whole_version);
		 }
		
		if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
				 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
				 if (ieversion>=8)
				 			 document.write('<'+'link rel="stylesheet" href="../css/layout.css" />');
				 else if (ieversion>=7)
								document.write('<'+'link rel="stylesheet" href="../css/layout.css" />');
				 else if (ieversion==6)
				 				document.write('<'+'link rel="stylesheet" href="../css/layout_ie6.css" />');
				
				
		
	}else {
		
		document.write('<'+'link rel="stylesheet" href="../css/layout.css" />');
		}
	




