<!-- create the unique rollover objects for this page

add1Up = new Image();
add1Up.src = "images/cart_product_add_up.gif";
add1Over = new Image();
add1Over.src = "images/cart_product_add_over.gif";

add2Up = new Image();
add2Up.src = "images/cart_product_add_up.gif";
add2Over = new Image();
add2Over.src = "images/cart_product_add_over.gif";

add3Up = new Image();
add3Up.src = "images/cart_product_add_up.gif";
add3Over = new Image();
add3Over.src = "images/cart_product_add_over.gif";

add4Up = new Image();
add4Up.src = "images/cart_product_add_up.gif";
add4Over = new Image();
add4Over.src = "images/cart_product_add_over.gif";

backUp = new Image();
backUp.src = "images/cart_product_back_up.gif";
backOver = new Image();
backOver.src = "images/cart_product_back_over.gif";




backUp = new Image();
backUp.src = "images/cart_product_back_up.gif";
backOver = new Image();
backOver.src = "images/cart_product_back_over.gif";


function addToCart(itemQtyElementId, itemElementId, actionUrl) { 

	// Determine the Quantity to add to the cart	
	var quantity = 1;
	var quantityElement = MM_findObj(itemQtyElementId);
	if(quantityElement == null) alert('Unable to locate quantity element');
	else if(quantityElement.value !== "") {
		quantity = quantityElement.value;
	}
	
	// Determine the product to add to the cart
	var item = null;
	var itemElement = MM_findObj(itemElementId);
	if(itemElement == null) alert('Unable to locate the product itemid field');
	else {
		// Determine if it is a hidden field, or a drop down
		if(itemElement.type == "hidden") { 
			item = itemElement.value;
		} else {
			item = itemElement.options[itemElement.selectedIndex].value;
		}
	}
	
	// Determine whether to add to cart
	if(item !== null) {
		urlPrefix = window.location.protocol + "//" + window.location.host + window.location.pathname + actionUrl;
		var urlStr = urlPrefix + "&add=" + item + "&quantity=" + quantity;
		//alert(urlStr);
		location.href = urlStr;
	}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

-->
