var win = null;
function NewWindow(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}
function GerarSWF($arquivo,$altura,$largura,$id,$variavel){
 
	document.writeln('<object type="application/x-shockwave-flash" data= "' + $arquivo + '" width="' + $largura + '" height="' + $altura + '" id="' + $id + '" name="' + $id + '">');
	document.writeln('<param name="movie" value="' + $arquivo + '" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<param name="menu" value="false" />');
  	document.writeln('</object>');
	
}
function GerarSWF2($arquivo,$altura,$largura,$id,$variavel){
 
	document.writeln('<object type="application/x-shockwave-flash" data= "' + $arquivo + '" width="' + $largura + '" height="' + $altura + '" id="' + $id + '" name="' + $id + '">');
	document.writeln('<param name="movie" value="' + $arquivo + '" />');
		document.writeln('<param name="wmode" value="opaque" />');
  	document.writeln('</object>');
	
}
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
