// MOUSE OVER DROP DOWN MENU START
// Copyright 2006-2007 javascript-array.com

var timeout = 500;
var closetimer  = 0;
var ddmenuitem  = 0;

// open hidden layer
function mopen(id)
{ 
  // cancel close timer
  mcancelclosetime();

  // close old layer
  if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

  // get new layer and show it
  ddmenuitem = document.getElementById(id);
  ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
  if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
  closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
  if(closetimer)
  {
    window.clearTimeout(closetimer);
    closetimer = null;
  }
}

// close layer when click-out
document.onclick = mclose; 
// MOUSE OVER DROP DOWN MENU END    


  function changeImg(sImageSrc)
  {
    if( oObj = document.getElementById("product_img") )
    {
      oObj.src=sImageSrc;
    }
    return false;
  }

  function pMoreDetails(oObj)
  {
    if (oObj != null && oObj.href.length > 0)
    {
      fenster_attribute = "status=no,scrollbars=no,menubar=no,width=630,height=500";
      open(oObj.href, "send_link", fenster_attribute);
    }
  }

  function setSellList( oInObj)
  {
    //for module wlist
    var _wlist = document.getElementById("_wlist");
    if ( _wlist != null)
    {
      if ( '[{$urlsign}]' == '&')
        _wlist.href = _wlist.href + "&" + oInObj.name + "=" + oInObj.value;
      else
        _wlist.href = _wlist.href + "[{$urlsign}]" + oInObj.name + "[{$urlsign}]" + oInObj.value;
    }
    //for original selectlist
    var _wlist = document.getElementById("_slist");
    if ( _wlist != null)
    {
      if ( '[{$urlsign}]' == '&')
        _wlist.href = _wlist.href + "&" + oInObj.name + "=" + oInObj.value;
      else
        _wlist.href = _wlist.href + "[{$urlsign}]" + oInObj.name + "[{$urlsign}]" + oInObj.value;
    }
  }
