<!-- Required for several pages, saves data before exiting page!
var lAdImages = new Array("images/logo/Tiffany-Table-Lamp-Logo.jpg","images/logo/Tiffany-Ceiling-Lamp-Logo.jpg","images/logo/Tiffany-Wall-Light-Logo.jpg");
var lAdText = new Array("","","");
var lAdLink = new Array("http://www.tiffany-lamp-uk.co.uk/shop/Tiffany-Table-Lamp.aspx","http://www.tiffany-lamp-uk.co.uk/shop/Tiffany-Ceiling-Shade.aspx","http://www.tiffany-lamp-uk.co.uk/shop/Tiffany-Wall-Light.aspx");
var lThisAd = 0;
var lDelay = 10000;
function rotate(){
    lThisAd++;
    if (lThisAd == lAdImages.length){lThisAd = 0};
    document.getElementById("LogoBanner").src=lAdImages[lThisAd];
    setTimeout("initBannerLink()",lDelay);};    
function newLocation(){
    document.location.href=lAdLink[lThisAd]
    return false;
    }
function initBannerLink() {
    if (document.getElementById("LogoBanner").parentNode.tagName == "A") {document.getElementById("LogoBanner").parentNode.onclick=newLocation;}
    rotate();
    }
setTimeout("initBannerLink()",lDelay);
function submitform()
{
	document.form.submit()
}
function searchform()
{
	document.searchform.submit()
}

function jumptopage(pg)
{
	document.next.page.value=pg;
	document.next.submit()
}

  function showwindow(thewidth,theheight,theurl)
  {
   if (!window.pdWindow)
    {
	pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");

    }
   else
	{
	if (!pdWindow.closed)
	  {
	  //pdWindow.focus();
	  pdWindow.close();
	  pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
	  }
	 else
	  {
	   pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
	  }
	}
   }
//-->
