$(document).ready(function(){
	$('.list_cities table tbody tr:nth-child(even)').css("background-color", "transparent");
	$('.greybox_list table tbody tr:nth-child(even)').css("background-color", "transparent");
});
  
function open_win(langue){
	window.open('http://www.cirquedusoleil.com/CirqueDuSoleil/'+langue+'/clubCirque/preview/01_myclubcirque.htm',"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=425, height=400");
}


function switchLang(lang)
{
	var the_url = document.URL;
	
	//Le indexOf et le replace gre mal le case Sensitive alors on met tout en lowercase
	the_url = the_url.toLowerCase();
	
	if (the_url.indexOf("/en/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))en\1/gi, "$1" + lang + "$1");	
	}	
	else if (the_url.indexOf("/ja/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))ja\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/ko/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))ko\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/zh/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))zh\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/zt/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))zt\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/fr/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))fr\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/es	/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))es\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/rs/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))rs\1/gi, "$1" + lang + "$1");
	}
	else if (the_url.indexOf("/pt/", 0)!=-1){
		document.location = the_url.replace(/((?:\/)|(?:%2F))pt\1/gi, "$1" + lang + "$1");
	}
	else {
	}	
}