(function(a){jQuery.fn.tabset=function(b){var c=jQuery.extend({eventchange:"click",tabheaderSelector:">h2",tabcontentSelector:">div.tab-content",callback:function(d,e){},contenthide:function(d){d.hide()},contentshow:function(d){d.show()},allclosed:false,active:true,animateHeight:false},b);return a(this).each(function(o){var l=a(this),e=l.find(c.tabheaderSelector),k=e.length,q=['<ol class="tabs inline clearfix">'],u=0,g=document.location.hash.length>1?document.location.hash.substr(1):"";for(var m=0;m<k;m++){var f=a(e[m]),d=f.attr("id")||"tab-"+o+"-"+m,t="";if(m==0){t=' class="tab-first"'}else{if(m==k-1){t=' class="tab-last"'}}q.push('<li id="'+d+'"'+t+">"+f.html()+"</li>");f.attr("id","").hide();if(d==g){u=m}}q.push("</ol>");var p=a(q.join("")).prependTo(l).find(">li");if(g&&u==0){var s=a("#"+g);if(s.length){var h=l.find(c.tabcontentSelector),r=s.parents(),n=r.length;h.each(function(j){if(0==u){for(var i=n;--i;){if(this==r[i]){u=j;break}}}})}}l.find(c.tabcontentSelector).hide();if(!c.allclosed){l.find("ol.tabs li:eq("+u+")").addClass("tab-open");l.find(c.tabcontentSelector+":eq("+u+")").show()}if(u>0){document.location.hash=document.location.hash}if(c.active){l.find("ol.tabs li")[c.eventchange](function(){if(!a(this).hasClass("tab-open")){var j=a(this),v=l.find(c.tabcontentSelector+":eq("+j.prevAll("li").size()+")"),w=l.find(c.tabcontentSelector+":visible");p.removeClass("tab-open");j.addClass("tab-open");if(!c.animateHeight){c.contenthide(w);c.contentshow(v)}else{v.height("auto");var i=v.height();v.stop().show().height(w.height()||0).animate({height:i},300);w.stop().hide()}c.callback(j,v)}}).bind({"mouseenter focus":function(){a(this).addClass("tab-hover")},"mouseleave blur":function(){a(this).removeClass("tab-hover")},keypress:function(i){if(i.keyCode==13){a(i.target)[c.eventchange]()}}}).attr("tabindex",0);if(c.allclosed){l.mouseleave(function(){l.find("ol.tabs li").removeClass("tab-open").end().find(c.tabcontentSelector+":visible")[(c.animateHeight)?"slideUp":"hide"]()})}}})};a.fn.tabset.VERSION="1.11"})(jQuery);var dpag=dpag||{};dpag.head={init:function(){dpag.logoExtender();if($(".head .tabset").tabset){$(".head .tabset").tabset()}$(".head .head-input").each(function(){var d=$(this),b=this.form,c=d.val(),a=d.next("input.head-submit");d.focus(function(){if(d.val()==c){d.val("")}}).blur(function(){if(d.val()==""){d.val(c)}});a.click(function(){if(c==d.val()){d.val("")}})})}};$(dpag.head.init);
