$(document).ready(function(){	
  setTimeout("timeOutFunc();", '3000');
});

function timeOutFunc() {
  $('#slider_holder_gallery').easySlider({
	numeric: true,
	numericId: 'slider_holder_gallery_nav',
	onSliderCompleted: sliderHolderGalleryCompletedFunc,
	speed: 		1500,
	pause:		3000,
	orientation: 'horizontal',
	continuous: true,
	auto: true
  });
  																		   
  $('#slider_holder_product').easySlider({
	numeric: true,
	numericId: 'slider_holder_product_nav',
	speed: 		2000,
	pause:		3000,
	orientation: 'horizontal',
	continuous: true,
	auto: true
  });
}

function sliderHolderGalleryCompletedFunc()
{
	currentImgIndex = $('ol#slider_holder_gallery_nav li.current a').html();
	galleryName = $('#slider_holder_gallery ul li:nth-child('+(parseInt(currentImgIndex)+1)+') img').attr('title');
	$('#galleryProdName').html(galleryName);
}

function openDescPopup() {
  var openedWin = window.open( "hupboxdesc.php", "hupboxDesc", "status=1, height=500, width=250, resizable=0" );
  openedWin.focus();
}

function doSubmitPaypal(formId, formType, quantity, mailBy, baseShipping, additionShipping ) {
  var frm = document.getElementById(formId);
  frm.quantity.value = quantity;
  frm.shipping.value = baseShipping;
  frm.shipping2.value = additionShipping;
  frm.os0.value = mailBy;
  frm.submit();
}