// jQuery getTag
(function(a){a.fn.getTag=function(){var b=null;if(1<=this.length){b=[];this.each(function(c,d){b[c]=a(d).context.nodeName.toLowerCase()})}else{b=a(this[0]).context.nodeName.toLowerCase()}return b}})(jQuery);

// jQuery bgiframe
(function(a){a.fn.bgiframe=(a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(d){d=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":b(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":b(d.height))+';"/>';return this.each(function(){if(a(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(c),this.firstChild)}})}:function(){return this});a.fn.bgIframe=a.fn.bgiframe;function b(c){return c&&c.constructor===Number?c+"px":c}})(jQuery);

// jQuery hoverIntent
(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);

// jQuery mousewheel
(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(i){var g=i||window.event,f=[].slice.call(arguments,1),j=0,h=true,e=0,d=0;i=c.event.fix(g);i.type="mousewheel";if(i.wheelDelta){j=i.wheelDelta/120}if(i.detail){j=-i.detail/3}d=j;if(g.axis!==undefined&&g.axis===g.HORIZONTAL_AXIS){d=0;e=-1*j}if(g.wheelDeltaY!==undefined){d=g.wheelDeltaY/120}if(g.wheelDeltaX!==undefined){e=-1*g.wheelDeltaX/120}f.unshift(i,j,e,d);return c.event.handle.apply(this,f)}})(jQuery);

