//-//////////////////////////////////////-[$rpvBlackAugust.CmS{FrameWork}.developed.by.rpv<psicomx@hotmail.com>$]-//////////////-//
//-if.you.can.understand.this------------------------------------------------------------------------$this.is.NOT.free.software$-//
//-...then.you.should.develop.your.own.appz-------------------------------------------------------------$.rpv.NFO->JS.LIB(v1.5)$-//
//-...otherwise.use.prefabricated.crap.like.other.monkeys-----------------------------------------------------------$13.09.2009$-//
if(top.location!=self.location){top.location=self.location;}
var _l='<img src="'+_stc+'l.gif" alt="Cargando..." />';var _t=2000;var _c='';var iW=-1;
//-////////////////////////////////////////////////////////////////////////////////////////////////////.rpvDead.JS->Functions();-//
function rpvBT(i){var i=i||'MSIE';return (navigator.userAgent.indexOf(i)>-1)?true:false;}
function rpvCB(i,s){var s=s||0;var t=document.forms['rpv'].elements['rpvIC[]'];var r=document.forms['rpv'].elements['rpvI[]'];if(s==0){if(typeof(r)!='undefined'){if(typeof(r[0])!='undefined'){for(c=0;c<r.length;c++){r[c].checked=i;}}else{r.checked=i;}}for(c=0;c<t.length;c++){t[c].checked=i;}}else{if(typeof(r[0])!='undefined'){v=true;for(c=0;c<r.length;c++){v=(!r[c].checked)?false:v;}}else{v=i;}for(c=0;c<t.length;c++){t[c].checked=v;}}return true;}
function rpvCF(i){return confirm(i);}
function rpvDO(i,s,t){var s=s||600;var t=t||400;var x=new rpvXJ('rXWc',function(){});rpvXW(_l,s,t,1);x.rG(_j+i);}
function rpvES(i){var s=new Array('@','+','/');var t=new Array('%40','%2B','%2F');i=encodeURIComponent(i);for(var c=0;c<s.length;c++){while(i.indexOf(s[c])>-1){i=i.replace(s[c],t[c]);}}return i;}
function rpvFC(i,x){var x=x||'rpv';var r=new Array();if(i.indexOf(',')>-1){r=i.split(',');}else{r=Array(i);}for(var i=0;i<r.length;i++){var s=document.forms[x].elements[r[i]];if(typeof(s)!='undefined'){if(typeof(s[0])!='undefined'&&s.type!='select-one'){for(var c=0;c<s.length;c++){if(s[c].type=='checkbox'||s[c].type=='radio'){s[c].checked='';}else{s[c].value='';}}}else if(s.type=='checkbox'){s.checked='';}else if(s.type=='select-one'){s.selectedIndex=0;}else{s.value='';}}}}
function rpvFE(i,s,x){var x=x||'rpv';var s=s||0;if(i.indexOf(',')>-1){i=i.split(',');}else{i=Array(i);}for(var c=0;c<i.length;c++){var t=document.forms[x].elements[i[c]];t.disabled=(s==0)?true:false;}}
function rpvFL(i,s){var i=i||'rFL';var s=s||'';s=(s!='')?' '+s:'';var t=document.getElementById(i);t.className=(t.className=='rFLh'+s)?'rFLv'+s:'rFLh'+s;}
function rpvFV(i,x){var x=x||'rpv';var s=new Array();var r='';if(i.indexOf(',')>-1){s=i.split(',');}else{s=Array(i);}for(var i=0;i<s.length;i++){var t=document.forms[x].elements[s[i]];if(typeof(t)!='undefined'){if(typeof(t[0])!='undefined'&&t.type!='select-one'){for(var c=0;c<t.length;c++){if(t[c].type=='checkbox'||t[c].type=='radio'){if(t[c].checked){r+=t[c].name+'='+rpvES(t[c].value)+'&';}}else if(t.type=='select-multiple'){if(t[c].selected){r+=t.name+'[]='+rpvES(t[c].value)+'&';}}else{r+=t[c].name+'='+rpvES(t[c].value)+'&';}}}else if(t.type=='checkbox'){if(t.checked){r+=t.name+'='+rpvES(t.value)+'&';}}else if(t.type=='select-one'){r+=s[i]+'='+rpvES(t.value)+'&';}else{r+=t.name+'='+rpvES(t.value)+'&';}}}return r;}
function rpvGS(i,s){var i=i||'sml';var s=s||'sml';s=(s!='')?s:'sml';rpvXG(i,s);}
function rpvIT(i,s,t,x){var s=s||'';var t=t||'tx';t=(t!='')?t:'tx';var x=x||'rpv';t=document.forms[x].elements[t];if(document.selection){t.focus();c=document.selection.createRange();c.text=(s!='')?i+c.text+s:i;}else if(t.selectionStart||t.selectionStart=='0'){var c=t.selectionStart;var v=t.selectionEnd;if(s!=''){t.value=t.value.substring(0,c)+i+t.value.substring(c,v)+s+t.value.substring(v,t.value.length);}else{t.value=t.value.substring(0,c)+i+t.value.substring(v,t.value.length);}}else{t.value+=i+s;}}
function rpvJC(i,s){if(rpvCF(s)){rpvJP(i);}}
function rpvJP(i){if(i!=''&&i!='#'){window.location=i;}}
function rpvNB(i){i=i.replace(/</g,'&lt;');i=i.replace(/>/g,'&gt;');i=i.replace(/"/g,'&quot;');i=i.replace(/\n/g,'<br />');return i;}
function rpvPX(e,i,s,t,x){var s=s||240;var t=t||0;var x=x||0;rpvPXk();r=document.createElement('div');r.id='rXP';document.body.appendChild(r);document.onmousemove=rpvPXm;iW=r.scrollWidth;rpvPXm(e);r.innerHTML='<div id="rXPc"><div id="rXPx">'+((x==0)?rpvNB(i):i)+'</div></div>';if(s>0||t>0){var m=document.getElementById('rXPc');if(s>0){r.style.width=s+'px';m.style.width=(s-11)+'px';}if(t>0){r.style.height=t+'px';m.style.height=(t-8)+'px';}}}
function rpvPXm(e){var x=-1;var y=-1;if(rpvBT()){x=event.clientX;y=event.clientY;x+=document.documentElement.scrollLeft;y+=document.documentElement.scrollTop;}else{x=e.pageX;y=e.pageY;}x+=10;y+=10;if(iW>0&&document.documentElement.clientWidth>0&&x>document.documentElement.clientWidth*0.6){x=x-iW-2*10;}document.getElementById('rXP').style.left=x+'px';document.getElementById('rXP').style.top=y+'px';}
function rpvPXk(){if(document.getElementById('rXP')!=null){document.onmousemove=null;document.getElementById('rXP').innerHTML='';document.body.removeChild(document.getElementById('rXP'));}}
function rpvSC(i){if(rpvCF(i)){document.rpv.submit();}}
function rpvTR(i){i=i.replace(/^(\s+)/,'');i=i.replace(/(\s+)$/,'');return i;}
function rpvVH(i,s){var s=s||0;var i=document.getElementById(i);i.style.display=((s==0)?'none':'block');}
function rpvWL(i,s){var s=document.getElementById(s);if(s!=null){s.innerHTML=i;}}
function rpvWR(i,s){if(rpvBT()&&!rpvBT('MSIE 8')){var t=document.getElementById(s+'c');var c=document.getElementById(s);if(t!=null){t.innerHTML='';c.removeChild(t);t=null;}t=document.getElementById(s+'c');t=document.createElement('div');t.innerHTML=i;rpvWL('',s);c.appendChild(t);}else{rpvWL(i,s);}}
function rpvXJ(i,s){var _r='';var r=rC();this.rJ=function(){return _r;};this.rG=function(i){this.rV();try{r.open('GET',i);r.onreadystatechange=this.rX;r.send(null);}catch(e){rE();}};this.rP=function(i,s){this.rV();try{r.open('POST',i);r.onreadystatechange=this.rX;r.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=UTF-8');r.send(s);}catch(e){rE();}};this.rV=function(){_r='';};this.rX=function(){var t='';if(r.readyState==4){t=r.responseText;if(t.length>2){_r=t.substr(2,t.length-2);t=t.substr(0,1);if(t=='0'){if(typeof(i)=='function'){i();}else if(i!=''){rpvWR(_r,i);}}else{rE();}}else{rE();}t='';}};function rC(){var r=null;if(window.XMLHttpRequest){try{r=new XMLHttpRequest();}catch(e){}}else if(window.ActiveXObject){try{r=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{r=new ActiveXObject('Microsoft.XMLHTTP');}catch(e){}}}return r;}function rE(){rpvXW(((_r=='')?'Bad Reply!':_r),250,150,1);this.rV;if(typeof(s)=='function'){s();}else if(s!=''){rpvWL('',s);}}function rK(){if(r.readyState!=4&&r.readyState!=0){this.rV();r.onreadystatechange=function(){};r.abort();rE();}}}
function rpvXG(i,s,t){var t=t||s;var x=new rpvXJ(s,t);rpvWR(_l,s);x.rG(_j+i);}
function rpvXP(i,s,t,r){var r=r||t;var x=new rpvXJ(t,r);rpvWR(_l,t);x.rP(_j+i,rpvFV(s));}
function rpvXW(i,s,t,x){rpvXWk();var x=x||0;var r=document.createElement('div');var b=document.createElement('div');var w=((window.innerWidth!=window.undefined)?window.innerWidth:((document.compatMode=='CSS1Compat')?document.documentElement.clientWidth:((document.body)?document.body.clientWidth:window.undefined)));var h=((window.innerHeight!=window.undefined)?window.innerHeight:((document.compatMode=='CSS1Compat')?document.documentElement.clientHeight:((document.body)?document.body.clientHeight:window.undefined)));var wl=(rpvBT('AppleWebKit'))?document.body.scrollLeft:document.documentElement.scrollLeft;var wt=(rpvBT('AppleWebKit'))?document.body.scrollTop:document.documentElement.scrollTop;r.id='rXW';b.id='rXWb';document.body.appendChild(b);document.body.appendChild(r);r.style.width=s+'px';r.style.height=t+'px';r.style.top=(wt+((h-t)/2))+'px';r.style.left=(wl+((w-s)/2))+'px';b.style.width=(s+8)+'px';b.style.height=(t+8)+'px';b.style.top=((wt+((h-t)/2))-4)+'px';b.style.left=((wl+((w-s)/2))-4)+'px';i=(x!=0)?'<div id="rXWc">'+i+'</div>':'<iframe src="'+i+'" scrolling="auto" frameborder="0" id="rXWf" name="rXWc" width="100%" height="100%"></iframe>';r.innerHTML='<div id="rXWt" onclick="rpvXWk()"><img src="'+_stc+'r_p_j.png" alt="" /></div>'+i;if(rpvBT()&&x==0){var x=document.getElementById('rXWf');x.style.height=(t-25)+'px';}if(x!=0){var z=document.getElementById('rXWc');z.style.width=(s-20)+'px';z.style.height=(t-45)+'px';}}
function rpvXWk(){var r=document.getElementById('rXW');if(r!=null){r.innerHTML='';document.body.removeChild(r);document.body.removeChild(document.getElementById('rXWb'));}}
//-////////////////////////////////////////////////////////////////////////////////////////////////////.rpvDead.JS.Functions();-//
function rpvED(i,s){rpvDO(s+'e&i='+i);}
function rpvFAQ(i,s,t){var s=s||600;var t=t||338;rpvDO('f&i='+i,s,t);}
function rpvCOM(i,s){rpvXG('cv&i='+i+'&t='+s,'t'+i);}
function rpvCON(i,s){var s=s||'a';var t='r'+((s=='a'||s=='r')?'F':'B')+i;var x=new rpvXJ(t,t);rpvWR(_l,t);x.rG(_j+'fb&i='+i+'&t='+s+'&k='+_k);}
function rpvDMS(i,s,t){var x=document.getElementById(t);if(i!=''){x.className=((s==0)?'xmo':'xme');rpvWR(i,t);}else{x.className='';rpvWL('',t);}}
function rpvXC(i,s,t){var m=(t=='m')?'mensaje':'comentario';var w=8;var x=2;var z=document.forms['rpv'].elements['tx'].value;rpvVH('rbt');if(z.length<x||z.length>_t){rpvXCm('El texto de tu '+m+' '+((z.length<x)?'debe tener al menos '+x+' caracteres':'es muy largo, tiene '+z.length+' de '+_t+' caracteres permitidos.'),1);rpvVH('rbt',1);}else{var x=new rpvXJ(function(){rpvWL('','xcml');if(x.rJ()=='OK'){rpvFC('un,tx');setTimeout("rpvJP('"+_c+"')",8*1000);rpvXCm('Item Publicado!. Espera -8- segundos para que se recargue la página, si no quieres esperar haz clic <a href="'+_c+'">aquí</a>.');}else{rpvXCm(x.rJ(),1);rpvVH('rbt',1);}},function(){rpvWL('','xcml');rpvVH('rbt',1);});rpvXCm();rpvWR(_l,'xcml');x.rP(_j+'c&i='+i+'&t='+s,rpvFV('un,ml,ws,tx'));_c=t;}}
function rpvXCm(i,s){var s=s||0;var i=i||'';if(i!=''){t=(s!=0)?'xcmo':'xcme';s=(s!=0)?'xcme':'xcmo';rpvVH(t);rpvWR(i,s);rpvVH(s,1);}else{rpvVH('xcmo');rpvVH('xcme');}}
function rpvXV(i,s,t){var t=(t==1)?'n':'p';var x=new rpvXJ(function(){n=x.rJ();n=n.split('|');rpvWR(n[0],((s=='d')?'d':'')+'v'+i);rpvWR(n[1],((s=='d')?'d':'')+'k'+i);},function(){rpvWR('--',((s=='d')?'d':'')+'v'+i);});rpvWR(_l,((s=='d')?'d':'')+'v'+i);x.rG(_j+'v&i='+i+'&t='+s+'&v='+t+'&k='+_k);}
function rpvJXF(i,s,t,u,v,w){var t=t||'rpv2';var u=u||'peo';var v=v||'pek';var w=w||'jbtn';var x=new rpvXJ(function(){var n=x.rJ();var b=n.match(/^OK\:/);var z=document.getElementById(((b)?v:u));z.className=((b)?'xmo':'xme');rpvWR(((b)?n.substring(3):x.rJ()),((b)?v:u));if(!b){rpvVH(w,1);}},function(){rpvVH(w,1);});rpvVH(w);rpvWR(_l,u);x.rP(_j+i,rpvFV(s,t));}
function rpvOS(i){var i=i||'btn';rpvWL(_l,i);}
function rpvGX(i){var i=document.getElementById(i).getElementsByTagName('a');if(i.length>=1){for(var c=0;c<i.length;c++){var x=i[c];var z=x.href;if(z.match(/\.(jpg|png|bmp|gif)$/i)){x.setAttribute("onclick","rpvGXi(this.href);return false;");}}}}
function rpvGXi(i){rpvXW('<div class="rGALd"><img src="'+i+'" alt="" id="rGALi23" onload="rpvGXw(this.id)" /></div>',620,300,1);}
function rpvGXw(i){var i=document.getElementById(i);if(i!=null){var w=i.width;var h=i.height;var z=i.src;var ww=((window.innerWidth!=window.undefined)?window.innerWidth:((document.compatMode=='CSS1Compat')?document.documentElement.clientWidth:((document.body)?document.body.clientWidth:window.undefined)));var wh=((window.innerHeight!=window.undefined)?window.innerHeight:((document.compatMode=='CSS1Compat')?document.documentElement.clientHeight:((document.body)?document.body.clientHeight:window.undefined)));var x=(w<(ww-60))?w+30:ww-60;var y=(h<(wh-60))?h+50:wh-60;rpvXWk();rpvXW('<img src="'+z+'" alt="" />',x,y,1);}}
function rpvITg(i,s,t,x){var s=s||'tx';s=(s!='')?s:'tx';var t=t||'rpv';t=document.forms[t].elements[s];if(document.selection){t.focus();c=document.selection.createRange();i=c.text;}else if(t.selectionStart||(t.selectionStart=='0'&&t.selectionEnd!='0')){i=t.value.substring(t.selectionStart,t.selectionEnd);}else if(i!=''){i=prompt(i,'');}return i;}
function rpvITv(i,s){var i=i||0;var s=s||0;var r=rpvTR(rpvITg('VIDEO',i,s));if(r!=''){if(r.match(/^(http\:\/\/|www\.)/i)){r=i;}else{var k=r.split(/(\"|\')/);r='';for(var c=0;c<k.length;c++){var v=k[c];if(v.match(/^http\:\/\//)){r=v;break;}}}}rpvIT('[VIDEO]'+r+'[/VIDEO]','',i,s);}
function rpvITl(i,s){var i=i||0;var s=s||0;var x=rpvTR(rpvITg('',i,s));x=(x!='')?x:prompt('Igresa texto a mostrar:','');var z=prompt('Igresa URL:','');if(x!=null&&z!=null){rpvIT('[URL='+z+']'+x+'[/URL]','',i,s);}}
//-This.should.be.fine.for.tomorrow...xD