function searchMe() {
string = document.playerSearch.searchTerm.value;
window.location = "http://www.legendsofhockey.net/LegendsOfHockey/jsp/SearchPlayersByForm.jsp?Search="+string+"&Type=List"
}

var newwindow;

function popPix(url,high,wide)
{
	newwindow=window.open(url,'pictureWindow','height='+high+',width='+wide+',top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow.focus()}
}
function popPic(url)
{
	newwindow=window.open(url,'pictureWindow','height=600,width=460,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow.focus()}
}

var newwindowB;
function popPic2(url)
{
	newwindowB=window.open(url,'pictureWindow','height=600,width=460,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindowB.focus()}
}

var newwindow4;
function popStanley(url)
{
	newwindow4=window.open(url,'pictureWindow','height=430,width=590,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow4.focus()}
}

var newwindow2;
function popupVideo(url)
{
	newwindow2=window.open(url,'popupVideo','height=280,width=320,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow2.focus()}
}

var newwindow3;
function popupVideoBigger(url)
{
	newwindow3=window.open(url,'popupVideo','height=400,width=480,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow3.focus()}
}

var newwindow5;
function popupVideoHabs(url)
{
	newwindow5=window.open(url,'popupVideo','height=280,width=416,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow5.focus()}
}

var newwindow6;
function popupVideoHabs2(url)
{
	newwindow6=window.open(url,'popupVideo','height=380,width=600,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow6.focus()}
}

var newwindow7;
function popupVideoLetterbox(url)
{
	newwindow7=window.open(url,'pictureWindow','height=420,width=720,top=75,left=100,scrollbars=no,resizable=no');
	if (window.focus) {newwindow7.focus()}
}


function hideIt(target) {
	//document.target.visibility=hidden;
}

function VisitValue(){
	var i = document.TheForm.TopLoc.selectedIndex
	
	if(i!=0){
		parent.location.href = document.TheForm.TopLoc.options[i].value
	}
	
}	

function hidePhil() {
	document.getElementById("phil").style.visibility="hidden";
}

function P7_autoLayers() {
		 var g,b,k,f,args=P7_autoLayers.arguments;a=parseInt(args[0]);if(isNaN(a))a=0;
		 if(!document.p7setc){p7c=new Array();document.p7setc=true;for(var u=0;u<10;u++){
		 p7c[u]=new Array();}}for(k=0;k<p7c[a].length;k++){if((g=MM_findObj(p7c[a][k]))!=null){
		 b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;k++){
		 if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility="visible";f=false;
		 for(var j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
		 if(!f){p7c[a][p7c[a].length++]=args[k];}}}
		}
		
		function P7_hideDiv(evt) {
		 var b,relT,mT=false; 
		 if(document.layers){b=evt.target;if(b.p7aHide){
		  b.visibility="hidden";}else{routeEvent(evt);}
		 }else if(document.all&&!window.opera){b=event.srcElement;
		  while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;}
		  if(!b.contains(event.toElement)){b.style.visibility="hidden";}
		 }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
		  while(relT!=null){if(b==relT){mT=true;break;}
		  relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}}
		}
		
		function P7_autoHide() { 
		 var i,g,args=P7_autoHide.arguments;
		 for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){
		  g.p7aHide=true;if(document.layers){
		  g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;g.p7ahD=true;}}
		}

		

function makeWindowIND(URL) {
	newWindowIND = window.open(URL,'myWindowIND','scrollbars=no,status=no,width=510,height=500,screenX=400,screenY=50,top=50,left=400')
	
if (newWindowIND.opener == null) newWindowIND.opener = self;
}
