	function imgfit(what,actWidth)
	{
		var winW = -1;
		what='img';
		if( typeof( window.innerWidth ) == 'number' ) {
		  winW = window.innerWidth;
		} else if( document.documentElement && ( document.documentElement.offsetWidth && document.documentElement.offsetHeight ) ) {
		  winW = document.documentElement.offsetWidth;
		} else if( document.body && ( document.body.offsetWidth && document.body.offsetHeight ) ) {
		  winW = document.body.offsetWidth;
		}
		fitW=winW-400;

		what=document.getElementById(what);
		width=0;
		if(actWidth > 0)
			width=actWidth;
		else
			width=what.width;

		if(width>fitW||saveWidth>fitW)
		{
			if (width==fitW)
				what.width=saveWidth;
			else
			{
				saveWidth=width;
				what.style.cursor="pointer";
				what.width=fitW;
			}
		}
	}

