Autor: gooler | Publicado: 2012-05-18T05:26:00-07:00


var _gaq=[];_gaq.push(['_setAccount','UA-19955856-1']);_gaq.push(['_setSiteSpeedSampleRate', 50]);_gaq.push(['_setCustomVar',1,'from','v9',1]);_gaq.push(['_trackPageview','/']);

body,form,ul,ol{margin:0;padding:0;font-size:16px;}li{list-style:none;}body,input{font-family:arial,sans-serif;}#sug li{padding-left:5px;line-height:26px;height:26px;cursor:default;}a{text-decoration:none;color:#333;}a:hover{text-decoration:underline;}#wsc a,#location,#location a,.group .title a{color:#155091;}#top-wrapper{border-bottom:1px solid #e7e7e7; background-color:#fbfbfb;}#top{height:29px;line-height:29px;margin:0 10px;font-size:14px;    padding:0 160px 0 10px;    position:relative;background-color:#fbfbfb;overflow:visible;}#search-box{height:140px;margin:0 auto;    margin-top:90px;    margin-bottom:10px;width:868px;position:relative;}.glogo{left:71px;    top:20px;position:absolute;}#searchTabs{position:absolute;width:570px;left:90px;    top:0px;font-size:14px;}#searchTabs span{font-weight:bold;}#searchTabs a{    color:#155091;}#searchTabs li{float:left;width:20%;text-align:center;}#search-box form{position:absolute;left:90px;    top:22px;width:700px;height:36px;}#engine-box{position: absolute;top:40px;left:20px;font-size:13px;color:#666;}#engine-box label{padding-right:10px;}#search-box form input.q{position:absolute;left:0px;top:0px;width:570px;padding: 3px 8px 2px 6px;height:25px;line-height:25px;font-size:18px;border:1px solid #D9D9D9;outline:none;}#search-box form input.btn{position:absolute;top:0px;left:600px;min-width:97px;width:97px\9;height:32px;cursor:pointer;font-size:16px;font-weight:bold;    color:#FFF;    background-color:#4d90fe;    background-image:-webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#4787ed));    background-image:-webkit-linear-gradient(top,#4d90fe,#4787ed);    background-image:-moz-linear-gradient(top,#4d90fe,#4787ed);    background-image:-ms-linear-gradient(top,#4d90fe,#4787ed);    background-image:-o-linear-gradient(top,#4d90fe,#4787ed);    background-image:linear-gradient(top,#4d90fe,#4787ed);    filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#4d90fe',EndColorStr='#4787ed');    border:1px solid #3079ed;    -moz-border-radius:2px;    -webkit-border-radius:2px;    border-radius:2px;    -moz-user-select:none;    -webkit-user-select:none;    color:#fff;}#search-box form input.btn:hover{    border:1px solid #2f5bb7;    background-color:#357ae8;    background-image:-webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#357ae8));    background-image:-webkit-linear-gradient(top,#4d90fe,#357ae8);    background-image:-moz-linear-gradient(top,#4d90fe,#357ae8);    background-image:-ms-linear-gradient(top,#4d90fe,#357ae8);    background-image:-o-linear-gradient(top,#4d90fe,#357ae8);    background-image:linear-gradient(top,#4d90fe,#357ae8);    -webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);    -moz-box-shadow:0 1px 1px rgba(0,0,0,.1);    box-shadow:0 1px 1px rgba(0,0,0,.1);}#sug{border-color:#A2BFF0 #558BE3 #558BE3 #A2BFF0;border-style:solid;border-width:1px;background-color:#fff;    color: #000;width:584px;position:absolute;top:31px;left:0px;z-index:1000;}table a.hilight,.group a.hilight{color:#c00;}.show{display:block;}.hidden{display:none;}#ftby{height:34px;margin-top:27px;margin-bottom:0;width:100%;}.footer{border-top:1px solid #EBEBEB;}.footer a{padding:0px 10px 0px 10px;color:#666;}.footer a:active{color:#dd4b39;}

