Bruno Gagliasso
Autor: Pimentinhas | Publicado: 2011-08-12T22:40:00-07:00
















Nossa que delicia... kkkkk

var gtbTranslateOnElementLoaded;(function(){var lib = null;var checkReadyCount = 0;function sendMessage(message, attrs) {  var data = document.getElementById("gtbTranslateElementCode");  for (var p in attrs) {    data.removeAttribute(p);  }  for (var p in attrs) {    if ("undefined" != typeof attrs[p]) {      data.setAttribute(p, attrs[p]);    }  }  var evt = document.createEvent("Events");  evt.initEvent(message, true, false);  document.dispatchEvent(evt);}function checkLibReady (){  var ready = lib.isAvailable();  if (ready) {    sendMessage("gtbTranslateLibReady", {"gtbTranslateError" : false});    return;  }  if (checkReadyCount++ > 5) {    sendMessage("gtbTranslateLibReady", {"gtbTranslateError" : true});    return;  }  setTimeout(checkLibReady, 100);}gtbTranslateOnElementLoaded = function () {  lib = google.translate.TranslateService({});  sendMessage("{EVT_LOADED}", {}, []);  var data = document.getElementById("gtbTranslateElementCode");  data.addEventListener("gtbTranslate", onTranslateRequest, true);  data.addEventListener("gtbTranslateCheckReady", onCheckReady, true);  data.addEventListener("gtbTranslateRevert", onRevert, true);  checkLibReady();};function onCheckReady() {  var ready = lib.isAvailable();  sendMessage("gtbTranslateLibReady", {"gtbTranslateError" : !ready});}function onTranslateRequest() {  var data = document.getElementById("gtbTranslateElementCode");  var orig = data.getAttribute("gtbOriginalLang");  var target = data.getAttribute("gtbTargetLang");  lib.translatePage(orig, target, onProgress);}function onProgress(progress, opt_finished, opt_error) {  sendMessage("gtbTranslateOnProgress", {"gtbTranslateProgress" : progress,       "gtbTranslateFinished" : opt_finished, "gtbTranslateError" : opt_error});}function onRevert() {  lib.restore();}})(); (function(){var d=window,e=document,f=".",g="UTF-8",h="complete",i="head",j="link",k="script",l="stylesheet",m="text/css",n="text/javascript";Math.floor(Math.random()*2147483648).toString(36);function o(b){var a=e.getElementsByTagName(i)[0];a||(a=e.body.parentNode.appendChild(e.createElement(i)));a.appendChild(b)}function _loadJs(b){var a=e.createElement(k);a.type=n;a.charset=g;a.src=b;o(a)}function _loadCss(b){var a=e.createElement(j);a.type=m;a.rel=l;a.charset=g;a.href=b;o(a)}function _isNS(b){for(var b=b.split(f),a=d,c=0;c<b.length;++c)if(!(a=a[b[c]]))return!1;return!0}function _setupNS(b){for(var b=b.split(f),a=d,c=0;c<b.length;++c)a=a[b[c]]||(a[b[c]]={});return a}
d.addEventListener&&typeof e.readyState=="undefined"&&d.addEventListener("DOMContentLoaded",function(){e.readyState=h},!1);
if (_isNS('google.translate.Element')){return}var c=_setupNS('google.translate._const');c._cl='pt-BR';c._cuc='gtbTranslateOnElementLoaded';c._cac='';c._cam='lib';var h='translate.googleapis.com';var b=(window.location.protocol=='https:'?'https://':'http://')+h;c._pah=h;c._pbi=b+'/translate_static/img/te_bk.gif';c._pci=b+'/translate_static/img/te_ctrl3.gif';c._phf=h+'/translate_static/js/element/hrs.swf';c._pli=b+'/translate_static/img/loading.gif';c._plla=h+'/translate_a/l';c._pmi=b+'/translate_static/img/mini_google.png';c._ps=b+'/translate_static/css/translateelement.css';c._puh='translate.google.com';_loadCss(c._ps);_loadJs(b+'/translate_static/js/element/main_pt-BR.js');})();