var gMenu = "<div class=wrapper> <a href=\"index.html\" onMouseOver=\"navShow('1'); swapImage(this,'images/index_2_04.gif');\" onMouseOut=navHide();><img id=Nav-1 border=0 src=\"images/index_04.gif\" width=103 height=35 ></a><a onMouseOver=\"navShow('436'); swapImage(this,'images/index_2_05.gif');\" onMouseOut=navHide(); href=\"compamy.html\"><img src=\"images/index_05.gif\" width=103 height=35 border=0 id=Nav-436></a><a onMouseOver=\"navShow('2'); swapImage(this,'images/index_2_06.gif');\" onMouseOut=navHide(); href=\"mox.html\"><img id=Nav-2 src=\"images/index_06.gif\" width=\"103\" height=\"35\" border=\"0\" ></a><a onMouseOver=\"navShow('3'); swapImage(this,'images/index_2_07.gif');\" onMouseOut=navHide(); href=\"support.html\"><img id=\"Nav-3\"src=\"images/index_07.gif\" width=\"103\" height=\"35\" border=\"0\"></a><a onMouseOver=\"navShow('4'); swapImage(this,'images/index_2_08.gif');\" onMouseOut=navHide(); href=\"#\"><img id=\"Nav-4\"src=\"images/index_08.gif\" width=\"103\" height=\"35\" border=\"0\"></a><a onMouseOver=\"navShow('5'); swapImage(this,'images/index_2_09.gif');\" onMouseOut=navHide(); href=\"Comtact Us.html\"><img id=\"Nav-5\"src=\"images/index_09.gif\" width=\"105\" height=\"35\" border=\"0\"></a>		 <div id=NavLayer-1 style=\"Z-INDEX: 2; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); LEFT: 0px; VISIBILITY: hidden; WIDTH: 103px; POSITION: absolute; TOP: 35px; moz-opacity: 0.95; height: 6px; \"></div>		 <div id=NavLayer-436 style=\"Z-INDEX: 2; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); LEFT: 103px; VISIBILITY: hidden; WIDTH: 103px; POSITION: absolute; TOP: 35px; moz-opacity: 0.95; height: 0px; \"> 	 </div>		 <div id=NavLayer-2 style=\"Z-INDEX: 2; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); LEFT: 206px; VISIBILITY: hidden; WIDTH: 103px; POSITION: absolute; TOP: 35px; moz-opacity: 0.95; height: 66px; background-color: #2E6EA8; layer-background-color: #2E6EA8; border: 1px none #000000;\">		 <table cellspacing=0 cellpadding=0 width=103 border=0>		 <tbody>		 <tr>		 <td class=links onMouseOver=colorize(this,1);navShow(); style=\"CURSOR: hand\" onMouseOut=colorize(this,0);navHide(); height=22><a class=subnavlink href=\"sporz.html\">Sporz</a></td>	 </tr>		 <tr>		 <td class=links onMouseOver=colorize(this,1);navShow(); style=\"CURSOR: hand\" onMouseOut=colorize(this,0);navHide(); height=22><a class=subnavlink href=\"vive.html\">Vive</a></td>	 </tr> <tr>		 <td class=links onMouseOver=colorize(this,1);navShow(); style=\"CURSOR: hand\" onMouseOut=colorize(this,0);navHide(); height=22><a class=subnavlink href=\"mox.html\">Mox</a></td>	 </tr>	 </tbody>	 </table>	 </div>		 <div id=NavLayer-3 style=\"Z-INDEX: 2; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); LEFT: 309px; VISIBILITY: hidden; WIDTH: 103px; POSITION: absolute; TOP: 35px; moz-opacity: 0.95; height: 0px; background-color: #FBFBFB;\">	 	 </div>		 <div id=NavLayer-4 style=\"Z-INDEX: 2; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); LEFT: 412px; VISIBILITY: hidden; WIDTH: 103px; POSITION: absolute; TOP: 35px; moz-opacity: 0.95; height: 0px; \">	 	 </div>		 <div id=NavLayer-5 style=\"Z-INDEX: 2; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); LEFT: 0px; VISIBILITY: hidden; WIDTH: 103px; POSITION: absolute; TOP: 35px; moz-opacity: 0.95; height: 6px; background-color: #FBFBFB; \"></div></div>";
function clientSniff()
{
  this.ua = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  // MSIE
  this.ie = this.ua.indexOf('msie') != -1;
  this.mac = this.ua.indexOf('macintosh') != -1;
  if (this.ie) return;
  // Gecko, NN, and NS
  this.gecko = this.ua.indexOf('gecko') != -1;
  this.nav = (this.ua.indexOf('mozilla') != -1 && this.ua.indexOf('spoofer') == -1 && this.ua.indexOf('compatible') == -1);
}

// Global variables
var is = new clientSniff();

// GLOBAL VARIABLES FOR MENU HIDING
var gTimeOut;
var gTimeOutFlag = false;
var gLayerRef = null;
var gImgRef = null;
var gImgRefSrc;

// SWAP NAV MENU IMAGE; SHOULD BE CALLED *AFTER* HIDDEN MENU IS SHOWN
function swapImage(objRef, strPath) {
    if ( document.readyState ) {
        if( is.ie && document.readyState != "complete" ) {
            return false;
        }
    }


    var myImgObj = objRef.childNodes[0];
    myImgObj.src = strPath;

}


// SHOW A DROPDOWN MENU FROM THE TOP LEVEL NAVIGATION
function navShow(strLayerId) {
    if ( document.readyState ) {
        if( is.ie && document.readyState != "complete" ) {
            return false;
        }
    }

    if (strLayerId) {

        navHideNow();

        // set globals to swap back later
        gImgRef = document.getElementById("Nav-" + strLayerId);
        gImgRefSrc = gImgRef.src;

        gLayerRef = document.getElementById("NavLayer-" + strLayerId);
        gLayerRef.style.visibility = "visible";
    }

    gTimeOutFlag = false;
    window.clearInterval(gTimeOut);

    
}


// PUBLIC FUNCTION FOR HIDING A CURRENTLY VISIBLE DROPDOWN MENU
function navHide(strWhen) {
    if ( document.readyState ) {
        if( is.ie && document.readyState != "complete" ) {
            return false;
        }
    }

    gTimeOutFlag = true;
    gTimeOut = window.setInterval("navHideNow()",500);

}


// ACTUALLY HIDE DROPDOWN AND SWAP BACK ROLLOVER IMAGE
function navHideNow() {
    if (gTimeOutFlag && gLayerRef != null && gImgRef != null) {
        gLayerRef.style.visibility = "hidden";
        gImgRef.src = gImgRefSrc;
    }
    gTimeOutFlag = false;
    window.clearInterval(gTimeOut);
}



function colorize(o,b){
    if(b==1) {
        o.style.backgroundColor = "#93b3d1";
    }
    else {
        o.style.backgroundColor = "#2e6ea8";
    }
}

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);


/* DISPLAY APPROPRIATE ZIP CODE ENTRY FORM ON WHERE TO BUY SECTIONS */
function ziplookup(strProduct) {
    // hide all
    document.getElementById("zip_tuner").style.display="none";
    document.getElementById("zip_av").style.display="none";
    document.getElementById("zip_pro").style.display="none";
    document.getElementById("zip_original").style.display="none";

    // display the one chosen
    if (document.getElementById(strProduct)) {
        document.getElementById(strProduct).style.display="";
    }

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}