function showDetail2(productId)
{
	var url="http://www.pacific-concepts.net/eshop/ProductAction.do?method=detailAndlistProduct&product.productId="+productId+"&tenantId="+ProductForm.tenantId.value;
	// window.location.href=url;
    makeRequest(url,null,document.getElementById('divProduct'));
}


navHover = function() {
  var lis = document.getElementById("navmenu").getElementsByTagName("LI");
  for (var i=0; i<lis.length; i++) {
    lis[i].onmouseover=function() {
      this.className+=" iehover";
      }
    lis[i].onmouseout=function() {
    this.className=this.className.replace(new RegExp(" iehover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", navHover);

var thumbnailWidth = 158;
var thumbnailShiftNumber = 5;
var thumbnailPosition = 1;
var thumbnailFree = true;

function moveToPrevious()
{
  if (thumbnailPosition == 1) return;
  
  thumbnailPosition = thumbnailPosition - 1;
  document.getElementById('currentPage').innerHTML = thumbnailPosition;
  new Effect.Move('imageBoxInside', { x: 1*thumbnailWidth*thumbnailShiftNumber, y: 0, transition: Effect.Transitions.sinoidal });
  
}

function moveToNext()
{
  if (thumbnailPosition == ProductForm.totalPages.value*1) return;
  
  thumbnailPosition = thumbnailPosition + 1;
  document.getElementById('currentPage').innerHTML = thumbnailPosition;
  new Effect.Move('imageBoxInside', { x: -1*thumbnailWidth*thumbnailShiftNumber, y: 0, transition: Effect.Transitions.sinoidal });
  
}

function gotoProductList()
{
  // document.location.href="<%=request.getContextPath()%>/ProductAction.do?method=listProduct&tenantId="+ProductForm.tenantId.value;
  url="http://www.pacific-concepts.net/eshop/ProductAction.do?method=listProduct&tenantId="+ProductForm.tenantId.value;
  makeRequest(url,null,document.getElementById('divProduct'));
}


