function eliminarComentario(comentario_id,section){if(confirm("¿Estás seguro de eliminar el comentario?")){var url="/sections/"+section+"/"+section+"DelComment.php?comment_id="+comentario_id;location.href=url;}} function match_comments(pag,partido_id,comment){var comments=document.getElementById('comments');var ajax=nuevoAjax();ajax.open("GET","/sections/partido/ajax.partidoComments.php?pag="+pag+"&partido_id="+partido_id+"&comment_id="+comment+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function(){if(ajax.readyState==1){comments.innerHTML="

Cargando comentarios
";} if(ajax.readyState==4){comments.innerHTML=ajax.responseText;}};ajax.send(null);} function contactoOtroMotivo(valor){if(valor=='OTRO'){document.getElementById('otro_motivo').style.display='block';document.getElementById('otro_motivo2').style.display='block';}else{document.getElementById('otro_motivo').style.display='none';document.getElementById('otro_motivo2').style.display='none';}} function verificaContacto() {contacto_email=document.contactar.contacto_email.value;if(document.contactar.contacto_email.value.length==0){alert("Debes introducir tu dirección de e-mail");document.contactar.contacto_email.focus();return false;} if(!is_mail(contacto_email)) {alert(contacto_email+" no es una dirección de e-mail válida");document.contactar.contacto_email.focus();return false;} if(document.contactar.contacto_con.value==0){alert("Por favor, selecciona el motivo");return false;} if(document.contactar.contacto_con.value=='OTRO'){if(document.contactar.contacto_asunto.value.length==0){alert("Por favor, especifica el motivo");document.contactar.contacto_asunto.focus();return false;}else{document.contactar.contacto_subject.value=document.contactar.contacto_asunto.value;}}else{document.contactar.contacto_subject.value=document.contactar.contacto_con.options[document.contactar.contacto_con.selectedIndex].text;} if(document.contactar.contacto_mensaje.value==""){alert("Por favor, especifica el mensaje");document.contactar.contacto_mensaje.focus();return false;} return true;} function desplegar(categoria){var menu=document.getElementById(categoria);var menu2=document.getElementById('aniversarios2');if(menu2.style.display=="none"){menu.style.display="none";menu2.style.display="block";} else{menu.style.display="block";menu2.style.display="none";}} function abrir(categoria){var menu=document.getElementById(categoria);var check_mismo_repre=document.getElementById('check_mismo_repre');if(menu.style.display=='none'){menu.style.display='block';check_mismo_repre.value="on";} else{menu.style.display='none';check_mismo_repre.value="off";}} function abrircerrar(segunda,primera){var segundas=document.getElementById(segunda);var primeras=document.getElementById(primera);if(segundas.style.display=='none'){segundas.style.display='block';primeras.style.display='none';} else{segundas.style.display='none';primeras.style.display='block';}} function DenunciarComentarioPartidoCampeonato(COMMENT_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+COMMENT_ID).style.display='none';document.getElementById('denuncia'+COMMENT_ID).style.display='block';ajax.open("GET","/sections/campeonato/campeonatoDenunciarcommentrun.php?comment_id="+COMMENT_ID,true);ajax.send(null);} function AbonoNoDisponible(ABONO_ID){if(confirm("¿Estás seguro de marcar como vendido/adquirido?")){location.href="/sections/entradas/entradas-vendidorun.php?abono_id="+ABONO_ID;}} function DenunciarComentarioFoto(COMMENT_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+COMMENT_ID).style.display='none';document.getElementById('denuncia'+COMMENT_ID).style.display='block';ajax.open("GET","/sections/gallery/galleryDenounceCommentRun.php?comment_id="+COMMENT_ID,true);ajax.send(null);} function eliminarVideo(VIDEO_ID,VIDEO_URL){if(confirm("¿Estás seguro de eliminar este vídeo?")) {location.href="/sections/videos/videos-delvideo.php?video_id="+VIDEO_ID+"&video_url="+VIDEO_URL;}} function denunciarComentarioVideo(COMMENT_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+COMMENT_ID).style.display='none';document.getElementById('denuncia'+COMMENT_ID).style.display='block';ajax.open("GET","/sections/videos/videos-denunciarcommentrun.php?comment_id="+COMMENT_ID,true);ajax.send(null);} function denunciarFoto() {document.getElementById('link_denuncia').style.visibility="hidden";document.getElementById('denuncia').style.display='block';} function denunciarFotoRun(FOTO_ID) {var radio_choice=false;var ajax=nuevoAjax();for(counter=0;counter");new_string=new_string.replace(nRegOpen,"

");new_string=new_string.replace(nRegOpenDiv," escribió:

");return""+new_string+"";} function nuevoAjax() {var obj;if(window.XMLHttpRequest){obj=new XMLHttpRequest();}else if(window.ActiveXObject){obj=new ActiveXObject("Microsoft.XMLHTTP");} return obj;} var listadoSelects=new Array();listadoSelects[0]="paises";listadoSelects[1]="estados";var listadoSelectsPartidos=new Array();listadoSelectsPartidos[0]="temporada_id";listadoSelectsPartidos[1]="partido_id";var listadoSelectsAlbumes=new Array();listadoSelectsAlbumes[0]="album";listadoSelectsAlbumes[1]="subalbum1";listadoSelectsAlbumes[2]="subalbum2";listadoSelectsAlbumes[3]="subalbum3";listadoSelectsAlbumes[4]="subalbum4";listadoSelectsAlbumes[5]="subalbum5";function buscarEnArray(array,dato) {var x=0;while(array[x]) {if(array[x]==dato){return x;} x++;} return null;} function cargaContenido(idSelectOrigen) {var posicionSelectDestino=buscarEnArray(listadoSelects,idSelectOrigen)+1;var selectOrigen=document.getElementById(idSelectOrigen);var opcionSeleccionada=selectOrigen.options[selectOrigen.selectedIndex].value;if(opcionSeleccionada==0) {var x=posicionSelectDestino,selectActual=null;while(listadoSelects[x]) {selectActual=document.getElementById(listadoSelects[x]);selectActual.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectActual.appendChild(nuevaOpcion);selectActual.disabled=true;x++;}} else if(idSelectOrigen!=listadoSelects[listadoSelects.length-1]) {var idSelectDestino=listadoSelects[posicionSelectDestino];var selectDestino=document.getElementById(idSelectDestino);var ajax=nuevoAjax();ajax.open("GET","/sections/ajax.provincias.php?select="+idSelectDestino+"&opcion="+opcionSeleccionada,true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {selectDestino.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectDestino.appendChild(nuevaOpcion);selectDestino.disabled=true;} if(ajax.readyState==4) {selectDestino.parentNode.innerHTML=ajax.responseText;}};ajax.send(null);}} function cargaPartidos(idSelectOrigen) {var posicionSelectDestino=buscarEnArray(listadoSelectsPartidos,idSelectOrigen)+1;var selectOrigen=document.getElementById(idSelectOrigen);var opcionSeleccionada=selectOrigen.options[selectOrigen.selectedIndex].value;if(opcionSeleccionada==0) {var x=posicionSelectDestino,selectActual=null;while(listadoSelectsPartidos[x]) {selectActual=document.getElementById(listadoSelectsPartidos[x]);selectActual.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectActual.appendChild(nuevaOpcion);selectActual.disabled=true;x++;}} else if(idSelectOrigen!=listadoSelectsPartidos[listadoSelectsPartidos.length-1]) {var idSelectDestino=listadoSelectsPartidos[posicionSelectDestino];var selectDestino=document.getElementById(idSelectDestino);var ajax=nuevoAjax();ajax.open("GET","/sections/ajax.partidos.php?select="+idSelectDestino+"&opcion="+opcionSeleccionada,true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {selectDestino.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectDestino.appendChild(nuevaOpcion);selectDestino.disabled=true;} if(ajax.readyState==4) {selectDestino.parentNode.innerHTML=ajax.responseText;}};ajax.send(null);}} function cargaPartidosTemporada() {var myPartidos=document.getElementById('hola');idTemporada=document.getElementById('temporada_id').value;var ajax=nuevoAjax();ajax.open("GET","/sections/ajax.partidos.php?id_temp="+idTemporada,true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {myPartidos.innerHTML="Seleccionar opción...";} if(ajax.readyState==4) {myPartidos.innerHTML=ajax.responseText;}};ajax.send(null);} function cargaJornadasTemporada(COMP_ID) {var myJornadas=document.getElementById('jornada');idTemporada=document.getElementById('temporada_id').value;var ajax=nuevoAjax();ajax.open("GET","/sections/resultados/ajax.cargaJornadas.php?id_temp="+idTemporada+"&id_comp="+COMP_ID,true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {myJornadas.innerHTML="Seleccionar opción...";} if(ajax.readyState==4) {myJornadas.innerHTML=ajax.responseText;}};ajax.send(null);} function cargaJornadasTemporadaAgendaTV() {var myJornadas=document.getElementById('jornada');idCompeticion=document.getElementById('competicion_id').value;var ajax=nuevoAjax();ajax.open("GET","/sections/agendagtv/ajax.cargaJornadas.php?id_comp="+idCompeticion,true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {myJornadas.innerHTML="Seleccionar opción...";} if(ajax.readyState==4) {myJornadas.innerHTML=ajax.responseText;}};ajax.send(null);} function cargaSubalbumes(idSelectOrigen) {var posicionSelectDestino=buscarEnArray(listadoSelectsAlbumes,idSelectOrigen)+1;var selectOrigen=document.getElementById(idSelectOrigen);var opcionSeleccionada=selectOrigen.options[selectOrigen.selectedIndex].value;document.upload.album_id.value=opcionSeleccionada;if(opcionSeleccionada==0) {var x=posicionSelectDestino,selectActual=null;trActual=null;while(listadoSelectsAlbumes[x]) {selectActual=document.getElementById(listadoSelectsAlbums[x]);selectActual.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectActual.appendChild(nuevaOpcion);selectActual.disabled=true;trActual=document.getElementById('tr_'+listadoSelectsAlbums[x]);trActual.style.display='none';x++;}} else if(idSelectOrigen!=listadoSelectsAlbumes[listadoSelectsAlbumes.length-1]) {var idSelectDestino=listadoSelectsAlbumes[posicionSelectDestino];var selectDestino=document.getElementById(idSelectDestino);var trDestino=document.getElementById('tr_'+idSelectDestino);var ajax=nuevoAjax();ajax.open("GET","/sections/ajax.subalbumes.php?select="+idSelectDestino+"&opcion="+opcionSeleccionada+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {selectDestino.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectDestino.appendChild(nuevaOpcion);selectDestino.disabled=true;} if(ajax.readyState==4) {if(ajax.responseText!="none") {trDestino.style.display='';x=posicionSelectDestino+1;while(listadoSelectsAlbumes[x]) {trDestino=document.getElementById('tr_'+listadoSelectsAlbumes[x]);trDestino.style.display='none';x++;} selectDestino.parentNode.innerHTML=ajax.responseText;} else {trDestino.style.display='none';x=posicionSelectDestino+1;while(listadoSelectsAlbumes[x]) {trDestino=document.getElementById('tr_'+listadoSelectsAlbumes[x]);trDestino.style.display='none';x++;}}}};ajax.send(null);}} function cargaTagsAlbum(albumId){var tagsAlbum=document.getElementById('tagsAlbum');var ajax=nuevoAjax();var labelTags=document.getElementById('labelRecomendadas');ajax.open("GET","/sections/ajax.getAlbumTags.php?album_id="+albumId,true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {tagsAlbum.innerHTML="Seleccionar opción...";} if(ajax.readyState==4) {tagsAlbum.innerHTML=ajax.responseText;if(ajax.responseText==""){labelTags.style.display="none";}else{labelTags.style.display="block";}}};ajax.send(null);} function addTag2Foto(tagId,tagValue){var inputTags=document.upload.keywords;var tagLink=document.getElementById('tag'+tagId);inputTags.value=inputTags.value+" "+tagValue;tagLink.className="bgc10";tagLink.innerHTML=tagValue;} function cargaSubalbumesVideo(idSelectOrigen) {var posicionSelectDestino=buscarEnArray(listadoSelectsAlbumes,idSelectOrigen)+1;var selectOrigen=document.getElementById(idSelectOrigen);var opcionSeleccionada=selectOrigen.options[selectOrigen.selectedIndex].value;document.upload.album_id.value=opcionSeleccionada;if(opcionSeleccionada==0) {var x=posicionSelectDestino,selectActual=null;trActual=null;while(listadoSelectsAlbumes[x]) {selectActual=document.getElementById(listadoSelectsAlbums[x]);selectActual.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectActual.appendChild(nuevaOpcion);selectActual.disabled=true;trActual=document.getElementById('tr_'+listadoSelectsAlbums[x]);trActual.style.display='none';x++;}} else if(idSelectOrigen!=listadoSelectsAlbumes[listadoSelectsAlbumes.length-1]) {var idSelectDestino=listadoSelectsAlbumes[posicionSelectDestino];var selectDestino=document.getElementById(idSelectDestino);var trDestino=document.getElementById('tr_'+idSelectDestino);var ajax=nuevoAjax();ajax.open("GET","/sections/ajax.subalbumesVideos.php?select="+idSelectDestino+"&opcion="+opcionSeleccionada+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function() {if(ajax.readyState==1) {selectDestino.length=0;var nuevaOpcion=document.createElement("option");nuevaOpcion.value=0;nuevaOpcion.innerHTML="Seleccionar opción...";selectDestino.appendChild(nuevaOpcion);selectDestino.disabled=true;} if(ajax.readyState==4) {if(ajax.responseText!="none") {trDestino.style.display='';x=posicionSelectDestino+1;while(listadoSelectsAlbumes[x]) {trDestino=document.getElementById('tr_'+listadoSelectsAlbumes[x]);trDestino.style.display='none';x++;} selectDestino.parentNode.innerHTML=ajax.responseText;} else {trDestino.style.display='none';x=posicionSelectDestino+1;while(listadoSelectsAlbumes[x]) {trDestino=document.getElementById('tr_'+listadoSelectsAlbumes[x]);trDestino.style.display='none';x++;}}}};ajax.send(null);}} function foro_over(src){src.style.background='#FFF5E6';} function foro_out1(src){src.style.background='#EFEFEF';} function foro_out2(src){src.style.background='#F9F9F9';} function is_mail(texto){var mailres=true;var cadena="abcdefghijklmn?opqrstuvwxyzABCDEFGHIJKLMN?OPQRSTUVWXYZ1234567890@._-";var arroba=texto.indexOf("@",0);if((texto.lastIndexOf("@"))!=arroba){arroba=-1;} var punto=texto.lastIndexOf(".");for(var contador=0;contador1)&&(arroba+180){alert("El título debe ser inferior a 80 carácteres");form.idolo_name.focus();return false;} form.idolo_body.value=trim(form.idolo_body.value,'');if(form.idolo_body.value.length<100){alert("Debes introducir como mínimo 100 carácteres");form.idolo_body.focus();return false;} return true;} function DenunciarIdolo(IDOLO_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+IDOLO_ID).style.display='none';document.getElementById('denuncia'+IDOLO_ID).style.display='block';ajax.open("GET","/sections/idolo/idolo-denunciaridolorun.php?idolo_id="+IDOLO_ID,true);ajax.send(null);} function verifica_memorable(form){if((form.rival1.value==""||form.rival1.value==0)&&form.rival2.value==""){alert("¿Cuál fue el rival?");return false;} form.memorable_titulo.value=trim(form.memorable_titulo.value);if(form.memorable_titulo.value==""){alert("Pon un título a tu partido memorable");return false;} if(form.memorable_titulo.value.length>80){alert("El título debe ser inferior a 80 carácteres");form.memorable_titulo.focus();return false;} form.memorable_body.value=trim(form.memorable_body.value);if(form.memorable_body.value.length<100){alert("Debes introducir como mínimo 100 carácteres");form.memorable_body.focus();return false;} return true;} function DenunciarMemorable(MEMORABLE_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+MEMORABLE_ID).style.display='none';document.getElementById('denuncia'+MEMORABLE_ID).style.display='block';ajax.open("GET","/sections/memorable/memorable-denunciarmemorablerun.php?memorable_id="+MEMORABLE_ID,true);ajax.send(null);} function verifica_foro(form){document.getElementById('bot_boton').disabled='disabled';if(form.action.value==1){if(form.post_title.value.length==0){alert("Rellena el asunto");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;} else{post_title=trim(form.post_title.value,'');if(!validate_text(form.post_title.value)){alert("El asunto debe contener letras o números");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;} if(post_title==""){alert("El asunto debe tener carácteres");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;}} if(form.foro_id.value==-1){alert("Elige un foro");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;} if(form.post_body.value.length==0){alert("Introduce el mensaje");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;}}else{if(form.post_body.value.length==0){alert("Introduce el mensaje");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;}} return true;} function verificaBuscadorKey(form){if(form.keyword.value==""){alert("Debes introducir lo que quieres buscar");form.keyword.focus();return false;} return true;} function verifica_respuesta_rapida(form){document.getElementById('bot_boton').disabled='disabled';if(form.post_body.value.length==0){alert("Introduce el mensaje");document.getElementById('bot_boton').disabled='';document.getElementById('bot_caption').innerHTML="Enviar";return false;} return true;} function valid_form_search(pagi){document.form_search.pag.value=pagi;document.form_search.submit();} function Verifica(form){if(form.user_name.value.length<3){alert("Tu nick debe tener como mínimo 3 carácteres.");form.user_name.focus();return false;} if(form.user_pass.value.length<4){alert("Tu contraseña debe tener como mínimo 4 carácteres.");form.user_pass.focus();return false;} if(form.conformidad.checked==false){alert("Debes aceptar las condiciones de uso para poder registrarte.");return false;} if(form.user_pass_conf.value!=form.user_pass.value){alert("Las contraseñas no coinciden.");form.user_pass_conf.focus();return false;} if(form.paises.value==-1){alert("Debes indicar un país.");form.paises.focus();return false;} if(form.estados.value==-1||form.estados.value.length==0){alert("Debes indicar una provincia");form.estados.focus();return false;} if(!is_mail(form.user_email.value)){alert("'"+form.user_email.value+"' no es válido, por favor revísalo.");form.user_email.focus();return false;} return true;} function verifica_recomendar(form){if(form.nombre.value==""){alert("Debes introducir tu nombre");form.nombre.focus();return false;} if(!is_mail(form.email.value)) {alert(form.email.value+" no es una dirección de e-mail válida");form.email.focus();return false;} if(form.recomendados.value==""){alert("Introduce los e-mails de tus amigos");form.recomendados.focus();return false;} return true;} function trim(str,chars){return ltrim(rtrim(str,chars),chars);} function ltrim(str,chars){chars=chars||"\\s";return str.replace(new RegExp("^["+chars+"]+","g"),"");} function rtrim(str,chars){chars=chars||"\\s";return str.replace(new RegExp("["+chars+"]+$","g"),"");} function trim1(string){string=string.replace(/^s+/,'');for(var i=string.length;i>0;i--){if(/S/.test(string.charAt(i))){string=string.substring(0,i);break;}} return string;} function baseDomainString(){e=document.domain.split(/\./);if(e.length>3){return("domain=."+e[e.length-3]+"."+e[e.length-2]+"."+e[e.length-1])+";";}else{if(e.length>2){return("domain=."+e[e.length-2]+"."+e[e.length-1])+";";}else{return("");}}} function VideosActionCookie(site,action,pos){var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+360000000);document.cookie=site+"_a_ivi = "+action+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";document.cookie=site+"_p_ivi = "+pos+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";} function VideosAlbumCookie(site,album_id,pos){var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+360000000);document.cookie=site+"_a_id_ivi = "+album_id+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";document.cookie=site+"_p_ivi = "+pos+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";} function VideosSearchCookie(site,vb,pos){var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+360000000);document.cookie=site+"_vb_id_ivi = "+vb+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";document.cookie=site+"_p_ivi = "+pos+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";} function FotosActionCookie(site,action,pos){var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+360000000);document.cookie=site+"_a_igf = "+action+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";document.cookie=site+"_p_igf = "+pos+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";if(action!=0){FotosAlbumCookie(site,'',pos);}} function FotosAlbumCookie(site,album_id,pos){var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+360000000);document.cookie=site+"_a_id_igf = "+album_id+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";document.cookie=site+"_p_igf = "+pos+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";} function FotosSearchCookie(site,vb,pos){var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+360000000);document.cookie=site+"_vb_id_igf = "+vb+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";document.cookie=site+"_p_igf = "+pos+";"+baseDomainString()+" expires = "+cookie_date.toGMTString()+"; path=/";} function selectsmile(n){document.getElementById('smileselector1').className='';document.getElementById('smileselector2').className='';document.getElementById('smileselector3').className='';document.getElementById('smileselector4').className='';document.getElementById('smileselector'+n).className='selected';document.getElementById('commentsmile').value=n;} function messageError(text) {document.getElementById('mensajes').style.display='block';document.getElementById('mensajes').className='alerta';document.getElementById('mensajes').innerHTML=text;document.location="#errores";} function comprobar(texto,valor,minLong,maxLong){var variable=texto;if(variable.lengthmaxLong){return false;} if(valor=='txt'){var comp=/^([a-zA-Z0-9]{2,14})$/;} if(valor=='mail'){var comp=/[\w-\.]{3,}@([\w-]{2,}\.)*([\w-]{2,}\.)[\w-]{2,4}/;} if(comp.test(texto)){return true;} else{return false;}} function DescargarFotoOriginal(linkFoto){var link_descarga=document.getElementById('descargar');var link_altaDownload=document.getElementById('altaDownload');var link_altaShow=document.getElementById('altaShow');link_descarga.style.display="none";if(linkFoto=='Download'){link_altaDownload.style.display="block";}else{link_altaShow.style.display="block";}} function editoresSearch(){var usr_keyw=document.getElementById("usr_keyw").value;var divResults=document.getElementById("editoresResults");var ajax=nuevoAjax();ajax.open("GET","/sections/wiki/wiki-editoresSearch.php?usr_keyw="+usr_keyw,true);ajax.onreadystatechange=function() {if(ajax.readyState==1){divResults.innerHTML="";} if(ajax.readyState==4){divResults.innerHTML=ajax.responseText;}};ajax.send(null);} function ocultarTabla(){var divTabla=document.getElementById('idContent');var linkTabla=document.getElementById('linkOcultar');if(divTabla.style.display=='none'){divTabla.style.display='block';linkTabla.innerHTML="ocultar";}else{linkTabla.innerHTML="mostrar";divTabla.style.display='none';}} function denunciarWikiArticulo(){var divDenuncia=document.getElementById('formDenunciar');var linkDenunciar=document.getElementById('linkDenunciar');if(divDenuncia.style.display=='none'){divDenuncia.style.display='block';linkDenunciar.innerHTML="Cerrar";}else{divDenuncia.style.display='none';linkDenunciar.innerHTML="Denunciar artículo";}} function denunciarWikiArticuloRun(){if(document.denunciarArticulo.denunciaTexto.value.length==0){alert("Por favor, copia la parte del texto que quieres denunciar");document.denunciarArticulo.denunciaTexto.focus();}else{document.denunciarArticulo.submit();}} function reportarAbusoAdmin(divAbuso,linkAbuso){var divAbuso=document.getElementById(divAbuso);var linkAbuso=document.getElementById(linkAbuso);if(divAbuso.style.display=='none'){divAbuso.style.display='block';linkAbuso.innerHTML='Cerrar';}else{divAbuso.style.display='none';linkAbuso.innerHTML='Reportar al administrador';}} function reportarAbusoAdminRun(divAbuso,linkAbuso,divReportado,formAbuso){var divAbuso=document.getElementById(divAbuso);var linkAbuso=document.getElementById(linkAbuso);var divReportado=document.getElementById(divReportado);var abusoInfo=formAbuso.abusoInfo.value;var abusoTexto=formAbuso.abusoTexto.value;if(abusoTexto.length==0){alert("Por favor, indica el abuso realizado en la enciclopedia");}else{var ajax=nuevoAjax();ajax.open("GET","/sections/wiki/wiki-reportarAbusoRun.php?abusoInfo="+abusoInfo+"&abusoTexto="+abusoTexto,true);ajax.onreadystatechange=function() {if(ajax.readyState==1){divAbuso.innerHTML="";} if(ajax.readyState==4){divAbuso.style.display='none';linkAbuso.style.display='none';divReportado.style.display='block';}};ajax.send(null);}} function cambiarStatusArticulo(page_id,currentStatus){var divOpen=document.getElementById('statusOpen');var divClosed=document.getElementById('statusClosed');if(currentStatus=='closed'){divOpen.style.display='block';divClosed.style.display='none';}else{divOpen.style.display='none';divClosed.style.display='block';} var ajax=nuevoAjax();ajax.open("GET","/sections/wiki/wiki-changePageStatus.php?page_id="+page_id+"¤t="+currentStatus+"&ms="+new Date().getTime(),false);ajax.send(null);} function cambiarArticuloDestacado(page_id,current){var spanDestacado=document.getElementById('articuloDestacado');var ajax=nuevoAjax();ajax.open("GET","/sections/wiki/wiki-changePageDestacado.php?page_id="+page_id+"¤t="+current+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function() {if(ajax.readyState==1){spanDestacado.innerHTML="";} if(ajax.readyState==4){spanDestacado.innerHTML=ajax.responseText;}};ajax.send(null);} function showMenu(menuVal){var my_menu=document.getElementById('menu'+menuVal);var my_submenu=document.getElementById('iSubMenu'+menuVal);var my_arrow=document.getElementById('iArrowInd'+menuVal);var Items=document.getElementsByName('subWal');for(counter=0;counter";} if(ajax.readyState==4){MostrarRespuesta.innerHTML=ajax.responseText;}};ajax.send(params);return false;} function restaComodin(USER_ID,GAME_ID,NUM_COMODIN) {if(NUM_COMODIN==1){var borracomodin=document.getElementById('comodin1');} if(NUM_COMODIN==3){var borracomodin=document.getElementById('comodin3');} var ajax=nuevoAjax();ajax.open("GET","/sections/trivial/ajax.trivialGastaComodin.php?user_id="+USER_ID+"&gid="+GAME_ID+"&comodin="+NUM_COMODIN,true);ajax.onreadystatechange=function() {if(ajax.readyState==4) {borracomodin.innerHTML="";}};ajax.send(null);return true;} function changeHoverUpload(LeftId,IdLink,RightId){myLeftId=document.getElementById(LeftId);myIdLink=document.getElementById(IdLink);myRightId=document.getElementById(RightId);myLeftId.className="linkUpLeftH";myIdLink.className="linkUpH";myRightId.className="linkUpRightH";} function resetHoverUpload(LeftId,IdLink,RightId){myLeftId=document.getElementById(LeftId);myIdLink=document.getElementById(IdLink);myRightId=document.getElementById(RightId);myLeftId.className="linkUpLeft";myIdLink.className="linkUp";myRightId.className="linkUpRight";} function changeHoverSubNav(LeftId,IdLink,RightId){myLeftId=document.getElementById(LeftId);myIdLink=document.getElementById(IdLink);myRightId=document.getElementById(RightId);myLeftId.className="subNavLeftH";myIdLink.className="linkSubNavH";myRightId.className="subNavRightH";} function resetHoverSubNav(LeftId,IdLink,RightId){myLeftId=document.getElementById(LeftId);myIdLink=document.getElementById(IdLink);myRightId=document.getElementById(RightId);myLeftId.className="subNavLeft";myIdLink.className="linkSubNav";myRightId.className="subNavRight";} function changeHoverSendFriend(LeftId,IdLink,RightId){myLeftId=document.getElementById(LeftId);myIdLink=document.getElementById(IdLink);myRightId=document.getElementById(RightId);myLeftId.className="sendFriendLeftH";myIdLink.className="linkSendFriendH";myRightId.className="sendFriendRightH";} function resetHoverSendFriend(LeftId,IdLink,RightId){myLeftId=document.getElementById(LeftId);myIdLink=document.getElementById(IdLink);myRightId=document.getElementById(RightId);myLeftId.className="sendFriendLeft";myIdLink.className="linkSendFriend";myRightId.className="sendFriendRight";} function cambiaPestChamp(invisibleId,visibleId,pestNotSelId,pestSelId,newClassName){myInvisibleId=document.getElementById(invisibleId);myVisibleId=document.getElementById(visibleId);myPestNotSelId=document.getElementById(pestNotSelId);myPestSelId=document.getElementById(pestSelId);var myContainerBig=document.getElementById('contChampBig');myInvisibleId.style.display="none";myVisibleId.style.display="block";myPestNotSelId.className="notSelectedChamp";myPestSelId.className="selectedChamp";myContainerBig.className=newClassName;} function verifica_reporteroComment(form){if(form.reportero_comment_body.value==""){alert("Debes introducir algún comentario");form.reportero_comment_body.focus();return false;} return true;} function DenunciarReportero(REPORTERO_ID) {var ajax=nuevoAjax();document.getElementById('link_denuncia'+REPORTERO_ID).style.display='none';document.getElementById('denuncia'+REPORTERO_ID).style.display='block';ajax.open("GET","/sections/reportero/reporteroDenunciarReporteroRun.php?reportero_id="+REPORTERO_ID,true);ajax.send(null);} function DenunciarReporteroComment(REPORTERO_ID,COMMENT_ID) {var ajax=nuevoAjax();document.getElementById('link_denuncia_comment'+COMMENT_ID).style.display='none';document.getElementById('denuncia_comment'+COMMENT_ID).style.display='block';ajax.open("GET","/sections/reportero/reporteroDenunciarCommentRun.php?comment_id="+COMMENT_ID,true);ajax.send(null);} function DenunciarReporteroFoto(REPORTERO_ID,FOTO_ID) {var ajax=nuevoAjax();document.getElementById('link_denuncia_foto'+FOTO_ID).style.display='none';document.getElementById('denuncia_foto'+FOTO_ID).style.display='block';ajax.open("GET","/sections/reportero/reporteroDenunciarFotoRun.php?foto_id="+FOTO_ID,true);ajax.send(null);} function VotarReportero(REPORTERO_ID,VOTO,CMP) {var manos_voto=document.getElementById('principalVotePost');var votacion=document.getElementById('reporteroYaVotadoArriba');var votacion_hor=document.getElementById('votacion_secundary');var mymainResultado=document.getElementById('mainResultado');var ajax=nuevoAjax();params="rid="+REPORTERO_ID+"&b="+VOTO;ajax.open("POST","/sections/reportero/reporteroVoteRun.php",true);ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");ajax.setRequestHeader("Content-length",params.length);ajax.onreadystatechange=function() {if(ajax.readyState==1){manos_voto.style.display='none';votacion_hor.innerHTML="";} if(ajax.readyState==4){if(CMP==2){votacion.style.display="block";votacion.innerHTML=ajax.responseText;votacion_hor.innerHTML=ajax.responseText;}else{mymainResultado.innerHTML=ajax.responseText;votacion_hor.innerHTML="

Gracias por participar

";votacion.style.display="block";manos_voto.style.display="none";votacion_hor.style.display="none";votacion.innerHTML="

Gracias por participar

";}}};ajax.send(params);} function verRumores(){document.getElementById('notiPestReport').className="";document.getElementById('linkNotiReport').className="linkGeneral neg";document.getElementById('rumorPestReport').className="selected";document.getElementById('linkRumorReport').className="itemSelectedNewSubMenu";document.getElementById('noticiasContentHome').style.display='none';document.getElementById('rumoresContentHome').style.display='block';document.getElementById('subeNotiHomeReport').style.display='none';document.getElementById('subeRumorHomeReport').style.display='block';} function verNoticias(){document.getElementById('notiPestReport').className="selected";document.getElementById('linkNotiReport').className="itemSelectedNewSubMenu";document.getElementById('rumorPestReport').className="";document.getElementById('linkRumorReport').className="linkGeneral neg";document.getElementById('noticiasContentHome').style.display='block';document.getElementById('rumoresContentHome').style.display='none';document.getElementById('subeNotiHomeReport').style.display='block';document.getElementById('subeRumorHomeReport').style.display='none';} function mostrarSubirFoto(){document.getElementById('cambiar_foto').style.display='none';document.getElementById('mostrar_subir_foto').style.display='block';} function VotarDerbi(){var link_descarga=document.getElementById('descargar');var link_alta=document.getElementById('alta');link_descarga.style.display="none";link_alta.style.display="block";} function trivial_ranking(filter,orden) {var ranking=document.getElementById('tabla_ranking');var ajax=nuevoAjax();ajax.open("GET","/sections/trivial/ajax.TrivialRanking.php?filter="+filter+"&ord="+orden,true);ajax.onreadystatechange=function() {if(ajax.readyState==4) {ranking.innerHTML=ajax.responseText;}};ajax.send(null);} function trivial_ranking_completa(filter,orden,pag) {var ranking=document.getElementById('tabla_ranking');var ajax=nuevoAjax();ajax.open("GET","/sections/trivial/ajax.TrivialRanking.php?filter="+filter+"&ord="+orden+"&pag="+pag,true);ajax.onreadystatechange=function() {if(ajax.readyState==4) {ranking.innerHTML=ajax.responseText;}};ajax.send(null);} function verifica_juego_jugadores(form){if(form.jugador_1.value==0){alert("Debes elegir 3 jugadores");form.jugador_1.focus();return false;} if(form.jugador_2.value==0){alert("Debes elegir 3 jugadores");form.jugador_2.focus();return false;} if(form.jugador_3.value==0){alert("Debes elegir 3 jugadores");form.jugador_3.focus();return false;} return true;} function juego_jugadores_fuera() {var ranking=document.getElementById('tabla_jugadores');var ajax=nuevoAjax();ajax.open("GET","/sections/juegos/ajax.JugadoresFuera.php",true);ajax.onreadystatechange=function() {if(ajax.readyState==4) {ranking.innerHTML=ajax.responseText;}};ajax.send(null);} function verifica_juego_jugadores_dentro(form){if(form.jugador_in_1.value==""){alert("Debes elegir 3 jugadores");form.jugador_in_1.focus();return false;} if(form.jugador_in_2.value==""){alert("Debes elegir 3 jugadores");form.jugador_in_2.focus();return false;} if(form.jugador_in_3.value==""){alert("Debes elegir 3 jugadores");form.jugador_in_3.focus();return false;} return true;} function juego_jugadores_dentro() {var ranking=document.getElementById('tabla_jugadores_dentro');var ajax=nuevoAjax();ajax.open("GET","/sections/juegos/ajax.JugadoresDentro.php",true);ajax.onreadystatechange=function() {if(ajax.readyState==4) {ranking.innerHTML=ajax.responseText;}};ajax.send(null);} function showFeeds(){document.getElementById('showMoreFeeds').style.display="none";document.getElementById('allFeeds').style.display="block";document.getElementById('showLessFeeds').style.display="block";} function hideFeeds(){document.getElementById('showMoreFeeds').style.display="block";document.getElementById('allFeeds').style.display="none";document.getElementById('showLessFeeds').style.display="none";} function showPosts(){document.getElementById('showMorePosts').style.display="none";document.getElementById('allPosts').style.display="block";document.getElementById('showLessPosts').style.display="block";} function hidePosts(){document.getElementById('showMorePosts').style.display="block";document.getElementById('allPosts').style.display="none";document.getElementById('showLessPosts').style.display="none";} function ponerAvatar(form) {var avatar=document.getElementById('ponerAvatar');var ajax=nuevoAjax();foto_avatar=form.foto.value;params="av="+foto_avatar;ajax.open("POST","/sections/gallery/ajax.ponerAvatar.php",true);ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");ajax.setRequestHeader("Content-length",params.length);ajax.onreadystatechange=function() {if(ajax.readyState==1){avatar.innerHTML="
";} if(ajax.readyState==4){avatar.innerHTML=ajax.responseText;}};ajax.send(params);return false;} function cambiarEstadoAnimo(user_id,ESTADO) {var ajax=nuevoAjax();document.getElementById('estado_novotado').style.display="none";document.getElementById('estado_votado').style.display="block";var estado=document.getElementById('estado_votado');ajax.open("GET","/sections/perfil/ajax.cambiarEstadoAnimo.php?user_id="+user_id+"&est="+ESTADO,true);ajax.onreadystatechange=function() {if(ajax.readyState==4){estado.innerHTML=ajax.responseText;}};ajax.send(null);} function cambiarArticuloFavorito(page_id,current){var spanFavorito=document.getElementById('articuloFavorito');var ajax=nuevoAjax();ajax.open("GET","/sections/wiki/wiki-changePageFavorito.php?page_id="+page_id+"¤t="+current+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function() {if(ajax.readyState==1){spanFavorito.innerHTML="";} if(ajax.readyState==4){spanFavorito.innerHTML=ajax.responseText;}};ajax.send(null);} function crearArticuloWiki(){document.getElementById('crearArticulo').style.display="block";} function verifica_vivencias(form){if(form.vivencia_body.value==""){alert("Debes introducir tu vivencia");form.vivencia_body.focus();return false;} var radio=false;for(counter=0;counter=100){return true;} return false;} function stripTags(srcString){if(srcString===""){return"";} srcString=srcString.replace("\ ","");return srcString.replace(new RegExp("(<[\\s\\S]+?>)","g"),"");} function showArea(areaID,log){if(log==0){birthdaysNeedReg(areaID);die;} var myAn=document.getElementById('birdth'+areaID);myAn.innerHTML='
* El mensaje se enviará directamente a su ficha
';} function closeArea(areaID){var myAn=document.getElementById('birdth'+areaID);myAn.innerHTML='Felicítalo';} function changeTabUsers(whichOne){var showUsers=document.getElementById('lastUsers');var showBirdthdays=document.getElementById('birdthUsers');var tab_1=document.getElementById('tab1');var tab_2=document.getElementById('tab2');if(whichOne==2){tab_1.innerHTML='Los nuevos';tab_2.innerHTML='Los cumpleañeros';showUsers.className="dNone";showBirdthdays.className="dBlock";}else{tab_1.innerHTML='Los nuevos';tab_2.innerHTML='Los cumpleañeros';showUsers.className="dBlock";showBirdthdays.className="dNone";}} function moreBirthdays(pag,nbirth){var birdthUsers=document.getElementById('birdthUsers');var ajax=nuevoAjax();ajax.open("GET","/sections/ajax.MoreBirthdays.php?pag="+pag+"&nbirth="+nbirth+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function(){if(ajax.readyState==1){birdthUsers.innerHTML="
";} if(ajax.readyState==4){birdthUsers.innerHTML=ajax.responseText;}};ajax.send(null);} function birthdaysNeedReg(areaID){var showArea=document.getElementById('birdth'+areaID);var link_alta=document.getElementById('alta');showArea.style.display="none";link_alta.style.display="block";} function isDate(dateStr){var datePat=/^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;var matchArray=dateStr.match(datePat);if(matchArray==null){return false;} month=matchArray[1];day=matchArray[3];year=matchArray[5];if(month<1||month>12){return false;} if(day<1||day>31){return false;} if((month==4||month==6||month==9||month==11)&&day==31){return false;} if(month==2){var isleap=(year%4==0&&(year%100!=0||year%400==0));if(day>29||(day==29&&!isleap)){return false;}} return true;} function dataStaff(){var showForm=document.getElementById('aparecer_staff');var staff=document.getElementById('staff');var datos=document.getElementById('datos_reales');if(staff.checked==true){showForm.style.display="block";}else{showForm.style.display="none";datos.style.display="none";}} function showStaffForm(){var showFormFull=document.getElementById('datos_reales');var nick=document.getElementById('nick');var nombre=document.getElementById('nombre');if(nick.checked==true){showFormFull.style.display="none";}else{showFormFull.style.display="block";}} function verificaColaborar(form){colaborar_donde=trim(form.colaborar_donde.value);if(form.colaborar_donde.value.length==""){alert("Debes indicarnos en que sección te gustaría colaborar");form.colaborar_donde.focus();return false;} var staff=document.getElementById('staff');if(staff.checked==true){var radio=false;var radio_checked;for(counter=0;counterVotar
';}} ajax.open("GET","/sections/adds/elecciones/ajax.eleccionesVoteRun.php?vote="+obId+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function(){if(ajax.readyState==1){myDiv.innerHTML="
";} if(ajax.readyState==4){myDiv.innerHTML=ajax.responseText;}};ajax.send(null);} function datePast(input){var date=input.split('-');if(date.length<2){return false;} var dia=date[2].split(' ');var hora=dia[1].split(':');var miFecha=new Date(date[0],date[1]-1,dia[0],hora[0],hora[1]);var today=new Date();var dia_actual=today.getDate();var mes_actual=today.getMonth()+1;var anno_actual=today.getFullYear();var hora_actual=today.getHours();var min_actual=today.getMinutes();var fecha=new Date(anno_actual,mes_actual-1,dia_actual,hora_actual,min_actual);if(miFecha");if(buscaInfo==-1){asistentes.innerHTML=respuestaAjax;}else{votacion.innerHTML=respuestaAjax;}}};ajax.send(params);} function goEventPartido(EVENT_ID,VOY,PARTIDO_ID) {var asist1=document.getElementById('asist1');var asist2=document.getElementById('asist2');var asist0=document.getElementById('asist0');var asistentes=document.getElementById('asistentes');var votacion=document.getElementById('votacion');var ajax=nuevoAjax();params="evid="+EVENT_ID+"&b="+VOY+"&parId="+PARTIDO_ID;ajax.open("POST","/sections/events/ajax.eventsGoEventPartidoRun.php",true);ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");ajax.setRequestHeader("Content-length",params.length);ajax.onreadystatechange=function() {if(ajax.readyState==4){if(VOY==1){asist1.className="btnAsistenciaSelect";asist2.className="btnAsistencia";asist0.className="btnAsistencia";} if(VOY==2){asist1.className="btnAsistencia";asist2.className="btnAsistenciaSelect";asist0.className="btnAsistencia";} if(VOY==0){asist1.className="btnAsistencia";asist2.className="btnAsistencia";asist0.className="btnAsistenciaSelect";} var respuestaAjax=ajax.responseText;var buscaInfo=respuestaAjax.indexOf("

");if(buscaInfo==-1){asistentes.innerHTML=respuestaAjax;tb_init('a.thickbox, area.thickbox, input.thickbox');}else{votacion.innerHTML=respuestaAjax;}}};ajax.send(params);} function formGallery(){$("#myFormC").slideToggle("slow");} function uploadConcurso(Objform){if(Objform.foto_nombre.value.length==0){alert("Debes introducir un título para la imagen");return false;} if(!validate_text(Objform.foto_nombre.value)){alert("El título debe contener letras o números");return false;} if(Objform.imagen.value.length==0){alert("Debes especificar la imagen");return false;} return true;} function insertEmotion(file_name,title){if(title==null){title="";} title=title.replace(/&/g,'&');title=title.replace(/\"/g,'"');title=title.replace(//g,'>');var html=''+title+'';tinyMCE.execCommand('mceInsertContent',false,html);} function verificaEventComment(form){if(form.event_comment_body.value==""){alert("Debes introducir algún comentario");form.event_comment_body.focus();return false;} return true;} function deleteCommentEvent(EVENT_ID,EVENT_COMMENT_ID){if(confirm("¿Estás seguro de eliminar este comentario?")) {location.href="/sections/events/eventsDelComment.php?event_id="+EVENT_ID+"&event_comment_id="+EVENT_COMMENT_ID;}} function adidasReportComment(COMMENT_ID,URL_ORI){var ajax=nuevoAjax();document.getElementById('link_denuncia'+COMMENT_ID).style.display='none';document.getElementById('denuncia'+COMMENT_ID).style.display='block';ajax.open("POST","/sections/adds/adidas/adidasCommentDenunciarRun.php",false);ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajax.send("comment_id="+COMMENT_ID+"&url_from="+URL_ORI);} function adidasVote(CAND_ID){var ajax=nuevoAjax();ajax.open("GET","/sections/adds/adidas/ajax.adidasVoteRun.php?cand_id="+CAND_ID+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function(){if(ajax.readyState==1){} if(ajax.readyState==4){if(ajax.responseText==-2){document.getElementById('adidasUnVoto').style.display='block';document.getElementById('adidasNoReg').style.display='none';document.getElementById('adidasVote').style.display='none';}else{if(ajax.responseText==-1){document.getElementById('adidasNoReg').style.display='block';document.getElementById('adidasUnVoto').style.display='none';document.getElementById('adidasVote').style.display='none';}else{document.getElementById('adidasNumVotes').innerHTML=ajax.responseText;}}}};ajax.send(null);} function bbvaReportComment(COMMENT_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+COMMENT_ID).style.display='none';document.getElementById('denuncia'+COMMENT_ID).style.display='block';ajax.open("POST","/sections/adds/bbva/bbvaCommentDenunciarRun.php",false);ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajax.send("comment_id="+COMMENT_ID);} function bbva_comments(pag){var comments=document.getElementById('bbvaComments');var ajax=nuevoAjax();ajax.open("GET","/sections/adds/bbva/ajax.bbvaComments.php?pag="+pag+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function(){if(ajax.readyState==4){comments.innerHTML=ajax.responseText;}};ajax.send(null);} function events_comments(pag,event_id){var comments=document.getElementById('eventsComments');var ajax=nuevoAjax();ajax.open("GET","/sections/events/ajax.eventsComments.php?pag="+pag+"&event_id="+event_id+"&ms="+new Date().getTime(),true);ajax.onreadystatechange=function(){if(ajax.readyState==4){comments.innerHTML=ajax.responseText;}};ajax.send(null);} function DenunciarComment(COMMENT_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+COMMENT_ID).style.visibility="hidden";document.getElementById('denuncia'+COMMENT_ID).style.display='block';ajax.open("GET","/sections/events/eventsDenunciarCommentRun.php?comment_id="+COMMENT_ID,true);ajax.send(null);} function eventsDeleteComment(EVENT_ID,EVENT_COMMENT_ID){location.href="/sections/events/eventsDelComment.php?event_id="+EVENT_ID+"&event_comment_id="+EVENT_COMMENT_ID;} function DenunciarEvent(EVENT_ID){var ajax=nuevoAjax();document.getElementById('link_denuncia'+EVENT_ID).style.visibility="hidden";document.getElementById('denuncia'+EVENT_ID).style.display='block';ajax.open("GET","/sections/events/eventsDenunciarEventRun.php?event_id="+EVENT_ID,true);ajax.send(null);} function datosServidor(){};datosServidor.prototype.iniciar=function(){try{this._xh=new XMLHttpRequest();}catch(e){var _ieModelos=new Array('MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP');var success=false;for(var i=0;i<_ieModelos.length&&!success;i++){try{this._xh=new ActiveXObject(_ieModelos[i]);success=true;}catch(e){}} if(!success){return false;} return true;} return false;} datosServidor.prototype.ocupado=function(){estadoActual=this._xh.readyState;return(estadoActual&&(estadoActual<4));} datosServidor.prototype.procesa=function(){if(this._xh.readyState==4&&this._xh.status==200){this.procesado=true;}} datosServidor.prototype.enviar=function(urlget,datos){if(!this._xh){this.iniciar();} if(!this.ocupado()){this._xh.open("GET",urlget,false);this._xh.send(datos);if(this._xh.readyState==4&&this._xh.status==200){return this._xh.responseText;}} return false;} function _gr(reqseccion,divcont){remotos=new datosServidor;nt=remotos.enviar(reqseccion,"");document.getElementById(divcont).innerHTML=nt;} var urlBase="galleryValorationRun.php?";function rateImg(rating,imgId){document.getElementById('zonaEstrellada').innerHTML="
Cargando...
";remotos=new datosServidor;nt=remotos.enviar('/sections/gallery/galleryValorationRun.php?rating='+rating+'&imgId='+imgId+'&ms='+new Date().getTime());rating=rating*17;document.getElementById('zonaEstrellada').innerHTML=nt;document.getElementById('current-rating').style.width=rating+'px';} function ratePlayer(rating,PlayerId,MatchId){var content="
Cargando...
";$('#'+PlayerId).html(content);remotos=new datosServidor;nt=remotos.enviar('/sections/partido/partido-valoracionrun.php?rating='+rating+'&jugador_id='+PlayerId+'&partido_id='+MatchId+'&ms='+new Date().getTime());$('#'+PlayerId).html(nt);} function rateUser(rating,userId,rutaSite){document.getElementById('user-rating').innerHTML="
Cargando...
";remotos=new datosServidor;nt=remotos.enviar('/sections/perfil/ajax.userValoracionRun.php?rating='+rating+'&userId='+userId+'&ms='+new Date().getTime());rating=rating*25;document.getElementById('user-rating').innerHTML=nt;document.getElementById('current-rating-user').style.width=rating+'px';} function rateJugador(rating,jugadorId){remotos=new datosServidor;nt=remotos.enviar('/sections/plantilla/jugador-valoracionrun.php?rating='+rating+'&jugadorId='+jugadorId+'&ms='+new Date().getTime());rating=rating*25;document.getElementById('current-rating-user').style.width=rating+'px';document.getElementById('rating-total').innerHTML=nt;} function rateVideo(rating,videoId){document.getElementById('zonaEstrellada').innerHTML="
Cargando...
";remotos=new datosServidor;nt=remotos.enviar('/sections/videos/videosValorationRun.php?rating='+rating+'&videoId='+videoId+'&ms='+new Date().getTime());rating=rating*17;document.getElementById('zonaEstrellada').innerHTML=nt;document.getElementById('current-rating').style.width=rating+'px';} var urlBase="foroValorationRun.php?";function rateForo(rating,temaId){document.getElementById('temasValoracion').innerHTML="
Cargando...
";remotos=new datosServidor;nt=remotos.enviar('/sections/foro/foroValorationRun.php?rating='+rating+'&temaId='+temaId+'&ms='+new Date().getTime());rating=rating*17;document.getElementById('temasValoracion').innerHTML=nt;document.getElementById('current-rating').style.width=rating+'px';} var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion() {var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){} if(!version) {try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}} if(!version) {try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}} if(!version) {try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}} if(!version) {try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}} return version;} function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];} if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}} var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}} else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();} return flashVer;} function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision) {versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");} var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer)) return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision)) return true;}} return false;}} function AC_AddExtension(src,ext) {if(src.indexOf('?')!=-1) return src.replace(/\?/,ext+'?');else return src+ext;} function AC_Generateobj(objAttrs,params,embedAttrs) {var str='';if(isIE&&isWin&&!isOpera) {str+=' ';} str+='';} else {str+='$1");x++;}} function limpiaPalabra(palabra) {palabra=palabra.replace(//i,"");palabra=palabra.replace(/<\/b>/i,"");return palabra;} function coincideBusqueda(palabraEntera,primerasLetras) {if(primerasLetras==null)return 0;var verificaExpresion=new RegExp("^("+primerasLetras+")","i");if(verificaExpresion.test(palabraEntera))return 1;else return 0;} function nuevaCadenaNula(valor) {if(coincideBusqueda(valor,ultimaBusquedaNula)==0)ultimaBusquedaNula=valor;} function busquedaEnBD() {var valor=inputLista.value;if((coincideBusqueda(valor,busqueda)==1&&nuevaBusqueda==0)||coincideBusqueda(valor,ultimaBusquedaNula)==1)return 0;else return 1;} function filtraLista(valor) {var x=0;while(divLista.childNodes[x]!=null) {divLista.childNodes[x].innerHTML=limpiaPalabra(divLista.childNodes[x].innerHTML);if(coincideBusqueda(divLista.childNodes[x].innerHTML,valor)==0) {divLista.removeChild(divLista.childNodes[x]);x--;} x++;}} function reiniciaSeleccion() {mouseFuera();elementoSeleccionado=0;} function navegaTeclado(evento) {var teclaPresionada=(document.all)?evento.keyCode:evento.which;switch(teclaPresionada) {case 40:if(elementoSeleccionado1) {mouseDentro(document.getElementById(parseInt(elementoSeleccionado)-1));} return 0;case 13:if(divLista.style.display=="block"&&elementoSeleccionado!=0) {clickLista(document.getElementById(elementoSeleccionado))} return 0;default:return 1;}} function rellenaLista(qry_file) {var valor=inputLista.value;var reg=/(^[a-zA-Z0-9.@ ]{2,40}$)/;if(!reg.test(valor))divLista.style.display="none";else {if(busquedaEnBD()==0) {busqueda=valor;filtraLista(valor);if(divLista.childNodes[0]==null){divLista.style.display="none";nuevaCadenaNula(valor);} else{reiniciaSeleccion();formateaLista(valor);}} else {busqueda=valor;var ajax=nuevoAjax();ajax.open("POST",qry_file+"?",true);ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");ajax.send("busqueda="+valor);ajax.onreadystatechange=function() {if(ajax.readyState==4) {if(!ajax.responseText){divLista.style.display="none";} else {var respuesta=new Array(2);respuesta=ajax.responseText.split("&");nuevaBusqueda=respuesta[0];if(respuesta[1]!="vacio") {divLista.style.display="block";divLista.innerHTML=respuesta[1];reiniciaSeleccion();formateaLista(valor);} else nuevaCadenaNula(valor);}}}}}} function clickLista(elemento,jugador_id) {v=1;valor=limpiaPalabra(elemento.innerHTML);busqueda=valor;inputLista.value=valor;divLista.style.display="none";elemento.className="normal";document.forms['idolo'].playerId.value=jugador_id;} function mouseFuera() {if(elementoSeleccionado!=0&&document.getElementById(elementoSeleccionado))document.getElementById(elementoSeleccionado).className="normal";} function mouseDentro(elemento) {mouseFuera();elemento.className="resaltado";elementoSeleccionado=elemento.id;} (function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b==="find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a";var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m==="="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();(function(){var g=s.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j={},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
";a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);(function($){$.ui=$.ui||{};if($.ui.version){return;} $.extend($.ui,{version:"1.8.2",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode){return;} for(var i=0;i0){return true;} el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size));},isOver:function(y,x,top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,left,width);},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});$.fn.extend({_focus:$.fn.focus,focus:function(delay,fn){return typeof delay==='number'?this.each(function(){var elem=this;setTimeout(function(){$(elem).focus();(fn&&fn.call(elem));},delay);}):this._focus.apply(this,arguments);},enableSelection:function(){return this.attr('unselectable','off').css('MozUserSelect','');},disableSelection:function(){return this.attr('unselectable','on').css('MozUserSelect','none');},scrollParent:function(){var scrollParent;if(($.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,'position',1))&&(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));}).eq(0);} return(/fixed/).test(this.css('position'))||!scrollParent.length?$(document):scrollParent;},zIndex:function(zIndex){if(zIndex!==undefined){return this.css('zIndex',zIndex);} if(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css('position');if(position=='absolute'||position=='relative'||position=='fixed') {value=parseInt(elem.css('zIndex'));if(!isNaN(value)&&value!=0){return value;}} elem=elem.parent();}} return 0;}});$.extend($.expr[':'],{data:function(elem,i,match){return!!$.data(elem,match[3]);},focusable:function(element){var nodeName=element.nodeName.toLowerCase(),tabIndex=$.attr(element,'tabindex');return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:'a'==nodeName||'area'==nodeName?element.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(element)['area'==nodeName?'parents':'closest'](':hidden').length;},tabbable:function(element){var tabIndex=$.attr(element,'tabindex');return(isNaN(tabIndex)||tabIndex>=0)&&$(element).is(':focusable');}});})(jQuery);(function($){var _remove=$.fn.remove;$.fn.remove=function(selector,keepData){return this.each(function(){if(!keepData){if(!selector||$.filter(selector,[this]).length){$("*",this).add(this).each(function(){$(this).triggerHandler("remove");});}} return _remove.call($(this),selector,keepData);});};$.widget=function(name,base,prototype){var namespace=name.split(".")[0],fullName;name=name.split(".")[1];fullName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget;} $.expr[":"][fullName]=function(elem){return!!$.data(elem,name);};$[namespace]=$[namespace]||{};$[namespace][name]=function(options,element){if(arguments.length){this._createWidget(options,element);}};var basePrototype=new base();basePrototype.options=$.extend({},basePrototype.options);$[namespace][name].prototype=$.extend(true,basePrototype,{namespace:namespace,widgetName:name,widgetEventPrefix:$[namespace][name].prototype.widgetEventPrefix||name,widgetBaseClass:fullName},prototype);$.widget.bridge(name,$[namespace][name]);};$.widget.bridge=function(name,object){$.fn[name]=function(options){var isMethodCall=typeof options==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;options=!isMethodCall&&args.length?$.extend.apply(null,[true,options].concat(args)):options;if(isMethodCall&&options.substring(0,1)==="_"){return returnValue;} if(isMethodCall){this.each(function(){var instance=$.data(this,name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue;return false;}});}else{this.each(function(){var instance=$.data(this,name);if(instance){if(options){instance.option(options);} instance._init();}else{$.data(this,name,new object(options,this));}});} return returnValue;};};$.Widget=function(options,element){if(arguments.length){this._createWidget(options,element);}};$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(options,element){this.element=$(element).data(this.widgetName,this);this.options=$.extend(true,{},this.options,$.metadata&&$.metadata.get(element)[this.widgetName],options);var self=this;this.element.bind("remove."+this.widgetName,function(){self.destroy();});this._create();this._init();},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled");},widget:function(){return this.element;},option:function(key,value){var options=key,self=this;if(arguments.length===0){return $.extend({},self.options);} if(typeof key==="string"){if(value===undefined){return this.options[key];} options={};options[key]=value;} $.each(options,function(key,value){self._setOption(key,value);});return self;},_setOption:function(key,value){this.options[key]=value;if(key==="disabled"){this.widget() [value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",value);} return this;},enable:function(){return this._setOption("disabled",false);},disable:function(){return this._setOption("disabled",true);},_trigger:function(type,event,data){var callback=this.options[type];event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();data=data||{};if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];event[prop]=event.originalEvent[prop];}} this.element.trigger(event,data);return!($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented());}};})(jQuery);(function($){$.widget("ui.mouse",{options:{cancel:':input,option',distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(event){return self._mouseDown(event);}).bind('click.'+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false;event.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);},_mouseDown:function(event){event.originalEvent=event.originalEvent||{};if(event.originalEvent.mouseHandled){return;} (this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(event.target).parents().add(event.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;} this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);} if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}} this._mouseMoveDelegate=function(event){return self._mouseMove(event);};this._mouseUpDelegate=function(event){return self._mouseUp(event);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);($.browser.safari||event.preventDefault());event.originalEvent.mouseHandled=true;return true;},_mouseMove:function(event){if($.browser.msie&&!event.button){return this._mouseUp(event);} if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();} if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event));} return!this._mouseStarted;},_mouseUp:function(event){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(event.target==this._mouseDownEvent.target);this._mouseStop(event);} return false;},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(event){return this.mouseDelayMet;},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true;}});})(jQuery);(function($){var numPages=5;$.widget("ui.slider",$.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var self=this,o=this.options;this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider"+" ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all");if(o.disabled){this.element.addClass("ui-slider-disabled ui-disabled");} this.range=$([]);if(o.range){if(o.range===true){this.range=$("
");if(!o.values){o.values=[this._valueMin(),this._valueMin()];} if(o.values.length&&o.values.length!==2){o.values=[o.values[0],o.values[0]];}}else{this.range=$("
");} this.range.appendTo(this.element).addClass("ui-slider-range");if(o.range==="min"||o.range==="max"){this.range.addClass("ui-slider-range-"+o.range);} this.range.addClass("ui-widget-header");} if($(".ui-slider-handle",this.element).length===0){$("").appendTo(this.element).addClass("ui-slider-handle");} if(o.values&&o.values.length){while($(".ui-slider-handle",this.element).length").appendTo(this.element).addClass("ui-slider-handle");}} this.handles=$(".ui-slider-handle",this.element).addClass("ui-state-default"+" ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(event){event.preventDefault();}).hover(function(){if(!o.disabled){$(this).addClass("ui-state-hover");}},function(){$(this).removeClass("ui-state-hover");}).focus(function(){if(!o.disabled){$(".ui-slider .ui-state-focus").removeClass("ui-state-focus");$(this).addClass("ui-state-focus");}else{$(this).blur();}}).blur(function(){$(this).removeClass("ui-state-focus");});this.handles.each(function(i){$(this).data("index.ui-slider-handle",i);});this.handles.keydown(function(event){var ret=true,index=$(this).data("index.ui-slider-handle"),allowed,curVal,newVal,step;if(self.options.disabled){return;} switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:ret=false;if(!self._keySliding){self._keySliding=true;$(this).addClass("ui-state-active");allowed=self._start(event,index);if(allowed===false){return;}} break;} step=self.options.step;if(self.options.values&&self.options.values.length){curVal=newVal=self.values(index);}else{curVal=newVal=self.value();} switch(event.keyCode){case $.ui.keyCode.HOME:newVal=self._valueMin();break;case $.ui.keyCode.END:newVal=self._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=self._trimAlignValue(curVal+((self._valueMax()-self._valueMin())/numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=self._trimAlignValue(curVal-((self._valueMax()-self._valueMin())/numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===self._valueMax()){return;} newVal=self._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===self._valueMin()){return;} newVal=self._trimAlignValue(curVal-step);break;} self._slide(event,index,newVal);return ret;}).keyup(function(event){var index=$(this).data("index.ui-slider-handle");if(self._keySliding){self._keySliding=false;self._stop(event,index);self._change(event,index);$(this).removeClass("ui-state-active");}});this._refreshValue();this._animateOff=false;},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider"+" ui-slider-horizontal"+" ui-slider-vertical"+" ui-slider-disabled"+" ui-widget"+" ui-widget-content"+" ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this;},_mouseCapture:function(event){var o=this.options,position,normValue,distance,closestHandle,self,index,allowed,offset,mouseOverHandle;if(o.disabled){return false;} this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;self=this;this.handles.each(function(i){var thisDistance=Math.abs(normValue-self.values(i));if(distance>thisDistance){distance=thisDistance;closestHandle=$(this);index=i;}});if(o.range===true&&this.values(1)===o.min){index+=1;closestHandle=$(this.handles[index]);} allowed=this._start(event,index);if(allowed===false){return false;} this._mouseSliding=true;self._handleIndex=index;closestHandle.addClass("ui-state-active").focus();offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/2),top:event.pageY-offset.top- (closestHandle.height()/2)- (parseInt(closestHandle.css("borderTopWidth"),10)||0)- (parseInt(closestHandle.css("borderBottomWidth"),10)||0)+ (parseInt(closestHandle.css("marginTop"),10)||0)};normValue=this._normValueFromMouse(position);this._slide(event,index,normValue);this._animateOff=true;return true;},_mouseStart:function(event){return true;},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false;},_mouseStop:function(event){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false;},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal";},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation==="horizontal"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0);}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);} percentMouse=(pixelMouse/pixelTotal);if(percentMouse>1){percentMouse=1;} if(percentMouse<0){percentMouse=0;} if(this.orientation==="vertical"){percentMouse=1-percentMouse;} valueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse);},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();} return this._trigger("start",event,uiHash);},_slide:function(event,index,newVal){var otherVal,newValues,allowed;if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);} if(arguments.length){if($.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;ithis._valueMax()){return this._valueMax();} var step=(this.options.step>0)?this.options.step:1,valModStep=val%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step);} return parseFloat(alignValue.toFixed(5));},_valueMin:function(){return this.options.min;},_valueMax:function(){return this.options.max;},_refreshValue:function(){var oRange=this.options.range,o=this.options,self=this,animate=(!this._animateOff)?o.animate:false,valPercent,_set={},lastValPercent,value,valueMin,valueMax;if(this.options.values&&this.options.values.length){this.handles.each(function(i,j){valPercent=(self.values(i)-self._valueMin())/(self._valueMax()-self._valueMin())*100;_set[self.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);if(self.options.range===true){if(self.orientation==="horizontal"){if(i===0){self.range.stop(1,1)[animate?"animate":"css"]({left:valPercent+"%"},o.animate);} if(i===1){self.range[animate?"animate":"css"]({width:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate});}}else{if(i===0){self.range.stop(1,1)[animate?"animate":"css"]({bottom:(valPercent)+"%"},o.animate);} if(i===1){self.range[animate?"animate":"css"]({height:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate});}}} lastValPercent=valPercent;});}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[self.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);if(oRange==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[animate?"animate":"css"]({width:valPercent+"%"},o.animate);} if(oRange==="max"&&this.orientation==="horizontal"){this.range[animate?"animate":"css"]({width:(100-valPercent)+"%"},{queue:false,duration:o.animate});} if(oRange==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[animate?"animate":"css"]({height:valPercent+"%"},o.animate);} if(oRange==="max"&&this.orientation==="vertical"){this.range[animate?"animate":"css"]({height:(100-valPercent)+"%"},{queue:false,duration:o.animate});}}}});$.extend($.ui.slider,{version:"1.8.2"});}(jQuery));(function($){var tabId=0,listId=0;function getNextTabId(){return++tabId;} function getNextListId(){return++listId;} $.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:'click',fx:null,idPrefix:'ui-tabs-',load:null,panelTemplate:'
',remove:null,select:null,show:null,spinner:'Loading…',tabTemplate:'
  • #{label}
  • '},_create:function(){this._tabify(true);},_setOption:function(key,value){if(key=='selected'){if(this.options.collapsible&&value==this.options.selected){return;} this.select(value);} else{this.options[key]=value;this._tabify();}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,'_').replace(/[^A-Za-z0-9\-_:\.]/g,'')||this.options.idPrefix+getNextTabId();},_sanitizeSelector:function(hash){return hash.replace(/:/g,'\\:');},_cookie:function(){var cookie=this.cookie||(this.cookie=this.options.cookie.name||'ui-tabs-'+getNextListId());return $.cookie.apply(null,[cookie].concat($.makeArray(arguments)));},_ui:function(tab,panel){return{tab:tab,panel:panel,index:this.anchors.index(tab)};},_cleanup:function(){this.lis.filter('.ui-state-processing').removeClass('ui-state-processing').find('span:data(label.tabs)').each(function(){var el=$(this);el.html(el.data('label.tabs')).removeData('label.tabs');});},_tabify:function(init){this.list=this.element.find('ol,ul').eq(0);this.lis=$('li:has(a[href])',this.list);this.anchors=this.lis.map(function(){return $('a',this)[0];});this.panels=$([]);var self=this,o=this.options;var fragmentId=/^#.+/;this.anchors.each(function(i,a){var href=$(a).attr('href');var hrefBase=href.split('#')[0],baseEl;if(hrefBase&&(hrefBase===location.toString().split('#')[0]||(baseEl=$('base')[0])&&hrefBase===baseEl.href)){href=a.hash;a.href=href;} if(fragmentId.test(href)){self.panels=self.panels.add(self._sanitizeSelector(href));} else if(href!='#'){$.data(a,'href.tabs',href);$.data(a,'load.tabs',href.replace(/#.*$/,''));var id=self._tabId(a);a.href='#'+id;var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass('ui-tabs-panel ui-widget-content ui-corner-bottom').insertAfter(self.panels[i-1]||self.list);$panel.data('destroy.tabs',true);} self.panels=self.panels.add($panel);} else{o.disabled.push(i);}});if(init){this.element.addClass('ui-tabs ui-widget ui-widget-content ui-corner-all');this.list.addClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all');this.lis.addClass('ui-state-default ui-corner-top');this.panels.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom');if(o.selected===undefined){if(location.hash){this.anchors.each(function(i,a){if(a.hash==location.hash){o.selected=i;return false;}});} if(typeof o.selected!='number'&&o.cookie){o.selected=parseInt(self._cookie(),10);} if(typeof o.selected!='number'&&this.lis.filter('.ui-tabs-selected').length){o.selected=this.lis.index(this.lis.filter('.ui-tabs-selected'));} o.selected=o.selected||(this.lis.length?0:-1);} else if(o.selected===null){o.selected=-1;} o.selected=((o.selected>=0&&this.anchors[o.selected])||o.selected<0)?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.lis.filter('.ui-state-disabled'),function(n,i){return self.lis.index(n);}))).sort();if($.inArray(o.selected,o.disabled)!=-1){o.disabled.splice($.inArray(o.selected,o.disabled),1);} this.panels.addClass('ui-tabs-hide');this.lis.removeClass('ui-tabs-selected ui-state-active');if(o.selected>=0&&this.anchors.length){this.panels.eq(o.selected).removeClass('ui-tabs-hide');this.lis.eq(o.selected).addClass('ui-tabs-selected ui-state-active');self.element.queue("tabs",function(){self._trigger('show',null,self._ui(self.anchors[o.selected],self.panels[o.selected]));});this.load(o.selected);} $(window).bind('unload',function(){self.lis.add(self.anchors).unbind('.tabs');self.lis=self.anchors=self.panels=null;});} else{o.selected=this.lis.index(this.lis.filter('.ui-tabs-selected'));} this.element[o.collapsible?'addClass':'removeClass']('ui-tabs-collapsible');if(o.cookie){this._cookie(o.selected,o.cookie);} for(var i=0,li;(li=this.lis[i]);i++){$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass('ui-tabs-selected')?'addClass':'removeClass']('ui-state-disabled');} if(o.cache===false){this.anchors.removeData('cache.tabs');} this.lis.add(this.anchors).unbind('.tabs');if(o.event!='mouseover'){var addState=function(state,el){if(el.is(':not(.ui-state-disabled)')){el.addClass('ui-state-'+state);}};var removeState=function(state,el){el.removeClass('ui-state-'+state);};this.lis.bind('mouseover.tabs',function(){addState('hover',$(this));});this.lis.bind('mouseout.tabs',function(){removeState('hover',$(this));});this.anchors.bind('focus.tabs',function(){addState('focus',$(this).closest('li'));});this.anchors.bind('blur.tabs',function(){removeState('focus',$(this).closest('li'));});} var hideFx,showFx;if(o.fx){if($.isArray(o.fx)){hideFx=o.fx[0];showFx=o.fx[1];} else{hideFx=showFx=o.fx;}} function resetStyle($el,fx){$el.css({display:''});if(!$.support.opacity&&fx.opacity){$el[0].style.removeAttribute('filter');}} var showTab=showFx?function(clicked,$show){$(clicked).closest('li').addClass('ui-tabs-selected ui-state-active');$show.hide().removeClass('ui-tabs-hide').animate(showFx,showFx.duration||'normal',function(){resetStyle($show,showFx);self._trigger('show',null,self._ui(clicked,$show[0]));});}:function(clicked,$show){$(clicked).closest('li').addClass('ui-tabs-selected ui-state-active');$show.removeClass('ui-tabs-hide');self._trigger('show',null,self._ui(clicked,$show[0]));};var hideTab=hideFx?function(clicked,$hide){$hide.animate(hideFx,hideFx.duration||'normal',function(){self.lis.removeClass('ui-tabs-selected ui-state-active');$hide.addClass('ui-tabs-hide');resetStyle($hide,hideFx);self.element.dequeue("tabs");});}:function(clicked,$hide,$show){self.lis.removeClass('ui-tabs-selected ui-state-active');$hide.addClass('ui-tabs-hide');self.element.dequeue("tabs");};this.anchors.bind(o.event+'.tabs',function(){var el=this,$li=$(this).closest('li'),$hide=self.panels.filter(':not(.ui-tabs-hide)'),$show=$(self._sanitizeSelector(this.hash));if(($li.hasClass('ui-tabs-selected')&&!o.collapsible)||$li.hasClass('ui-state-disabled')||$li.hasClass('ui-state-processing')||self._trigger('select',null,self._ui(this,$show[0]))===false){this.blur();return false;} o.selected=self.anchors.index(this);self.abort();if(o.collapsible){if($li.hasClass('ui-tabs-selected')){o.selected=-1;if(o.cookie){self._cookie(o.selected,o.cookie);} self.element.queue("tabs",function(){hideTab(el,$hide);}).dequeue("tabs");this.blur();return false;} else if(!$hide.length){if(o.cookie){self._cookie(o.selected,o.cookie);} self.element.queue("tabs",function(){showTab(el,$show);});self.load(self.anchors.index(this));this.blur();return false;}} if(o.cookie){self._cookie(o.selected,o.cookie);} if($show.length){if($hide.length){self.element.queue("tabs",function(){hideTab(el,$hide);});} self.element.queue("tabs",function(){showTab(el,$show);});self.load(self.anchors.index(this));} else{throw'jQuery UI Tabs: Mismatching fragment identifier.';} if($.browser.msie){this.blur();}});this.anchors.bind('click.tabs',function(){return false;});},destroy:function(){var o=this.options;this.abort();this.element.unbind('.tabs').removeClass('ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible').removeData('tabs');this.list.removeClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all');this.anchors.each(function(){var href=$.data(this,'href.tabs');if(href){this.href=href;} var $this=$(this).unbind('.tabs');$.each(['href','load','cache'],function(i,prefix){$this.removeData(prefix+'.tabs');});});this.lis.unbind('.tabs').add(this.panels).each(function(){if($.data(this,'destroy.tabs')){$(this).remove();} else{$(this).removeClass(['ui-state-default','ui-corner-top','ui-tabs-selected','ui-state-active','ui-state-hover','ui-state-focus','ui-state-disabled','ui-tabs-panel','ui-widget-content','ui-corner-bottom','ui-tabs-hide'].join(' '));}});if(o.cookie){this._cookie(null,o.cookie);} return this;},add:function(url,label,index){if(index===undefined){index=this.anchors.length;} var self=this,o=this.options,$li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label)),id=!url.indexOf('#')?url.replace('#',''):this._tabId($('a',$li)[0]);$li.addClass('ui-state-default ui-corner-top').data('destroy.tabs',true);var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).data('destroy.tabs',true);} $panel.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide');if(index>=this.lis.length){$li.appendTo(this.list);$panel.appendTo(this.list[0].parentNode);} else{$li.insertBefore(this.lis[index]);$panel.insertBefore(this.panels[index]);} o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n;});this._tabify();if(this.anchors.length==1){o.selected=0;$li.addClass('ui-tabs-selected ui-state-active');$panel.removeClass('ui-tabs-hide');this.element.queue("tabs",function(){self._trigger('show',null,self._ui(self.anchors[0],self.panels[0]));});this.load(0);} this._trigger('add',null,this._ui(this.anchors[index],this.panels[index]));return this;},remove:function(index){var o=this.options,$li=this.lis.eq(index).remove(),$panel=this.panels.eq(index).remove();if($li.hasClass('ui-tabs-selected')&&this.anchors.length>1){this.select(index+(index+1=index?--n:n;});this._tabify();this._trigger('remove',null,this._ui($li.find('a')[0],$panel[0]));return this;},enable:function(index){var o=this.options;if($.inArray(index,o.disabled)==-1){return;} this.lis.eq(index).removeClass('ui-state-disabled');o.disabled=$.grep(o.disabled,function(n,i){return n!=index;});this._trigger('enable',null,this._ui(this.anchors[index],this.panels[index]));return this;},disable:function(index){var self=this,o=this.options;if(index!=o.selected){this.lis.eq(index).addClass('ui-state-disabled');o.disabled.push(index);o.disabled.sort();this._trigger('disable',null,this._ui(this.anchors[index],this.panels[index]));} return this;},select:function(index){if(typeof index=='string'){index=this.anchors.index(this.anchors.filter('[href$='+index+']'));} else if(index===null){index=-1;} if(index==-1&&this.options.collapsible){index=this.options.selected;} this.anchors.eq(index).trigger(this.options.event+'.tabs');return this;},load:function(index){var self=this,o=this.options,a=this.anchors.eq(index)[0],url=$.data(a,'load.tabs');this.abort();if(!url||this.element.queue("tabs").length!==0&&$.data(a,'cache.tabs')){this.element.dequeue("tabs");return;} this.lis.eq(index).addClass('ui-state-processing');if(o.spinner){var span=$('span',a);span.data('label.tabs',span.html()).html(o.spinner);} this.xhr=$.ajax($.extend({},o.ajaxOptions,{url:url,success:function(r,s){$(self._sanitizeSelector(a.hash)).html(r);self._cleanup();if(o.cache){$.data(a,'cache.tabs',true);} self._trigger('load',null,self._ui(self.anchors[index],self.panels[index]));try{o.ajaxOptions.success(r,s);} catch(e){}},error:function(xhr,s,e){self._cleanup();self._trigger('load',null,self._ui(self.anchors[index],self.panels[index]));try{o.ajaxOptions.error(xhr,s,index,a);} catch(e){}}}));self.element.dequeue("tabs");return this;},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr;} this._cleanup();return this;},url:function(index,url){this.anchors.eq(index).removeData('cache.tabs').data('load.tabs',url);return this;},length:function(){return this.anchors.length;}});$.extend($.ui.tabs,{version:'1.8.2'});$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){var self=this,o=this.options;var rotate=self._rotate||(self._rotate=function(e){clearTimeout(self.rotation);self.rotation=setTimeout(function(){var t=o.selected;self.select(++t