
	function showInsidePicture(id)
	{
		  var imgInsidepicture = document.getElementById('insidepicture');
		  if(!imgInsidepicture)
		  {
		      var imgInsidepicture = document.createElement("img");
			  imgInsidepicture.id = "insidepicture";
			  var nodeContainer = document.getElementById("productinfo-container");

			  while(nodeContainer.firstChild)nodeContainer.removeChild(nodeContainer.firstChild);

			  nodeContainer.appendChild(imgInsidepicture);
		  }
		  imgInsidepicture.src = '/resizedpicture_w.php?ID='+id+'&maxwidth=465';
	}

	function showPicture(content, width, height)
	{
		 window.open(content, 'Pilt', 'location=no,menubar=no,status=no,titlebar=no,toolbar=no,width='+width+',height='+height+'');
	}
	var OS,browser,version,total,thestring;		

	function doOnLoad()
	{
		resizeWindow();
	}


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