(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:3,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.fn.resizehandle=function(){return this.each(function(){var me=jQuery(this);me.after(jQuery('<div class="resizehandle"></div>').bind('mousedown',function(e){var h=me.height();var y=e.clientY;var moveHandler=function(e){me.height(Math.max(20,e.clientY+h-y));};var upHandler=function(e){jQuery('html').unbind('mousemove',moveHandler).unbind('mouseup',upHandler);};jQuery('html').bind('mousemove',moveHandler).bind('mouseup',upHandler);}));});}
jQuery.fn.toggleVal=function(focusClass){this.each(function(){$(this).focus(function(){if($(this).val()==this.defaultValue){$(this).val("")}if(focusClass){$(this).addClass(focusClass)}}).blur(function(){if($(this).val()==""){$(this).val(this.defaultValue)}if(focusClass){$(this).removeClass(focusClass)}})})}
$(document).ready(function(){$('#forumlist tr, #latest tr, #favorites tr, tr.alt').click(function(){if($(this).attr('class')!='headsmall'&&$(this).children('.numlink')){window.location=$(this).find(".numlink a").attr("href");return false;};});$('table td.num a, table td.numdel').click(function(e){e.stopPropagation();});$("#q").toggleVal("active");$("a[@href$=pdf]").addClass("pdf");$("a[@href$=zip]").addClass("zip");$("a[@href$=doc]").addClass("doc");$("textarea").resizehandle();$('.sidehide a').toggle(function(){$('#rightbar').hide(200);setTimeout("$('#main').css('width', '755px');",250);$(this).text('Show sidebar');return false;},function(){$('#main').css('width','550px');$('#rightbar').show(200);$(this).text('Hide sidebar');return false;});$("#totop").hoverIntent(function(){$(this).animate({height:"40px",opacity:"0.8"},150);},function(){$(this).animate({height:"7px",opacity:"0.3"},150);});$("#totop").click(function(){window.location=$(this).find("a").attr("href");return false;});});$(function(){$.jtabber({mainLinkTag:"#nav a",activeLinkClass:"selected",hiddenContentClass:"hiddencontent",showDefaultTab:1,showErrors:false,effect:'fade',effectSpeed:'300'});});(function(jQuery){$.extend($,{jtabber:function(params){var navDiv=params.mainLinkTag;var selectedClass=params.activeLinkClass;var hiddenContentDiv=params.hiddenContentClass;var showDefaultTab=params.showDefaultTab;var showErrors=params.showErrors;var effect=params.effect;var effectSpeed=params.effectSpeed;if(showErrors){if(!$(navDiv).attr('title')){alert("Error: The elements in your mainLinkTag paramater need a 'title' attribute.\n ("+navDiv+")");return false;}
else if(!$("."+hiddenContentDiv).attr('id')){alert("Error: The elements in your hiddenContentClass paramater need to have an id.\n (."+hiddenContentDiv+")");return false;}}
if(!isNaN(showDefaultTab)){showDefaultTab--;$("."+hiddenContentDiv+":eq("+showDefaultTab+")").css('display','block');$(navDiv+":eq("+showDefaultTab+")").addClass(selectedClass);}
$(navDiv).each(function(){if($(this).attr('class')!='unselected'){$(this).click(function(){$(navDiv).each(function(){$(this).removeClass();})
$("."+hiddenContentDiv).css('display','none');$(this).addClass(selectedClass);var contentDivId=$(this).attr('title');if(effect!=null){switch(effect){case'slide':$("#"+contentDivId).slideDown(effectSpeed,function(){$(this).fixClearType()});break;case'fade':$("#"+contentDivId).fadeIn(effectSpeed,function(){$(this).fixClearType()});break;}}else{$("#"+contentDivId).css('display','block');}
return false;})};})}})})(jQuery);jQuery.fn.fixClearType=function(){return this.each(function(){if(typeof this.style.filter&&this.style.removeAttribute)this.style.removeAttribute("filter");})}