function popUp()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}

function hidePopup()
{
 document.getElementById('popup').style.display="none"
 for(var i=0; i<document.images.length; i++){
		var img = document.images[i];
		var imgName = img.src.toUpperCase();
		if (imgName.substring(imgName.length-3, imgName.length) == "GIF"){
			//img.src = img.src;
		}
	}	
}

function showPopupFlash(flashName, flashWidth, flashHeight, tempo)
{
	l = screen.width;
	a = screen.height;

	//document.write("<div id=\"popup\" style=\"	position:absolute; float:left;	padding:0px; top:"+top+"; left:"+left+"; width:"+flashWidth+"px; height:"+flashHeight+"px; margin: -"+flashHeight/2+"px 0px 0px -"+flashWidth/2+"px; z-index:100;");
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\""+flashWidth+"\" height=\""+flashHeight+"\">");
	document.write("<param name=\"movie\" value=\"" + flashName + "\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<embed src=\"" + flashName + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+flashWidth+"px\" height=\""+flashHeight+"\" wmode=\"transparent\"></embed>");
	document.write("</object>");
	//document.write("</div>");

	//timer do popup
    TimerID = setInterval("hidePopup()", tempo);
}

function alerta(){
	alert('ALERTA');
}