window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
		}
if (d) {d.style.display='block';}
}
function MenuOn(x){
	obj=document.getElementById
	("smenu"+x).style.visibility="visible";
}
function MenuOff(x){
	obj=document.getElementById
	("smenu"+x).style.visibility="hidden";
}


function jump2(my_url)
		{
		my_url=document.form1.sele1.selectedIndex;
		my_url=document.form1.sele1.options[my_url].value;
		if(my_url.charAt(0) == 2)
			parent.LeftIndex1.location.href=my_url.substring(2,my_url.length);
		else if(my_url.charAt(0) == 1)
			parent.contents.location.href=my_url.substring(2,my_url.length);
		else if(my_url.charAt(0) == 0)
			parent.window.location=my_url.substring(2,my_url.length);
		}
function jump1(my_url)
		{
		my_url=document.form1.sele1.selectedIndex;
		my_url=document.form1.sele1.options[my_url].value;
		parent.window.location=my_url;
		}

function menu_open(MP,SM){
		parent.window.location=MP;
		parent.LeftIndex1.location.href=SM;
		}

function com_win(url,windowname,width,height,top_p,left_p) {
 var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
 if (width) {
  if (window.screen.width > width)
   features+=", left="+left_p;
  else width=window.screen.width;
  features+=", width="+width;
 }
 if (height) {
  if (window.screen.height > height)
   features+=", top="+top_p;
  else height=window.screen.height;
  features+=", height="+height;
 }
 window.open(url,windowname,features);
}
function win_open(URL,AA)
		{var WO1;
		WO1=window.open(URL,AA,'width=900,height=1200,resizable=yes,status=yes,scrollbars=yes,directories=no,menubar=no,toolbar=no,location=no,top=0,left=0');
		WO1.focus();}
function win_openL(URL,AA)
		{var WO1;
		WO1=window.open(URL,AA,'width=1200,height=800,resizable=yes,status=yes,scrollbars=yes,directories=no,menubar=no,toolbar=no,location=no,top=0,left=0');
		WO1.focus();}
function win_openS(URL,AA)
		{var WO1;
		WO1=window.open(URL,AA,'width=500,height=500,resizable=yes,status=yes,scrollbars=yes,directories=no,menubar=no,toolbar=no,location=no,top=0,left=0');
		WO1.focus();}

function topTo() {window.scrollTo(0,172);};

function MainPage(MP,SM){
			parent.window.location.href=MP;
			parent.LeftIndex1.location.href=SM;
/*			document.getElementById(Layer).style.visibility = "visible"; */
}
function MainContents(){
			parent.top.location.href="index.html"; topTo();
			}