/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);

jQuery(window).load(function(){_sidebar=jQuery("#sidebar");_sideHeight=_sidebar.height();_contentHeight=jQuery("#content").height(); jQuery('#upprofile table:nth-child(4) table tbody p').html('Formatos permitidos: GIF, PNG, JPG y JPEG<br/>M&aacute;ximo Tama&ntilde;o aceptado: <b>80</b> x <b>80</b> pixels'); if(_sidebar.length>0&&_sideHeight<_contentHeight){_sidebar.height(_contentHeight)}});jQuery(function(){var n=jQuery("#sidebar");var j=jQuery("#content");var s=jQuery(".post");var m=jQuery("#login-panel");var r=jQuery("#home-footer");var l=jQuery("#especialistas");var t=jQuery("#contacto .formulario .cf-ol");var d=false;var o=0;if(jQuery.browser.msie){jQuery("#home-escuchar h2").hover(function(){jQuery(this).css("background-position","-4px -208px")},function(){jQuery(this).css("background-position","-1px -4px")})}if(m.length>0){jQuery("#menu-sup").hoverIntent(function(){if(m.is(":hidden")){m.slideDown("fast")}else{m.hide()}},function(){if(m.is(":hidden")){}else{m.slideUp("fast")}})}if(r.length>0){r.find(".size1of3").hoverIntent(function(){jQuery(this).children("h2").stop().fadeTo("fast",1)},function(){jQuery(this).children("h2").stop().fadeTo("fast",0.7)});r.find("li").hoverIntent(function(){jQuery(this).find("p").slideToggle("medium")},function(){jQuery(this).find("p").slideToggle("medium")})}function a(w,y){var v=n.find(".tags");var x=v.find("#slider");if(w=="izquierda"){if(o<0){x.animate({left:"+=325px"},250);o+=325}}else{if(o>y){x.animate({left:"-=325px"},250);o-=325}}return false}if(n.length>0){var h=n.find(".tags ul.listaCats li a");var g=s.find(".tags");var p=n.find(".tags .controles");if(g.length>0&&h.length>0){h.hoverIntent(function(){var v=jQuery(this).text();g.find("a:contains("+v+")").addClass("remoteOver")},function(){var v=jQuery(this).text();g.find("a:contains("+v+")").removeClass("remoteOver")})}if(p.length>0){var u=n.find(".tags ul").length;var q=u*325+"px";var i=p.find("#left");var b=p.find("#right");n.find(".tags").css("width",q);var f=n.find(".tags");var c=325-f.width();i.click(function(){a("izquierda",c);if(o==0){i.addClass("inactivo")}else{i.removeClass("inactivo");b.removeClass("inactivo")}return false});b.click(function(){a("derecha",c);if(o==c){b.addClass("inactivo")}else{b.removeClass("inactivo");i.removeClass("inactivo")}return false})}}if(l.length>0){l.find(".post").each(function(){jQuery(".side",this).height(jQuery(".data",this).height())})}if(t.length>0){var k=t.children("#li--1");var e=t.children("#li--2");e.hide();e.data("activado",false);k.find("input").click(function(){if(e.data("activado")===false){e.slideDown("medium").data("activado",true)}else{e.slideUp("medium").data("activado",false)}})}});
