// JavaScript Document
function switch_header() {
	document.getElementById("header_swf").switch_header();
}

function load_content(section_name) {

	switch (section_name) {
		default:
			alert("'" + section_name + "' is not implemented");
		break;

		case "switch_language" :
			if ( location.href.indexOf("?") != -1 ) {
				join = "&";
			} else {
				join = "?";
			}
			document.location = location.href + join + "lang=" + (getCookie("lang") == "en" ? "fr" : "en");
		break;

		case "home" :
			document.location = "/index.html";
		break;

		case "plane_tickets" :
			window.open("http://ved.sax.softvoyage.com/cgi-bin/query.cgi?code_ag=VED&alias=wd3&language=" + getCookie("lang"));
		break;

		case "cruises" :
			document.location = "http://www.ubercroisiere.com";
		break;

		case "hotels" :
			document.location = "http://travel.ian.com/hotels/index.jsp?cid=69312&temp1=PLS0004972";			
		break;

		case "car_rental" :
			document.location = "./info.html?section=car_rental";
		break;

		case "agent" :
			document.location = "./info.html?section=agents_listing";
		break;

 		case "las_vegas_promo" :
			document.location = "./packages.html";
		break;


		case "promo_europe" :
			document.location = "./info.html?section=promotion_europe";
		break;
		
		case "promo_5" :
			document.location = "./info.html?section=promotion_5";
		break;

		case "uber_cruise" :
			if (getCookie("lang") == "fr") {
				window.open("http://www.ubercroisiere.com","_blank");
			} else {
				window.open("http://www.uber-cruise.com","_blank");				
			}
		break;
		

		case "info_travel" :
			document.location = "./travels_info.html";
		break;
		
		case "departure_advice" :
			document.location = "./info.html?section=departure_advice";
		break;		

		case "about_us" :
			document.location = "./info.html?section=about";
		break;

		case "contact_us" :
			document.location = "./info.html?section=contact";
		break;

		case "useful_links" :
			document.location = "./info.html?section=links";
		break;

		case "online_tickets" :
			document.location = "./info.html?section=tickets";
		break;
		
		case "contest_rules" :
			document.location = "./info.html?section=reclames";
		break;		

		case "faqs" :
			document.location = "./info.html?section=faq";
		break;
	}

	switch_header();

}