//STYLESHEET CHECK

		var mac = navigator.appVersion.indexOf("Mac")>-1

		var opera = navigator.userAgent.indexOf("Opera")>-1

		

	    if (navigator.appName == "Netscape" && parseFloat(navigator.appVersion) < 5.00 && !mac){

			document.write ("<link rel=\"stylesheet\" href=\"/retail/ns_style_v5.css\" type=\"text/css\">")

		} else {

	    	document.write ("<link rel=\"stylesheet\" href=\"/retail/ie_style_v5.css\" type=\"text/css\">")

	    }





//THIS IS FOR THE COMPRA.COM STUFF

function systranURL(url) { 

	return url; 

} 





//NETSAGE_ IT ISN"T USED BUT NOT ALL CODE HAS BEEN REMOVED SO IT IS SET TO FALSE

		//document.write (navigator.appName + '###' + navigator.userAgent)

		//document.write("The value of navigator.appCodeName is " + navigator.appName)

	var displaySage = false

	var mac = navigator.appVersion.indexOf("Mac")>-1

	var loc = window.location

	if (navigator.userAgent.indexOf("Netscape6/6.1") != -1)  {

    displaySage = false

	}



//NS RESIZE BUG FIX

	 if(!window.saveInnerWidth) {

       window.onresize = resizeIt;

       window.saveInnerWidth = window.innerWidth;

       window.saveInnerHeight = window.innerHeight;

     }



     function resizeIt() {

         if (saveInnerWidth < window.innerWidth || 

             saveInnerWidth > window.innerWidth || 

             saveInnerHeight > window.innerHeight || 

             saveInnerHeight < window.innerHeight ) 

         {

             window.history.go(0);

         }

     }



    function getCookieVal (offset) {

    	var endstr = document.cookie.indexOf (";", offset);

    	if (endstr == -1)

    		endstr = document.cookie.length;

    		return unescape(document.cookie.substring(offset, endstr));

	}



    function GetCookie (name) {

    	var arg = name + "=";

    	var alen = arg.length;

    	var clen = document.cookie.length;

    	var i = 0;

    	while (i < clen) {

    		var j = i + alen;

    	    if (document.cookie.substring(i, j) == arg)

    	    	return getCookieVal (j);

    	    	i = document.cookie.indexOf(" ", i) + 1;

    		    if (i == 0) break; 

    		}

    		if (name == "basket") {

    	  		return "Basket Empty";

    		} else {

    			return "null";

    		}

    }



       function setCookie() {

    		}



			





//IE5+ REQUIRES, NETSCAPE, MACS AND OPERA NOT SUPPORTED

if(mac){

	musicLink = false;

		document.cookie = "macuser=mac;";

	}

else if (navigator.appName == "Netscape" || (navigator.userAgent.indexOf('Opera',0) != -1)) {

	musicLink = false;

	document.cookie = "browser=netscape;";

} else {

	musicLink = true;

}









//RANDOM IMAGES FOR HOMEPAGE AND TOP RIGHT

 

 rnd.today=new Date();

 rnd.seed=rnd.today.getTime();

 function rnd() {

         rnd.seed = (rnd.seed*9301+49297) % 233280;

         return rnd.seed/(233280.0);

 };

 function rand(number) {

         return Math.ceil(rnd()*number);

 };

 



//LENMAR CONFIGURATOR



var childWnd;

function openBC(varSettings)

{

childWnd = open('http://www.lenmar.com/bc/configurator.asp?settings=' +

varSettings,'childWindow','toolbar=no,scrollbars=yes,resizable=no,width=570,height=600,top=120,left=150')

if (childWnd.opener == null) childWnd.opener = self;

}



// variable set to get the affiliate cookie

var AffTrack = GetCookie("AdTrack");





//get the querystring into a global var

var url = new String(window.location);

var qs = "";

if(url.indexOf("?") != -1)

	qs = url.substring(url.indexOf("?")+1);

	

function getQueryStringValue(name)

{

	var indexOfName = qs.indexOf(name + "=");

	if(indexOfName != -1)

	{

		var endPos = qs.indexOf("&",indexOfName);

		if(endPos != -1)

			return qs.substring(indexOfName + name.length + 1, endPos);

		else

			return qs.substring(indexOfName + name.length + 1, qs.length);

	}

	else

	{

		return null;

	}

}





function show(object) {

  if (document.getElementById) {

    document.getElementById(object).style.visibility = 'visible';

  }

  else if (document.layers && document.layers[object]) {

    document.layers[object].visibility = 'visible';

  }

  else if (document.all) {

    document.all[object].style.visibility = 'visible';

  }

}



function hide(object) {

  if (document.getElementById) {

    document.getElementById(object).style.visibility = 'hidden';

  }

  else if (document.layers && document.layers[object]) {

    document.layers[object].visibility = 'hidden';

  }

  else if (document.all) {

    document.all[object].style.visibility = 'hidden';

  }

}

