
 var oldMenu = '';
 var oldLink = '';
 var oldQV = '';
 var oldQLB = '';
 var oldTab = 'tab1';
 var oldTabContent = 'tabContent1';

 function showBigImg() {
  document.getElementById('imgBig').style.display = '';
 }

 function hideBigImg() {
  if(document.getElementById('imgBig')) {
   document.getElementById('imgBig').style.display='none';
  }
 }

 function showTab(tabID,tabContentID)
 {
  document.getElementById(oldTab).className = 'tabB';
  document.getElementById(tabID).className = 'tabF';
  oldTab = tabID;

  document.getElementById(oldTabContent).style.display = 'none';
  document.getElementById(tabContentID).style.display = '';
  document.getElementById(tabContentID).className = '';
  oldTabContent = tabContentID;
 }

 function showQLB(divID)
 {
  if(oldQLB)
  {
   oldQLB.style.display = 'none';
   oldQLB = '';
  }
  if((divID) && (!oldQV))
  {
   oldQLB = document.getElementById(divID);
   oldQLB.style.display ='';
  }
 }

function pageMiddle() {
 var pCenter = 0;
 if( typeof( window.innerWidth ) == 'number' ) {
 //Non-IE
  pCenter = (window.innerHeight + getScrollY()) - (window.innerHeight / 2);
 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
 //IE 6+ in 'standards compliant mode'
  pCenter = (document.documentElement.clientHeight + getScrollY()) - (document.documentElement.clientHeight / 2);
 }
 else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
 //IE 4 compatible
 pCenter = (document.body.clientHeight + getScrollY()) - (document.body.clientHeight / 2);
 }
 return pCenter;
}

function pageCenter() {
 var pCenter = 0;
 if( typeof( window.innerWidth ) == 'number' ) {
 //Non-IE
  pCenter = (window.innerWidth / 2);
 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
 //IE 6+ in 'standards compliant mode'
  pCenter = (document.documentElement.clientWidth / 2);
 }
 else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
 //IE 4 compatible
 pCenter = (document.body.clientWidth / 2);
 }
 return pCenter;
}

function getScrollY() {
 var scrOfX = 0, scrOfY = 0;
 if( typeof( window.pageYOffset ) == 'number' ) {
 //Netscape compliant
 scrOfY = window.pageYOffset;
 } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
 //DOM compliant
 scrOfY = document.body.scrollTop;
 } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
 //IE6 standards compliant mode
 scrOfY = document.documentElement.scrollTop;
 }
 return scrOfY;
}

 function showQuickView(divID)
 {
  if(oldQV)
  {
   oldQV.style.display = 'none';
   oldQV = '';
  }
  if(divID)
  {
   oldQV = document.getElementById(divID);
   oldQV.style.display ='';
   posY = pageMiddle() - 164;
   posX = pageCenter() - 200;
   oldQV.style.position   = 'absolute';
   oldQV.style.left = posX + "px";
   oldQV.style.top  = posY + "px";
  }
 }

 function showMenu(menuID,linkObj)
 {
  if(oldMenu)
  { oldMenu.style.display = 'none'; }
  if(oldLink)
  { oldLink.className = ''; }
  
  if(menuID)
  { oldMenu = document.getElementById(menuID);
    oldMenu.style.display = '';  }
  if(linkObj)
  { linkObj.className = 'lnBlue';
    oldLink = linkObj; }
 }

