	  var coverDispWidth=600;
		var coverDispHeight=600; 
	 
	  function showHomeDisp()
		{
			var res=setCoverSize();
			if (res)
			{
				var image=$('#homedisp img').first();
				var link=$('#homedisp a').first();
				var closediv=$('#label-close');
				var replacement='<a href="'+link.attr('href')+'" onFocus="blur()" onClick="hideHomeDisp()" target="_blank"><img src="'+image.attr('src')+'" border="0"></a><br><a href="javascript: hideHomeDisp()"><b>&laquo;&nbsp;'+closediv.attr('title')+'&nbsp;&raquo;</b></a>';
				coverDispWidth=parseInt(image.css('width'), 10);
				coverDispHeight=parseInt(image.css('height'), 10)+20;
			  var ww=getWinWidth();
			  var wh=getWinHeight();
			  var top=Math.round((wh-coverDispHeight)/2);
			  var left=Math.round((ww-coverDispWidth)/2);
				$('#homedisp').html(replacement);
				$('#homecover').css('visibility', 'visible');
				$('#homedisp').css({width: coverDispWidth, height: coverDispHeight, top: top+getScrollTop(), left: left+getScrollLeft(), display: 'none', visibility: 'visible'});
				$('#homedisp').show();
			}
		}
		
		function hideHomeDisp()
		{
  		$('#homecover').css('visibility', 'hidden');
			$('#homedisp').css('visibility', 'hidden');
		}
	 
		function setCoverSize()
		{
			if (document.getElementById('homecover')&&document.getElementById('homedisp')&&$('#homedisp img').length>0)
			{
				var dw=getDocWidth();
				var ww=getWinWidth();
				var awidth=(document.all && ww<dw)?dw-20:dw;
				var dh=getDocHeight();
				var wh=getWinHeight();
				var aheight=(document.all)?dh-4:dh;
				$('#homecover').css({width: awidth, height: aheight});
				return true;
			}
			else return false;
		}

		function getScrollTop()
		{
			if(typeof pageYOffset!= 'undefined')
			{
				//most browsers
				return pageYOffset;
			}
			else
			{
				var B= document.body; //IE 'quirks'
				var D= document.documentElement; //IE with doctype
				D= (D.clientHeight)? D: B;
				return D.scrollTop;
			}
		}

		function getScrollLeft()
		{
			if(typeof pageXOffset!= 'undefined')
			{
				//most browsers
				return pageXOffset;
			}
			else
			{
				var B= document.body; //IE 'quirks'
				var D= document.documentElement; //IE with doctype
				D= (D.clientWidth)? D: B;
				return D.scrollLeft;
			}
		}


		function getDocHeight()
		{
		  var D = document;
			return Math.max(
				Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
				Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
				Math.max(D.body.clientHeight, D.documentElement.clientHeight)
			);
		}

		function getDocWidth()
		{
		  var D = document;
			return Math.max(
				Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
				Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
				Math.max(D.body.clientWidth, D.documentElement.clientWidth)
			);
		}

		function getWinHeight()
		{
			var h=0;
			if (window.document.innerHeight>h) h=window.document.innerHeight;
			if (window.document.documentElement.clientHeight>h) h=window.document.documentElement.clientHeight;
			if (window.document.body.clientHeight>h) h=window.document.body.clientHeight;
			return h;
		}
		
		function getWinWidth()
		{
			var w=0;
			if (window.document.innerWidth>w) w=window.document.innerWidth;
			if (window.document.documentElement.clientWidth>w) w=window.document.documentElement.clientWidth;
			if (window.document.body.clientWidth>w) w=window.document.body.clientWidth;
			return w;
 	  }

    function showSplash()
    {
			showHomeDisp();
    }


