<!--
// flag if Netscape 4
var appVer = navigator.appVersion;
var netscape4 = (navigator.appName == "Netscape" && appVer.charAt(0) == "4") ? true : false;



// swap images
function di(id,name)
{
  if (document.images)
    document.images[id].src=eval(name+".src");
}




// get available screen height and width
var popHeight = 700;
var popWidth = 660;
var topLoc = 40;
var leftLoc = 40;
var availHeight;
var availWidth;

availHeight = Math.round(screen.availHeight * 0.85);
availWidth = Math.round(screen.availWidth * 0.9);

if (availHeight < popHeight)
{
  popHeight = availHeight;
  topLoc = 0;
}
if (availWidth < popWidth)
{
  popWidth = availWidth;
  leftLoc = 0;
}

popHeight = popHeight.toString();
popWidth = popWidth.toString();
topLoc = topLoc.toString();
leftLoc = leftLoc.toString();

popHeight.toString()

var catalogWin = null;
var catString = "scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,width=" + popWidth + ",height=" + popHeight + ",top=" + topLoc + ",left=" + leftLoc + "";


function catalog(url)
{
  if (catalogWin != null && !catalogWin.closed)    // window already open
    catalogWin.location = url;
  else                                       // new window
    catalogWin = window.open(url, 'DBCatalogWin', catString);
}

var popWin = null;
var popHeight = 300;
var openString;

var availHeight;
availHeight = Math.round(screen.availHeight * 0.75);
if (availHeight > popHeight)
  popHeight = availHeight;


openString = "scrollbars=yes,resizable=yes,toolbar=no,menubar=yes,location=no,width=530,height=" + popHeight.toString() + ",top=40,left=40";

function popup(url)
{
  if (popWin != null && !popWin.closed)
  {
    popWin.location = url;
  }
  else
  {
    if (netscape4)
      popWin = window.open(url, "NewWin", "scrollbars=yes,resizable=yes,toolbar=no,menubar=yes,location=no,width=530,height=330,top=40,left=40");
    else
      popWin = window.open(url, "NewWin", openString);
  }   
}

function hideme_info()
{
	strMe1 = 'in';
	strMe2 = 'fo';
	strJunk = 'lskdjflkasf';
	strDiv = '@';
	strOtherJunk = 'kljsdfl';
	strMoreOfIt = 'dahl';
	strStillMoreJunk = 'dkfdjsda';
	strPartOfIt = 'iabarn';
	strAnotherPart = '.c';

	return (strMe1 + strMe2 + strDiv + strMoreOfIt + strPartOfIt + strAnotherPart + 'om');
}


function submit_cart_form()
{
  switch (document.cart_form.mode.value)
  {
  case 'UPDATE':
    document.cart_form.action = 'cart.phtml';
    break;  
  case 'APPLYSHIPPING':
    document.cart_form.action = 'cart.phtml';
    break;  
  case 'SHOP':
    document.cart_form.action = 'catalog.phtml';
    break;  
  case 'CHECKOUT':
    document.cart_form.action = 'cart.phtml';
    break;  
  case 'APPLYCODE':
    document.cart_form.action = 'cart.phtml';
    break;  
  case 'APPLYGIFTCERT':
    document.cart_form.action = 'cart.phtml';
    break;  
  }

  return (true);
}





// -->
