<!--

// slide show popup

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=800')
}

function openWin(theURL,winName,features) {
  w=window.open(theURL,winName,features);
  w.focus();
}

/*
if(top.location != location){
	top.location.href = document.location.href;
}
*/

function openWinHelp(URL){
   open(URL,"_blank","left=150,top=150,width=640,height=480,scrollbars=yes,resizable=yes");
}

function openWin(URL) {
	open(URL, '_blank', 'left=200,top=200,width=350,height=200,scrollbars=yes,resizable=yes');
}

function formHandler(form){
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = URL;
}



var pixels_width = window.screen.width;
var pixels_height = window.screen.height;
var nWidth= "600";
var nHeight="400";
if(pixels_width < 740){
    nWidth = "540";
}
if(pixels_height < 540){
    nHeight = "350";
}
var optionString = "scrollbars,location,resizable,status,";
optionString += "height=" + nHeight + ",width=" + nWidth;
optionString += ",screenX=10,screenY=10,top=10,left=10";
var cartWindow = null;
function paypalwinOpen(url){
    if(!cartWindow || cartWindow.closed) {
    cartWindow = window.open(url,"cart",optionString);
    } else {
    // window already exists, so bring it forward
        cartWindow.location.href=url;
        cartWindow.focus();
    }  
};

//-->


