// JavaScript Document
<!--
var flashVersion = 0;
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function setFieldValue(fieldRef, str) {
	obj = eval(fieldRef);
	if (obj.value == str) {
		obj.value = "";
	}
	else if (obj.value == "") {
		obj.value = str;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
 
}

// Sound on / off
function getExpire(curDays) {  
    var toExpire = new Date();  
    toExpire.setTime(toExpire.getTime() + (1000 * 60 * 60 * 24 * curDays));  
    return toExpire;  
}  

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
  
function getCookie(theName) {  
    theName = theName + "=";  
    theCookie = document.cookie;  
    if (theCookie.length > 0) {  
        startString = theCookie.indexOf(theName);  
        if (startString != -1) {  
            startString += theName.length;  
            endString = theCookie.indexOf(";", startString);  
            if (endString == -1) endString = theCookie.length;  
            theValue = theCookie.substring(startString, endString);  
            theValue = unescape(theValue);  
            return theValue;  
        }  
    }  
    return null;  
}  
  
function setCookie(theName, thePath, curDays, theValue) {  
    theName = theName + "=";  
    theValue = escape(theValue) + ";";  
    thePath = " path=" + thePath + ";";  
    toExpire = getExpire(curDays);  
    toExpire = " expires=" + toExpire.toGMTString();  
    cookieValue = theName + theValue + thePath + toExpire;  
    document.cookie = cookieValue;  
}  
requiredFlashVersion = 6;
displayWarningAfterAlternate = true;

// Non-flash
function getFlashVersion() {
	// *** BROWSER VERSION ***
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);

    // Note: Opera and WebTV spoof Navigator.  We do strict client detection.
    // If you want to allow spoofing, take out the tests for opera and webtv.
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));
    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_nav6 = (is_nav && (is_major == 5));
    var is_nav6up = (is_nav && (is_major >= 5));
    var is_gecko = (agt.indexOf('gecko') != -1);


    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-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_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
    // or if this is the first browser window opened.  Thus the
    // variables is_aol, is_aol3, and is_aol4 aren't 100% reliable.
    var is_aol   = (agt.indexOf("aol") != -1);
    var is_aol3  = (is_aol && is_ie3);
    var is_aol4  = (is_aol && is_ie4);
    var is_aol5  = (agt.indexOf("aol 5") != -1);
    var is_aol6  = (agt.indexOf("aol 6") != -1);

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);

    var is_webtv = (agt.indexOf("webtv") != -1); 

    var is_TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
    var is_AOLTV = is_TVNavigator;

    var is_hotjava = (agt.indexOf("hotjava") != -1);
    var is_hotjava3 = (is_hotjava && (is_major == 3));
    var is_hotjava3up = (is_hotjava && (is_major >= 3));

	var dontKnow = false;
	var agent = navigator.userAgent.toLowerCase();
//is_nav3 || is_opera || is_ie5up || is_nav4 || is_gecko 
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object') {
//		    write ("gdfgfdsg");
			
			var flash_descr=flashPlugin.description.toLowerCase();
			//var rg= /Shockwave Flash/gi; 
			var flash_version=flash_descr.split("shockwave flash");
			var strFlashVersion=flash_version[1].split(" ");
			var intShortFlashVersion=parseInt(strFlashVersion[1]);
			flashVersion=intShortFlashVersion;
			/*if (flashPlugin.description.indexOf('6.') != -1) flashVersion = 6;
			else if (flashPlugin.description.indexOf('5.') != -1) flashVersion = 5;
			else if (flashPlugin.description.indexOf('4.') != -1) flashVersion = 4;
			else if (flashPlugin.description.indexOf('3.') != -1) flashVersion = 3;*/
		}
//		document.write("grtggrt");
	}
	else if (/*agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 &&*/ is_nav3 || is_opera || is_ie5up || is_nav4 || is_gecko && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
		
		document.write('<scr' + 'ipt language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('if IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")) then flashVersion = 6 \n');
		document.write('if flashVersion < 6 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")) then flashVersion = 5 \n');
		document.write('if flashVersion < 5 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")) then flashVersion = 4 \n');
		document.write('if flashVersion < 4 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")) then flashVersion = 3 \n');
		document.write('</scr' + 'ipt\> \n');
	}
	else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;
	else if (agent.indexOf("webtv") != -1) flashVersion = 2;
	else {
		flashVersion = flashVersion_DONTKNOW;
		dontKnow = true;
	}
	//document.write(flashVersion);
	return flashVersion;
	
//	document.write(|"S);
}

passed = false;
flashVersion_DONTKNOW = -1;
var flashVersion = getFlashVersion();

if (flashVersion >= requiredFlashVersion && navigator.appName != "Konqueror"){
   passed = true;
}

// Loads the Thawte Site Seal
 function OpenCertDetails()
 {
thewindow =window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USFORZ9', 'anew',config='height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
}

function show_women()
{
	document.getElementById('leftSide').style.display = 'none';
	document.getElementById('leftSide2').style.display = 'inline';
}
function hide_women()
{
	document.getElementById('leftSide').style.display = 'inline';
	document.getElementById('leftSide2').style.display = 'none';
}
function show_men()
{
	document.getElementById('rightSide').style.display = 'none';
	document.getElementById('rightSide2').style.display = 'inline';
}
function hide_men()
{
	document.getElementById('rightSide').style.display = 'inline';
	document.getElementById('rightSide2').style.display = 'none';
}

function validate_wholesale($item)
{
	if (document.getElementById('item'+$item).value <= 0)
	{
		document.getElementById('item'+$item).value = 1;
		return true;
	}
}
//-->