		//set browser type variable
		
		var navname=window.navigator.appName;

//popup window
function show(url, width, height) {
		var left = (window.screen.width/2) - (width / 2 + 10);
	if (left < 0){
		var left = 0;
		var width = window.screen.width - 10;
	}
	var top = (window.screen.height/2) - (height / 2 + 50);
	if (top < 0){
		var top = 0;
		var height = window.screen.height - 50;
	}
		var wincenter = window.open(url,"","width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top + ",toolbar=no,menubar=no,status=no,scrollbars=no,resizable=yes,directories=no");
		wincenter.focus();
}


//switch language
function switch_language(lang) {
	var str = location.pathname.toString();
	var splitchar = "/";
	var indextosplit = str.lastIndexOf(splitchar);
	if (indextosplit == 0 || indextosplit == -1){
		var splitchar = "\\";
		var indextosplit = str.lastIndexOf(splitchar);
	}
	var filetoload = location.pathname.substr(indextosplit);
	self.location.href = ".." + splitchar + lang + filetoload;
}
