function carregaFlash(caminho,largura,altura)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+largura+'" height="'+altura+'">');
document.write('<param name="movie" value="'+caminho+'">');
document.write('<param name="quality" value="high">'); 
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+caminho+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed>');
document.write('</object>');
}
function stopErrors() {
 return true;
}
//window.onerror = stopErrors;

function show(object) { 
if (document.all) { document.all[object].style.visibility = "visible";} 
if(document.layers) { document.layers[object].visibility = "show" ;} 
if(document.getElementById) {document.getElementById(object).style.visibility='visible';} 
} 

function hide(object) { 
if (document.all) { document.all[object].style.visibility = "hidden"; } 
if(document.layers){ document.layers[object].visibility = "hide";} 
if(document.getElementById) {document.getElementById(object).style.visibility='hidden';} 
var URL = "black.html";
var bname = navigator.appName;
	if (bname=="Netscape") {
		iframesubsub.contentWindow.location.replace(URL);
	} else {
		iframesubsub.location.replace(URL);
	}
}
function refreshiframe(nomeimagem,w,h) 
{
//reposicionar iframe
	var IE = document.all?true:false
	if (!IE) document.captureEvents(Event.MOUSEMOVE)
	var tempX = 0
	var tempY = 0
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
    //****************************tempY = document.body.scrollTop+10
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
    //******************************tempY = 100
  }
//redimensionar iframe
obj = document.getElementById?document.getElementById('imagem').style:
      document.all?document.all['imagem'].style:
      document.layers?document.layers['imagem']:null;
obj.height=h;
obj.width=w;
obj.left=tempX;
//*****************obj.left=100;
obj.top=tempY;

var URL = "imagem.php?file="+nomeimagem;
var bname = navigator.appName;
	if (bname=="Netscape") {
		iframesubsub.contentWindow.location.replace(URL);
	} else {
		iframesubsub.location.replace(URL);
	}
	
}