#news_box{float:right;overflow:hidden;height:20px;width:360px;margin-top:4px;padding:1px;}#news_box .news_item{height:20px;line-height:20px;background:url(http://v9.eleximg.com/v9/img/broadcasting.gif) 0px 3px no-repeat;padding-left:18px;white-space:nowrap;text-overflow:ellipsis;}#news_box .news_item a{color:#3e3e3e; }#news_box .news_item a:hover{color:#3e3e3e;}.main{width:870px;margin:auto;position:relative;z-Index:88;}.tab{float:left;border-left:1px solid #e7e7e7;width:120px;text-align:center;}#header{width:868px;height:70px;margin:0 auto;position:relative;    z-index:1001;}#my-favor{margin:0 auto;width:868px;padding:5px 0;}#my-favor table{width:900px;border:none;border-collapse:collapse;text-align:left;}#my-favor table tr.lu td{padding-top:0.5em;}#my-favor table tr.lb td{padding-bottom:0.4em;    padding-bottom:10px;}#my-favor table tr td{height:38px;line-height:38px;padding-left:15px;width:20%;}#my-favor table img{position:relative;}#my-favor em{width:30px;float:left;height:30px;margin:3px 3px 0 0;background-repeat:no-repeat;text-align:center;}.group{overflow:hidden;width:100%;padding:2px 0 6px 0;line-height:30px;    margin-top:10px;}.last{border-bottom:0px solid #E1E1E1;}.group .cat{overflow:hidden;float:left;width:18%;padding-left:17px;}#header .logo{position:absolute;left:16px;top:10px;border:none;}#header .adv{position:absolute;width:468px;left:398px;height:60px;top:10px;}#top-adv-wrapper iframe{    margin:0px;    padding:0px;    height:60px;    width:100%;    border:0px;}#weather{position:absolute;top:10px;height:60px;width:294px;left:95px;}#winfo{position:absolute;width:250px;left:20px;font-size:14px;color:#222;    font-weight:bold;    text-align:center;    z-index:3000;}#winfo .dump{height:80px;width:100%;overflow:hidden;}#winfo table{width:100%;position:relative;top:-2px;    cursor:pointer;}#winfo td{height:18px;line-height:18px;text-align:center;    padding:0px;}#winfo td span{color:#c00;}#winfo td.icon{    width:55px;height:34px;line-height:34px;background-image:url(http://v9.eleximg.com/v9/img/weather2.png);background-repeat:no-repeat;}#winfo td.info{    width:70px;}#winfo div.time{    font-weight:bold;    color:#999;    width:70px;}.location-hover{    background-color:#FeFeFe;    text-align:left;    border:1px solid #CCC;}#location-wrapper{    position:relative;    margin:0 30px;    padding-top:42px;}#location{text-align:center;    position:relative;    height:20px;    line-height:20px;    cursor:pointer;    padding:0 10px;    -moz-user-select:none;    -webkit-user-select:none;}#location .cross{    visibility:hidden;    font-size:12px;    font-weight:normal;    width:15px;    line-height:15px;    text-align:center;    color:#FFF;    margin-top:3px;    float:right;    background-color:#CA0002;}#location-list{    display:none;    padding:0px;    margin:0px;    background-color:#FFF;    border:1px solid #EFEFEF;    position:absolute;    text-align:left;    top:21px;    left:-1px;    width:231px;    -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.3);    -moz-box-shadow:1px 1px 2px rgba(0,0,0,.3);    z-index:100;}#location-list li{    padding:0px;    margin:0px;    display:inline;}#location-list  a{    display:block;    color:#333;    padding:0 10px;    text-decoration:none;    position:relative;}#location-list li a:hover{    font-weight:bold;    background-color:#efefef;}#wsc{margin-left:4px;width:145px;font-size: 12px;}#wsc td{height:22px;line-height:22px;}#wsc span,#wsc a{font-weight:bold;}#wsc a,#location,#location a{font-size:14px;}#location span{color:#333;font-weight:bold;}.cc-wrap{    position:absolute;    right:5px;    top:0;    height:30px;    width:150px;    zoom:1;}.cc-menu{    margin:0;    padding:0;    border: 1px solid #efefef;    position:absolute;    top:30px;    width:150px;    z-index:10000;    -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.3);    -moz-box-shadow:1px 1px 2px rgba(0,0,0,.3);    display:none;background-color:#fff;}.cc-active .cc-menu{    display:block;}#cc-wrap span.cc-label{    display:block;    color:#3e3e3e;    padding: 0 10px;    text-decoration:none;    cursor:pointer;    height:30px;    line-height:30px;}#cc-wrap img{    border:0;}#cc-wrap.cc-active  span.cc-label{    color:#3e3e3e;    background-color:#FFF;}#cc-wrap a{    display:block;    padding: 0 10px;}#cc-wrap a:hover{    background-color:#EFEFEF;}

