function checkOS() {
  if(navigator.userAgent.indexOf('Linux') != -1)
    { var OpSys = "Linux"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows95"; }
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSys = "Windows3.1 or NT"; }
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else { var OpSys = "other"; }
  return OpSys;
}

var OpSys = checkOS();
// convert all characters to lowercase to simplify testing 
var agt=navigator.userAgent.toLowerCase(); 
// *** BROWSER VERSION *** 
// note: on IE5, these return 4, so use is_ie5up to detect IE5. 
var is_major = parseInt(navigator.appVersion); 
var is_minor = parseFloat(navigator.appVersion); 
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
            && (agt.indexOf('webtv')==-1)); 
var is_nav4 = (is_nav && (is_major == 4)); 
var is_nav4up = (is_nav && (is_major >= 4)); 
var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 
                      (agt.indexOf("; nav") != -1)) ); 
var is_nav5 = (is_nav && (is_major == 5)); 
var is_nav5up = (is_nav && (is_major >= 5)); 
var is_ie   = (agt.indexOf("msie") != -1); 
var is_ie3  = (is_ie && (is_major < 4)); 
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
var is_ie4up  = (is_ie  && (is_major >= 4)); 
var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4); 
var isIE4, isIE4PC, isNav4PC, isNav4, isNav3;
if (is_ie4 || is_ie4up || is_nav5 || is_nav5up) {
        isIE4 = true;
        if (OpSys != "Macintosh") {
                isIE4PC = true;
        } 
} else if (is_nav4) {
        isNav4 = true;
        if (OpSys != "Macintosh") {
                isNav4PC = true;
        } 
} else if  (is_nav) {
        isNav3 = true;  
}
//self.name = "parentWin";
function openDec(url, name, w, h) {
        popupWin = window.open(url, name, 'resizable=0,scrollbars=1,width=' + w + ',height=' + h + '');
    // focus window (only for Navigator >= 3.0)
    if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
    popupWin.focus();
}
function launchGSL(url, name, w, h) {
        popupWin = window.open(url, name, 'resizable=0,scrollbars=0,width=' + w + ',height=' + h + '');
    // focus window (only for Navigator >= 3.0)
    if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
    popupWin.focus();
}
if (OpSys == "Linux") {
        document.write('<link rel="stylesheet" type="text/css" href="http://www.designbiz.com/net/stylesheets/gs_linux17.css" title="GS CSS - Linux">');
} else {
        document.write('<link rel="stylesheet" type="text/css" href="http://www.designbiz.com/net/stylesheets/gs_ie17.css" title="GS CSS - Internet Explorer">');
        if (isNav4PC) {
                document.write('<link rel="stylesheet" type="text/css" href="http://www.designbiz.com/net/stylesheets/gs_ns17.css" title="GS CSS - Netscape">');
        }
}

var isIMG = document.images;
var Arrowon;
var Arrowoff;

if (isIMG) {
   Arrowon = new Image(7,7);
   Arrowon.src = "http://www.designbiz.com/net/images/arrow_on.gif";
   Arrowoff = new Image(7,7);
   Arrowoff.src = "http://www.designbiz.com/net/images/arrow_off.gif";
}
function Arrow(Arrowname) {
   if (isIMG) {
     document[Arrowname].src = (document[Arrowname].src.indexOf('arrow_on.gif') != -1) ? 'http://www.designbiz.com/net/images/arrow_off.gif' : 'http://www.designbiz.com/net/images/arrow_on.gif';

   }
}
function change(form){
	var page= document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = page;
}

var thisPageURL = window.location.href;
var popupRes = thisPageURL.match(/gscpopup/g); 
if (popupRes == null) { 
	window.name="mainWindow"; 
}

var url = document.referrer;
function newWindow(newContent) {
	winContent = window.open(newContent, 'nextWin', 'left=100,top=10,width=450,height=485,toolbar=no,scrollbars=no,resizable=no');
	if (document.referrer.length > 0) {
		window.location.href = document.referrer;
	}
}

function newWindow2(newContent) {
	winContent = window.open(newContent, 'nextWin', 'left=100,top=10,width=450,height=485,toolbar=no,scrollbars=no,resizable=no');
}

function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver; 
	} 
} 

function mOut(src,clrIn){ 
	if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgColor = clrIn; 
	} 
}

function mClk(src){ 
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}

var hidetracking = 0;
