function showImage()
{
this.style.position = 'relative';
this.style.zIndex = '9999';
this.style.left = '-' + (this.oldWidth - parseInt(this.style.width)) + 'px';
this.newWidth = this.style.width;
this.style.width = this.oldWidth + 'px';

}

function hideImage()
{
this.style.width = this.newWidth;
this.style.position = '';
}

function setLeft()
{
var Left = document.getElementById("leftul")
if (Left)
   {
   Left.style.height = (document.body.clientHeight - 360) + 'px';
   }
}

function resizeImages()
{
var curWidth = document.body.clientWidth - document.getElementById("left").clientWidth;
for (i in document.images)
	{
	var d = document.images[i];
	if (d.src && d.clientWidth > curWidth)
		{
		d.oldWidth = d.clientWidth;
		d.style.backgroundImage = 'url('+d.src+')';
		d.style.backgroundRepeat = 'no-repeat';
		d.style.width = (curWidth - 60)+'px';
		d.style.height = d.clientHeight + 'px';
		d.src = '/i/spacer.gif';
		d.title = 'Over your mouse to see full size';
		d.onmouseover = showImage;
		d.onmouseout = hideImage;
		}
	}
setLeft();
window.onresize = setLeft;
}

 //-------------------------------------
function GetCookie(name)
{
var cook = document.cookie.split("; ");
for (c=0; c<cook.length; c++)
    {
    var prts = cook[c].split("=");
    if (prts[0] == name)
			{
			return prts[1];
			}
    }
return "";
}

function SetCookie(name, value, expired, path, secure)
{
var expiry = new Date();
path = path || "/";
expiry.setTime(expiry.getTime() + expired*24*60*60*1000);
document.cookie=name+'='+value+'; path='+path+'; expires=' + expiry.toGMTString();

}


window.onload = resizeImages;
window.onresize = resizeImages;
