/* studio@gimmeshelterdesign.com */
/* for gdstereo.com */
/* 040911 */


function externalLinks() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i=0; i<anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
            anchor.target = "_blank";
        }
    }
}
window.onload = externalLinks;


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 newSound(mypage, myname, w, h, scroll) { 
winprops = 'height=16, width=320, top=0, left=0, scrollbars=0,title=0,resizable=0,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 = "contact.php";

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

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


/* studio@gimmeshelterdesign.com */
/* for gdstereo.com */
/* 040911 */


function externalLinks() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i=0; i<anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
            anchor.target = "_blank";
        }
    }
}
window.onload = externalLinks;


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 newSound(mypage, myname, w, h, scroll) { 
winprops = 'height=16, width=320, top=0, left=0, scrollbars=0,title=0,resizable=0,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 = "contact.php";

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

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


