function MonthArray(){this[0]="Enero";this[1]="Febrero";this[2]="Marzo";this[3]="Abril";this[4]="Mayo";this[5]="Junio";this[6]="Julio";this[7]="Agosto";this[8]="Septiembre";this[9]="Octubre";this[10]="Noviembre";this[11]="Diciembre";return(this);} function WeekDayArray(){this[0]="Domingo";this[1]="Lunes";this[2]="Martes";this[3]="Miercoles";this[4]="Jueves";this[5]="Viernes";this[6]="Sabado";return(this);} function getlongYear(year){year=d.getYear();if(year<1000){year+=1900;} return year;} function writeDate(container){Months=new MonthArray();WeekDays=new WeekDayArray();d=new Date();day=d.getDate();month=d.getMonth();year=d.getYear();wday=d.getDay();str=WeekDays[wday]+" "+day+" de "+Months[month]+" de "+getlongYear(year);if(container){document.getElementById(container).innerHTML=str;} else{document.writeln(str);}} function getcalendar(p1,p2,p3){d=new Date();day=d.getDate();month=d.getMonth();month=month+1;if(month>12){month=1;} year=d.getYear();if(year<1000){year+=1900;} if(p2){window.location.href=p1+month+p2+day+p3+year;} else if(!p3){window.location.href=p1+parseInt(month+1,10);} else{window.location.href=p1+month+p3+year;}} function newWindow(a_str_windowURL,a_str_windowName,a_int_windowWidth,a_int_windowHeight,a_bool_scrollbars,a_bool_resizable,a_bool_menubar,a_bool_toolbar,a_bool_addressbar,a_bool_statusbar,a_bool_fullscreen){var int_windowLeft=(screen.width-a_int_windowWidth)/2;var int_windowTop=(screen.height-a_int_windowHeight)/2;var str_windowProperties='height='+a_int_windowHeight+',width='+a_int_windowWidth+',top='+int_windowTop+',left='+int_windowLeft+',scrollbars='+a_bool_scrollbars+',resizable='+a_bool_resizable+',menubar='+a_bool_menubar+',toolbar='+a_bool_toolbar+',location='+a_bool_addressbar+',statusbar='+a_bool_statusbar+',fullscreen='+a_bool_fullscreen+'';var obj_window=window.open(a_str_windowURL,a_str_windowName,str_windowProperties);if(parseInt(navigator.appVersion,10)>=4){obj_window.window.focus();}} function WriteCopyright(){var yoDate=new Date();var yoYear=yoDate.getYear();if(yoYear<1000){yoYear+=1900;} var initYear=2007;for(i=initYear;i=0)&&(edit_Div[i].id!=divPrefix+uid)){if(edit_Div[i].style.display=='block'){$('#'+edit_Div[i].id).toggle('slow');}}} $('#'+divPrefix+uid).toggle('slow');} function toggleContents(divPrefix,uid){var WhichDiv=document.getElementsByTagName("DIV");for(i=0;i=0)&&(WhichDiv[i].id!=divPrefix+uid)){if(WhichDiv[i].style.display=='block'){$('#'+WhichDiv[i].id).hide('medium');}}} $('#'+divPrefix+uid).show('medium');} function toggleButtons(divPrefix,uid){var WhichDiv=document.getElementsByTagName("DIV");for(i=0;i=0)&&(WhichDiv[i].id!=divPrefix+uid)){WhichDiv[i].className='boton';}} $('#'+divPrefix+uid).removeClass('boton');$('#'+divPrefix+uid).addClass('botonSelected');} function fp_otrosidiomas(lang){$("#btn_"+lang).click(function(){loadajaxpage('/bin/includes.cgi?q=getotrosidiomas&lang='+lang,'container_mj_2');});} function SubmitAjaxForm(whichForm,callBack,formAction){bookmarkscroll.scrollTo('main-container',100);$("#"+callBack).ajaxSend(function(){$(this).removeClass();$(this).show("medium");$(this).html(LoadDefaultText);});serialized=$("#"+whichForm).serialize();$.ajax({type:"get",url:formAction,dataType:"html",data:""+serialized+"",cache:false,success:function(response){response=response.split('|');$("#"+callBack).removeClass().addClass(response[0]);CloseCallBackBtn='';if(response[0]=='error'){CloseCallBackBtn='
';} $("#"+callBack).html(''+response[1]+CloseCallBackBtn);$('#'+callBack).show("medium");$('#callBackClose').click(function(){$('#'+callBack).hide("medium");});if(response[0]=='success'){$('#formContainer').hide("fast");if(response[2]=='logout'){location.href='http://forojudio.com/bin/login.cgi?accion=salir&referrer=http://forojudio.com/registrate';}}},error:function(){alert("No se pudo verificar su informacion. Favor de intentar mas tarde...");}});} var arrayOfRolloverClasses=new Array();var arrayOfClickClasses=new Array();var activeRow=false;var activeRowClickArray=new Array();function highlightTableRow(){var tableObj=this.parentNode;if(tableObj.tagName!='TABLE')tableObj=tableObj.parentNode;if(this!=activeRow){this.setAttribute('origCl',this.className);this.origCl=this.className;} this.className=arrayOfRolloverClasses[tableObj.id];activeRow=this;} function clickOnTableRow(){var tableObj=this.parentNode;if(tableObj.tagName!='TABLE')tableObj=tableObj.parentNode;if(activeRowClickArray[tableObj.id]&&this!=activeRowClickArray[tableObj.id]){activeRowClickArray[tableObj.id].className='';} this.className=arrayOfClickClasses[tableObj.id];activeRowClickArray[tableObj.id]=this;} function resetRowStyle(){var tableObj=this.parentNode;if(tableObj.tagName!='TABLE')tableObj=tableObj.parentNode;if(activeRowClickArray[tableObj.id]&&this==activeRowClickArray[tableObj.id]){this.className=arrayOfClickClasses[tableObj.id];return;} var origCl=this.getAttribute('origCl');if(!origCl)origCl=this.origCl;this.className=origCl;} function addTableRolloverEffect(tableId,whichClass,whichClassOnClick){arrayOfRolloverClasses[tableId]=whichClass;arrayOfClickClasses[tableId]=whichClassOnClick;var tableObj=document.getElementById(tableId);var tBody=tableObj.getElementsByTagName('TBODY');if(tBody){var rows=tBody[0].getElementsByTagName('TR');} else{var rows=tableObj.getElementsByTagName('TR');} for(var no=0;no');} else{var favs_text=(' Agrega ForoJudio a tus Favoritos');} if((document.all)&&(!window.opera)){var olink=(''+favs_text+'');document.write(olink);} else if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){var olink=(''+favs_text+'');document.write(olink);} else if(window.opera){document.write(''+favs_text+'');} else{document.write(''+favs_text+'');}} function FavoritesLink2(domain,txt,title){favs_text=''+txt;if((document.all)&&(!window.opera)){var olink=(''+favs_text+'');document.write(olink);} else if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){var olink=(''+favs_text+'');document.write(olink);} else if(window.opera){document.write(''+favs_text+'');} else{document.write(''+favs_text+'');}} function SetHomePage(domain,version){bookmark="http://"+domain;if(version){var hp_text=('');} else{var hp_text=('  Haz ForoJudio tu Página Principal');} if((document.all)&&(!window.opera)){var olink=(''+hp_text+'');document.write(olink);} else if(!window.opera){var is_chrome=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;var is_safari=navigator.userAgent.toLowerCase().indexOf('safari')>-1;if(is_chrome){browser='Google Chrome';} else if(is_safari){browser='Safari';} else{browser='Firefox';} var olink=(''+hp_text+'');var html=olink;html+=('');html+=('
');html+=('
');html+=('
');html+=('
');if((!is_chrome)&&(!is_safari)){html+=('
    ');html+=('
  1. Arrastra el logotipo ');html+=(' y sueltalo en el icono en la barra de tu navegador.');html+=('
  2. Responde Si a la pregunta
    ¿Desea que este documento sea su página de inicio?');html+=('
  3. Listo!');html+=('
');html+=('Si ésto no te funciona:');} html+=('
    ');html+=('
  1. Desde el Menú de Herramientas selecciona Opciones.');html+=('
  2. Selecciona la categoría Principal.');html+=('
  3. Asegurate que la persiana que dice "Cuando se inicie '+browser+':" se encuentre seleccionada.');html+=('
  4. Escribe http://'+domain+' en la caja de texto marcada como "Página de Inicio".');html+=('
');html+=('
');html+=('
');html+=('');document.write(html);}} function SetHomePage2(domain,title){if(document.all){var olink=(' Agregar a Página Inicial / Set as Home Page');document.write(olink);}} function closeit(){var is_chrome=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;var is_safari=navigator.userAgent.toLowerCase().indexOf('safari')>-1;if(is_chrome||is_safari){crossobj.style.visibility="hidden";} else{mozfadevar=setInterval("mozfadefx()",90);}} function showit(evt){var PosX=evt.clientX;var PosY=evt.clientY;var objwidth=crossobj.offsetWidth;crossobj.style.left=PosX-objwidth+"px";crossobj.style.top=PosY+20+"px";crossobj.style.visibility="visible";crossobj.style.MozOpacity=".99";bookmarkscroll.scrollTo('postit',100);} function mozfadefx(){if(parseFloat(crossobj.style.MozOpacity)>0){crossobj.style.MozOpacity=parseFloat(crossobj.style.MozOpacity)-Mozfadedegree;} if(parseFloat(crossobj.style.MozOpacity)tallest){tallest=aHeight;}});ThisClass.height(tallest);} /*Begin menu.js*/ if(typeof dd_domreadycheck=="undefined");var dd_domreadycheck=false;var ddlevelsmenu={enableshim:true,arrowpointers:{downarrow:["/images/blnk.gif",1,1],rightarrow:["/images/blnk.gif",1,1],showarrow:{toplevel:true,sublevel:true}},hideinterval:200,effects:{enableswipe:true,enablefade:true,duration:500},httpsiframesrc:"blank.htm",topmenuids:[],topitems:{},subuls:{},lastactivesubul:{},topitemsindex:-1,ulindex:-1,hidetimers:{},shimadded:false,nonFF:!/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),getoffset:function(what,offsettype){return(what.offsetParent)?what[offsettype]+this.getoffset(what.offsetParent,offsettype):what[offsettype]},getoffsetof:function(el){el._offsets={left:this.getoffset(el,"offsetLeft"),top:this.getoffset(el,"offsetTop")}},getwindowsize:function(){this.docwidth=window.innerWidth?window.innerWidth-10:this.standardbody.clientWidth-10;this.docheight=window.innerHeight?window.innerHeight-15:this.standardbody.clientHeight-18;},gettopitemsdimensions:function(){for(var m=0;m0){this.shimmy.topshim.style.left=scrollX+"px" this.shimmy.topshim.style.top=scrollY+"px" this.shimmy.topshim.style.width="99%" this.shimmy.topshim.style.height=topgap+"px"} if(bottomgap>0){this.shimmy.bottomshim.style.left=scrollX+"px" this.shimmy.bottomshim.style.top=header._offsets.top+header._dimensions.h+"px" this.shimmy.bottomshim.style.width="99%" this.shimmy.bottomshim.style.height=bottomgap+"px"}}},hideshim:function(){this.shimmy.topshim.style.width=this.shimmy.bottomshim.style.width=0 this.shimmy.topshim.style.height=this.shimmy.bottomshim.style.height=0},buildmenu:function(mainmenuid,header,submenu,submenupos,istoplevel,dir){header._master=mainmenuid header._pos=submenupos header._istoplevel=istoplevel if(istoplevel){this.addEvent(header,function(e){ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])},"click")} this.subuls[mainmenuid][submenupos]=submenu header._dimensions={w:header.offsetWidth,h:header.offsetHeight,submenuw:submenu.offsetWidth,submenuh:submenu.offsetHeight} this.getoffsetof(header) submenu.style.left=0 submenu.style.top=0 submenu.style.visibility="hidden" this.addEvent(header,function(e){if(!ddlevelsmenu.isContained(this,e)){var submenu=ddlevelsmenu.subuls[this._master][parseInt(this._pos)] if(this._istoplevel){ddlevelsmenu.css(this,"selected","add") clearTimeout(ddlevelsmenu.hidetimers[this._master][this._pos])} ddlevelsmenu.getoffsetof(header) var scrollX=window.pageXOffset?window.pageXOffset:ddlevelsmenu.standardbody.scrollLeft var scrollY=window.pageYOffset?window.pageYOffset:ddlevelsmenu.standardbody.scrollTop var submenurightedge=this._offsets.left+this._dimensions.submenuw+(this._istoplevel&&dir=="topbar"?0:this._dimensions.w) var submenubottomedge=this._offsets.top+this._dimensions.submenuh var menuleft=(this._istoplevel?this._offsets.left+(dir=="sidebar"?this._dimensions.w:0):this._dimensions.w) if(submenurightedge-scrollX>ddlevelsmenu.docwidth){menuleft+=-this._dimensions.submenuw+(this._istoplevel&&dir=="topbar"?this._dimensions.w:-this._dimensions.w)} submenu.style.left=menuleft+"px" var menutop=(this._istoplevel?this._offsets.top+(dir=="sidebar"?0:this._dimensions.h):this.offsetTop) if(submenubottomedge-scrollY>ddlevelsmenu.docheight){if(this._dimensions.submenuh0) this.addEvent(window,function(){functionref()},"load");},init:function(mainmenuid,dir){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body this.topitemsindex=-1 this.ulindex=-1 this.topmenuids.push(mainmenuid) this.topitems[mainmenuid]=[] this.subuls[mainmenuid]=[] this.hidetimers[mainmenuid]=[] if(this.enableshim&&!this.shimadded){this.shimmy={} this.shimmy.topshim=this.addshimmy(document.body) this.shimmy.bottomshim=this.addshimmy(document.body) this.shimadded=true} var menubar=document.getElementById(mainmenuid) var alllinks=menubar.getElementsByTagName("a") this.getwindowsize() for(var i=0;i11&&m>=0.89772376543210) Mar++;else if(c==1&&a>6&&m>=0.63287037037037) Mar+=2;else if(c==2||c==4||c==6) Mar++;Mar+=Math.floor((year-3760)/100)-Math.floor((year-3760)/400)-2;return Mar;} function leap(y){return((y%400==0)||(y%100!=0&&y%4==0));} function civMonthLength(month,year){if(month==2) return 28+leap(year);else if(month==4||month==6||month==9||month==11) return 30;else return 31;} function civ2heb(day,month,year){var d=day;var m=month;var y=year;var hy;var pesach;var anchor;var adarType;m-=2;if(m<=0){m+=12;y-=1;} d+=Math.floor(7*m/12+30*(m-1));hy=y+3760;pesach=Gauss(hy);if(d<=pesach-15){anchor=pesach;d+=365;if(leap(y)) d++;y-=1;hy-=1;pesach=Gauss(hy);} else anchor=Gauss(hy+1);d-=pesach-15;anchor-=pesach-12;y++;if(leap(y)) anchor++;for(m=0;m<11;m++){var days;if(m==7&&anchor%30==2) days=30;else if(m==8&&anchor%30==0) days=29;else days=30-m%2;if(d<=days) break;d-=days;} adarType=0;if(m==11&&anchor>=30){if(d>30){adarType=2;d-=30;} else adarType=1;} if(m>=6) hy++;if(m==11) m+=adarType;return(d+' '+m+' '+hy);} function Easter(Y){var C=Math.floor(Y/100);var N=Y-19*Math.floor(Y/19);var K=Math.floor((C-17)/25);var I=C-Math.floor(C/4)-Math.floor((C-K)/3)+19*N+15;I=I-30*Math.floor((I/30));I=I-Math.floor(I/28)*(1-Math.floor(I/28)*Math.floor(29/(I+1))*Math.floor((21-N)/11));var J=Y+Math.floor(Y/4)+I+2-C+Math.floor(C/4);J=J-7*Math.floor(J/7);var L=I-J;var M=3+Math.floor((L+40)/44);var D=L+28-31*Math.floor(M/4);var ret=new Object();ret[1]=M;ret[2]=D;return ret;} function DOW(day,month,year){var a=Math.floor((14-month)/12);var y=year-a;var m=month+12*a-2;var d=(day+y+Math.floor(y/4)-Math.floor(y/100)+ Math.floor(y/400)+Math.floor((31*m)/12))%7;return d+1;} function NthDOW(nth,weekday,month,year){if(nth>0) return(nth-1)*7+1+(7+weekday-DOW((nth-1)*7+1,month,year))%7;var days=civMonthLength(month,year);return days-(DOW(days,month,year)-weekday+7)%7;} function holidays(cday,cmonth,cyear){if(cmonth==1&&cday==1) return"Año Nuevo";else if(cmonth==3&&cday==21) return"Natalicio de Don Benito Juárez";else if(cmonth==2&&cday==14) return"Día de San Valentín";else if(cmonth==4&&cday==19) return"Levantamiento del Holocausto";else if(cmonth==3||cmonth==4){var e=Easter(cyear);if(cmonth==e[1]&&cday==e[2]) return"Pascua";} else if(cmonth==5&&cday==10) return"Día de las Madres";else if(cmonth==2&&cday==14) return"Día de la Bandera";else if(cmonth==6&&cday==NthDOW(3,1,6,cyear)) return"Día del Padre";else if(cmonth==9&&cday==16) return"Independencia de México";else if(cmonth==5&&cday==5) return"Día del Trabajo";else if(cmonth==10&&cday==12) return"Descubrimiento de América";else if(cmonth==12&&cday==25) return"Navidad";else if(cmonth==12&&cday==31) return"Ultimo Día del Año";return"";} function moadim(cday,cmonth,cyear,hday,hmonth,dow){if(hmonth==6){if(hday==1||hday==2) return"Rosh Hashana" else if(hday==3&&dow!=7) return"Fiesta de Gedalia";else if(hday==4&&dow==1) return"Fiesta de Gedalia";else if(hday==10) return"Yom Kippur" else if(hday>=15&&hday<=22) return"Sukkot" else if(hday==23) return"Sukkot (d)"} else if(hmonth==8){if(hday>=25) return"Chanukkah"} else if(hmonth==9){if(hday<=2){return"Chanukkah"} else if(hday==3){if(cday==1){cday=29;cmonth=11;} else if(cday==2){cday=30;cmonth=11;} else cday-=3;var hdate=civ2heb(cday,cmonth,cyear);hd=eval(hdate.substring(0,hdate.indexOf(' ')));if(hd==29) return"Chanukkah"} else if(hday==10) return"Fiesta de Tevet"} else if(hmonth==10){if(hday==15) return"Tu b'Shvat"} else if(hmonth==11||hmonth==13){if(hday==11&&dow==5) return"Taanit Esther" else if(hday==13&&dow!=7) return"Taanit Esther" else if(hday==14) return"Purim" else if(hday==15) return"Shushan Purim"} else if(hmonth==0){if(hday==12&&dow==5) return"Taanit Bechorot" else if(hday==14&&dow!=7) return"Taanit Bechorot" else if(hday>=15&&hday<=21) return"Pesach" else if(hday==22) return"Pesach (d)"} else if(hmonth==1){if(hday==3&&dow==5) return"Yom Ha'Atzmaut" else if(hday==4&&dow==5) return"Yom Ha'Atzmaut" else if(hday==5&&dow!=6&&dow!=7) return"Yom Ha'Atzmaut" if(hday==14) return"Pesah sheni" else if(hday==18) return"Lag B'Omer" if(hday==28) return"Yom Yerushalayim"} else if(hmonth==2){if(hday==6) return"Shavuot" else if(hday==7) return"Shavuot (d)"} else if(hmonth==3){if(hday==17&&dow!=7) return"Fiesta de Tammuz" if(hday==18&&dow==1) return"Fiesta de Tammuz"} else if(hmonth==4){if(hday==9&&dow!=7) return"Tisha B'Av" if(hday==10&&dow==1) return"Tisha B'Av" if(hday==15) return"Tu B'Av"} return"";} function WriteHebrewDate(tday,tmonth,tyear,container){var hebDate=civ2heb(tday,tmonth,tyear);var hmS=hebDate.substring(hebDate.indexOf(' ')+1,hebDate.length);var hDay=eval(hebDate.substring(0,hebDate.indexOf(' ')));var hMonth=eval(hmS.substring(0,hmS.indexOf(' ')));var hYear=hmS.substring(hmS.indexOf(' ')+1,hmS.length);str=hDay+' '+hebMonth[hMonth+1]+' '+hYear;if(container){document.getElementById(container).innerHTML=str;} else{document.writeln(str);}} function WriteJewishHolidays(cDay,cMonth,cYear){hebDate=civ2heb(cDay,cMonth,cYear);hebDay=eval(hebDate.substring(0,hebDate.indexOf(' ')));var hm=hebDate.substring(hebDate.indexOf(' ')+1,hebDate.length);var hMonth=eval(hm.substring(0,hm.indexOf(' ')));moed=moadim(cDay,cMonth,cYear,hebDay,hMonth);if(moed!=""){document.write('Jewish Holiday: '+moed);}} function WriteCivilHolidays(cDay,cMonth,cYear){holiday=holidays(cDay,cMonth,cYear);if(holiday!=""){document.write('Civil Holiday: '+holiday);}} function gsearchform(){ mykeyword = document.getElementById("skeyword"); checkforkeyword = mykeyword.value; checkforkeyword = checkforkeyword.replace(/\s+/g,''); if(checkforkeyword == "BuscarenForoJudio.com"){ alert("Por favor introduzca alguna(s) palabra(s) clave para comenzar la búsqueda."); return false; } }