// JavaScript Document
function autobrowserheight (content,footer) {
	var y;
	var wrapper 	 = document.getElementById(content);
	var footerHeight = document.getElementById(footer).clientHeight;
	if (self.innerHeight) // all except Explorer
	{
		y = self.innerHeight;
		wrapper.style.height = y-footerHeight+"px";
		if (y-footerHeight > y) {
		wrapper.style.height = "auto";
		}
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		y = document.documentElement.clientHeight;
		wrapper.style.height = y-footerHeight+"px";
		if (y-footerHeight > y) {
		wrapper.style.height = "auto";
		}
	}
	else if (document.body) // other Explorers
	{
		y = document.body.clientHeight;
		wrapper.style.height = y-footerHeight+"px";
		if (y-footerHeight > y) {
		wrapper.style.height = "auto";
		}
	}
}

/*addEvent(window, 'load', autobrowserheight, true);
addEvent(window, 'resize', autobrowserheight, false);
*/
