jQuery.each(["id","title","name","href","src","rel"],function(i,n){jQuery.fn[n]=function(h){return h==undefined?this.length?this[0][n]:null:this.attr(n,h);};});jQuery.each("top,left,position,float,overflow,color,background".split(","),function(i,n){jQuery.fn[n]=function(h){return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h);};});var e=("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select,"+"submit,keydown,keypress,keyup,error").split(",");for(var i=0;i<e.length;i++)new function(){var o=e[i];jQuery.fn["un"+o]=function(f){return this.unbind(o,f);};jQuery.fn["one"+o]=function(f){var element=jQuery(this);var handler=function(){element.unbind(o,handler);element=null;return f.apply(this,arguments);};return this.bind(o,handler);};};jQuery.fn.ancestors=jQuery.fn.parents;jQuery.expr[":"]["nth-child"]="jQuery.nth(a.parentNode.firstChild,parseInt(m[3])+1,'nextSibling')==a";jQuery.fn._filter=jQuery.fn.filter;jQuery.fn.filter=function(arr){return this._filter(arr.constructor==Array?arr.join(","):arr);};Drupal.toggleFieldset=function(fieldset){if($(fieldset).is('.collapsed')){var content=$('> div',fieldset).hide();$(fieldset).removeClass('collapsed');content.slideDown({duration:300,complete:function(){$(this).css('height','auto');Drupal.collapseScrollIntoView(this.parentNode);this.parentNode.animating=false;},step:function(){Drupal.collapseScrollIntoView(this.parentNode);}});if(typeof Drupal.textareaAttach!='undefined'){Drupal.textareaAttach(null,fieldset);}}
else{var content=$('> div',fieldset).slideUp('medium',function(){$(this.parentNode).addClass('collapsed');this.parentNode.animating=false;});}}
