// Make sure the user enters via the store.
SCPath = "/cgi-local/SoftCart.exe";
config = "scstore";
if (location.pathname.substring(0,SCPath.length) != SCPath) {
	window.location.replace(SCPath + location.pathname + "?E+" + config);
}
    
// Currency Popup Window
function goCurrency() {
	window.open("/scstore/currency.html","CurrencyConversion","height=140,width=600,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,xpos=0,ypos=0");
}	

// Rollover Scripting
if (!((parseInt(navigator.appVersion)<4) && (navigator.appName.toLowerCase().indexOf("microsoft")>-1))) {
	if (parseInt(navigator.appVersion)<3)
		J11=false;
	else
		J11=true;
} else
	J11=false;

var imHeads;
var swapIm = new Array();
var old = "";
var oldSrc = "";
var Im= new Array( 
"/images/home_lit_r02_c03.gif",
"/images/sitemap_lit_r02_c04.gif",
"/images/help_lit_r02_c05.gif",
"/images/currency_lit_r02_c06.gif",
"/images/cart_lit_r02_c09.gif");
			
if(J11) {
	for(i in Im) {
		swapIm[i] = new Image();
		swapIm[i].src = Im[i];
	}
}  

function swap(n,index) {
	if(J11) {
		n = arguments[0].toString();
		index = parseInt(arguments[1]);
		eval("oldSrc = document." + n + ".src");
		old = n;
		eval("document." + n + " .src=swapIm[" + index + "].src");
	}
}
			   
function back() {
	if(J11) {
	eval("document." + old + ".src=oldSrc");
	}
}

// Make sure Quick Order box isn't empty before submitting...
function CheckQuickOrder() {
	var OK = true;
	if (document.frmQuickOrder.product.value == "") {
		OK = false;
	}
	return OK;
}