#top .post a {color:#BBB;}#top .post a:hover {color:#fff;}

String.prototype.strip = function(){return this.replace(/^\s+/, '').replace(/\s+$/, '');};var G = function(id){ return document.getElementById(id);};var v9 =(new function(){var ua = window.navigator.userAgent;this.utils = {"post":function(url,fields){G("dumpForm").method ="post";G("dumpForm").action =url;var snippet = "";for(var name in fields){snippet+="";}G("dumpForm").innerHTML = snippet;G("dumpForm").submit();},"writeCookie":function(key,val){var date = new Date();date.setTime(date.getTime() + 30 * 24 * 60 * 60 * 1000);document.cookie = key+'='+encodeURIComponent(val)+'; domain=.v9.com; path=/; expires='+date.toGMTString();},"readCookie":function(key){var value = document.cookie.match('(?:^|;)\\s*' + key + '=([^;]*)');return (value) ? decodeURIComponent(value[1]) : null;},"request":function(url,param,cb,post){var xhr = null;var query = [];try{xhr = new XMLHttpRequest();}catch(e){xhr = new ActiveXObject('MSXML2.XMLHTTP');}for(var name in param){query.push(encodeURIComponent(name)+'='+encodeURIComponent(param[name]));}if(post){xhr.open("POST",url,true);xhr.onreadystatechange = function(){if(xhr.readyState == 4 && xhr.status == 200){cb(xhr.responseText);}};xhr.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');xhr.send(query.join('&'));}else{url = url.indexOf("?") > -1 ?(url+'&'+query.join('&')):(url+'?'+query.join('&'));url += "&t=" + new Date().getTime();xhr.open("GET",url,true);xhr.onreadystatechange = function(){if(xhr.readyState == 4 && xhr.status == 200){cb(xhr.responseText);}};xhr.send(null);}}};this.event = {stopPropagation:function(e){e.stopPropagation ? e.stopPropagation() : (e.cancelBubble = true) ;},preventDefault:function(e){e.preventDefault ? e.preventDefault() : (e.returnValue = false) ;},on:function(element,eventName,handle){if(v9.isIE){element.attachEvent('on'+eventName, handle);}else{element.addEventListener(eventName, handle, false);}},un:function(element,eventName,handle){if(v9.isIE){element.detachEvent('on'+eventName, handle);}else{element.removeEventListener(eventName, handle, false);}}};this.showBox = function(right,top,width,height){G("box").style.right =(right||0)+"px";G("box").style.top =(top||0)+"px";G("box").style.width =(width||200)+"px";G("box").style.height =(height||80)+"px";if(/none/i.test(G("box").style.display)){G("box").style.display="block";var body = document.getElementsByTagName("body")[0];v9.event.on(body,"click",function(){G("box").style.display="none";v9.event.un(body,"click",arguments.callee);});}};this.post = function(path,name,message){try{window.external.AddFavorite(path,name);}catch(e){if(window.sidebar){window.sidebar.addPanel(name,path,'');}else{alert(message);}}};this.isIE = !! window.attachEvent && !window.opera;this.isIE8 = this.isIE && /msie\s*8\.\d/i.test(ua);this.isIE7 = this.isIE && /msie\s*7\.\d/i.test(ua);this.isIE6 = this.isIE && /msie\s*6\.\d/i.test(ua);this.isChrome = !! window.chrome;this.isFF = /gecko/i.test(ua) && !/webkit/i.test(ua);this.emailReg = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;});













var _CM=function(){var f,g=function(a){var b=(new Date).getTime(),c=window["__v9cm"+b]=new Image,d="",e;for(e in a)d+="&"+e+"="+a[e];c.src="http://static.v9.com/tj.gif?v="+f+"&r="+b+d;c.onload=c.onerror=function(){c=null}},e="",h=function(a,b){b=b||[];e=a.monkey||a.getAttribute("monkey")||e;a.parentNode&&"BODY"!=a.parentNode.tagName.toUpperCase()&&(b=h(a.parentNode,b));if(a.previousSibling){var c=1,d=a.previousSibling;do 1==d.nodeType&&d.nodeName==a.nodeName&&c++,d=d.previousSibling;while(d)}1==a.nodeType&&b.push(a.nodeName.toLowerCase()+(1\s*$/i.test(a.innerHTML)?encodeURIComponent(a.innerHTML):"none";if(e)b.monkey=e;g(b)});return{log:function(a,b,c){a={xp:"_"+a+"_"};a.objurl=b?encodeURIComponent(b):"none";a.title=c?encodeURIComponent(c):"none";g(a)},init:function(a,b){f=a+"_"+b}}}();

(function(){    function loadLazyImages(){        var imgs  = document.getElementsByTagName("img");        for(var i=0; i= 0 ){                var src2 = img.getAttribute('src2');                if( src2 && src2 != "#" ) img.src = src2;            }        }    }    window.v9 = window.v9 || {};    window.v9.loadLazyImages = loadLazyImages;})();(function(){    var wrap = G('cc-wrap');    var label = G('cc-label');    var list = G('cc-list');    var list_open = false;    function show(){        wrap.className = wrap.className + ' cc-active ';        list_open = true;    }    function hide(){        wrap.className = wrap.className.replace('cc-active', '');        list_open = false;    }    function reset(){        hide();    }    function scrollTop(){        window.scroll(0,0);    }    v9.event.on(label, 'click', function(e){        if(list_open) hide();        else show();        if(e.stopPropagation){            e.stopPropagation();        }else{            e.cancelBubble = true;        }        if(e.preventDefault) e.preventDefault();    });    v9.event.on(list, 'click', function(e){        var item = e.target || e.srcElement;       _gaq && _gaq.push(['_trackEvent','click_index_top', 'country', item.getAttribute('href')]);        setTimeout(function(){            window.location.href = item.getAttribute('href');        }, 50);        if(e.stopPropagation){            e.stopPropagation();        }else{            e.cancelBubble = true;        }        if(e.preventDefault) e.preventDefault();        return false;    });    v9.event.on(document.body, 'click', function(e){        reset();    });})();(function(){    var sel = G('location');    var crs = G('l-cross');    var city = G('cityname');    var list = G('location-list');    var list_open = false;    crs.style.display  = '';    function show(){        crs.innerHTML = "-";        list.style.display = "block";        list.style.zIndex = 1000;        list_open = true;    }    function hide(){        crs.innerHTML = "+";        list.style.display = "";        list_open = false;    }    function reset(){        hide();        sel.style.textAlign = "center";        crs.style.visibility = "hidden";        sel.className = "";    }    function scrollTop(){        window.scroll(0,0);    }    v9.event.on(sel, 'mouseover', function(){        sel.className = "location-hover";        crs.style.visibility = "visible";    });    v9.event.on(sel, 'mouseout', function(){        if(list_open) return;        crs.style.visibility = "hidden";        sel.className = "";    });    v9.event.on(sel, 'click', function(e){        if(list_open) hide();        else show();        if(e.stopPropagation){            e.stopPropagation();        }else{            e.cancelBubble = true;        }        if(e.preventDefault) e.preventDefault();    });    v9.event.on(list, 'click', function(e){        var item = e.target || e.srcElement;        var wid = item.getAttribute('wid');        var cityname = item.innerHTML;        if(!wid){             return false;        }        city.innerHTML = cityname;        city.setAttribute('wid', wid);        setTimeout(function(){            reset();            scrollTop();            if(window.v9 && window.v9.saveCity){                window.v9.saveCity();            }        }, 300);        if(e.stopPropagation){            e.stopPropagation();        }else{            e.cancelBubble = true;        }        if(e.preventDefault) e.preventDefault();        return false;    });    v9.event.on(document.body, 'click', function(e){        reset();    });    v9.weo2city={                "455827":"São Paulo",                "455825":"Rio de Janeiro",                "455821":"Belo Horizonte",                "455826":"Salvador",                "455831":"Goiânia",                "455822":"Curitiba",                "455824":"Recife",                "455922":"Vitória",                "455828":"Campinas",                "455819":"Brasília",                "455829":"Cuiabá",                "455883":"Maringa",                "455991":"Santos",                "455903":"Ribeirao Preto",                "455830":"Fortaleza",                "455901":"Porto Velho",                "455894":"Osasco",                "449139":"Santo Andre",                "455917":"Uberlandia",                "455849":"Campo Grande",                "455880":"Maceió",                "455834":"São Luís",                "455872":"João Pessoa",                "455835":"Teresina",                "455888":"Natal",                "455839":"Aracaju",                "455904":"Rio Branco",                "455970":"Macapá",                "455833":"Manaus",                "455820":"Belém",                "455936":"Boa Vista",                "457721":"Palmas",                "455823":"Porto Alegre",                "455861":"Florianópolis"            };    v9.log = function(ele){        _gaq.push([            '_trackEvent',            (ele.getAttribute('p') || null),            (ele.getAttribute('d') || null),            (ele.getAttribute('l') || null),            (parseInt(ele.getAttribute('v')) || 0)        ]);    };    v9.reqWeather=function(weo){        G("winfo").innerHTML = 'loading...';        v9.utils.request('/',{            "ctr":"index",            "op":"forcast",            "weo":weo        },function(ret){            try{                var o = eval("("+ret+")");                if(o){                    G("winfo").className="";                    var html = [];                    if(o['link']){                        if( v9.isIE ){                            html.push('');                        }else{                            html.push('');                        }                    }                    html.push('');                    html.push('
');                    html.push('');                    html.push('


' + o['today']['high'] + '°|&nbsp;' + o['today']['low'] + '°
');                    html.push('


Hoje
');                    html.push('');                    html.push('');                    html.push('


' + o['tomorrow']['high'] + '°|&nbsp;' + o['tomorrow']['low'] + '°
');                    html.push('


Amanhã
');                    html.push('
');                    html.push('
');                    if(o['link']){                        html.push('');                    }                    setTimeout(function(){                        G("winfo").innerHTML = html.join("");                    }, 500);                }            }catch(e){};        });    };    v9.loadWeather = function(){        var weo=v9.utils.readCookie("weo");        if(weo&&v9.weo2city[weo]){            v9.reqWeather(weo);            G("cityname").innerHTML=v9.weo2city[weo];        }else{            v9.reqWeather("455827");        }    };    v9.saveCity = function(){        var cityid = city.getAttribute('wid');        if(cityid){            v9.utils.writeCookie("weo", cityid);            v9.reqWeather(cityid);        }    };})();v9.event.on(window,"load",function(){    /*load ga*/var ga = document.createElement('script');ga.type = 'text/javascript';ga.async = true;ga.src = 'http://www.google-analytics.com/ga.js';var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);setTimeout(function(){        var __utmz = v9.utils.readCookie("__utmz");        var medium = null;        if(__utmz){            var res = /utmcmd=([^\|]+)/.exec(__utmz);            if(res){                medium = res[1];            }        }        if(!medium){            medium = 'direct';        }window.imglog= document.createElement('img');window.imglog.src='http://analytic.xingcloud.com/' + new Date().getTime() +  '/index.gif?appid=v9-' + medium +'&uid=v9_1337078467_417170&event=user.visit';    },10);        /*load lazy images*/    if(window.v9 && window.v9.loadLazyImages){        window.v9.loadLazyImages();    }    /*load weather*/    setTimeout(function(){        if(window.v9 && window.v9.loadWeather ){            window.v9.loadWeather();        }    },10);    /*load top-adv*/    setTimeout(function(){        if(G("top-adv-wrapper")){            var adv_iframe = document.createElement('iframe');            adv_iframe.src = "/static/adv/index/top-adv.html?a=135";            adv_iframe.scrolling = "no";            adv_iframe.border = "0";            adv_iframe.frameBorder = "0";            G("top-adv-wrapper").appendChild(adv_iframe);        }    },10);           /*focus on search input*/    if(G("q")){        G("q").focus();    }        /* load news */    setTimeout(function(){    var news_script = document.createElement('script');    news_script.type = 'text/javascript';    news_script.async = true;    news_script.src = 'http://test.v9.com/toprolling/rolling_news_br.js?t='+parseInt(new Date().getTime()/(1000*60*60));    var s = document.getElementsByTagName('script')[0];    s.parentNode.insertBefore(news_script,s);    },20);    });v9.event.on(document.body,"mousedown",function(e){e=e||window.event;var t=e.target||e.srcElement;        /*find element with gat attribute.*/var depth = 0;        while(t && t.tagName && t.tagName.toUpperCase()!= "BODY" && !t.getAttribute('gat') && depth < 2 ){t = t.parentNode;depth++;        }var gat=t.getAttribute("gat");if(gat){var gai=gat.split(";");var n=t.getAttribute("gad");if(!n){n=t.getAttribute("title");if(!n){n=t.innerText||t.textContent;}}var p="none";while(t&&t.tagName&&t.tagName.toUpperCase()!= "BODY"){if(t.getAttribute("gac")){p=t.getAttribute("gac");break;}t=t.parentNode;};_gaq.push(['_trackEvent',p,gai[0],gai[1]+"_"+n,parseInt(gai[2])]);if(!window.img){window.img=document.createElement("img");}try{window.img.src='http://analytic.337.com/v3/index.php?json={ "signedParams":{ "appid":"v9-v9","uid":"v9_1337078467_417170" },"stats":[{ "eventName":"event.'+p+'.'+(gai[0]||"").replace(/[.]/g,"_")+'.'+gai[1]+'_'+n+'","value":'+parseInt(gai[2])+'}]}';}catch(e){}}});window.news_callback=function(items){if(items){var filter=[];for(var i=0;i";var l=items.length||-1;var offset=[];for(var i=0;i<=l;i++){htmlSnippet+="


"+""+items[i%l]['title']+""+"
";if(i!==l){offset.push(i*20);}};htmlSnippet+="
";G("news_box").innerHTML=htmlSnippet;setInterval(function(){if(G("news_box").getAttribute("hover")=="on")return;arguments.callee.loop=arguments.callee.loop||0;arguments.callee.prevPos=arguments.callee.prevPos||0;var prevPos=arguments.callee.prevPos;var curPos=offset[arguments.callee.loop++%offset.length];arguments.callee.prevPos=curPos;var step=2;var handler=setInterval(function(){arguments.callee.pos=arguments.callee.pos||prevPos;if(arguments.callee.pos===curPos||arguments.callee.pos==l*20){clearInterval(handler);arguments.callee.pos=null;}else{arguments.callee.pos+=step;G("news_box_wrapper").style.marginTop="-"+arguments.callee.pos+"px";}},20);},3000);v9.event.on(G("news_box"),"mouseover",function(e){e=e||window.event;var t=e.target||e.srcElement;var l=5;while(l--&&t){if(t.getAttribute("id") == "news_box"){G("news_box").setAttribute("hover","on");};t=t.parentNode;};});v9.event.on(G("news_box"),"mouseout",function(e){e=e||window.event;var r = e.relatedTarget||e.toElement;var o=true;var l=5;while(l--&&r){if(r.getAttribute&&r.getAttribute("id")=="news_box"){o=false;};r=r.parentNode;};if(o){G("news_box").setAttribute("hover","off");}});};};_CM.init("v9@337_pt_v9","index","v9_1337078467_417170");