// Msg STATUS no Rodapé
window.status = 'NONE';

//*******************************************************************
//########################################################## INI SIZE
//*******************************************************************
var UserwinH = 526;
var FlashH;
var NavegadorH;

function UserHSize(){	
	if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		 	UserwinH = window.innerHeight;
		 }

		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		 	UserwinH = document.body.offsetHeight-4;
		 }
		 NavegadorH = UserwinH;
	}

	if(UserwinH < 526){	
		if(FlashH == undefined){
			UserwinH = 526;
		}else{
			UserwinH = FlashH;
		}
	}
	else if(FlashH > UserwinH){
		UserwinH = FlashH;
	}	
}
	

//*******************************************************************
//##################################################### WINDOW RESIZE
//*******************************************************************	
function UserH_ReSize(divid){
	UserHSize();
	document.getElementById(divid).style.height = UserwinH+"px";
}


//*******************************************************************
//###################################################### FLASH RESIZE
//*******************************************************************
function setFlashHeight(divid, newH){	
	if(newH > NavegadorH){
		document.getElementById(divid).style.height = newH+"px";
	}else{
		document.getElementById(divid).style.height = NavegadorH+"px";
	}	
	FlashH = newH;
}

function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if( document.getElementById ){
		if(opera == -1) return true;
		else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}

