// JavaScript Document

/*
Function used to open popup windows.
From: http://www.sitepoint.com/article/perfect-pop-up/
Date: 03/02/09
*/
var newWin = null; 
function popUp(strURL, strType, strWidth, strHeight) 
{ 
  if (newWin != null && !newWin.closed) newWin.closwwwe(); 
  var strOptions=""; 
	if (strType=="normal") strOptions="";
  if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth; 
  if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth; 
  if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth; 
  newWin = window.open(strURL, '_blank', strOptions);
  newWin.focus(); 
}

function moveScrollLeft() 
{
  var el = document.getElementById('contentProducts'); // div element
  el.scrollLeft += 3;
  timer = setTimeout("moveScrollLeft()", 20);
}

function moveScrollRight() 
{
  var el = document.getElementById('contentProducts'); // div element
  el.scrollLeft -= 3;
  timer = setTimeout("moveScrollRight()", 20);
}
