/*
product_info.tpl.php
*/
function popupXL2(of) {
	var xlContStyle = document.getElementById('xlCont').style
	xlContStyle.display='block';
	if (of && document.getElementById('xlImg').height > 400) {
		with (xlContStyle) {
			height='400px';
			width=(parseInt(document.getElementById('xlImg').width) + 20) + 'px';
			overflow='auto'
		}
	}
}

function selectRowEffectGift(object, buttonSelect) {
 if (!selectedgift) {
   if (document.getElementById) {
     selectedgift = document.getElementById('defaultSelectedGift');
   } else {
     selectedgift = document.all['defaultSelectedGift'];
   }
 }

 if (selectedgift) selectedgift.className = 'moduleRow';
 object.className = 'moduleRowSelected';
 selectedgift = object;

// one button is not an array
 if (document.checkout_address.giftwrap[0]) {
   document.checkout_address.giftwrap[buttonSelect].checked=true;
 } else {
   document.checkout_address.giftwrap.checked=true;
 }
}

function rowOverEffectGift(object) {
 if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffectGift(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
