$(document).ready(function() {
    $('input[title!=""]').hint();

$("#containerMenu ul.menu").superfish({
            pathClass:   'current',
            autoArrows:  false,
            dropShadows: false,
            hoverClass:  'current'
});


});

function addEventLoad(fn) {
	if (window.attachEvent) {
		window.attachEvent("onload", fn);
	} else {
		window.addEventListener("load", fn, false);
	}
}
MyTimer = null;
MyTimer2 = null;
function pos1(s){if(document.layers){return document.layers[s];}else if(document.all && !document.getElementById) {return document.all[s];}else {return document.getElementById(s);}}
function pos2(s,x,y){_o = pos1(s);_o.style.width=x+'px';_o.style.height=y+'px';}
function abreRadio(id) {
	radioPopUpWindow = window.open('http://www.tudonahora.com.br/radio.php?id='+id,'radio','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=258')
}
function Abre(url, width, height)
{
window.open(url,"_blank","resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height)
}
function abreAovivo() {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open('/tvaovivo', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=296,left = 469,top = 195');");
}

function abreFutebolaovivo() {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open('/futebolaovivo', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=296,left = 469,top = 195');");
}

function fecharBannerFlutuante() {
    var divs    = document.getElementsByTagName("div");
    var divsnum = divs.length;
    for (i = 0; i < divsnum; i++) {
        var nome = divs[i].id.toString();
        if (nome.indexOf("MAX_") != -1) {
            var div = document.getElementById(nome);
            div.style.display = 'none';
            break;
           }
    }
}
