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 VisibleLayer(Layer, Key) 
{
	if (document.getElementById) 
	{
	if (Key == 1) {	
			document.getElementById(Layer).style.visibility = "visible";
			window.event.srcElement.style.textDecoration = "none";
			window.event.srcElement.style.color = "white";
			window.event.srcElement.style.backgroundImage="url(img/button_h06.gif)";
			} else {
			document.getElementById(Layer).style.visibility = "hidden";
			window.event.srcElement.style.textDecoration="underline";
			window.event.srcElement.style.color = "black";
			window.event.srcElement.style.backgroundImage="url(img/button_h05.gif)";
			}
	}

}

function VisibleLayer2(Layer, Key) 
{
	if (document.getElementById) 
	{
	if (Key == 0) {	
			document.getElementById(Layer).style.visibility = "visible";
			} else {
			document.getElementById(Layer).style.visibility = "hidden";
			}
	}

}
function menu_open(MP,SM){
		parent.window.location=MP;
		parent.LeftIndex1.location.href=SM;
		}

function win_open(URL,AA)
		{var WO1;
		WO1=window.open('http://www.daddycop.com/'+URL,AA,'width=450,height=400,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('http://www.daddycop.com/'+URL,AA,'width=660,height=600,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();
			}
