// JavaScript Document

//newsletter popups
function PopupPic(sPicURL) {
				window.open("images/popup.htm?"+sPicURL, "gallery", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=0,screenY=0,top=0,left=0,padding=10");
}

//video popups
function video(url)
{
checkWin = window.open( url, 'video', 'left=0,top=0,width=660,height=505,menubar=no,scrolling=auto,resizable=yes,toolbar=no,location=no,directories=no,status=no');
checkWin.document.close();
checkWin.focus();
}


//product pic popups
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=0,screenY=0,top=0,left=0')
}


//size popups
function size(url)
{
checkWin = window.open( url, 'size', 'left=0,top=0,width=590,height=500,menubar=no,scrolling=yes,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no');
checkWin.document.close();
checkWin.focus();
}

function flashFix()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + swfWidth + '" height="' + swfHeight + '" wmode="' + swfOpacity + '" scale="' + swfScale + '" id="main">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + flashSrc + '" />');
document.write('<param name="quality" value="' + swfQuality + '"/>');
document.write('<param name="wmode" value="' + swfOpacity + '"/>');
document.write('<param name="scale" value="' + swfScale + '"/>');
document.write('<param name="menu" value="false" />');
document.write('<embed  id=main  src="' + flashSrc + '" menu="false" quality="' + swfQuality + '" wmode="' + swfOpacity + '" scale="' + swfScale + '" width="' + swfWidth + '" height="' + swfHeight + '" name="main" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.getElementById("main").focus();
}

//newsletter popups
function news(url)
{
checkWin = window.open( url, 'news', 'left=0,top=0,width=620,height=450,menubar=no,scrolling=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=no,directories=no,status=no');
checkWin.document.close();
checkWin.focus();
}

var selected;

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
    if (document.getElementById) {
      selected = document.getElementById('defaultSelected');
    } else {
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  try {
    if (document.checkout_address.shipping[0]) {
      document.checkout_address.shipping[buttonSelect].checked=true;
    } else {
      document.checkout_address.shipping.checked=true;
    }
  }catch(e) {
    try {
      if (document.checkout_payment.payment[0]) {
        document.checkout_payment.payment[buttonSelect].checked=true;
      } else {
        document.checkout_payment.payment.checked=true;
      }
    }catch(e){}
  }
}

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

function check_form() {
  return true ;
}