function Abrir(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function MM_effectHighlight(targetElement, duration, startColor, endColor, restoreColor, toggle)
{
	Spry.Effect.DoHighlight(targetElement, {duration: duration, from: startColor, to: endColor, restoreColor: restoreColor, toggle: toggle});
}

var segundos = 15;
function contador() {
document.getElementById('tempo').innerHTML=segundos;
if(segundos == 0) {
document.getElementById('link').style.display="block";
document.getElementById('msg').style.display="none";
}
if (segundos != 0){
segundos = segundos-1;
setTimeout("contador()", 1000);
}
}

var i = 1,timer;
window.onload=function() {
timer = setInterval('blink()', 1000);
}
function blink() {
if (i<200) {
if (i%2 == 0) {
document.getElementById('attention').style.backgroundColor = '#FF0033';
} else {
document.getElementById('attention').style.backgroundColor = '#FFFF00';
}
 } else {
document.getElementById('attention').style.backgroundColor = '#FF0033';
clearInterval(timer);
}
i++;
}

