function centraliza(largura,altura){
	window.moveTo((window.screen.width-largura)/2,(window.screen.height-altura)/2);
}
function abreJanela(arquivo,nome,barra,largura,altura) {
	window.open(arquivo,nome,"resizable=no,toolbar=no,status=no,menubar=no,scrollbars="+barra+",width="+largura+",height="+altura);
}
function redimenciona(){
	var i=0;
	function resize() {
		if (navigator.appName == 'Netscape') i=40;
		if (document.images[0]) window.resizeTo(document.images[0].width +50, document.images[0].height+80-i);
		if (window.moveTo((window.screen.width-document.images[0].width)/2,(window.screen.height-document.images[0].height)/2));
	}
}
function estica(param){
	var dv = document.getElementById("site");
	if (param>100){
		dv.style.height = param+"px";
	} else {
		dv.style.height = param+"%";
	}	
}
 
function montaSWFvideo(arquivo){
	document.write('<object width="425" height="350">');
    document.write('<param name="movie" value="http://www.youtube.com/v/' + arquivo + '"></param>');
    document.write('<param name="wmode" value="transparent"></param>');
    document.write('<embed src="http://www.youtube.com/v/' + arquivo + '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>');
    document.write('</object>');
}