
// ------------------------------------------------------------------
// start: get generic browser type
NN = (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) != "5")?true:false;
IE = (navigator.appName != "Netscape")?true:false;
// ------------------------------------------------------------------


// ------------------------------------------------------------------
// start: select the appropriate stylesheet
if (!path) var path = ""; // if the path variable was set before the call to this (.js) file

document.write("<LINK REL=stylesheet HREF=\""+path+"inc/styles.css\" TYPE=\"text/css\">");
// ------------------------------------------------------------------


function popUp(URL){
	var leftPos = screen.width-410;

	if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,3) >= 4)
	{
		msgWin = window.open(URL,'newWin','width=220,height=300,scrollbars=no,resizable=no,left='+leftPos);		
	}
	else if(navigator.appName == "Netscape" && navigator.appVersion.substring(0,3) >= 4)
	{
		msgWin = window.open(URL,'newWin','width=220,height=300,scrollbars=no,resizable=no,screenX='+leftPos);
	}
}

function jumpBox(category_id) {
	if (!category_id.length) {
		alert("You must select a category first.");
		return false;
	}
}

function showEnlargedProduct(URL) {
	window.open(URL,'enlargedProduct','width=500, height=500, resizable=yes, scrollbars=yes, status=yes');
}