var ids_es=new Array('es1','es2','es3', 'es4', 'es5', 'es6', 'es7', 'es8');
var es_main='es0';

function switchid_es(id_es){
	hideallids_es();
	showdiv_es(id_es);
}

function hideallids_es(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids_es.length;i++){
		hidediv_es(ids_es[i]);
	}
}

function hidediv_es(id_es) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(es_main).style.display = 'none';
		document.getElementById(id_es).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.es_main.display = 'none';
			document.id_es.display = 'none';
		}
		else { // IE 4
			document.all.es_main.style.display = 'none';
			document.all.id_es.style.display = 'none';
		}
	}
}

function showdiv_es(id_es) {
	//safe function to show an element with a specified id

	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id_es).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id_es.display = 'block';
		}
		else { // IE 4
			document.all.id_es.style.display = 'block';
		}
	}
}


function vtpopup(page){
var w = 630; <!--window width-->
var h = 480; <!--window height-->
var winl = (screen.width - w)/2;
var wint = (screen.height - h)/2;
var option = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+",top="+wint+",left="+winl;
window.open(page,'',option);
}

function photopopup(page){
var w = 550; <!--window width-->
var h = 500; <!--window height-->
var winl = (screen.width - w)/2;
var wint = (screen.height - h)/2;
var option = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+",top="+wint+",left="+winl;
window.open(page,'',option);
}

function photopopup2(page){
var w = 550; <!--window width-->
var h = 550; <!--window height-->
var winl = (screen.width - w)/2;
var wint = (screen.height - h)/2;
var option = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+",top="+wint+",left="+winl;
window.open(page,'',option);
}