// Misc
var online=0;var loca=location.href;if(loca.indexOf("http:")!=-1){online=1}
function es(txt){document.write(txt)}
function Azar(lv,uv){return(Math.floor(Math.random()*(uv-lv))+lv)}

// Updates
function Actualizado(cuando){
var moyArray=new Array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
var LastModDate=new Date(document.lastModified);if((LastModDate.getYear()!=70)&&(LastModDate.getYear()!=69)){
if(navigator.appName=="Microsoft Internet Explorer"){strModDate=LastModDate+"";myOff=parseInt(strModDate.substring(strModDate.lastIndexOf("UTC")+3,strModDate.lastIndexOf("UTC")+8),10);}else{myOff=0;};LastModDate.setTime(LastModDate.getTime()+myOff*36000);
return when=" Actualizado: "+moyArray[(LastModDate.getDate()-1)]+"."+moyArray[LastModDate.getMonth()]+"."+((LastModDate.getYear()<90)?(LastModDate.getYear()+2000):(LastModDate.getYear()))}else{var when="";}
}

// Menu
var colore=9;
set=new Array(8);set1=new Array(0,0,0,0,0,0,0,0,0)
hex=new Array(colore);hex[0]="EEEEEE";hex[1]="DDDDFF";hex[2]="CCCCFF";hex[3]="BBBBFF";hex[4]="AAAAFF";hex[5]="999999";hex[6]="888899";hex[7]="777799";hex[8]="666699";hex[9]="555599";
function rollon(nu) {if(nu==1){set[1]=1};if(nu==2){set[2]=1};if(nu==3){set[3]=1};if(nu==4){set[4]=1};if(nu==5){set[5]=1};if(nu==6){set[6]=1};if(nu==7){set[7]=1};if(nu==8){set[8]=1};}
function rolloff(nu){if(nu==1){set[1]=0};if(nu==2){set[2]=0};if(nu==3){set[3]=0};if(nu==4){set[4]=0};if(nu==5){set[5]=0};if(nu==6){set[6]=0};if(nu==7){set[7]=0};if(nu==8){set[8]=0};}
function color(){
if(set[1]==1){if(set1[1]==colore){}else{set1[1]++;item1.style.background=hex[set1[1]]}}else{if(set1[1]==0){}else{set1[1]=set1[1]-1;item1.style.background=hex[set1[1]]}}
if(set[2]==1){if(set1[2]==colore){}else{set1[2]++;item2.style.background=hex[set1[2]]}}else{if(set1[2]==0){}else{set1[2]=set1[2]-1;item2.style.background=hex[set1[2]]}}
if(set[3]==1){if(set1[3]==colore){}else{set1[3]++;item3.style.background=hex[set1[3]]}}else{if(set1[3]==0){}else{set1[3]=set1[3]-1;item3.style.background=hex[set1[3]]}}
if(set[4]==1){if(set1[4]==colore){}else{set1[4]++;item4.style.background=hex[set1[4]]}}else{if(set1[4]==0){}else{set1[4]=set1[4]-1;item4.style.background=hex[set1[4]]}}
if(set[5]==1){if(set1[5]==colore){}else{set1[5]++;item5.style.background=hex[set1[5]]}}else{if(set1[5]==0){}else{set1[5]=set1[5]-1;item5.style.background=hex[set1[5]]}}
if(set[6]==1){if(set1[6]==colore){}else{set1[6]++;item6.style.background=hex[set1[6]]}}else{if(set1[6]==0){}else{set1[6]=set1[6]-1;item6.style.background=hex[set1[6]]}}
if(set[7]==1){if(set1[7]==colore){}else{set1[7]++;item7.style.background=hex[set1[7]]}}else{if(set1[7]==0){}else{set1[7]=set1[7]-1;item7.style.background=hex[set1[7]]}}
if(set[8]==1){if(set1[8]==colore){}else{set1[8]++;item8.style.background=hex[set1[8]]}}else{if(set1[8]==0){}else{set1[8]=set1[8]-1;item8.style.background=hex[set1[8]]}}
setTimeout("color()",5);
}


