function popUp(url,name,w,h,sc){
        size="height="+h+",width="+w+",scrollbars="+sc;
        if(parseInt(navigator.appVersion)>3)
                size+=",left="+(screen.width -w)/2+",top="+parseInt((screen.height -h)/3);
        win=window.open(url,name,size);
}

var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);

function show(id){
if(ns4){
	document.layers[id].visibility = "show";
}
else if(ie4){
	document.all[id].style.visibility = "visible";
}
else if(ie5 || ns6){
	document.getElementById(id).style.visibility = "visible";
}
}

function hide(id){
if(ns4){
	document.layers[id].visibility = "hide";
}
else if(ie4){
	document.all[id].style.visibility = "hidden";
}
else if(ie5 || ns6){
		document.getElementById(id).style.visibility = "hidden";
	}
}


function ShowHide(id, visibility) {
	divs = document.getElementsByTagName("div");
	divs[id].style.visibility = visibility;
} 




/////////////////////////////////
// GET RID OF LINK BORDERS
// use: call "getLinksToBlur()" in <body onLoad="...">

function unblur() {
		this.blur();
		}
		
function getLinksToBlur() {
		if (!document.getElementById) return
		links = document.getElementsByTagName("a");
		for(i=0; i<links.length; i++) {
				links[i].onfocus = unblur
				}
		}

		
var theUrl = window.location.toString();
var urlIndex = theUrl.indexOf('lang=') + 5;
var pageDirect = theUrl.substr(0, urlIndex);
	
function changeLanguage (theLang) {
	window.location.href = pageDirect + theLang;
}		
