(function(g){var a=g.fn.height,e=g.fn.width;g.fn.extend({height:function(){if(!this[0]){d()}if(this[0]==window){if(g.browser.opera||(g.browser.safari&&parseInt(g.browser.version)>520)){return self.innerHeight-((g(document).height()>self.innerHeight)?b():0)}else{if(g.browser.safari){return self.innerHeight}else{return g.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}}}if(this[0]==document){return Math.max((g.boxModel&&document.documentElement.scrollHeight||document.body.scrollHeight),document.body.offsetHeight)}return a.apply(this,arguments)},width:function(){if(!this[0]){d()}if(this[0]==window){if(g.browser.opera||(g.browser.safari&&parseInt(g.browser.version)>520)){return self.innerWidth-((g(document).width()>self.innerWidth)?b():0)}else{if(g.browser.safari){return self.innerWidth}else{return g.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}}}if(this[0]==document){if(g.browser.mozilla){var j=self.pageXOffset;self.scrollTo(99999999,self.pageYOffset);var i=self.pageXOffset;self.scrollTo(j,self.pageYOffset);return document.body.offsetWidth+i}else{return Math.max(((g.boxModel&&!g.browser.safari)&&document.documentElement.scrollWidth||document.body.scrollWidth),document.body.offsetWidth)}}return e.apply(this,arguments)},innerHeight:function(){if(!this[0]){d()}return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-c(this,"borderTopWidth")-c(this,"borderBottomWidth"):this.height()+c(this,"paddingTop")+c(this,"paddingBottom")},innerWidth:function(){if(!this[0]){d()}return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-c(this,"borderLeftWidth")-c(this,"borderRightWidth"):this.width()+c(this,"paddingLeft")+c(this,"paddingRight")},outerHeight:function(i){if(!this[0]){d()}i=g.extend({margin:false},i||{});return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight+(i.margin?(c(this,"marginTop")+c(this,"marginBottom")):0):this.height()+c(this,"borderTopWidth")+c(this,"borderBottomWidth")+c(this,"paddingTop")+c(this,"paddingBottom")+(i.margin?(c(this,"marginTop")+c(this,"marginBottom")):0)},outerWidth:function(i){if(!this[0]){d()}i=g.extend({margin:false},i||{});return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth+(i.margin?(c(this,"marginLeft")+c(this,"marginRight")):0):this.width()+c(this,"borderLeftWidth")+c(this,"borderRightWidth")+c(this,"paddingLeft")+c(this,"paddingRight")+(i.margin?(c(this,"marginLeft")+c(this,"marginRight")):0)},scrollLeft:function(i){if(!this[0]){d()}if(i!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(i,g(window).scrollTop())}else{this.scrollLeft=i}})}if(this[0]==window||this[0]==document){return self.pageXOffset||g.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(i){if(!this[0]){d()}if(i!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(g(window).scrollLeft(),i)}else{this.scrollTop=i}})}if(this[0]==window||this[0]==document){return self.pageYOffset||g.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(i){return this.offset({margin:false,scroll:false,relativeTo:this.offsetParent()},i)},offset:function(j,p){if(!this[0]){d()}var o=0,n=0,z=0,s=0,A=this[0],m=this[0],l,i,w=g.css(A,"position"),v=g.browser.mozilla,q=g.browser.msie,u=g.browser.opera,C=g.browser.safari,k=g.browser.safari&&parseInt(g.browser.version)>520,r=false,t=false,j=g.extend({margin:true,border:false,padding:false,scroll:true,lite:false,relativeTo:document.body},j||{});if(j.lite){return this.offsetLite(j,p)}if(j.relativeTo.jquery){j.relativeTo=j.relativeTo[0]}if(A.tagName=="BODY"){o=A.offsetLeft;n=A.offsetTop;if(v){o+=c(A,"marginLeft")+(c(A,"borderLeftWidth")*2);n+=c(A,"marginTop")+(c(A,"borderTopWidth")*2)}else{if(u){o+=c(A,"marginLeft");n+=c(A,"marginTop")}else{if((q&&jQuery.boxModel)){o+=c(A,"borderLeftWidth");n+=c(A,"borderTopWidth")}else{if(k){o+=c(A,"marginLeft")+c(A,"borderLeftWidth");n+=c(A,"marginTop")+c(A,"borderTopWidth")}}}}}else{do{i=g.css(m,"position");o+=m.offsetLeft;n+=m.offsetTop;if((v&&!m.tagName.match(/^t[d|h]$/i))||q||k){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth");if(v&&i=="absolute"){r=true}if(q&&i=="relative"){t=true}}l=m.offsetParent||document.body;if(j.scroll||v){do{if(j.scroll){z+=m.scrollLeft;s+=m.scrollTop}if(u&&(g.css(m,"display")||"").match(/table-row|inline/)){z=z-((m.scrollLeft==m.offsetLeft)?m.scrollLeft:0);s=s-((m.scrollTop==m.offsetTop)?m.scrollTop:0)}if(v&&m!=A&&g.css(m,"overflow")!="visible"){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}m=m.parentNode}while(m!=l)}m=l;if(m==j.relativeTo&&!(m.tagName=="BODY"||m.tagName=="HTML")){if(v&&m!=A&&g.css(m,"overflow")!="visible"){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}if(((C&&!k)||u)&&i!="static"){o-=c(l,"borderLeftWidth");n-=c(l,"borderTopWidth")}break}if(m.tagName=="BODY"||m.tagName=="HTML"){if(((C&&!k)||(q&&g.boxModel))&&w!="absolute"&&w!="fixed"){o+=c(m,"marginLeft");n+=c(m,"marginTop")}if(k||(v&&!r&&w!="fixed")||(q&&w=="static"&&!t)){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}break}}while(m)}var B=h(A,j,o,n,z,s);if(p){g.extend(p,B);return this}else{return B}},offsetLite:function(q,l){if(!this[0]){d()}var n=0,m=0,k=0,p=0,o=this[0],j,q=g.extend({margin:true,border:false,padding:false,scroll:true,relativeTo:document.body},q||{});if(q.relativeTo.jquery){q.relativeTo=q.relativeTo[0]}do{n+=o.offsetLeft;m+=o.offsetTop;j=o.offsetParent||document.body;if(q.scroll){do{k+=o.scrollLeft;p+=o.scrollTop;o=o.parentNode}while(o!=j)}o=j}while(o&&o.tagName!="BODY"&&o.tagName!="HTML"&&o!=q.relativeTo);var i=h(this[0],q,n,m,k,p);if(l){g.extend(l,i);return this}else{return i}},offsetParent:function(){if(!this[0]){d()}var i=this[0].offsetParent;while(i&&(i.tagName!="BODY"&&g.css(i,"position")=="static")){i=i.offsetParent}return g(i)}});var d=function(){throw"Dimensions: jQuery collection is empty"};var c=function(i,j){return parseInt(g.css(i.jquery?i[0]:i,j))||0};var h=function(m,l,j,n,i,k){if(!l.margin){j-=c(m,"marginLeft");n-=c(m,"marginTop")}if(l.border&&((g.browser.safari&&parseInt(g.browser.version)<520)||g.browser.opera)){j+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}else{if(!l.border&&!((g.browser.safari&&parseInt(g.browser.version)<520)||g.browser.opera)){j-=c(m,"borderLeftWidth");n-=c(m,"borderTopWidth")}}if(l.padding){j+=c(m,"paddingLeft");n+=c(m,"paddingTop")}if(l.scroll&&(!g.browser.opera||m.offsetLeft!=m.scrollLeft&&m.offsetTop!=m.scrollLeft)){i-=m.scrollLeft;k-=m.scrollTop}return l.scroll?{top:n-k,left:j-i,scrollTop:k,scrollLeft:i}:{top:n,left:j}};var f=0;var b=function(){if(!f){var i=g("<div>").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).appendTo("body");f=100-i.append("<div>").find("div").css({width:"100%",height:200}).width();i.remove()}return f}})(jQuery);(function(e){e.fn.jqDrag=function(f){return b(this,f,"d")};e.fn.jqResize=function(f){return b(this,f,"r")};e.jqDnR={dnr:{},e:0,drag:function(f){if(g.k=="d"){d.css({left:g.X+f.pageX-g.pX,top:g.Y+f.pageY-g.pY})}else{d.css({width:Math.max(f.pageX-g.pX+g.W,0),height:Math.max(f.pageY-g.pY+g.H,0)})}return false},stop:function(){d.css("opacity",g.o);e().unbind("mousemove",a.drag).unbind("mouseup",a.stop)}};var a=e.jqDnR,g=a.dnr,d=a.e,b=function(j,i,f){return j.each(function(){i=(i)?e(i,j):j;i.bind("mousedown",{e:j,k:f},function(h){var m=h.data,l={};d=m.e;if(d.css("position")!="relative"){try{d.position(l)}catch(k){}}g={X:l.left||c("left")||0,Y:l.top||c("top")||0,W:c("width")||d[0].scrollWidth||0,H:c("height")||d[0].scrollHeight||0,pX:h.pageX,pY:h.pageY,k:m.k,o:d.css("opacity")};d.css({opacity:0.8});e().mousemove(e.jqDnR.drag).mouseup(e.jqDnR.stop);return false})})},c=function(f){return parseInt(d.css(f))||false}})(jQuery);(function(d){d.fn.jqm=function(f){var e={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:o,ajaxText:"",target:o,modal:o,toTop:o,onShow:o,onHide:o,onLoad:o};return this.each(function(){if(this._jqm){return n[this._jqm].c=d.extend({},n[this._jqm].c,f)}p++;this._jqm=p;n[p]={c:d.extend(e,d.jqm.params,f),a:o,w:d(this).addClass("jqmID"+p),s:p};if(e.trigger){d(this).jqmAddTrigger(e.trigger)}})};d.fn.jqmAddClose=function(f){return l(this,f,"jqmHide")};d.fn.jqmAddTrigger=function(f){return l(this,f,"jqmShow")};d.fn.jqmShow=function(e){return this.each(function(){e=e||window.event;d.jqm.open(this._jqm,e)})};d.fn.jqmHide=function(e){return this.each(function(){e=e||window.event;d.jqm.close(this._jqm,e)})};d.jqm={hash:{},open:function(B,A){var m=n[B],q=m.c,i="."+q.closeClass,v=(parseInt(m.w.css("z-index"))),v=(v>0)?v:3000,f=d("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":v-1,opacity:q.overlay/100});if(m.a){return o}m.t=A;m.a=true;m.w.css("z-index",v);if(q.modal){if(!a[0]){k("bind")}a.push(B)}else{if(q.overlay>0){m.w.jqmAddClose(f)}else{f=o}}m.o=(f)?f.addClass(q.overlayClass).prependTo("body"):o;if(c){d("html,body").css({height:"100%",width:"100%"});if(f){f=f.css({position:"absolute"})[0];for(var w in {Top:1,Left:1}){f.style.setExpression(w.toLowerCase(),"(_=(document.documentElement.scroll"+w+" || document.body.scroll"+w+"))+'px'")}}}if(q.ajax){var e=q.target||m.w,x=q.ajax,e=(typeof e=="string")?d(e,m.w):d(e),x=(x.substr(0,1)=="@")?d(A).attr(x.substring(1)):x;e.html(q.ajaxText).load(x,function(){if(q.onLoad){q.onLoad.call(this,m)}if(i){m.w.jqmAddClose(d(i,m.w))}j(m)})}else{if(i){m.w.jqmAddClose(d(i,m.w))}}if(q.toTop&&m.o){m.w.before('<span id="jqmP'+m.w[0]._jqm+'"></span>').insertAfter(m.o)}(q.onShow)?q.onShow(m):m.w.show();j(m);return o},close:function(f){var e=n[f];if(!e.a){return o}e.a=o;if(a[0]){a.pop();if(!a[0]){k("unbind")}}if(e.c.toTop&&e.o){d("#jqmP"+e.w[0]._jqm).after(e.w).remove()}if(e.c.onHide){e.c.onHide(e)}else{e.w.hide();if(e.o){e.o.remove()}}return o},params:{}};var p=0,n=d.jqm.hash,a=[],c=d.browser.msie&&(d.browser.version=="6.0"),o=false,g=d('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),j=function(e){if(c){if(e.o){e.o.html('<p style="width:100%;height:100%"/>').prepend(g)}else{if(!d("iframe.jqm",e.w)[0]){e.w.prepend(g)}}}h(e)},h=function(f){try{d(":input:visible",f.w)[0].focus()}catch(e){}},k=function(e){d()[e]("keypress",b)[e]("keydown",b)[e]("mousedown",b)},b=function(m){var f=n[a[a.length-1]],i=(!d(m.target).parents(".jqmID"+f.s)[0]);if(i){h(f)}return !i},l=function(e,f,i){return e.each(function(){var m=this._jqm;d(f).each(function(){if(!this[i]){this[i]=[];d(this).click(function(){for(var q in {jqmShow:1,jqmHide:1}){for(var r in this[q]){if(n[this[q][r]]){n[this[q][r]].w[q](this)}}}return o})}this[i].push(m)})})}})(jQuery);(function(a){a.fn.innerfade=function(b){return this.each(function(){a.innerfade(this,b)})};a.innerfade=function(b,c){var e={animationtype:"fade",speed:"normal",type:"sequence",timeout:2000,containerheight:"auto",runningclass:"innerfade",children:null};if(c){a.extend(e,c)}if(e.children===null){var g=a(b).children()}else{var g=a(b).children(e.children)}if(g.length>1){a(b).css("position","relative").css("height",e.containerheight).addClass(e.runningclass);for(var d=0;d<g.length;d++){a(g[d]).css("z-index",String(g.length-d)).css("position","absolute").hide()}if(e.type=="sequence"){setTimeout(function(){a.innerfade.next(g,e,1,0)},e.timeout);a(g[0]).show()}else{if(e.type=="random"){var f=Math.floor(Math.random()*(g.length));setTimeout(function(){do{h=Math.floor(Math.random()*(g.length))}while(f==h);a.innerfade.next(g,e,h,f)},e.timeout);a(g[f]).show()}else{if(e.type=="random_start"){e.type="sequence";var h=Math.floor(Math.random()*(g.length));setTimeout(function(){a.innerfade.next(g,e,(h+1)%g.length,h)},e.timeout);a(g[h]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}};a.innerfade.next=function(d,b,e,c){if(b.animationtype=="slide"){a(d[c]).slideUp(b.speed);a(d[e]).slideDown(b.speed)}else{if(b.animationtype=="fade"){a(d[c]).fadeOut(b.speed);a(d[e]).fadeIn(b.speed,function(){removeFilter(a(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(b.type=="sequence"){if((e+1)<d.length){e=e+1;c=e-1}else{e=0;c=d.length-1}}else{if(b.type=="random"){c=e;while(e==c){e=Math.floor(Math.random()*d.length)}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}setTimeout((function(){a.innerfade.next(d,b,e,c)}),b.timeout)}})(jQuery);function removeFilter(a){if(a.style.removeAttribute){a.style.removeAttribute("filter")}};