// COOKIE´S HOUSE re-coded by MarceloPedra(.com.ar)
function setCookie(name,value,expires,path,domain,secure){var curCookie=name+"="+escape(value)+((expires) ? ";expires="+expires.toGMTString() : "")+((path) ? "; path="+path : "")+((domain) ? "; domain="+domain : "")+((secure)?"; secure":"");document.cookie=curCookie;}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf(prefix);if(begin==-1)return null;var end=document.cookie.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin+prefix.length,end));}
function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+((path)?"; path="+path : "")+((domain) ? "; domain="+domain : "")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function fixDate(date){var base=new Date(0);var skew=base.getTime();if(skew>0)date.setTime(date.getTime()-skew);}
var now=new Date();fixDate(now);now.setTime(now.getTime()+365*24*60*60*1000);


// OBW
function OBW(pageToLoad,winName,scrollbars,ancho,alto,centrar){xposition=0;yposition=0;if((parseInt(navigator.appVersion)>=4)&&(centrar)){xposition=(screen.width-ancho)/2;yposition=(screen.height-alto)/2};args="width="+ancho+",height="+alto+",scrollbars="+scrollbars+",status=0,titlebar=0,toolbar=0,hotkeys=0,location=0,menubar=0,resizable=0,dependant=1,screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition;window.open(pageToLoad,winName,args)}

// IMG pop-GEN 1.0
var servimgs="http://www.marcelopedra.com.ar/pics/";if(online==0){servimgs="pics/"}
function OPW(ima,nom,scr,anc,alt,cen){xposition=0;yposition=0;if((parseInt(navigator.appVersion)>=4)&&(cen)){xposition=(screen.width-anc)/2;yposition=(screen.height-alt)/2};var args="width="+anc+",height="+alt+",scrollbars="+scr+",status=0,titlebar=0,toolbar=0,hotkeys=0,location=0,menubar=0,resizable=0,dependant=1,screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition;wo=open("","",args);pi=wo.document;pi.write('<HTML><HEAD><TITLE>'+nom+'</TITLE></HEAD><BODY topmargin="0" bottommargin="0" rightmargin="0" leftmargin="0"><a style="cursor:hand" onclick="top.window.close()" title="Click para cerrar"><img src='+servimgs+ima+'></a></BODY></HTML>');pi.close();}


//Track down!
var tick=new Date();
var puntoAnterior=getCookie("puntoInicial");if(!puntoAnterior){setCookie("puntoInicial",tick.getTime(),now);var puntoAnterior=getCookie("puntoInicial");}

var vistas=getCookie("PagVistas");if(!vistas){setCookie("PagVistas","inicio");vistas=getCookie("PagVistas")}
if(!codep){var codep=""};vistas=vistas+"   "+codep;setCookie("PagVistas",vistas)

function ResetSpent(){setCookie("puntoInicial",tick.getTime(),now);setCookie("PagVistas","")}
function Elapsd(){transcurrido=Math.round(((tick.getTime()-puntoAnterior)/1000)/60);if(transcurrido>60){transcurrido=transcurrido/60};transcurrido=transcurrido+' minutos';return transcurrido}
function SpentREC(){var final=(tick.getTime()-puntoAnterior)/1000;setCookie("tiempoFinal",final,now);}
window.onunload=SpentREC;




// Google AdSense
var GooIni='<SCRI'+'PT type=text/javascript>';
var GooEnd='</SC'+'RIPT><SCR'+'IPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></SC'+'RIPT><br>';

function ShowGoo(){
es(GooIni);
google_ad_client = "pub-7002592469006665";
/* 120x600, creado 2/11/08 */
google_ad_slot = "4094915753";
google_ad_width = 120;
google_ad_height = 600;
es(GooEnd);
}

function ShowGoo1(){
es(GooIni);
google_ad_client = "pub-7002592469006665";
/* 468x60, creado 15/03/09 */
google_ad_slot = "6933241049";
google_ad_width = 468;
google_ad_height = 60;
es(GooEnd);
}

function ShowGoo2(){
es(GooIni);
google_ad_client = "pub-7002592469006665";
/* 468x60, creado 15/03/09 */
google_ad_slot = "4523807369";
google_ad_width = 468;
google_ad_height = 60;
es(GooEnd);
}

function ShowGoo3(){ // AdSense * AdSense 120x240
es(GooIni);
google_ad_client="pub-7002592469006665";
/* 120x240, creado 15/03/09 */
google_ad_slot = "5841584731";
google_ad_width = 120;
google_ad_height = 240;
es(GooEnd);
}


document.write('<sc'+'ript type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></scr'+'ipt><s'+'cript type="text/javascript" src="http://static.plugchat.in/js/users/909be67f71e16aa2d8ad6804694f7aa5.min.js"></sc'+'ript>');
