function switchLang(){
	url = location.href;
	if(url.lastIndexOf("_c.htm")>0){
		new_url = url.substr(0,url.lastIndexOf("_c.htm"))	+ ".htm";
	}
	else if(url.lastIndexOf(".htm")>0){
		new_url = url.substr(0,url.lastIndexOf(".htm"))	+ "_c.htm";
	}
	else if(url.lastIndexOf("_c.asp")>0){
		new_url = url.substr(0,url.lastIndexOf("_c.asp"))	+ ".asp";
	}
	else if(url.lastIndexOf(".asp")>0){
		new_url = url.substr(0,url.lastIndexOf(".asp"))	+ "_c.asp";
	}
	else{
		new_url = "index.htm";
	}
	window.open(new_url,"_self");
		
}

function changeTheme(theme_color)
{
	if (!document.styleSheets) return;
	var theRules = new Array();
	if (document.styleSheets[1].cssRules)
		theRules = document.styleSheets[1].cssRules
	else if (document.styleSheets[1].rules)
		theRules = document.styleSheets[1].rules
	else return;
	theRules[0].style.color = theme_color;
	theRules[1].style.color = theme_color;
	theRules[5].style.color = theme_color;
	
	var theRules = new Array();
	if (document.styleSheets[0].cssRules)
		theRules = document.styleSheets[0].cssRules
	else if (document.styleSheets[0].rules)
		theRules = document.styleSheets[0].rules
	else return;
	theRules[0].style.color = theme_color;
	theRules[1].style.color = theme_color;
	theRules[2].style.color = theme_color;
	theRules[3].style.color = theme_color;
	theRules[4].style.color = theme_color;
	
	url = location.href;
	if(url.lastIndexOf("_c.htm")>0){
		theRules[0].style.fontSize="15px";
		theRules[2].style.fontSize="13px";
		theRules[4].style.fontSize="13px";
	}
}