// -----------------------------------------------------
// Get window width in pixels; returns 0 if unidentifiable.
// -----------------------------------------------------
function getWindowWidth(){
  var ww = 0;
  d = document;
   if ( typeof window.innerWidth != 'undefined' )
     ww = window.innerWidth;  // NN and Opera version
   else
   {
     if ( d.documentElement
       && typeof d.documentElement.clientWidth!='undefined'
       && d.documentElement.clientWidth != 0 )
       ww = d.documentElement.clientWidth;
     else
       if ( d.body
         && typeof d.body.clientWidth != 'undefined' )
         ww = d.body.clientWidth;
     else alert ("Can't identify window width - please tell me which browser you are using.")
   }
   return ww;
}

function showsize(){
  alert("Window width = " + getWindowWidth());
}

function displayCatImage(sUrl, sImageURL)
{
	if (sImageURL == '')
	{
		sImageURL = '/images/catalogue/no_image.png';
	}
	document.getElementById('moreInfo').href=sUrl;
	document.getElementById('moreInfo').innerHTML="<img border='0' src='/images/catalogue/more_info.png'> View more details on this product..";
	document.getElementById('imageHolder').src=sImageURL;
}