function initHeight()
{
	var wrapper = document.getElementById('wrapper');
	if(wrapper)
	{
		var h = document.documentElement.scrollHeight;
		wrapper.style.minHeight = h  + "px";
		if (typeof document.body.style.maxHeight == 'undefined')
		{
			wrapper.style.height = h + "px";
		}
	}
}

if (window.addEventListener)
{
	window.addEventListener("resize", initHeight, false);
	window.addEventListener("load", initHeight, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onresize", initHeight);
	window.attachEvent("onload", initHeight);
}


function initHover(){
	var _item = document.getElementsByTagName("input");
	
	if (_item) {
		for (var i = 0; i < _item.length; i++) {
			if (_item[i].className.indexOf('hover') != -1) {
				
				_item[i].onmouseover = function(){
					this.src=this.src.replace(".gif", "-hover.gif");
				}
				_item[i].onmouseout = function(){
					this.src=this.src.replace("-hover.gif", ".gif");
				}
			}
		}
	}
}
if (window.addEventListener) window.addEventListener("load", initHover, false);
else if (window.attachEvent) window.attachEvent("onload", initHover);