function flash(movie, flashvars, width, height, retorna){
	swfid = movie.split("/");
	swfid = swfid[swfid.length-1].replace(".swf", "");
	strSWF= '<object id="' + swfid + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '">'+
			'<param name="movie" value="' + movie + '">'+
			'<param name="quality" value="high">'+
			'<param name="wmode" value="transparent">'+
			'<param name="FlashVars" value="' + flashvars + '">'+
			'<embed name="' + swfid + '" src="' + movie + '" width="' + width + '" height="' + height + '" flashvars="' + flashvars + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>'+
			'</object>';
	if(!retorna) this.document.write(strSWF);
	else return(strSWF);
}

function TheFlash(moviename) {
    if(document.all) return document.all[moviename];
	else return document.embeds[moviename];
}

//var total = 37;
var total = 24;
var navegacao = "";

function z(x){ return x<10?("0"+x):x; }

p = self.location.href;
p = parseFloat(p.substring(p.lastIndexOf("/") + 1, p.lastIndexOf(".")));

navegacao += "<div align=center><br>";
navegacao += p>1? "<a href=\"" + z(p-1) + ".htm\"><img src=imagens/vem.gif border=0 align=absmiddle></a>&nbsp;" : "";
navegacao += p!=0? "<a href=\"index.htm\"><img src=imagens/indice.gif border=0 align=absmiddle></a>&nbsp;" : "";
navegacao += p<total? "<a href=\"" + z(p+1) + ".htm\"><img src=imagens/vai.gif border=0 align=absmiddle></a>" : "";
navegacao += "<br><br></div>";

function onKeyPress(evt) {
	var oEvent = (window.event) ? window.event : evt;

	var nKeyCode = oEvent.keyCode ? oEvent.keyCode :
	oEvent.which ? oEvent.which : 
	void 0;

	if(oEvent.charCode == null || oEvent.charCode == 0){ 
		if(p >= 1 && nKeyCode==37) location = z(p-1) + ".htm";
		if(p < total && nKeyCode==39) location = z(p+1) + ".htm";
	}
	
	return true;
}

if(document.all) document.onkeydown = onKeyPress;
else if(document.layers || document.getElementById) document.onkeypress = onKeyPress;var total = 24;
var navegacao = "";

function z(x){ return x<10?("0"+x):x; }

p = self.location.href;
p = parseFloat(p.substring(p.lastIndexOf("/") + 1, p.lastIndexOf(".")));

navegacao += "<div align=center><br>";
navegacao += p>1? "<a href=\"" + z(p-1) + ".htm\"><img src=imagens/vem.gif border=0 align=absmiddle></a>&nbsp;" : "";
navegacao += p!=0? "<a href=\"index.htm\"><img src=imagens/indice.gif border=0 align=absmiddle></a>&nbsp;" : "";
navegacao += p<total? "<a href=\"" + z(p+1) + ".htm\"><img src=imagens/vai.gif border=0 align=absmiddle></a>" : "";
navegacao += "<br><br></div>";

function onKeyPress(evt) {
	var oEvent = (window.event) ? window.event : evt;

	var nKeyCode = oEvent.keyCode ? oEvent.keyCode :
	oEvent.which ? oEvent.which : 
	void 0;

	if(oEvent.charCode == null || oEvent.charCode == 0){ 
		//if(p >= 1 && nKeyCode==37) location = z(p-1) + ".htm";
		//if(p < total && nKeyCode==39) location = z(p+1) + ".htm";
		if(p >= 1 && nKeyCode==37) location = z(p-1) + ".htm";
		if(p < total && nKeyCode==39) location = z(p+1) + ".htm";
	}
	
	return true;
}

if(document.all) document.onkeydown = onKeyPress;
else if(document.layers || document.getElementById) document.onkeypress = onKeyPress;
