\n'); } var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; function music_DoFSCommand(command, args) { var musicObj = isInternetExplorer ? document.all.music : document.music; if (command == "music") ajax("set_music.php?music="+args); } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('\n'); } function get(obj) { return document.getElementById(obj); } function GoTo(id) { document.location = 'empresa.php?p='+id+'&menu=2'; } function imagemSemana(img, des) { iw = Math.abs(parseInt((window.screen.availWidth/2)-800)); ih = Math.abs(parseInt((window.screen.availHeight/2)-600)); window.open('img/imagem.php?img='+img+'&des='+des, '_blank', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=600,top='+ih+',left='+iw+'') } function show_menu() { get('sub_menu').style.display = ''; get('hide_menu1').style.display = ''; get('hide_menu2').style.display = ''; get('hide_menu3').style.display = ''; } function hide_menu() { get('sub_menu').style.display = 'none'; get('hide_menu1').style.display = 'none'; get('hide_menu2').style.display = 'none'; get('hide_menu3').style.display = 'none'; } function show_menu_maquetes() { get('sub_menu2').style.display = ''; get('hide_menu4').style.display = ''; get('hide_menu5').style.display = ''; get('hide_menu6').style.display = ''; } function hide_menu_maquetes() { get('sub_menu2').style.display = 'none'; get('hide_menu4').style.display = 'none'; get('hide_menu5').style.display = 'none'; get('hide_menu6').style.display = 'none'; } var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; // Handle all the FSCommand messages in a Flash movie. function menu_DoFSCommand(command, args) { var menuObj = isInternetExplorer ? document.all.menu : document.menu; if ((command == "menu")&&(args == "1")) show_menu(); else if ((command == "menu")&&(args == "2")) hide_menu(); else if ((command == "maquetes")&&(args == "1")) show_menu_maquetes(); else if ((command == "maquetes")&&(args == "2")) hide_menu_maquetes(); } // Hook for Internet Explorer. if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('\n'); } var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; function bola_DoFSCommand(command, args) { var bolaObj = isInternetExplorer ? document.all.bola : document.bola; var tipo = Array("","2","7","5","11","10","9"); if (command == "open") { document.location = 'resultado.php?menu=3&pagina=1&cd_classificacao='+tipo[args]; } } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('\n'); } function f_foto(foto) { switch(foto.name) { case "foto_1": // document.getElementById('foto_1').removeAttribute('class'); // IE document.getElementById('foto_1').setAttribute('className','cfoto_1_toda'); document.getElementById('foto_2').setAttribute('className','cfoto_2'); document.getElementById('foto_3').setAttribute('className','cfoto_3'); // Firefox document.getElementById('foto_1').setAttribute('class','cfoto_1_toda'); document.getElementById('foto_2').setAttribute('class','cfoto_2'); document.getElementById('foto_3').setAttribute('class','cfoto_3'); break; case "foto_2": // IE document.getElementById('foto_1').setAttribute('className','cfoto_1'); document.getElementById('foto_2').setAttribute('className','cfoto_2_toda'); document.getElementById('foto_3').setAttribute('className','cfoto_3'); // Firefox document.getElementById('foto_1').setAttribute('class','cfoto_1'); document.getElementById('foto_2').setAttribute('class','cfoto_2_toda'); document.getElementById('foto_3').setAttribute('class','cfoto_3'); break; case "foto_3": // IE document.getElementById('foto_1').setAttribute('className','cfoto_1'); document.getElementById('foto_2').setAttribute('className','cfoto_2'); document.getElementById('foto_3').setAttribute('className','cfoto_3_toda'); // Firefox document.getElementById('foto_1').setAttribute('class','cfoto_1'); document.getElementById('foto_2').setAttribute('class','cfoto_2'); document.getElementById('foto_3').setAttribute('class','cfoto_3_toda'); break; default: // IE document.getElementById('foto_1').setAttribute('className','cfoto_1'); document.getElementById('foto_2').setAttribute('className','cfoto_2'); document.getElementById('foto_3').setAttribute('className','cfoto_3'); // Firefox document.getElementById('foto_1').setAttribute('class','cfoto_1'); document.getElementById('foto_2').setAttribute('class','cfoto_2'); document.getElementById('foto_3').setAttribute('class','cfoto_3'); } } function f_foto_rec () { // IE document.getElementById('foto_1').setAttribute('className','cfoto_1'); document.getElementById('foto_2').setAttribute('className','cfoto_2'); document.getElementById('foto_3').setAttribute('className','cfoto_3'); // Firefox document.getElementById('foto_1').setAttribute('class','cfoto_1'); document.getElementById('foto_2').setAttribute('class','cfoto_2'); document.getElementById('foto_3').setAttribute('class','cfoto_3'); } function f_foto_tod (obj) { obj.setAttribute('className','cfoto_toda'); obj.setAttribute('class','cfoto_toda'); } //===================================== AJAX FUNCTIONS =====================================// var req; function ajax(url) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { req = null; } } if (!req && typeof XMLHttpRequest != "undefined") { req = new XMLHttpRequest(); } if (req != null) { req.onreadystatechange = ajax_receive; req.open("GET", url, true); req.send(null); } } function ajax_receive() { if (req) { if (req.readyState == 4 && req.status == 200) { window.eval(req.responseText); } } } var req2; function ajax2(url) { try { req2 = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req2 = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { req2 = null; } } if (!req2 && typeof XMLHttpRequest != "undefined") { req2 = new XMLHttpRequest(); } if (req2 != null) { req2.onreadystatechange = ajax_receive2; req2.open("GET", url, true); req2.send(null); } } function ajax_receive2() { if (req2) { if (req2.readyState == 4 && req2.status == 200) { window.eval(req2.responseText); } } } function ajax_update_time(id) { url = "inc/php/time_update.inc.php?id="+id; ajax2(url); } function ajax_set_resolucao() { src_width = screen.width; src_height = screen.height; url = "inc/php/resolucao.inc.php?w="+src_width+"&h="+src_height; ajax(url); } //==================================END AJAX FUNCTIONS =====================================// function window_onscroll() { var el = get('div_copy'); if (el) { var topo = 0; if (document.all) topo = document.body.scrollTop; else topo = window.pageYOffset; el.style.top = document.body.clientHeight-60+topo; el.style.left = document.body.clientWidth-225; } } if (document.all) window.onscroll = window_onscroll; else setInterval ('window_onscroll()', 1); //-->

|

