/*	swffit v1.0 (03/25/2008) <http://swffit.millermedeiros.com/>
	Copyright (c) 2008 Miller Medeiros <http://www.millermedeiros.com/>
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

function f_clientWidth() { return f_filterResults ( window.innerWidth ? window.innerWidth : 0, document.documentElement ? document.documentElement.clientWidth : 0, document.body ? document.body.clientWidth : 0 ); }

function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}

function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}

function moveScrollBar(){
var winWidth = f_clientWidth();
var winHeight = f_clientHeight(); 
window.scrollTo(winWidth*100000,winHeight*100000); 
}


var NS=(navigator.appName=='Netscape')?true:false;var ft;var mw;var mh;var xw;var xh;var xc;function swffit(t,w,h,_w,_h,c){if(t&&w&&h){ft=t;mw=w;mh=h;xw=_w;xh=_h;xc=(c||c==null)?true:false;if(swfobject.isDomLoaded){startFit()}else{swfobject.addDomLoadEvent(startFit)}}}function gEBI(x){return x}function startFit(){document.getElementsByTagName('html')[0].style.height='100%';document.body.style.margin='0';document.body.style.padding='0';document.body.style.height='100%';if(swfobject.getObjectById(ft)){ft=swfobject.getObjectById(ft)}else{ft=(NS)?document.getElementById(ft).getElementsByTagName('object')[0]:document.getElementById(ft)}gEBI(ft).style.position='absolute';window.onresize=fit;fit()}
function fit(){
iw=(NS)?window.innerWidth:document.body.clientWidth;
ih=(NS)?window.innerHeight:document.body.clientHeight;
if(iw>xw&&xw){gEBI(ft).style.width=xw+'px';
if(xc){gEBI(ft).style.left='50%';
gEBI(ft).style.marginLeft=-(xw/2)+'px'}}else{if(iw>mw&&(iw<xw||!xw)){gEBI(ft).style.width='100%'}else{gEBI(ft).style.width=mw+'px'}if(xc){gEBI(ft).style.left='auto';gEBI(ft).style.marginLeft='0'}}if(ih>xh&&xh){gEBI(ft).style.height=xh+'px';if(xc){gEBI(ft).style.top='50%';gEBI(ft).style.marginTop=-(xh/2)+'px'}}else{if(ih>mh&&(ih<xh||!xh)){gEBI(ft).style.height='100%'}else{gEBI(ft).style.height=mh+'px'}if(xc){gEBI(ft).style.top='auto';gEBI(ft).style.marginTop='0';moveScrollBar()
}}};
