function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function displayLayers() //RE, ED, SS, AU, HM
{
	var i, args=displayLayers.arguments;
	var layerNames = new Array("HM", "RE", "ED", "SS", "AU1", "AU2", "AU3", "AU4");	
	for (i=0; i < args.length; i++)
		MM_showHideLayers(layerNames[i], '', (args[i]==0)?'hide':'show');
}

function showSearch () {
	ref = window.open('http://www.google.com/search?as_q=' + searchStr, "searchWindow","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes");
}

var myPopupWin = ''; //Global popup window var

function showPopupWindow(page,w,h) {
	myPopupWin= open(page, "Popup", "width=" + w + ",height=" + h + ",status=no,toolbar=no,menubar=no,titlebar=no ");
	return myPopupWin;
}

function closePopupWindow() {
	myPopupWin.close();
}

function showResume() {
	showPopupWindow("Resume/Resume.htm",783,392)
}

function showWeather() {
   var n=Math.round(Math.random()*6);
   var style=new Array("ALERH","COLDH","DRIVH","EVNTH","HOMEH","LAWNH","TRVLH")
   showPopupWindow("Weather/Weather"+style[n]+".htm",270,175);
}

function showChat() {
	chatWin = open("Chat.htm", "Chat", "width=600,height=375,status=no,toolbar=no,menubar=no,titlebar=no "); 
}