function getLang()
{	
	
	if(navigator.language)
		return navigator.language;
	else
		return navigator.systemLanguage;
}


if(getLang().toLowerCase().indexOf("zh") >= 0 && $.request("ID") != 61) {
	location.href = "http://lisbethdahl.net.dynamicweb.dk/Default.aspx?ID=61&Purge=True";
	}
if(getLang().toLowerCase().indexOf("hi") >= 0 && $.request("page") != "india") {
	location.href = "http://lisbethdahl.net.dynamicweb.dk/India.aspx?Purge=True&page=india";
}
if(getLang().toLowerCase().indexOf("da") >= 0)
{
	if(location.hostname.toLowerCase().indexOf(".com") > 0)
	{
		location.href = "http://lisbethdahl.dk";	
	}
	if( $.request("AreaID") == null || $.request("AreaID") == "")
	{
		if(location.href.indexOf("?") < 0)
		{
			location.href = location.href+"?AreaID=13";			
		}
		else
		{
			location.href =location.href+"&AreaID=13";			
		}
	}
}
else if(getLang().toLowerCase().indexOf("fr") >= 0)
{
	if( $.request("AreaID") == null || $.request("AreaID") == "")
	{
		if(location.href.indexOf("?") < 0)
		{
			location.href = location.href+"?AreaID=14";			
		}
		else
		{
			location.href =location.href+"&AreaID=14";			
		}
	}	
}
else if(getLang().toLowerCase().indexOf("de") >= 0)
{
	if( $.request("AreaID") == null || $.request("AreaID") == "")
	{
		if(location.href.indexOf("?") < 0)
		{
			location.href = location.href+"?AreaID=15";			
		}
		else
		{
			location.href =location.href+"&AreaID=15";			
		}
	}	
}
else
{
	if( $.request("AreaID") == null || $.request("AreaID") == "")
	{
		if(location.href.indexOf("?") < 0)
		{
			location.href = location.href+"?AreaID=13";			
		}
		else
		{
			location.href =location.href+"&AreaID=13";			
		}
	}	
}