// jQuery Fancybox v1.3.4 mod
(function(B){var L,T,Q,M,d,m,J,A,O,z,C=0,H={},j=[],e=0,G={},y=[],f=null,o=new Image(),i=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,p,N=1,h=0,t="",b,c,P=false,s=B.extend(B("<div/>")[0],{prop:0}),S=B.browser.msie&&B.browser.version<7&&!window.XMLHttpRequest,r=function(){T.hide();o.onerror=o.onload=null;if(f){f.abort()}L.empty()},x=function(){if(false===H.onError(j,C,H)){T.hide();P=false;return}H.titleShow=false;H.width="auto";H.height="auto";L.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');n()},w=function(){var Z=j[C],W,Y,ab,aa,V,X;r();H=B.extend({},B.fn.fancybox.defaults,(typeof B(Z).data("fancybox")=="undefined"?H:B(Z).data("fancybox")));X=H.onStart(j,C,H);if(X===false){P=false;return}else{if(typeof X=="object"){H=B.extend(H,X)}}ab=H.title||(Z.nodeName?B(Z).attr("title"):Z.title)||"";if(Z.nodeName&&!H.orig){H.orig=B(Z).children("img:first").length?B(Z).children("img:first"):B(Z)}if(ab===""&&H.orig&&H.titleFromAlt){ab=H.orig.attr("alt")}W=H.href||(Z.nodeName?B(Z).attr("href"):Z.href)||null;if((/^(?:javascript)/i).test(W)||W=="#"){W=null}if(H.type){Y=H.type;if(!W){W=H.content}}else{if(H.content){Y="html"}else{if(W){if(W.match(i)){Y="image"}else{if(W.match(k)){Y="swf"}else{if(B(Z).hasClass("iframe")){Y="iframe"}else{if(W.indexOf("#")===0){Y="inline"}else{Y="ajax"}}}}}}}if(!Y){x();return}if(Y=="inline"){Z=W.substr(W.indexOf("#"));Y=B(Z).length>0?"inline":"ajax"}H.type=Y;H.href=W;H.title=ab;if(H.autoDimensions){if(H.type=="html"||H.type=="inline"||H.type=="ajax"){H.width="auto";H.height="auto"}else{H.autoDimensions=false}}if(H.modal){H.overlayShow=true;H.hideOnOverlayClick=false;H.hideOnContentClick=false;H.enableEscapeButton=false;H.showCloseButton=false}H.padding=parseInt(H.padding,10);H.margin=parseInt(H.margin,10);L.css("padding",(H.padding+H.margin));B(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){B(this).replaceWith(m.children())});switch(Y){case"html":L.html(H.content);n();break;case"inline":if(B(Z).parent().is("#fancybox-content")===true){P=false;return}B('<div class="fancybox-inline-tmp" />').hide().insertBefore(B(Z)).bind("fancybox-cleanup",function(){B(this).replaceWith(m.children())}).bind("fancybox-cancel",function(){B(this).replaceWith(L.children())});B(Z).appendTo(L);n();break;case"image":P=false;B.fancybox.showActivity();o=new Image();o.onerror=function(){x()};o.onload=function(){P=true;o.onerror=o.onload=null;F()};o.src=W;break;case"swf":H.scrolling="no";aa='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+H.width+'" height="'+H.height+'"><param name="movie" value="'+W+'"></param>';V="";B.each(H.swf,function(ac,ad){aa+='<param name="'+ac+'" value="'+ad+'"></param>';V+=" "+ac+'="'+ad+'"'});aa+='<embed src="'+W+'" type="application/x-shockwave-flash" width="'+H.width+'" height="'+H.height+'"'+V+"></embed></object>";L.html(aa);n();break;case"ajax":P=false;B.fancybox.showActivity();H.ajax.win=H.ajax.success;f=B.ajax(B.extend({},H.ajax,{url:W,data:H.ajax.data||{},error:function(ac,ae,ad){if(ac.status>0){x()}},success:function(ad,af,ac){var ae=typeof ac=="object"?ac:f;if(ae.status==200){if(typeof H.ajax.win=="function"){X=H.ajax.win(W,ad,af,ac);if(X===false){T.hide();return}else{if(typeof X=="string"||typeof X=="object"){ad=X}}}L.html(ad);n()}}}));break;case"iframe":E();break}},n=function(){var V=H.width,W=H.height;if(V.toString().indexOf("%")>-1){V=parseInt((B(window).width()-(H.margin*2))*parseFloat(V)/100,10)+"px"}else{V=V=="auto"?"auto":V+"px"}if(W.toString().indexOf("%")>-1){W=parseInt((B(window).height()-(H.margin*2))*parseFloat(W)/100,10)+"px"}else{W=W=="auto"?"auto":W+"px"}L.wrapInner('<div style="width:'+V+";height:"+W+";overflow: "+(H.scrolling=="auto"?"auto":(H.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');H.width=L.width();H.height=L.height();E()},F=function(){H.width=o.width;H.height=o.height;B("<img />").attr({id:"fancybox-img",src:o.src,alt:H.title}).appendTo(L);E()},E=function(){var W,V;T.hide();if(M.is(":visible")&&false===G.onCleanup(y,e,G)){B.event.trigger("fancybox-cancel");P=false;return}P=true;B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");if(M.is(":visible")&&G.titlePosition!=="outside"){M.css("height",M.height())}y=j;e=C;G=H;if(G.overlayShow){Q.css({"background-color":G.overlayColor,opacity:G.overlayOpacity,cursor:G.hideOnOverlayClick?"pointer":"auto",height:B(document).height(),"z-index":1101});if(!Q.is(":visible")){if(S){B("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}Q.show()}}else{Q.hide()}c=R();l();if(M.is(":visible")){B(J.add(O).add(z)).hide();W=M.position(),b={top:W.top,left:W.left,width:M.width(),height:M.height()};V=(b.width==c.width&&b.height==c.height);m.fadeTo(G.changeFade,0.3,function(){var X=function(){m.html(L.contents()).fadeTo(G.changeFade,1,v)};B.event.trigger("fancybox-change");m.empty().removeAttr("filter").css({"border-width":G.padding,width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2});if(V){X()}else{s.prop=0;B(s).animate({prop:1},{duration:G.changeSpeed,easing:G.easingChange,step:U,complete:X})}});return}M.removeAttr("style");m.css("border-width",G.padding);if(G.transitionIn=="elastic"){b=I();m.html(L.contents());M.show();if(G.opacity){c.opacity=0}s.prop=0;B(s).animate({prop:1},{duration:G.speedIn,easing:G.easingIn,step:U,complete:v});return}if(G.titlePosition=="inside"&&h>0){A.show()}m.css({width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2}).html(L.contents());M.css(c).fadeIn(G.transitionIn=="none"?0:G.speedIn,v)},D=function(V){if(V&&V.length){if(G.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+V+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+G.titlePosition+'">'+V+"</div>"}return false},l=function(){t=G.title||"";h=0;A.empty().removeAttr("style").removeClass();if(G.titleShow===false){A.hide();return}t=B.isFunction(G.titleFormat)?G.titleFormat(t,y,e,G):D(t);if(!t||t===""){A.hide();return}A.addClass("fancybox-title-"+G.titlePosition).html(t).appendTo("body").show();switch(G.titlePosition){case"inside":A.css({width:c.width-(G.padding*2),marginLeft:G.padding,marginRight:G.padding});h=A.outerHeight(true);A.appendTo(d);c.height+=h;break;case"over":A.css({marginLeft:G.padding,width:c.width-(G.padding*2),bottom:G.padding}).appendTo(d);break;case"float":A.css("left",parseInt((A.width()-c.width-40)/2,10)*-1).appendTo(M);break;default:A.css({width:c.width-(G.padding*2),paddingLeft:G.padding,paddingRight:G.padding}).appendTo(M);break}A.hide()},g=function(){if(G.enableEscapeButton||G.enableKeyboardNav){B(document).bind("keydown.fb",function(V){if(V.keyCode==27&&G.enableEscapeButton){V.preventDefault();B.fancybox.close()}else{if((V.keyCode==37||V.keyCode==39)&&G.enableKeyboardNav&&V.target.tagName!=="INPUT"&&V.target.tagName!=="TEXTAREA"&&V.target.tagName!=="SELECT"){V.preventDefault();B.fancybox[V.keyCode==37?"prev":"next"]()}}})}if(!G.showNavArrows){O.hide();z.hide();return}if((G.cyclic&&y.length>1)||e!==0){O.show()}if((G.cyclic&&y.length>1)||e!=(y.length-1)){z.show()}},v=function(){if(!B.support.opacity){m.get(0).style.removeAttribute("filter");M.get(0).style.removeAttribute("filter")}if(H.autoDimensions){m.css("height","auto")}M.css("height","auto");if(t&&t.length){A.show()}if(G.showCloseButton){J.show()}g();if(G.hideOnContentClick){m.bind("click",B.fancybox.close)}if(G.hideOnOverlayClick){Q.bind("click",B.fancybox.close)}B(window).bind("resize.fb",B.fancybox.resize);if(G.centerOnScroll){B(window).bind("scroll.fb",B.fancybox.center)}if(G.type=="iframe"){B('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(B.browser.msie?'allowtransparency="true""':"")+' scrolling="'+H.scrolling+'" src="'+G.href+'"></iframe>').appendTo(m)}M.show();P=false;B.fancybox.center();G.onComplete(y,e,G);K()},K=function(){var V,W;if((y.length-1)>e){V=y[e+1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}if(e>0){V=y[e-1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}},U=function(W){var V={width:parseInt(b.width+(c.width-b.width)*W,10),height:parseInt(b.height+(c.height-b.height)*W,10),top:parseInt(b.top+(c.top-b.top)*W,10),left:parseInt(b.left+(c.left-b.left)*W,10)};if(typeof c.opacity!=="undefined"){V.opacity=W<0.5?0.5:W}M.css(V);m.css({width:V.width-G.padding*2,height:V.height-(h*W)-G.padding*2})},u=function(){return[B(window).width()-(G.margin*2),B(window).height()-(G.margin*2),B(document).scrollLeft()+G.margin,B(document).scrollTop()+G.margin]},R=function(){var V=u(),Z={},W=G.autoScale,X=G.padding*2,Y;if(G.width.toString().indexOf("%")>-1){Z.width=parseInt((V[0]*parseFloat(G.width))/100,10)}else{Z.width=G.width+X}if(G.height.toString().indexOf("%")>-1){Z.height=parseInt((V[1]*parseFloat(G.height))/100,10)}else{Z.height=G.height+X}if(W&&(Z.width>V[0]||Z.height>V[1])){if(H.type=="image"||H.type=="swf"){Y=(G.width)/(G.height);if((Z.width)>V[0]){Z.width=V[0];Z.height=parseInt(((Z.width-X)/Y)+X,10)}if((Z.height)>V[1]){Z.height=V[1];Z.width=parseInt(((Z.height-X)*Y)+X,10)}}else{Z.width=Math.min(Z.width,V[0]);Z.height=Math.min(Z.height,V[1])}}Z.top=parseInt(Math.max(V[3]-20,V[3]+((V[1]-Z.height-40)*0.5)),10);Z.left=parseInt(Math.max(V[2]-20,V[2]+((V[0]-Z.width-40)*0.5)),10);return Z},q=function(V){var W=V.offset();W.top+=parseInt(V.css("paddingTop"),10)||0;W.left+=parseInt(V.css("paddingLeft"),10)||0;W.top+=parseInt(V.css("border-top-width"),10)||0;W.left+=parseInt(V.css("border-left-width"),10)||0;W.width=V.width();W.height=V.height();return W},I=function(){var Y=H.orig?B(H.orig):false,X={},W,V;if(Y&&Y.length){W=q(Y);X={width:W.width+(G.padding*2),height:W.height+(G.padding*2),top:W.top-G.padding-20,left:W.left-G.padding-20}}else{V=u();X={width:G.padding*2,height:G.padding*2,top:parseInt(V[3]+V[1]*0.5,10),left:parseInt(V[2]+V[0]*0.5,10)}}return X},a=function(){if(!T.is(":visible")){clearInterval(p);return}B("div",T).css("top",(N*-40)+"px");N=(N+1)%12};B.fn.fancybox=function(V){if(!B(this).length){return this}B(this).data("fancybox",B.extend({},V,(B.metadata?B(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(X){X.preventDefault();if(P){return}P=true;B(this).blur();j=[];C=0;var W=B(this).attr("rel")||"";if(!W||W==""||W==="nofollow"){j.push(this)}else{j=B("a[rel="+W+"], area[rel="+W+"]");C=j.index(this)}w();return});return this};B.fancybox=function(Y){var X;if(P){return}P=true;X=typeof arguments[1]!=="undefined"?arguments[1]:{};j=[];C=parseInt(X.index,10)||0;if(B.isArray(Y)){for(var W=0,V=Y.length;W<V;W++){if(typeof Y[W]=="object"){B(Y[W]).data("fancybox",B.extend({},X,Y[W]))}else{Y[W]=B({}).data("fancybox",B.extend({content:Y[W]},X))}}j=jQuery.merge(j,Y)}else{if(typeof Y=="object"){B(Y).data("fancybox",B.extend({},X,Y))}else{Y=B({}).data("fancybox",B.extend({content:Y},X))}j.push(Y)}if(C>j.length||C<0){C=0}w()};B.fancybox.showActivity=function(){clearInterval(p);T.show();p=setInterval(a,66)};B.fancybox.hideActivity=function(){T.hide()};B.fancybox.next=function(){return B.fancybox.pos(e+1)};B.fancybox.prev=function(){return B.fancybox.pos(e-1)};B.fancybox.pos=function(V){if(P){return}V=parseInt(V);j=y;if(V>-1&&V<y.length){C=V;w()}else{if(G.cyclic&&y.length>1){C=V>=y.length?0:y.length-1;w()}}return};B.fancybox.cancel=function(){if(P){return}P=true;B.event.trigger("fancybox-cancel");r();H.onCancel(j,C,H);P=false};B.fancybox.close=function(){if(P||M.is(":hidden")){return}P=true;if(G&&false===G.onCleanup(y,e,G)){P=false;return}r();B(J.add(O).add(z)).hide();B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");m.find("iframe").attr("src",S&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(G.titlePosition!=="inside"){A.empty()}M.stop();function V(){Q.fadeOut("fast");A.empty().hide();M.hide();B.event.trigger("fancybox-cleanup");m.empty();G.onClosed(y,e,G);y=H=[];e=C=0;G=H={};P=false}if(G.transitionOut=="elastic"){b=I();var W=M.position();c={top:W.top,left:W.left,width:M.width(),height:M.height()};if(G.opacity){c.opacity=1}A.empty().hide();s.prop=1;B(s).animate({prop:0},{duration:G.speedOut,easing:G.easingOut,step:U,complete:V})}else{M.fadeOut(G.transitionOut=="none"?0:G.speedOut,V)}};B.fancybox.resize=function(){if(Q.is(":visible")){Q.css("height",B(document).height())}B.fancybox.center(true)};B.fancybox.center=function(){var V,W;if(P){return}W=arguments[0]===true?1:0;V=u();if(!W&&(M.width()>V[0]||M.height()>V[1])){return}M.stop().animate({top:parseInt(Math.max(V[3]-20,V[3]+((V[1]-m.height()-40)*0.5)-G.padding)),left:parseInt(Math.max(V[2]-20,V[2]+((V[0]-m.width()-40)*0.5)-G.padding))},typeof arguments[0]=="number"?arguments[0]:200)};B.fancybox.init=function(){if(B("#fancybox-wrap").length){return}B("body").prepend(L=B('<div id="fancybox-tmp">&nbsp;</div>'),T=B('<div id="fancybox-loading"><div>&nbsp;</div></div>'),Q=B('<div id="fancybox-overlay">&nbsp;</div>'),M=B('<div id="fancybox-wrap"></div>'));d=B('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(M);d.append(m=B('<div id="fancybox-content"></div>'),J=B('<a id="fancybox-close"><span>&nbsp;</span></a>'),A=B('<div id="fancybox-title"></div>'),O=B('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico">&nbsp;</span></a>'),z=B('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico">&nbsp;</span></a>'));J.click(B.fancybox.close);T.click(B.fancybox.cancel);O.click(function(V){V.preventDefault();B.fancybox.prev()}).find(".fancy-ico").hover(function(V){B(this).addClass("hover")},function(V){B(this).removeClass("hover")});z.click(function(V){V.preventDefault();B.fancybox.next()}).find(".fancy-ico").hover(function(V){B(this).addClass("hover")},function(V){B(this).removeClass("hover")});if(B.fn.mousewheel){M.bind("mousewheel.fb",function(V,W){if(P){V.preventDefault()}else{if(B(V.target).get(0).clientHeight==0||B(V.target).get(0).scrollHeight===B(V.target).get(0).clientHeight){V.preventDefault();B.fancybox[W>0?"prev":"next"]()}}})}if(!B.support.opacity){M.addClass("fancybox-ie")}if(S){T.addClass("fancybox-ie6");M.addClass("fancybox-ie6");B('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)}};B.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};B(document).ready(function(){B.fancybox.init()})})(jQuery);

// jQuery metadata
(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);

// jQuery cookie
jQuery.cookie=function(d,e,b){if(arguments.length>1&&(e===null||typeof e!=="object")){b=jQuery.extend({},b);if(e===null){b.expires=-1}if(typeof b.expires==="number"){var g=b.expires,c=b.expires=new Date();c.setDate(c.getDate()+g)}return(document.cookie=[encodeURIComponent(d),"=",b.raw?String(e):encodeURIComponent(String(e)),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join(""))}b=e||{};var a,f=b.raw?function(h){return h}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)").exec(document.cookie))?f(a[1]):null};

// jQuery onFontResize
jQuery.onFontResize=(function(a){a(document).ready(function(){var c=a("<iframe />").attr("id","frame-onFontResize"+Date.parse(new Date)).css({width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-5000px",left:"-5000px"}).appendTo("body");if(a.browser.msie){c.bind("resize",function(){a.onFontResize.trigger(c[0].offsetWidth/100)})}else{var b=c[0].contentWindow||c[0].contentDocument||c[0].document;b=b.document||b;b.open();b.write('<div id="em" style="width:100em;height:10px;"></div>');b.write('<script>window.onload = function(){var em = document.getElementById("em");window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};<\/script>');b.close()}});return{trigger:function(b){a(document).trigger("fontresize",[b])}}})(jQuery);
(function(a){a.fn.equalizeCols=function(){var b=0,c=(a.browser.msie&&a.browser.version<7)?"1%":"auto";return this.css("height",c).each(function(){b=Math.max(b,this.offsetHeight)}).css("height",b).each(function(){var d=this.offsetHeight;if(d>b){a(this).css("height",b-(d-b))}})}})(jQuery);

// jQuery superfish
(function(b){b.fn.superfish=function(k){var g=b.fn.superfish,j=g.c,f=b(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),i=function(){var c=b(this),l=d(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),m=d(c),l=g.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){l.retainPath=(b.inArray(c[0],l.$path)>-1);c.hideSuperfishUl();if(l.$path.length&&c.parents(["li.",l.hoverClass].join("")).length<1){i.call(l.$path)}},l.delay)},d=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];g.op=g.o[l.serial];return l},h=function(c){c.addClass(j.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var m=b.extend({},g.defaults,k);m.$path=b("li."+m.pathClass,this).slice(0,m.pathLevels).each(function(){b(this).addClass([m.hoverClass,j.bcClass].join(" "))});g.o[c]=g.op=m;b("li",this)[(b.fn.hoverIntent&&!m.disableHI)?"hoverIntent":"hover"](i,e).each(function(){if(m.autoArrows){h(b(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var l=b("a",this);l.each(function(n){var o=l.eq(n).parents("li");l.eq(n).focus(function(){i.call(o)}).blur(function(){e.call(o)})});m.onInit.call(this)}).each(function(){var c=[j.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(j.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);

// jQuery carouFredSel v4.2.0
(function(h){function A(d,e,g,f,h){d={duration:f,easing:d.easing};if(typeof h=="function")d.complete=h;e.animate({opacity:g},d)}function T(d,e,g,f,n,b){var q=D(j(g),f,!0)[0],l={},m={};l[f.dimensions[0]]=q;l[f.dimensions[6]]=b?-q:q;m[f.dimensions[6]]=0;e.animate({opacity:"+=0"},n);g.css(l).animate(m,{duration:n,easing:d.easing,complete:function(){h(this).remove()}})}function U(d,e,g,f,n){var b=D(j(e),g,!0)[0],q={},l={};q[g.dimensions[0]]=b;l[g.dimensions[6]]=n?b:-b;e.css(q).animate(l,{duration:f,easing:d.easing, complete:function(){h(this).remove()}})}function G(d,e){if(e=="show"||e=="hide")var g=e;else d.items.minimum>=e?(q("Not enough items: not scrolling"),g="hide"):g="show";if(d.prev.button)d.prev.button[g]();if(d.next.button)d.next.button[g]();if(d.pagination.container)d.pagination.container[g]()}function C(d,e){if(!d.circular&&!d.infinite){var g=e=="removeClass"||e=="addClass"?e:!1;if(d.next.button){var f=g||e==d.items.visible?"addClass":"removeClass";d.next.button[f]("disabled")}if(d.prev.button)d.prev.button[g|| e==0?"addClass":"removeClass"]("disabled")}}function w(d){if(d=="right")return 39;if(d=="left")return 37;if(d=="up")return 38;if(d=="down")return 40;return-1}function N(d){typeof d=="undefined"&&(d={});return d}function H(d,e,g){typeof e!="boolean"&&(e=!1);typeof g!="boolean"&&(g=!1);d=N(d);if(typeof d=="string")var f=w(d),d=f==-1?h(d):f;if(e){if(typeof d=="boolean"&&(d={keys:d}),typeof d.jquery!="undefined"&&(d={container:d}),typeof d.container=="string")d.container=h(d.container)}else if(g){if(typeof d== "boolean"&&(d={play:d}),typeof d=="number"&&(d={pauseDuration:d}),typeof d.timer!="object")d.timer={}}else{typeof d.jquery!="undefined"&&(d={button:d});typeof d=="number"&&(d={key:d});if(typeof d.button=="string")d.button=h(d.button);if(typeof d.key=="string")d.key=w(d.key)}return d}function I(d,e,g,f,n,b){typeof d=="string"&&(d=isNaN(d)?h(d):parseInt(d));typeof d=="object"?(typeof d.jquery=="undefined"&&(d=h(d)),d=j(b).index(d),d==-1&&(d=0),typeof g!="boolean"&&(g=!1)):typeof g!="boolean"&&(g=!0); d=isNaN(d)?0:parseInt(d);e=isNaN(e)?0:parseInt(e);g&&(d+=f);d+=e;if(n>0){for(;d>=n;)d-=n;for(;d<0;)d+=n}return d}function j(d,e){typeof e!="string"&&(e="");return h("> *"+e,d)}function v(d,e,g){var f=typeof g=="boolean"?g:!1;typeof g!="number"&&(g=0);d.each(function(){var d=parseInt(h(this).css(e.dimensions[8]));isNaN(d)&&(d=0);h(this).data("cfs_tempCssMargin",d);h(this).css(e.dimensions[8],f?h(this).data("cfs_tempCssMargin"):g+h(this).data("cfs_origCssMargin"))})}function D(d,e,g){s1=E(d,e,0,g); s2=r(d,e,3,g);return[s1,s2]}function r(d,e,g,f){typeof f!="boolean"&&(f=!1);if(typeof e[e.dimensions[g]]=="number"&&f)return e[e.dimensions[g]];if(typeof e.items[e.dimensions[g]]=="number")return e.items[e.dimensions[g]];return V(d,e,g+2)}function V(d,e,g){var f=0;d.each(function(){var d=h(this)[e.dimensions[g]](!0);f<d&&(f=d)});return f}function W(d,e,g){var f=d[e.dimensions[g]](),e=e.dimensions[g].toLowerCase().indexOf("width")>-1?["paddingLeft","paddingRight"]:["paddingTop","paddingBottom"];for(a= 0;a<e.length;a++)g=parseInt(d.css(e[a])),isNaN(g)&&(g=0),f-=g;return f}function E(d,e,g,f){typeof f!="boolean"&&(f=!1);if(typeof e[e.dimensions[g]]=="number"&&f)return e[e.dimensions[g]];if(typeof e.items[e.dimensions[g]]=="number")return e.items[e.dimensions[g]]*d.length;return Y(d,e,g+2)}function Y(d,e,g){var f=0;d.each(function(){f+=h(this)[e.dimensions[g]](!0)});return f}function X(d,e,g){var f=!1,j=!1;d.each(function(){c=h(this)[e.dimensions[g]]();f===!1?f=c:f!=c&&(j=!0)});return j}function O(d, e,g){typeof g!="boolean"&&(g=!0);var g=e.usePadding&&g?e.padding:[0,0,0,0],f={};f[e.dimensions[0]]=d[0]+g[1]+g[3];f[e.dimensions[3]]=d[1]+g[0]+g[2];return f}function J(d,e,g){var f=d.parent(),h=j(d),b=h.filter(":eq("+(e.items.visible-1)+")");f.css(O(D(h.filter(":lt("+e.items.visible+")"),e,!0),e,g));e.usePadding&&(b.css(e.dimensions[8],b.data("cfs_origCssMargin")+e.padding[e.dimensions[10]]),d.css(e.dimensions[7],e.padding[e.dimensions[9]]),d.css(e.dimensions[6],e.padding[e.dimensions[12]]));d.css(e.dimensions[0], E(h,e,0)*2);d.css(e.dimensions[3],r(h,e,3))}function Z(d){if(typeof d=="undefined")return[0,0,0,0];if(typeof d=="number")return[d,d,d,d];else typeof d=="string"&&(d=d.split("px").join("").split(" "));if(typeof d!="object")return[0,0,0,0];for(i in d)d[i]=parseInt(d[i]);switch(d.length){case 0:return[0,0,0,0];case 1:return[d[0],d[0],d[0],d[0]];case 2:return[d[0],d[1],d[0],d[1]];case 3:return[d[0],d[1],d[2],d[1]];default:return[d[0],d[1],d[2],d[3]]}}function P(d,e){var g=typeof e[e.dimensions[3]]=="number"? e[e.dimensions[3]]:r(d,e,3);return[(e[e.dimensions[0]]-E(d,e,0))/2,(g-r(d,e,3))/2]}function K(d,e,g){for(var d=j(d),f=0,h=0;g<=d.length-1;g++){f+=d.filter(":eq("+g+")")[e.dimensions[2]](!0);if(f>e.maxDimention)return h;g==d.length-1&&(g=-1);h++}}function q(d){typeof d=="string"&&(d="carouFredSel: "+d);if(window.console&&window.console.log)window.console.log(d);else try{console.log(d)}catch(e){}return!1}if(!h.fn.carouFredSel)h.fn.carouFredSel=function(d){if(this.length==0)return q("No element selected."); if(this.length>1)return this.each(function(){h(this).carouFredSel(d)});var e=this,g=e[0],f=h(this);e.init=function(d,k){for(var e=["items","scroll","auto","prev","next","pagination"],d=N(d),g=0;g<e.length;g++)d[e[g]]=N(d[e[g]]);if(typeof d.scroll=="number")d.scroll=d.scroll<=50?{items:d.scroll}:{duration:d.scroll};else if(typeof d.scroll=="string")d.scroll={easing:d.scroll};if(typeof d.items=="number")d.items={visible:d.items};else if(typeof d.items=="string")d.items={visible:d.items,width:d.items, height:d.items};k&&(r=h.extend(!0,{},h.fn.carouFredSel.defaults,d));b=h.extend(!0,{},h.fn.carouFredSel.defaults,d);b.variableVisible=!1;w=b.direction=="up"||b.direction=="left"?"next":"prev";b.dimensions=b.direction=="right"||b.direction=="left"?["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3]:["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0];g=j(f);e=V(g,b,5,!1);b[b.dimensions[3]]== "auto"&&(b[b.dimensions[3]]=e,b.items[b.dimensions[3]]=e);b.items[b.dimensions[3]]||(b.items[b.dimensions[3]]=X(g,b,5)?"variable":g[b.dimensions[5]](!0));b[b.dimensions[3]]||(b[b.dimensions[3]]=b.items[b.dimensions[3]]);b.items[b.dimensions[0]]||(b.items[b.dimensions[0]]=X(g,b,2)?"variable":g[b.dimensions[2]](!0));if(!b.items.visible&&b.items[b.dimensions[0]]=="variable")b.items.visible="variable";!b.items.visible&&!b[b.dimensions[0]]&&b.items[b.dimensions[0]]!="variable"&&(b[b.dimensions[0]]=W(n.parent(), b,1));if(!b.items.visible)b.items.visible=typeof b[b.dimensions[0]]=="number"&&b.items[b.dimensions[0]]!="variable"?Math.floor(b[b.dimensions[0]]/b.items[b.dimensions[0]]):"variable";b[b.dimensions[0]]||(b[b.dimensions[0]]=b.items.visible!="variable"&&b.items[b.dimensions[0]]!="variable"?b.items.visible*b.items[b.dimensions[0]]:"variable");if(b.items.visible=="variable"){b.variableVisible=!0;b.maxDimention=b[b.dimensions[0]]=="variable"?W(n.parent(),b,1):b[b.dimensions[0]];if(b.padding===!1||b.padding=== 0)b[b.dimensions[0]]="variable";b.items.visible=K(f,b,0)}else if(b.padding===!1)b.padding=0;if(typeof b.padding=="undefined")b.padding=b[b.dimensions[0]]=="variable"?0:"auto";b.items.oldVisible=b.items.visible;b.usePadding=!1;if(b.padding=="auto"){b.padding=[0,0,0,0];if(b[b.dimensions[0]]!="variable")b.usePadding="auto",g=P(j(f,":lt("+b.items.visible+")"),b),b.padding[b.dimensions[10]]=g[0],b.padding[b.dimensions[12]]=g[0];b[b.dimensions[3]]!="variable"&&(g=(b[b.dimensions[3]]-e)/2,g<0&&(g=0),b.padding[b.dimensions[9]]= g,b.padding[b.dimensions[11]]=g)}else b.padding=Z(b.padding),b.usePadding=b.padding[0]==0&&b.padding[1]==0&&b.padding[2]==0&&b.padding[3]==0?!1:!0;if(typeof b.items.minimum!="number")b.items.minimum=b.variableVisible?1:b.items.visible;if(typeof b.scroll.items!="number")b.scroll.items=b.variableVisible?"variable":b.items.visible;if(typeof b.scroll.duration!="number")b.scroll.duration=500;b.auto=H(b.auto,!1,!0);b.prev=H(b.prev);b.next=H(b.next);b.pagination=H(b.pagination,!0);b.auto=h.extend(!0,{}, b.scroll,b.auto);b.prev=h.extend(!0,{},b.scroll,b.prev);b.next=h.extend(!0,{},b.scroll,b.next);b.pagination=h.extend(!0,{},b.scroll,b.pagination);if(typeof b.pagination.keys!="boolean")b.pagination.keys=!1;if(typeof b.pagination.anchorBuilder!="function")b.pagination.anchorBuilder=h.fn.carouFredSel.pageAnchorBuilder;if(typeof b.auto.play!="boolean")b.auto.play=!0;if(typeof b.auto.nap!="boolean")b.auto.nap=!0;if(typeof b.auto.delay!="number")b.auto.delay=0;if(typeof b.auto.pauseDuration!="number")b.auto.pauseDuration= b.auto.duration<10?2500:b.auto.duration*5};e.build=function(){(f.css("position")=="absolute"||f.css("position")=="fixed")&&q('Carousels CSS-attribute "position" should be "static" or "relative".');n.css({position:"relative",overflow:"hidden",marginTop:f.css("marginTop"),marginRight:f.css("marginRight"),marginBottom:f.css("marginBottom"),marginLeft:f.css("marginLeft")});f.data("cfs_origCss",{width:f.css("width"),height:f.css("height"),marginTop:f.css("marginTop"),marginRight:f.css("marginRight"),marginBottom:f.css("marginBottom"), marginLeft:f.css("marginLeft"),"float":f.css("float"),position:f.css("position"),top:f.css("top"),left:f.css("left")}).css({marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,"float":"none",position:"absolute"});b.usePadding&&j(f).each(function(){var d=parseInt(h(this).css(b.dimensions[8]));isNaN(d)&&(d=0);h(this).data("cfs_origCssMargin",d)})};e.bind_events=function(){e.unbind_events();f.bind("pause",function(d,f){typeof f!="boolean"&&(f=!1);f&&(M=!0);Q!=null&&clearTimeout(Q);R!=null&&clearInterval(R); S!=null&&clearInterval(S);var e=b.auto.pauseDuration-x,h=100-Math.ceil(e*100/b.auto.pauseDuration);h!=0&&b.auto.onPausePause&&b.auto.onPausePause.call(g,h,e)});f.bind("play",function(d,k,e,h){f.trigger("pause");if(b.auto.play&&(typeof h!="boolean"&&(h=typeof e=="boolean"?e:typeof k=="boolean"?k:!1),typeof e!="number"&&(e=typeof k=="number"?k:0),k!="prev"&&k!="next"&&(k=w),h&&(M=!1),!M)){var j=b.auto.pauseDuration-x;perc=100-Math.ceil(j*100/b.auto.pauseDuration);Q=setTimeout(function(){f.is(":animated")? f.trigger("play",k):(x=0,f.trigger(k,b.auto))},j+e);b.auto.pauseOnHover==="resume"&&(R=setInterval(function(){x+=50},50));b.auto.onPauseEnd&&perc==0&&b.auto.onPauseEnd.call(g,perc,j);b.auto.onPauseStart&&(S=setTimeout(function(){b.auto.onPauseStart.call(g,perc,j)},e))}});f.bind("prev next",function(d){M||f.is(":animated")||f.is(":hidden")?d.stopImmediatePropagation():b.items.minimum>=l?(q("Not enough items: not scrolling"),d.stopImmediatePropagation()):x=0});b.variableVisible?(f.bind("prev",function(d, k,e){typeof k=="number"&&(e=k);if(typeof k!="object")k=b.prev;typeof e!="number"&&(e=typeof k.items=="number"?k.items:b.items.visible);oI=e;b.items.oldVisible=b.items.visible;d=j(f);b.usePadding&&v(d,b);var e=b.items,g;a:{var h=b,m=oI,n=j(f),q=0,u=h.items.visible-m-1,m=0;for(u<0&&(u=n.length-1);u>=0;u--){q+=n.filter(":eq("+u+")")[h.dimensions[2]](!0);if(q>h.maxDimention){g=m;break a}if(u==0)u=n.length;m++}}e.visible=g;e=b.items.visible-b.items.oldVisible+oI;if(e<=0)b.items.visible=K(f,b,l-oI),e=oI; b.usePadding&&v(d,b,!0);f.trigger("slidePrev",[k,e])}),f.bind("next",function(d,k,e){typeof k=="number"&&(e=k);if(typeof k!="object")k=b.next;typeof e!="number"&&(e=typeof k.items=="number"?k.items:b.items.visible);b.items.oldVisible=b.items.visible;d=j(f);v(d,b);b.items.visible=K(f,b,e);if(b.items.oldVisible-e>=b.items.visible)b.items.visible=K(f,b,++e);v(d,b,!0);f.trigger("slideNext",[k,e])})):(f.bind("prev",function(b,d,e){f.trigger("slidePrev",[d,e])}),f.bind("next",function(b,d,e){f.trigger("slideNext", [d,e])}));f.bind("slidePrev",function(d,k,e){typeof k=="number"&&(e=k);if(typeof k!="object")k=b.prev;typeof e!="number"&&(e=typeof k.items=="number"?k.items:b.items.visible);if(typeof e!="number")return q("Not a valid number: not scrolling");if(!k.conditions||k.conditions.call(g)){b.circular||(d=l-m,d-e<0&&(e=d),m==0&&(e=0));m+=e;m>=l&&(m-=l);if(!b.circular)if(m==0&&e!=0&&k.onEnd&&k.onEnd.call(g),b.infinite){if(e==0){f.trigger("next",l-b.items.visible);return}}else C(b,m);if(e!=0){j(f,":gt("+(l- e-1)+")").prependTo(f);l<b.items.visible+e&&j(f,":lt("+(b.items.visible+e-l)+")").clone(!0).appendTo(f);var h=j(f,":lt("+(b.items.oldVisible+e)+"):gt("+(e-1)+")"),y=j(f,":lt("+b.items.visible+")"),d=j(f,":eq("+(e-1)+")"),z=h.filter(":last"),r=y.filter(":last");b.usePadding&&(v(z,b),v(r,b));if(b.usePadding=="auto")var s=P(j(f,":lt("+b.items.visible+")"),b);var u=E(j(f,":lt("+e+")"),b,0),t=O(D(y,b,!0),b,!b.usePadding);b.usePadding&&(v(z,b,b.padding[b.dimensions[10]]),v(d,b,b.padding[b.dimensions[12]])); b.usePadding=="auto"&&(b.padding[b.dimensions[9]]=s[1],b.padding[b.dimensions[10]]=s[0],b.padding[b.dimensions[11]]=s[1],b.padding[b.dimensions[12]]=s[0]);var s={},w={},x={},p={},o=k.duration;k.fx=="none"?o=0:o=="auto"?o=b.scroll.duration/b.scroll.items*e:o<=0?o=0:o<10&&(o=u/o);k.onBefore&&k.onBefore.call(g,h,y,t,o);if(b.usePadding){var F=b.padding[b.dimensions[12]];x[b.dimensions[8]]=d.data("cfs_origCssMargin");w[b.dimensions[8]]=r.data("cfs_origCssMargin")+b.padding[b.dimensions[10]];p[b.dimensions[8]]= z.data("cfs_origCssMargin");d.stop().animate(x,{duration:o,easing:k.easing});r.stop().animate(w,{duration:o,easing:k.easing});z.stop().animate(p,{duration:o,easing:k.easing})}else F=0;s[b.dimensions[6]]=F;(b[b.dimensions[0]]=="variable"||b[b.dimensions[3]]=="variable")&&n.stop().animate(t,{duration:o,easing:k.easing});switch(k.fx){case "crossfade":case "cover":case "uncover":var B=f.clone(!0).appendTo(n)}switch(k.fx){case "uncover":j(B,":lt("+e+")").remove();case "crossfade":case "cover":j(B,":gt("+ (b.items.oldVisible-1)+")").remove()}switch(k.fx){case "fade":A(k,f,0,o);break;case "crossfade":B.css({opacity:0});A(k,B,1,o);A(k,f,1,o,function(){B.remove()});break;case "cover":T(k,f,B,b,o,!0);break;case "uncover":U(k,B,b,o,!0)}switch(k.fx){case "fade":case "crossfade":case "cover":case "uncover":f_dur=o,o=0}f.css(b.dimensions[6],-u);f.animate(s,{duration:o,easing:k.easing,complete:function(){var d=k.onAfter?function(){k.onAfter.call(g,h,y,t)}:!1;switch(k.fx){case "fade":A(k,f,1,f_dur,d);break; case "uncover":f.animate({opacity:"+=0"},{duration:f_dur,complete:d});break;default:d&&d()}l<b.items.visible+e&&j(f,":gt("+(l-1)+")").remove();d=j(f,":eq("+(b.items.visible+e-1)+")");b.usePadding&&d.css(b.dimensions[8],d.data("cfs_origCssMargin"))}});f.trigger("updatePageStatus").trigger("play",o)}}});f.bind("slideNext",function(d,e,h){typeof e=="number"&&(h=e);if(typeof e!="object")e=b.next;typeof h!="number"&&(h=typeof e.items=="number"?e.items:b.items.visible);if(typeof h!="number")return q("Not a valid number: not scrolling"); if(!e.conditions||e.conditions.call(g)){b.circular||(m==0?h>l-b.items.visible&&(h=l-b.items.visible):m-h<b.items.visible&&(h=m-b.items.visible));m-=h;m<0&&(m+=l);if(!b.circular)if(m==b.items.visible&&h!=0&&e.onEnd&&e.onEnd.call(g),b.infinite){if(h==0){f.trigger("prev",l-b.items.visible);return}}else C(b,m);if(h!=0){l<b.items.visible+h&&j(f,":lt("+(b.items.visible+h-l)+")").clone(!0).appendTo(f);var L=j(f,":lt("+b.items.oldVisible+")"),y=j(f,":lt("+(b.items.visible+h)+"):gt("+(h-1)+")"),d=L.filter(":eq("+ (h-1)+")"),z=L.filter(":last"),r=y.filter(":last");b.usePadding&&(v(z,b),v(r,b));if(b.usePadding=="auto")var s=P(j(f,":lt("+(b.items.visible+h)+"):gt("+(h-1)+")"),b);var u=E(j(f,":lt("+h+")"),b,0),t=O(D(y,b,!0),b,!b.usePadding);b.usePadding&&(v(z,b,b.padding[b.dimensions[10]]),v(r,b,b.padding[b.dimensions[10]]));b.usePadding=="auto"&&(b.padding[b.dimensions[9]]=s[1],b.padding[b.dimensions[10]]=s[0],b.padding[b.dimensions[11]]=s[1],b.padding[b.dimensions[12]]=s[0]);var s={},w={},x={},p=e.duration; e.fx=="none"?p=0:p=="auto"?p=b.scroll.duration/b.scroll.items*h:p<=0?p=0:p<10&&(p=u/p);e.onBefore&&e.onBefore.call(g,L,y,t,p);b.usePadding&&(w[b.dimensions[8]]=z.data("cfs_origCssMargin"),x[b.dimensions[8]]=d.data("cfs_origCssMargin")+b.padding[b.dimensions[12]],r.css(b.dimensions[8],r.data("cfs_origCssMargin")+b.padding[b.dimensions[10]]),z.stop().animate(w,{duration:p,easing:e.easing}),d.stop().animate(x,{duration:p,easing:e.easing}));s[b.dimensions[6]]=-u;(b[b.dimensions[0]]=="variable"||b[b.dimensions[3]]== "variable")&&n.stop().animate(t,{duration:p,easing:e.easing});switch(e.fx){case "crossfade":case "cover":case "uncover":var o=f.clone(!0).appendTo(n)}switch(e.fx){case "crossfade":case "cover":j(o,":lt("+h+")").remove();case "uncover":j(o,":gt("+(b.items.visible-1)+")").remove()}switch(e.fx){case "fade":A(e,f,0,p);break;case "crossfade":o.css({opacity:0});A(e,o,1,p);A(e,f,1,p,function(){o.remove()});break;case "cover":T(e,f,o,b,p,!1);break;case "uncover":U(e,o,b,p,!1)}switch(e.fx){case "fade":case "crossfade":case "cover":case "uncover":f_dur= p,p=0}var F=h;f.animate(s,{duration:p,easing:e.easing,complete:function(){var d=e.onAfter?function(){e.onAfter.call(g,L,y,t)}:!1;switch(e.fx){case "fade":A(e,f,1,f_dur,d);break;case "uncover":f.animate({opacity:"+=0"},{duration:f_dur,complete:d});break;default:d&&d()}l<b.items.visible+F&&j(f,":gt("+(l-1)+")").remove();f.css(b.dimensions[6],b.usePadding?b.padding[b.dimensions[12]]:0);d=j(f,":lt("+F+")").appendTo(f).filter(":last");b.usePadding&&d.css(b.dimensions[8],d.data("cfs_origCssMargin"))}}); f.trigger("updatePageStatus").trigger("play",p)}}});f.bind("slideTo",function(d,e,g,h,j){f.is(":animated")||(e=I(e,g,h,m,l,f),e!=0&&(typeof j!="object"&&(j=!1),b.circular?e<l/2?f.trigger("next",[j,e]):f.trigger("prev",[j,l-e]):m==0||m>e?f.trigger("next",[j,e]):f.trigger("prev",[j,l-e])))});f.bind("insertItem",function(d,e,g,n,r){typeof e=="object"&&typeof e.jquery=="undefined"&&(e=h(e));typeof e=="string"&&(e=h(e));if(typeof e!="object"||typeof e.jquery=="undefined"||e.length==0)return q("Not a valid object."); typeof g=="undefined"||g=="end"?f.append(e):(g=I(g,r,n,m,l,f),d=j(f,":eq("+g+")"),b.usePadding&&e.each(function(){var d=parseInt(h(this).css(b.dimensions[8]));isNaN(d)&&(d=0);h(this).data("cfs_origCssMargin",d)}),d.length?(g<m&&(m+=e.length),m>=l&&(m-=l),d.before(e)):f.append(e));l=j(f).length;f.trigger("linkAnchors");J(f,b);G(b,l);C(b,m);f.trigger("updatePageStatus",!0)});f.bind("removeItem",function(d,e,g,h){typeof e=="undefined"||e=="end"?j(f,":last").remove():(e=I(e,h,g,m,l,f),d=j(f,":eq("+e+ ")"),d.length&&(e<m&&(m-=d.length),d.remove()));l=j(f).length;J(f,b);G(b,l);C(b,m);f.trigger("updatePageStatus",!0)});f.bind("linkAnchors",function(b,d,e){typeof d=="undefined"||d.length==0?d=h("body"):typeof d=="string"&&(d=h(d));if(typeof d!="object")return q("Not a valid object.");if(typeof e!="string"||e.length==0)e="a.caroufredsel";d.find(e).each(function(){var b=this.hash||"";b.length>0&&j(f).index(h(b))!=-1&&h(this).unbind("click").click(function(d){d.preventDefault();f.trigger("slideTo",b)})})}); f.bind("currentPosition",function(b,d){var e=m==0?0:l-m;typeof d=="function"&&d.call(g,e)});f.bind("configuration",function(d,h,j){typeof h=="function"?h.call(g,b):typeof j=="function"?(d=eval("opts."+h),typeof d=="undefined"&&(d=""),j.call(g,d)):typeof h!="undefined"&&typeof j!="undefined"&&(eval("opts_orig."+h+" = b"),e.init(r),J(f,b))});f.bind("destroy",function(d,g){g&&f.trigger("slideTo",[0,0,!0,{duration:0}]);b.usePadding&&j(f).each(function(){h(this).css(b.dimensions[8],h(this).data("cfs_origCssMargin"))}); f.trigger("pause").css(f.data("cfs_origCss"));e.unbind_events();e.unbind_buttons();n.replaceWith(f)});f.bind("updatePageStatus",function(d,e){if(b.pagination.container){if(typeof e=="boolean"&&e){j(b.pagination.container).remove();for(var g=0;g<Math.ceil(l/b.items.visible);g++){var n=j(f,":eq("+I(g*b.items.visible,0,!0,m,l,f)+")");b.pagination.container.append(b.pagination.anchorBuilder(g+1,n))}j(b.pagination.container).unbind("click").each(function(d){h(this).click(function(e){e.preventDefault(); f.trigger("slideTo",[d*b.items.visible,0,!0,b.pagination])})})}g=Math.ceil(l/b.items.visible-1);n=m==0?0:m<l%b.items.visible?0:m==b.items.visible&&!b.circular?g:Math.round((l-m)/b.items.visible);n<0&&(n=0);n>g&&(n=g);j(b.pagination.container).removeClass("selected").filter(":eq("+n+")").addClass("selected")}})};e.unbind_events=function(){f.unbind("pause").unbind("play").unbind("prev").unbind("next").unbind("slidePrev").unbind("slideNext").unbind("slideTo").unbind("insertItem").unbind("removeItem").unbind("linkAnchors").unbind("destroy").unbind("updatePageStatus").unbind("currentPosition").unbind("configuration")}; e.bind_buttons=function(){G(b,"show");C(b,m);b.auto.pauseOnHover&&b.auto.play&&n.hover(function(){f.trigger("pause")},function(){f.trigger("play")});b.prev.button&&(b.prev.button.click(function(b){b.preventDefault();f.trigger("prev")}),b.prev.pauseOnHover&&b.auto.play&&b.prev.button.hover(function(){f.trigger("pause")},function(){f.trigger("play")}));b.next.button&&(b.next.button.click(function(b){b.preventDefault();f.trigger("next")}),b.next.pauseOnHover&&b.auto.play&&b.next.button.hover(function(){f.trigger("pause")}, function(){f.trigger("play")}));h.fn.mousewheel&&(b.prev.mousewheel&&n.mousewheel(function(d,e){e>0&&(d.preventDefault(),num=typeof b.prev.mousewheel=="number"?b.prev.mousewheel:"",f.trigger("prev",num))}),b.next.mousewheel&&n.mousewheel(function(d,e){e<0&&(d.preventDefault(),num=typeof b.next.mousewheel=="number"?b.next.mousewheel:"",f.trigger("next",num))}));b.pagination.container&&(f.trigger("updatePageStatus",!0),b.pagination.pauseOnHover&&b.auto.play&&b.pagination.container.hover(function(){f.trigger("pause")}, function(){f.trigger("play")}));(b.next.key||b.prev.key)&&h(document).keyup(function(d){var e=d.keyCode;e==b.next.key&&(d.preventDefault(),f.trigger("next"));e==b.prev.key&&(d.preventDefault(),f.trigger("prev"))});b.pagination.keys&&h(document).keyup(function(d){var e=d.keyCode;e>=49&&e<58&&(e=(e-49)*b.items.visible,e<=l&&(d.preventDefault(),f.trigger("slideTo",[e,0,!0,b.pagination])))});b.auto.play&&(f.trigger("play",b.auto.delay),h.fn.nap&&b.auto.nap&&f.nap("pause","play"))};e.unbind_buttons=function(){G(b, "hide");C(b,"removeClass");b.pagination.container&&j(b.pagination.container).remove()};e.configuration=function(b,d){q('The "configuration" public method is deprecated, use the "configuration" custom event.');var e=!1,g=function(b){e=b};b||(b=g);d||(d=g);f.trigger("configuration",[b,d]);return e};e.current_position=function(){q('The "current_position" public method is deprecated, use the "currentPosition" custom event.');var b=!1;f.trigger("currentPosition",function(d){b=d});return b};e.destroy=function(){q('The "destroy" public method is deprecated, use the "destroy" custom event.'); f.trigger("destroy");return e};e.link_anchors=function(b,d){q('The "link_anchors" public method is deprecated, use the "linkAnchors" custom event.');f.trigger("linkAnchors",[b,d]);return e};if(f.parent().is(".caroufredsel_wrapper")){var n=f.parent();f.trigger("destroy")}var n=f.wrap('<div class="caroufredsel_wrapper" />').parent(),b={},r=d,l=j(f).length,m=0,Q=null,R=null,S=null,x=0,M=!1,w="next";e.init(r,!0);e.build();e.bind_events();e.bind_buttons();f.trigger("linkAnchors");J(f,b,!1);if(b.items.start!== 0&&b.items.start!==!1){var t=b.items.start;if(t===!0)t=window.location.hash,t.length||(t=0);t==="random"&&(t=Math.floor(Math.random()*l));f.trigger("slideTo",[t,0,!0,{duration:0}])}return this},h.fn.carouFredSel.defaults={infinite:!0,circular:!0,direction:"left",items:{start:0},scroll:{easing:"swing",pauseOnHover:!1,mousewheel:!1}},h.fn.carouFredSel.pageAnchorBuilder=function(d){return'<a href="#"><span>'+d+"</span></a>"},h.fn.caroufredsel=function(d){return this.carouFredSel(d)}})(jQuery);

// jQuery jScrollPane
(function(b,a,c){b.fn.jScrollPane=function(f){function d(C,L){var au,N=this,V,ah,v,aj,Q,W,y,q,av,aB,ap,i,H,h,j,X,R,al,U,t,A,am,ac,ak,F,l,ao,at,x,aq,aE,g,aA,ag=true,M=true,aD=false,k=false,Z=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";aE=C.css("paddingTop")+" "+C.css("paddingRight")+" "+C.css("paddingBottom")+" "+C.css("paddingLeft");g=(parseInt(C.css("paddingLeft"))||0)+(parseInt(C.css("paddingRight"))||0);an(L);function an(aH){var aL,aK,aJ,aG,aF,aI;au=aH;if(V==c){C.css({overflow:"hidden",padding:0});ah=C.innerWidth()+g;v=C.innerHeight();C.width(ah);V=b('<div class="jspPane" />').wrap(b('<div class="jspContainer" />').css({width:ah+"px",height:v+"px"}));C.wrapInner(V.parent());aj=C.find(">.jspContainer");V=aj.find(">.jspPane");V.css("padding",aE)}else{C.css("width","");aI=C.outerWidth()+g!=ah||C.outerHeight()!=v;if(aI){ah=C.innerWidth()+g;v=C.innerHeight();aj.css({width:ah+"px",height:v+"px"})}aA=V.innerWidth();if(!aI&&V.outerWidth()==Q&&V.outerHeight()==W){if(aB||av){V.css("width",aA+"px");C.css("width",(aA+g)+"px")}return}V.css("width","");C.css("width",(ah)+"px");aj.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}aL=V.clone().css("position","absolute");aK=b('<div style="width:1px; position: relative;" />').append(aL);b("body").append(aK);Q=Math.max(V.outerWidth(),aL.outerWidth());aK.remove();W=V.outerHeight();y=Q/ah;q=W/v;av=q>1;aB=y>1;if(!(aB||av)){C.removeClass("jspScrollable");V.css({top:0,width:aj.width()-g});n();D();O();w();af()}else{C.addClass("jspScrollable");aJ=au.maintainPosition&&(H||X);if(aJ){aG=ay();aF=aw()}aC();z();E();if(aJ){K(aG);J(aF)}I();ad();if(au.enableKeyboardNavigation){P()}if(au.clickOnTrack){p()}B();if(au.hijackInternalLinks){m()}}if(au.autoReinitialise&&!aq){aq=setInterval(function(){an(au)},au.autoReinitialiseDelay)}else{if(!au.autoReinitialise&&aq){clearInterval(aq)}}C.trigger("jsp-initialised",[aB||av])}function aC(){if(av){aj.append(b('<div class="jspVerticalBar" />').append(b('<div class="jspCap jspCapTop" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragTop" />'),b('<div class="jspDragBottom" />'))),b('<div class="jspCap jspCapBottom" />')));R=aj.find(">.jspVerticalBar");al=R.find(">.jspTrack");ap=al.find(">.jspDrag");if(au.showArrows){am=b('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",az(0,-1)).bind("click.jsp",ax);ac=b('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",az(0,1)).bind("click.jsp",ax);if(au.arrowScrollOnHover){am.bind("mouseover.jsp",az(0,-1,am));ac.bind("mouseover.jsp",az(0,1,ac))}ai(al,au.verticalArrowPositions,am,ac)}t=v;aj.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){t-=b(this).outerHeight()});ap.hover(function(){ap.addClass("jspHover")},function(){ap.removeClass("jspHover")}).bind("mousedown.jsp",function(aF){b("html").bind("dragstart.jsp selectstart.jsp",function(){return false});ap.addClass("jspActive");var s=aF.pageY-ap.position().top;b("html").bind("mousemove.jsp",function(aG){S(aG.pageY-s,false)}).bind("mouseup.jsp mouseleave.jsp",ar);return false});o()}}function o(){al.height(t+"px");H=0;U=au.verticalGutter+al.outerWidth();V.width(ah-U-g);if(R.position().left==0){V.css("margin-left",U+"px")}}function z(){if(aB){aj.append(b('<div class="jspHorizontalBar" />').append(b('<div class="jspCap jspCapLeft" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragLeft" />'),b('<div class="jspDragRight" />'))),b('<div class="jspCap jspCapRight" />')));ak=aj.find(">.jspHorizontalBar");F=ak.find(">.jspTrack");h=F.find(">.jspDrag");if(au.showArrows){at=b('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",az(-1,0)).bind("click.jsp",ax);x=b('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",az(1,0)).bind("click.jsp",ax);if(au.arrowScrollOnHover){at.bind("mouseover.jsp",az(-1,0,at));x.bind("mouseover.jsp",az(1,0,x))}ai(F,au.horizontalArrowPositions,at,x)}h.hover(function(){h.addClass("jspHover")},function(){h.removeClass("jspHover")}).bind("mousedown.jsp",function(aF){b("html").bind("dragstart.jsp selectstart.jsp",function(){return false});h.addClass("jspActive");var s=aF.pageX-h.position().left;b("html").bind("mousemove.jsp",function(aG){T(aG.pageX-s,false)}).bind("mouseup.jsp mouseleave.jsp",ar);return false});l=aj.innerWidth();ae()}else{}}function ae(){aj.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){l-=b(this).outerWidth()});F.width(l+"px");X=0}function E(){if(aB&&av){var aF=F.outerHeight(),s=al.outerWidth();t-=aF;b(ak).find(">.jspCap:visible,>.jspArrow").each(function(){l+=b(this).outerWidth()});l-=s;v-=s;ah-=aF;F.parent().append(b('<div class="jspCorner" />').css("width",aF+"px"));o();ae()}if(aB){V.width((aj.outerWidth()-g)+"px")}W=V.outerHeight();q=W/v;if(aB){ao=1/y*l;if(ao>au.horizontalDragMaxWidth){ao=au.horizontalDragMaxWidth}else{if(ao<au.horizontalDragMinWidth){ao=au.horizontalDragMinWidth}}h.width(ao+"px");j=l-ao;ab(X)}if(av){A=1/q*t;if(A>au.verticalDragMaxHeight){A=au.verticalDragMaxHeight}else{if(A<au.verticalDragMinHeight){A=au.verticalDragMinHeight}}ap.height(A+"px");i=t-A;aa(H)}}function ai(aG,aI,aF,s){var aK="before",aH="after",aJ;if(aI=="os"){aI=/Mac/.test(navigator.platform)?"after":"split"}if(aI==aK){aH=aI}else{if(aI==aH){aK=aI;aJ=aF;aF=s;s=aJ}}aG[aK](aF)[aH](s)}function az(aF,s,aG){return function(){G(aF,s,this,aG);this.blur();return false}}function G(aH,aF,aK,aJ){aK=b(aK).addClass("jspActive");var aI,s=function(){if(aH!=0){T(X+aH*au.arrowButtonSpeed,false)}if(aF!=0){S(H+aF*au.arrowButtonSpeed,false)}},aG=setInterval(s,au.arrowRepeatFreq);s();aI=aJ==c?"mouseup.jsp":"mouseout.jsp";aJ=aJ||b("html");aJ.bind(aI,function(){aK.removeClass("jspActive");clearInterval(aG);aJ.unbind(aI)})}function p(){w();if(av){al.bind("mousedown.jsp",function(aH){if(aH.originalTarget==c||aH.originalTarget==aH.currentTarget){var aG=b(this),s=setInterval(function(){var aI=aG.offset(),aJ=aH.pageY-aI.top;if(H+A<aJ){S(H+au.trackClickSpeed)}else{if(aJ<H){S(H-au.trackClickSpeed)}else{aF()}}},au.trackClickRepeatFreq),aF=function(){s&&clearInterval(s);s=null;b(document).unbind("mouseup.jsp",aF)};b(document).bind("mouseup.jsp",aF);return false}})}if(aB){F.bind("mousedown.jsp",function(aH){if(aH.originalTarget==c||aH.originalTarget==aH.currentTarget){var aG=b(this),s=setInterval(function(){var aI=aG.offset(),aJ=aH.pageX-aI.left;if(X+ao<aJ){T(X+au.trackClickSpeed)}else{if(aJ<X){T(X-au.trackClickSpeed)}else{aF()}}},au.trackClickRepeatFreq),aF=function(){s&&clearInterval(s);s=null;b(document).unbind("mouseup.jsp",aF)};b(document).bind("mouseup.jsp",aF);return false}})}}function w(){F&&F.unbind("mousedown.jsp");al&&al.unbind("mousedown.jsp")}function ar(){b("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");ap&&ap.removeClass("jspActive");h&&h.removeClass("jspActive")}function S(s,aF){if(!av){return}if(s<0){s=0}else{if(s>i){s=i}}if(aF==c){aF=au.animateScroll}if(aF){N.animate(ap,"top",s,aa)}else{ap.css("top",s);aa(s)}}function aa(aF){if(aF==c){aF=ap.position().top}aj.scrollTop(0);H=aF;var aI=H==0,aG=H==i,aH=aF/i,s=-aH*(W-v);if(ag!=aI||aD!=aG){ag=aI;aD=aG;C.trigger("jsp-arrow-change",[ag,aD,M,k])}u(aI,aG);V.css("top",s);C.trigger("jsp-scroll-y",[-s,aI,aG])}function T(aF,s){if(!aB){return}if(aF<0){aF=0}else{if(aF>j){aF=j}}if(s==c){s=au.animateScroll}if(s){N.animate(h,"left",aF,ab)}else{h.css("left",aF);ab(aF)}}function ab(aF){if(aF==c){aF=h.position().left}aj.scrollTop(0);X=aF;var aI=X==0,aH=X==j,aG=aF/j,s=-aG*(Q-ah);if(M!=aI||k!=aH){M=aI;k=aH;C.trigger("jsp-arrow-change",[ag,aD,M,k])}r(aI,aH);V.css("left",s);C.trigger("jsp-scroll-x",[-s,aI,aH])}function u(aF,s){if(au.showArrows){am[aF?"addClass":"removeClass"]("jspDisabled");ac[s?"addClass":"removeClass"]("jspDisabled")}}function r(aF,s){if(au.showArrows){at[aF?"addClass":"removeClass"]("jspDisabled");x[s?"addClass":"removeClass"]("jspDisabled")}}function J(s,aF){var aG=s/(W-v);S(aG*i,aF)}function K(aF,s){var aG=aF/(Q-ah);T(aG*j,s)}function Y(aR,aM,aG){var aK,aH,aI,s=0,aQ=0,aF,aL,aO,aN,aP;try{aK=b(aR)}catch(aJ){return}aH=aK.outerHeight();aI=aK.outerWidth();aj.scrollTop(0);aj.scrollLeft(0);while(!aK.is(".jspPane")){s+=aK.position().top;aQ+=aK.position().left;aK=aK.offsetParent();if(/^body|html$/i.test(aK[0].nodeName)){return}}aF=aw();aL=aF+v;if(s<aF||aM){aN=s-au.verticalGutter}else{if(s+aH>aL){aN=s-v+aH+au.verticalGutter}}if(aN){J(aN,aG)}viewportLeft=ay();aO=viewportLeft+ah;if(aQ<viewportLeft||aM){aP=aQ-au.horizontalGutter}else{if(aQ+aI>aO){aP=aQ-ah+aI+au.horizontalGutter}}if(aP){K(aP,aG)}}function ay(){return -V.position().left}function aw(){return -V.position().top}function ad(){aj.unbind(Z).bind(Z,function(aI,aJ,aH,aF){var aG=X,s=H;T(X+aH*au.mouseWheelSpeed,false);S(H-aF*au.mouseWheelSpeed,false);return aG==X&&s==H})}function n(){aj.unbind(Z)}function ax(){return false}function I(){V.unbind("focusin.jsp").bind("focusin.jsp",function(s){if(s.target===V[0]){return}Y(s.target,false)})}function D(){V.unbind("focusin.jsp")}function P(){var aF,s;C.attr("tabindex",0).unbind("keydown.jsp").bind("keydown.jsp",function(aJ){if(aJ.target!==C[0]){return}var aH=X,aG=H,aI=aF?2:16;switch(aJ.keyCode){case 40:S(H+aI,false);break;case 38:S(H-aI,false);break;case 34:case 32:J(aw()+Math.max(32,v)-16);break;case 33:J(aw()-v+16);break;case 35:J(W-v);break;case 36:J(0);break;case 39:T(X+aI,false);break;case 37:T(X-aI,false);break}if(!(aH==X&&aG==H)){aF=true;clearTimeout(s);s=setTimeout(function(){aF=false},260);return false}});if(au.hideFocus){C.css("outline","none");if("hideFocus" in aj[0]){C.attr("hideFocus",true)}}else{C.css("outline","");if("hideFocus" in aj[0]){C.attr("hideFocus",false)}}}function O(){C.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp")}function B(){if(location.hash&&location.hash.length>1){var aG,aF;try{aG=b(location.hash)}catch(s){return}if(aG.length&&V.find(aG)){if(aj.scrollTop()==0){aF=setInterval(function(){if(aj.scrollTop()>0){Y(location.hash,true);b(document).scrollTop(aj.position().top);clearInterval(aF)}},50)}else{Y(location.hash,true);b(document).scrollTop(aj.position().top)}}}}function af(){b("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function m(){af();b("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var s=this.href.split("#"),aF;if(s.length>1){aF=s[1];if(aF.length>0&&V.find("#"+aF).length>0){Y("#"+aF,true);return false}}})}b.extend(N,{reinitialise:function(aF){aF=b.extend({},aF,au);an(aF)},scrollToElement:function(aG,aF,s){Y(aG,aF,s)},scrollTo:function(aG,s,aF){K(aG,aF);J(s,aF)},scrollToX:function(aF,s){K(aF,s)},scrollToY:function(s,aF){J(s,aF)},scrollBy:function(aF,s,aG){N.scrollByX(aF,aG);N.scrollByY(s,aG)},scrollByX:function(s,aG){var aF=ay()+s,aH=aF/(Q-ah);T(aH*j,aG)},scrollByY:function(s,aG){var aF=aw()+s,aH=aF/(W-v);S(aH*i,aG)},animate:function(aF,aI,s,aH){var aG={};aG[aI]=s;aF.animate(aG,{duration:au.animateDuration,ease:au.animateEase,queue:false,step:aH})},getContentPositionX:function(){return ay()},getContentPositionY:function(){return aw()},getIsScrollableH:function(){return aB},getIsScrollableV:function(){return av},getContentPane:function(){return V},scrollToBottom:function(s){S(i,s)},hijackInternalLinks:function(){m()}})}f=b.extend({},b.fn.jScrollPane.defaults,f);var e;this.each(function(){var g=b(this),h=g.data("jsp");if(h){h.reinitialise(f)}else{h=new d(g,f);g.data("jsp",h)}e=e?e.add(g):g});return e};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:10,arrowButtonSpeed:10,arrowRepeatFreq:100,arrowScrollOnHover:false,trackClickSpeed:30,trackClickRepeatFreq:100,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false}})(jQuery,this);

// jQuery Linkselect v1.2.08
(function(a){a.linkselect={version:"1.2.08"};a.fn.linkselect=function(e){var f=typeof arguments[0]=="string"&&arguments[0];var d=f&&Array.prototype.slice.call(arguments,1)||arguments;if(f&&this.length){var c=a.data(this[0],"linkselect");if(f.toLowerCase()=="object"){return c}else{if(c[f]){var b;this.each(function(g){var h=a.data(this,"linkselect")[f].apply(c,d);if(g==0&&h){if(!!h.jquery){b=a([]).add(h)}else{b=h;return false}}else{if(!!h&&!!h.jquery){b=b.add(h)}}});return b||this}else{return this}}}else{return this.each(function(){new a.LinkSelect(this,e)})}};a.LinkSelect=function(K,r){r=a.extend({},a.LinkSelect.defaults,r);var j=this,F=K,L=a(K),w={},y=false,l=0,x,f=false;this.id=L.attr("id");this.val=function(P,O){if(arguments.length>0){H(P,O);return k}else{return z.val()}};this.focus=function(){setTimeout(function(){k.focus()},1);return k};this.blur=function(){setTimeout(function(){k.blur()},1);return k};this.open=function(P,O){if(y){return k}a(document).triggerHandler("click.linkselect");if(O!==false){k.trigger("focus")}setTimeout(function(){G(P)},1);return k};this.disable=function(O){y=O;k.parent().find("span."+r.classDisabled).remove();k[y?"hide":"show"]();if(y){k.after('<span class="'+r.classDisabled+'">'+k.html()+"</span>")}return k};this.replaceOptions=function(O,P){L.children("option").remove();a.each(O,function(Q){var R=a("<option/>").attr("value",this.value).html(this.text);if(this.selected==true){R.attr("selected","selected")}if(this.className){R.addClass(this.className)}R.appendTo(L)});o();c();q().trigger("click.linkselect",[true,P])};var A=M();L.after(A).remove();var z=A.filter("input");var k=A.filter("a");var h=A.filter("div");var p=A.find(".scrollable");var i=A.find(".title");var s=h.find("ul");var u;z.addClass(L.attr("className"));a.data(z[0],"linkselect",this);h.appendTo("body").bind("mousemove.linkselect",function(O){u=O});function c(){s.find("li").bind("mouseover.linkselect",function(O){if(u&&u.type=="keydown"){return}D(a(this));u=O}).bind("click.linkselect",function(T,P,S){T.preventDefault();var O=q().removeClass(r.classSelected);var Q=a(this).addClass(r.classSelected);var R=Q.attr("rel")||"";var U=Q.find("."+r.classValue).html();g(P);if((S!==false)&&((a.isFunction(r.change)&&(r.change.apply(j,[this,R,U,S])===false))||(a.isFunction(L[0].onchange)&&(L[0].onchange.apply(j,[this,R,U,S])===false)))){O.addClass(r.classSelected);Q.removeClass(r.classSelected);return}z.val(R);k.html(U)[(P!==true)?"trigger":"triggerHandler"]("focus",[P]);if(y){k.parent().find("span."+r.classDisabled).html(U)}})}c();k.bind("click.linkselect",function(O){O.preventDefault();E();if(a.browser.msie){setTimeout(function(){k.trigger("focus.linkselect")},0)}}).bind("focus.linkselect",function(P,O){if(!h.is(":visible")&&(O!==true)){k.addClass(r.classLinkFocus)}}).bind("blur.linkselect",function(O){if(N(O)){g()}k.removeClass(r.classLinkFocus)}).bind((a.browser.safari?"keydown":"keypress")+".linkselect",function(T,S){if(!!S){var T=S}var P=T.keyCode||T.charCode,R=String.fromCharCode(P).toLowerCase();switch(P){case 38:case 40:T.preventDefault();B((P==38)?-1:1);u=T;break;case 13:T.preventDefault();if(h.is(":visible")){h.find("li."+r.classCurrent).trigger("click.linkselect")}else{k.trigger("click.linkselect")}break;case 9:case 27:g();break;case 35:T.preventDefault();m();u=T;break;case 36:T.preventDefault();v();u=T;break;case 33:case 34:T.preventDefault();var O=h.is(":visible");if(!O){h.show()}var Q=parseInt(p.height()/s.find("li:first").outerHeight(),10);if(!O){h.hide()}B((P==33)?Q*-1:Q);break}if(R!=x){l=0}x=R;if(typeof w[R]!="undefined"){if(l>=w[R].length){l=0}s.find("#"+j.id+"_li_"+w[R][l]).trigger("click.linkselect");T.preventDefault();T.stopPropagation();l++}});if(a.browser.msie){k.bind("keydown.linkselect",function(O){if(",8,9,33,34,35,36,37,38,39,40,".indexOf(","+O.keyCode+",")>-1){return a(this).triggerHandler("keypress.linkselect",[O])}})}a(document).bind("click.linkselect",function(O){if((O.target!==k[0])&&(O.target!==p[0])&&h.is(":visible")){g();k.removeClass(r.classLinkFocus)}});a(window).resize(function(){if(f){n(k,h,true)}});function M(){var T=j.id;var S=L.attr("title");var R=F.selectedIndex==-1?"":F[F.selectedIndex].text;var Q=F.selectedIndex==-1?"":F[F.selectedIndex][(a.browser.msie&&a.browser.version<=7&&!(F[F.selectedIndex].attributes.value.specified))?"text":"value"];var P=L.attr("tabindex");var O=['<a href="#'+j.id+'" id="'+j.id+'_link" class="'+r.classLink+'"'+(P?' tabindex="'+P+'"':"")+">"+R+"</a>",'<input type="hidden" name="'+j.id+'" id="'+j.id+'" value="'+Q+'" />','<div class="'+r.classContainer+'">',(S)?'<div class="title"><span>'+S+"</span></div>":"",'<div class="scrollable"><ul id="'+j.id+'_list">',I(L.children("option")),"</ul></div>","</div>"];return a(O.join(""))}function I(O){w=[];var P=[];O.each(function(S){var W=a(this);var U=W.is(":selected");var Q=a.trim(W.text());var R='<span class="'+r.classValue+'">'+Q+"</span>";var V=a.browser.msie&&a.browser.version<=7&&!(this.attributes.value.specified)?this.text:this.value;if(a.isFunction(r.format)){R=r.format.apply(j,[R,V,Q,S,W,r])||R}var T=(Q.length>1)?Q.substring(0,1).toLowerCase():"";if(!w[T]){w[T]=[]}w[T].push(S);var X=a.trim(this.className+" "+(U?r.classSelected:""));P.push('<li id="'+j.id+"_li_"+S+'" rel="'+V+(X.length>0?'" class="'+X:"")+'">'+R+"</li>")});return P.join("")}function o(){e=false;h[0].style.width="";if(i.length){i[0].style.width="";i.css("float","")}s.html(I(L.children("option")))}function H(Q,P){var O=s.find("li[rel="+Q+"]");if(O.length==0){O=s.find("li:eq(0)")}return O.trigger("click.linkselect",[true,P])}function q(){var O=s.find("li.selected");if(O.length==0){O=s.find("li:eq(0)")}return O}function t(){var O=s.find("li.current");if(O.length==0){O=q()}return O}function D(O){h.find(".current").removeClass(r.classCurrent);O.addClass(r.classCurrent);return O}function B(P){var O=t();var Q=parseInt(O.attr("id").replace(/(.+)(_(\d+$))/gi,"$3"),10);d(Q+P)}function d(R){var Q=a("li",h),O;if(!Q||Q.length==0){return false}var P=t().removeClass(r.classCurrent);if(isNaN(R)||R<0){O=Q.eq(0)}else{if(R>Q.length-1){O=Q.eq(Q.length-1)}else{O=Q.eq(R)}}if(h.is(":visible")){O.addClass(r.classCurrent);b(O)}else{if(P[0]!==O[0]){O.trigger("click.linkselect")}}}function v(){d(0)}function m(){d(L.children("option").length-1)}function b(P,O){var R=P[0];var S=p[0];var Q={pTop:parseInt(p.css("paddingTop"),10)||0,pBottom:parseInt(p.css("paddingBottom"),10)||0,bTop:parseInt(p.css("borderTopWidth"),10)||0,bBottom:parseInt(p.css("borderBottomWidth"),10)||0};if((R.offsetTop+R.offsetHeight)>(S.scrollTop+S.clientHeight)){S.scrollTop=P.offset().top+(S.scrollTop-p.offset().top)-((S.clientHeight/((O==true)?2:1))-(P.outerHeight()+Q.pBottom))}else{if(R.offsetTop-Q.bTop-Q.bBottom<=(S.scrollTop+Q.pTop+Q.pBottom)){S.scrollTop=P.offset().top+(S.scrollTop-p.offset().top)-Q.pTop}}}function E(){if(h.is(":visible")){g()}else{G()}}var e=false;function G(U){var P=q();k.removeClass(r.classLinkFocus).addClass(r.classLinkOpen);h.show();if(!e){var T=(k.css("display").indexOf("inline")>-1)?k.parent().outerWidth():k.outerWidth();var Q=r.fixedWidth?T:h.width();if(Q<T){Q=T}var S=parseInt(p.css("max-height"),10);if(a.browser.msie&&a.browser.version<=6){if((S>0)&&(p.height()>S)){p.height(S)}}if(s.height()>S){Q+=25}var R=parseInt("0"+h.css("max-width"),10);if((R>0)&&(Q>R)){Q=T=R}h.width(Q);if(a.browser.safari){var O=h.width();if(T>O){Q=T=O}}i.width(T);if(i.outerWidth()>T){i.width(T-(i.outerWidth()-T))}if(r.titleAlign.toLowerCase()=="right"&&!r.fixedWidth){i.css("float","right")}e=true}n(k,h,true);if(!!a.fn.bgIframe){h.bgIframe()}b(P,true);D(P);if(a.isFunction(r.open)){r.open.apply(this,[h,k,P,i])}if(a.isFunction(U)){U.apply(this,[h,k,P,i])}f=true}function g(O){if(O!==true){k.addClass(r.classLinkFocus).removeClass(r.classLinkOpen)}h.hide();if(a.isFunction(r.close)){r.close.apply(this,[h,k,q(),i])}f=false}function C(O){var P=false;if(O.is(":hidden")){P=!!O.css("visibility","hidden").show()}var Q=a.extend(O.offset(),{width:O.outerWidth(),height:O.outerHeight(),marginLeft:parseInt(a.curCSS(O[0],"marginLeft",true),10)||0,marginRight:parseInt(a.curCSS(O[0],"marginRight",true),10)||0,marginTop:parseInt(a.curCSS(O[0],"marginTop",true),10)||0,marginBottom:parseInt(a.curCSS(O[0],"marginBottom",true),10)||0});if(Q.marginTop<0){Q.top+=Q.marginTop}if(Q.marginLeft<0){Q.left+=Q.marginLeft}Q.bottom=Q.top+Q.height;Q.right=Q.left+Q.width;if(P){O.hide().css("visibility","visible")}return Q}function n(S,O){var U=C(S);var T=J();var Q=h.outerWidth()+U.left;if(Q>T.x){U.left=(U.left-h.outerWidth())+i.outerWidth()}else{var R=h.outerWidth(),P=i.outerWidth();if(R>P){i.width(R-(P-i.width()))}}O.css({position:"absolute",top:U[r.yAxis],left:U.left});return U.bottom}function J(){var O={scrollLeft:a(window).scrollLeft(),scrollTop:a(window).scrollTop(),width:a("body").width(),height:a("body").height()};O.x=O.scrollLeft+O.width;O.y=O.scrollTop+O.height;return O}function N(O){return !("bubbles" in O||"cancelBubble" in O)}if(a.isFunction(r.init)){r.init.apply(this,[L,z,k,h,p,i,s])}};a.LinkSelect.defaults={classLink:"linkselectLink",classLinkOpen:"linkselectLinkOpen",classLinkFocus:"linkselectLinkFocus",classContainer:"linkselectContainer",classSelected:"selected",classCurrent:"current",classDisabled:"linkselectDisabled",classValue:"linkselectValue",yAxis:"top",titleAlign:"right",fixedWidth:false,init:null,change:null,format:null,open:null,close:null}})(jQuery);

// jQuery pStrength v1.2 mod
(function(A){A.extend(A.fn,{pstrength:function(B){var B=A.extend({verdects:["Sehr schwach","Schwach","Mittel","Stark","Sehr stark"],colors:["#f00","#c06","#f60","#492","#2C0"],scores:[10,15,30,40],common:["passwort","sex","gott","123","1234","12345","123456","qwertz","affe"],minchar:5},B);return this.each(function(){var C=A(this).attr("id");A(this).after("<div style=\"float: right; width: 140px; position: relative; top: 2px; left: -17px;\"><div class=\"pstrength-bar\" id=\""+C+"_bar\" style=\"border: 1px solid white; font-size: 1px; height: 5px; width: 0px;\"></div><div class=\"pstrength-info\" id=\""+C+"_text\">&#160;</div></div>");A(this).keyup(function(){A.fn.runPassword(A(this).val(),C,B)})})},runPassword:function(D,F,C){nPerc=A.fn.checkPassword(D,C);var B="#"+F+"_bar";var E="#"+F+"_text";if(nPerc==-200){strColor="#f00";strText="zu  bekannt";A(B).css({width:"5%"})}else{if(nPerc<0&&nPerc>-199){strColor="#ccc";strText="zu kurz";A(B).css({width:"5%"})}else{if(nPerc<=C.scores[0]){strColor=C.colors[0];strText=C.verdects[0];A(B).css({width:"10%"})}else{if(nPerc>C.scores[0]&&nPerc<=C.scores[1]){strColor=C.colors[1];strText=C.verdects[1];A(B).css({width:"25%"})}else{if(nPerc>C.scores[1]&&nPerc<=C.scores[2]){strColor=C.colors[2];strText=C.verdects[2];A(B).css({width:"50%"})}else{if(nPerc>C.scores[2]&&nPerc<=C.scores[3]){strColor=C.colors[3];strText=C.verdects[3];A(B).css({width:"75%"})}else{strColor=C.colors[4];strText=C.verdects[4];A(B).css({width:"92%"})}}}}}}A(B).css({backgroundColor:strColor});A(E).html("<span style='color: "+strColor+";'>"+strText+"</span>")},checkPassword:function(C,B){var F=0;var E=B.verdects[0];if(C.length<B.minchar){F=(F-100)}else{if(C.length>=B.minchar&&C.length<=(B.minchar+2)){F=(F+6)}else{if(C.length>=(B.minchar+3)&&C.length<=(B.minchar+4)){F=(F+12)}else{if(C.length>=(B.minchar+5)){F=(F+18)}}}}if(C.match(/[a-z]/)){F=(F+1)}if(C.match(/[A-Z]/)){F=(F+5)}if(C.match(/\d+/)){F=(F+5)}if(C.match(/(.*[0-9].*[0-9].*[0-9])/)){F=(F+7)}if(C.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)){F=(F+5)}if(C.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)){F=(F+7)}if(C.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)){F=(F+2)}if(C.match(/([a-zA-Z])/)&&C.match(/([0-9])/)){F=(F+3)}if(C.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)){F=(F+3)}for(var D=0;D<B.common.length;D++){if(C.toLowerCase()==B.common[D]){F=-200}}return F}})})(jQuery)

// XD.js postMessage
var XD=function(){var e,g,h=1,f,d=this;return{postMessage:function(c,b,a){if(b)if(a=a||parent,d.postMessage)a.postMessage(c,b.replace(/([^:]+:\/\/[^\/]+).*/,"$1"));else if(b)a.location=b.replace(/#.*$/,"")+"#"+ +new Date+h++ +"&"+c},receiveMessage:function(c,b){if(d.postMessage)if(c&&(f=function(a){if(typeof b==="string"&&a.origin!==b||Object.prototype.toString.call(b)==="[object Function]"&&b(a.origin)===false)return false;c(a)}),d.addEventListener)d[c?"addEventListener":"removeEventListener"]("message", f,false);else d[c?"attachEvent":"detachEvent"]("onmessage",f);else e&&clearInterval(e),e=null,c&&(e=setInterval(function(){var a=document.location.hash,b=/^#?\d+&/;a!==g&&b.test(a)&&(g=a,c({data:a.replace(b,"")}))},100))}}}();

