
function loadSection(args){
	baseUrlSdm = "/"
		switch (args) {
				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= baseUrlSdm+"club_new/login.aspx";
					break;
			case "loginreg":
					location.href= baseUrlSdm+"club_new/register.aspx";
					break;
				case "loginen":
					location.href= baseUrlSdm+"club_new/login_en.aspx";
					break;
			case "loginregen":
					location.href= baseUrlSdm+"club_new/register_en.aspx";
					break;
			case "home":
					location.href=baseUrl+"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 "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= "adpcolonie.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 "stores":
							location.href="storetmp.html";
							break;
					case "storesen":
							location.href="storetmp.html";
							break;
				case "events":
							location.href="http://club.acquadiparma.it/events.aspx?lang=it";
							break;		
				case "eventsen":
							location.href="http://club.acquadiparma.it/events.aspx?lang=en";
							break;											
				case "pressarea":
							location.href="http://club.acquadiparma.it/press_news.aspx?lang=it"
							break;
					case "pressareaen":
							location.href="http://club.acquadiparma.it/press_news.aspx?lang=en"
							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";
							break;	
//sottovoci craft
				case "fragranze":
							location.href= "world_craftmenship_fragrance.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="http://club.acquadiparma.it/press_news.aspx?lang=it" //inserire il link;
							break;							
				case "stampa":
							location.href="http://club.acquadiparma.it/press_release.aspx?lang=it" //inserire il link
							break;																	
				case "contact":
							location.href= "press_contact.html" //inserire il link
							break;
								
				case "areariservata":
							location.href="http://club.acquadiparma.it/login.aspx?lang=it";
							break;	
	//sottovoci area PRess
			case "newsen":
							location.href="http://club.acquadiparma.it/press_news.aspx?lang=en"
							break;							
				case "stampaen":
							location.href="http://club.acquadiparma.it/press_release.aspx?lang=en" //inserire il link
							break;																	
				case "contacten":
							location.href= "press_contact_en.html" //inserire il link
							break;
								
				case "areariservataen":
							location.href="http://club.acquadiparma.it/login.aspx?lang=en";
							break;	
							
	//toolbar servizi
		case "contact1":
							location.href= "contact.html";
							break;			
		case "register":
							window.open('http://club.acquadiparma.it/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('http://club.acquadiparma.it/admin/','riservata');
							break;	
		case "privacy":
							window.open( 'privacy.html','Privacypolicy','width=550,height=450,scrollbars=Yes,location=no');


							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" />');
		}
	



