function display_text(obj_id, type) {
	obj=document.getElementById(obj_id);
	objdefault=document.getElementById('default');

	extrascript=false;

	if(window.navigator.userAgent.indexOf("Gecko/")!=-1 && window.navigator.userAgent.indexOf("Firefox")==-1) {
		
		versionstart=window.navigator.userAgent.indexOf("rv:");
		mainpart=parseInt(window.navigator.userAgent.substr(versionstart+3,1));
		subpart=parseInt(window.navigator.userAgent.substr(versionstart+5,1));
		
		if(mainpart<1 || (mainpart==1 && subpart<=3)) {
			extrascript=true;
		}
	}

	if(type == 'show') {
		obj.style.display = 'inline';
		objdefault.style.display = 'none';
	
		if(extrascript==true) {
			obj.style.position = 'static';
			obj.style.visibility = 'visible';
			objdefault.style.position = 'absolute';
			objdefault.style.visibility = 'hidden';
		}

	} else {
		obj.style.display = 'none';
		objdefault.style.display = 'inline';
		
		if(extrascript==true) {
			obj.style.visibility = 'hidden';
			obj.style.position = 'absolute';
			objdefault.style.visibility = 'visible';
			objdefault.style.position = 'static';
		}
	}
}

function fillList(selectbox, array, selected, key){
	var optioncounter=1;
	selectbox.length=1;
	
	for(i in array){
		newoption = new Option();
		if(key!=""){
			if(array[i][2]==key){
				newoption.value = array[i][0];
				newoption.text = array[i][1];
			}
		}else{
			newoption.value = array[i][0];
			newoption.text = array[i][1];
		}
		
		if(newoption.value!=""){
			selectbox[optioncounter]=newoption;
			if(selectbox[optioncounter].value==selected) {
				selectbox[optioncounter].selected=true;
			}
			optioncounter++;
		}
	}
}
// Country Menu
Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if(document.getElementById) return document.getElementById(name).style;
	else if(document.all) return document.all[name].style;
	else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	this.getStyle(name).visibility = "visible";
	this.getStyle(name).position = "relative";
	this.current = name;
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",300);
}
Menu.doHide = function(){
	if(this.current){
		this.getStyle(this.current).visibility = "hidden";
		this.current = null;
	}
}
