// JavaScript Document
function insereFlash(fla,wid,hei) {
	
	var navegador = navigator.appName.toLowerCase();
	var mozilla = navegador.indexOf("netscape")+1;
	
	if(mozilla) {
		var flash='<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="722" height="185">';
		flash+='<param name="movie" value="'+fla+'" />';
		flash+='<param name="quality" value="high" />';
		flash+='<param name="wmode" value="opaque" />';
		flash+='<param name="swfversion" value="9.0.45.0" />';
		flash+='<param name="expressinstall" value="Scripts/expressInstall.swf" />';
		flash+='<object type="application/x-shockwave-flash" data="'+fla+'" width="'+wid+'" height="'+hei+'">';
		flash+='<param name="quality" value="high" />';
		flash+='<param name="wmode" value="opaque" />';
		flash+='<param name="swfversion" value="9.0.45.0" />';
		flash+='<param name="expressinstall" value="Scripts/expressInstall.swf" />';
		flash+='<div>';
		flash+='<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>';
		flash+='<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>';
		flash+='</div>';
		flash+='</object>';
		flash+='</object>';
	} else {
		var flash='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+wid+'" height="'+hei+'">';
        flash+='<param name="movie" value="'+fla+'" />';
        flash+='<param name="quality" value="high" />';
        flash+='<param name="wmode" value="transparent" />';
        flash+='<embed src="'+fla+'" width="'+wid+'" height="'+hei+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>';
   		flash+='</object>';
	}
	
	document.write(flash);
}
function redimen() {
	var ifram = document.getElementById('meio');
	var altura = ifram.contentWindow.document.body.scrollHeight;
	if(altura > 10)	ifram.style.height = altura+'px';
	else ifram.style.height = 100;
}
function pop(pagina,nome,larg,altu,scrollbar) {
  PosIniX=((screen.availWidth/2)-(larg/2));
  PosIniY=((screen.availHeight/2)-(altu/2));
  window.open(pagina,nome,'toolbar=no,location=no,directories=no,menubar=no,scrollbars='+scrollbar+',resizable=no,top='+PosIniY+',left='+PosIniX+',width='+larg+',height='+altu+'');
  window.refresh;
}
function nav() {
	nav=navigator.appName.toLowerCase();
	moz=nav.indexOf('netscape')+1;
	if(moz) return 'moz';
	else return 'ie';
}

