/* studio@gimmeshelterdesign.com */
/* for suzannemalitz.com */
/* 041108 */

function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',title=1,resizable=1,location=0,menubar=0,toolbar=0,status=1,alwaysRaised=0'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function loadinparent (url, closeSelf){
	self.opener.location = url;
	if(closeSelf) self.close();
}

function displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.returnValue = true;
}


function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);


redirTime = "5000";
redirURL = "/";

function redirTimer() {
	self.setTimeout("self.location.href = redirURL;",redirTime);
}

redirTime = "5000";
prevURL = "/?s=contact";

function redirPrev() {
	self.setTimeout("self.location.href = prevURL;",redirTime);
}

function sf(){document.f.q.focus();}

function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// standards-compliant
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// old msie versions 
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// nn4
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


