/* /lib/widgets/text_field.js */
var TextField=Class.create();TextField.STATUS_DEFAULT="default";TextField.STATUS_FAILED="failed";TextField.STATUS_PASSED="passed";Object.extend(TextField.prototype,{handlers:{focus:function(){this.inputParent.className="focus";if(this.unchanged&&this.origValue!=""){this.element.value=""}this.focusValue=this.element.value},blur:function(){this.inputParent.className=this.status;this.unchanged=(this.focusValue==this.element.value)?true:false;if(this.unchanged&&this.origValue!=""){this.element.value=this.origValue}},keypress:function(A){var A=A||window.event;if(A.keyCode!=9&&A.keyCode!=25){this.unchanged=false}}},initialize:function(A){this.element=$(A);this.element.proxy=this;this.inputParent=this.element.parentNode;this.origValue=this.element.value;this.focusValue=this.origValue;this.unchanged=true;this.status="default";this.element.onfocus=this.handlers.focus.bind(this);this.element.onblur=this.handlers.blur.bind(this);this.element.onkeypress=this.handlers.keypress.bind(this)},set_status:function(A){this.status=A;if(this.inputParent.className!="focus"){this.inputParent.className=this.status}}});
/* /lib/scroller.js */
var SimpleScroller=Class.create();var Scroller=Class.create();Scroller.DIR_UP=0;Scroller.DIR_DOWN=1;Scroller.DIR_LEFT=2;Scroller.DIR_RIGHT=3;Object.extend(SimpleScroller.prototype,{initialize:function(A){this.element=$(A);this.element.proxy=this;this.speed=10;this.offset={x:0,y:0};this.scrolling=[false,false,false,false];this.running=false;var B=document.getElementsByClassName("scroller-container",this.element);if(B.length>0){this.container=B[0]}else{this.container=document.createElement("div");this.container.className="scroller-container";while(this.element.childNodes.length>0){var C=this.element.childNodes[0];this.element.removeChild(C);this.container.appendChild(C)}this.element.appendChild(this.container)}},setSpeed:function(A){this.speed=A},scroll:function(A,B){switch(A){case 0:this.offset.y-=this.speed;break;case 1:this.offset.y+=this.speed;break;case 2:this.offset.x-=this.speed;break;case 3:this.offset.x+=this.speed;break}if(!B){this.updatePosition()}},startScroll:function(A){this.scrolling[A]=true;if(!this.running){var B=function(){if(!this.running){return }for(var C=0;C<4;C++){if(this.scrolling[C]){this.scroll(C,true)}}this.updatePosition();window.setTimeout(arguments.callee.bind(this),10)};this.running=true;B.call(this)}},stopScroll:function(B){this.scrolling[B]=false;var C=false;for(var A=0;A<4;A++){if(this.scrolling[A]){C=true}}if(!C){this.running=false}},scrollTo:function(E,D,A){var I=Math.ceil(D*0.015);var H=[];A=A||function(){};for(var B in E){var J=Animator.interpolate.linear(this.offset[B],E[B],I);for(var F=0,C=J.length;F<C;F++){if(!H[F]){H[F]={}}H[F][B]=J[F]}}if(this.anim){this.anim.stop(true)}var G=this;this.anim=new Animator(H,D);this.anim.onupdate=function(L){for(var K in L){G.offset[K]=Math.round(L[K],1)}G.updatePosition();return true};this.anim.oncomplete=function(){G.running=false;A.call(this)};this.running=true;this.anim.run()},jumpTo:function(B){for(var A in B){this.offset[A]=Math.round(B[A],1)}this.updatePosition()},updateOffset:function(){if(this.offset.x<0){this.offset.x=0}if(this.offset.y<0){this.offset.y=0}var H=Element.getPosition(this.element);var F=Element.getDimensions(this.element);var G=Element.getPosition(this.container);var D=Element.getDimensions(this.container);var B=H.y+F.height;var A=G.y+D.height;if(A<B){this.offset.y-=(B-A)}var C=H.x+F.width;var E=G.x+D.width;if(E<C){this.offset.x-=(C-E)}},updatePosition:function(){this.updateOffset();this.container.style.marginTop=(-this.offset.y)+"px";this.container.style.marginLeft=(-this.offset.x)+"px"}});Object.extend(Scroller.prototype,{initialize:function(B,A){SimpleScroller.prototype.initialize.call(this,B);this.options={layout:"vertical",dimensions:{element:Element.getDimensions(this.element),container:Element.getDimensions(this.container)},columnWidth:0,loop:false,animate:false,duration:1000};Object.extend(this.options,A||{});if(!this.options.dimensions.element.width){this.options.dimensions.element.width=parseInt(Element.getStyle(this.element,"width"))}if(!this.options.dimensions.element.height){this.options.dimensions.element.height=parseInt(Element.getStyle(this.element,"height"))}if(this.options.speed){this.setSpeed(this.options.speed)}this.dimensions=this.options.dimensions;this.makePositioned();if(this.options.layout.match(/horizontal/)&&this.options.columnWidth){this.setupHorizontal();if(this.options.loop){this.setupHorizontalLoop()}}},setSpeed:function(A){this.speed=A},makePositioned:function(){var A=Element.getStyle(this.element,"position");if(A==null){A=""}if(!A.match(/(relative|absolute)/)){Element.setStyle(this.element,{position:"relative",display:""})}var B=Element.getStyle(this.container,"position");if(B==null){B=""}if(!B.match(/absolute/)){Element.setStyle(this.container,{position:"absolute",left:"0px",display:"block"})}},setupHorizontalLoop:function(){this.cloneContainer=this.container.cloneNode(true);var A=parseInt(Element.getStyle(this.container,"left"))-this.dimensions.container.width;Element.setStyle(this.cloneContainer,{left:A+"px"});this.element.appendChild(this.cloneContainer)},setupHorizontal:function(){var B=this.container.childNodes;B=$A(B).findAll(function(E){return(E.nodeType==1)});var C=B.length*this.options.columnWidth;this.dimensions.container.width=C;Element.setStyle(this.container,{width:C+"px",height:this.dimensions.element.height+"px"});var D=0;var A=this;B._each(function(E){Element.setStyle(E,{position:"absolute",left:D+"px"});D+=A.options.columnWidth})},scroll:function(A,B){this.direction=A;SimpleScroller.prototype.scroll.call(this,A,B)},swapContainers:function(){var A=this.container;this.container=this.cloneContainer;this.cloneContainer=A},updateOffset:function(){var H=Element.getPosition(this.element);var F=Element.getDimensions(this.element);var G=Element.getPosition(this.container);var D=Element.getDimensions(this.container);var B=H.y+F.height;var A=G.y+D.height;var C=H.x+F.width;var E=G.x+D.width;if(!this.options.loop){if(this.offset.x<0){this.offset.x=0}if(this.offset.y<0){this.offset.y=0}if(A<B){this.offset.y-=(B-A)}if(E<C){this.offset.x-=(C-E)}}else{if((Math.abs(this.offset.x)>=this.dimensions.container.width)){this.swapContainers();if(this.direction==Scroller.DIR_LEFT){this.cloneContainer.style.left=-this.dimensions.container.width+"px";this.offset.x=parseInt(Element.getStyle(this.container,"left"))+this.speed}else{if(this.direction==Scroller.DIR_RIGHT){this.cloneContainer.style.left=-this.dimensions.element.width+"px";this.offset.x=parseInt(Element.getStyle(this.container,"left"))-this.speed}}}}},scrollFor:function(C){var B=[this.container];if(this.options.loop){B.push(this.cloneContainer)}if(this.options.layout.match(/horizontal/)){var A=new Transitions.HorizontalSlide(B,C,this.options.duration);A.run()}else{var A=new Transitions.VerticalSlide(B,C,this.options.duration);A.run()}},updatePosition:function(){this.updateOffset();if(this.options.animate&&this.options.layout.match(/horizontal/)){var C=parseInt(Element.getStyle(this.container,"left"));if(isNaN(C)){C=0}var D=-parseInt(this.offset.x)-C}else{if(this.options.animate&&this.options.layout.match(/vertical/)){var B=parseInt(Element.getStyle(this.container,"top"));if(isNaN(B)){B=0}var D=-parseInt(this.offset.y)-B}}if(!this.options.animate){Element.setStyle(this.container,{top:(-this.offset.y)+"px",left:(-this.offset.x)+"px"})}if(this.options.loop&&this.options.layout.match(/horizontal/)){var A=(this.direction==Scroller.DIR_LEFT)?-1:1;var C=parseInt(Element.getStyle(this.container,"left"))+(A*this.dimensions.container.width);Element.setStyle(this.cloneContainer,{left:C+"px"})}if(this.options.animate){this.scrollFor(D)}}});
/* /modules/carousel.js */
var WraparoundScroller=Class.create();Object.extend(WraparoundScroller.prototype,SimpleScroller.prototype);Object.extend(WraparoundScroller.prototype,{initialize:function(A,B){this.dims=B;SimpleScroller.prototype.initialize.call(this,A)},updateOffset:function(){this.offset.x=(this.offset.x+this.dims.x)%this.dims.x;this.offset.y=(this.offset.y+this.dims.y)%this.dims.y;SimpleScroller.prototype.updateOffset.call(this)}});var Carousel=Class.create();Object.extend(Carousel.prototype,{initialize:function(carousel){if(!carousel){return false}Carousel._objects[carousel.id]=this;var anchors=carousel.getElementsByTagName("a");this.options={};for(var i=0;i<anchors.length;i++){if(anchors[i].className!="options"){continue}var options_list=(anchors[i].rel+"").split(" ");for(var j=0;j<options_list.length;j++){var parts=options_list[j].replace(/^\s/,"").replace(/\s$/,"").split(":");if(parts.length<2){continue}this.options[parts[0]]=eval(parts[1])}}this.offset=this.options.default_image||0;var divs=carousel.getElementsByTagName("div");for(var i=0;i<divs.length;i++){if(divs[i].className=="carousel-pagination"){this.pagination=divs[i]}if(divs[i].className=="carousel-panel"){this.panel=divs[i]}}if(!this.pagination||!this.panel){return false}this.scroller=new WraparoundScroller(this.panel,{x:1,y:1});this.item_list=this.panel.getElementsByTagName("ul")[0];var lis=this.pagination.getElementsByTagName("li");for(var i=0;i<lis.length;i++){if(lis[i].className=="carousel-pagination-prev"){this.prev=lis[i]}if(lis[i].className=="carousel-pagination-next"){this.next=lis[i]}}if(!this.prev||!this.next){return false}this.currPage=this.pagination.getElementsByTagName("b");if(this.currPage.length>0){this.currPage=this.currPage[0]}else{return false}this.prev.getElementsByTagName("a")[0].onclick=this.pagination_handler(-1);this.next.getElementsByTagName("a")[0].onclick=this.pagination_handler(1);this.setup()},setup:function(){var B=this.item_list.getElementsByTagName("li");if(B.length==0){this.update_arrows();return false}this.item_count=B.length;if(typeof this.options.scroll_amount=="undefined"){this.item_width=parseInt(Element.getDimensions(B[0]).width,10)}else{this.item_width=this.options.item_width||this.options.scroll_amount}if(this.item_width==0&&B.length>0){return false}else{if(this.item_width>900){window.setTimeout(this.setup.bind(this),100);return false}}this.scroller.dims.x=B.length*this.item_width;var F=this.options.scroll_amount||parseInt(Element.getDimensions(this.panel).width,10);this.pages=Math.ceil(B.length*this.item_width/F);this.per_page=F/this.item_width;if(this.pages==1){this.offset=0}if(this.options.wraparound&&this.item_count>this.per_page){for(var E=0,A=B.length;E<A;E++){var D=B[E].cloneNode(true);this.item_list.appendChild(D)}}if(this.options.pagination=="image"){var G=this.item_list.getElementsByTagName("a");for(var E=0;E<G.length;E++){G[E].onmouseover=this.mousemove_handler(E)}}var C=this.pagination.getElementsByTagName("span")[0].getElementsByTagName("span")[0];C.innerHTML=(this.options.pagination=="page")?this.pages:this.item_count;this.update_arrows();this.pagination_handler(0,true)();this.mousemove_handler(this.options.default_image)()},pagination_handler:function(B,A){var C=this;return function(D){if(C.item_count>C.per_page){C.offset+=B*C.per_page}if(!C.options.wraparound){if(C.offset<0){C.offset=0}if(C.offset>=C.item_count){C.offset=(C.pages-1)*C.per_page}}C.scroller[A?"jumpTo":"scrollTo"]({x:C.offset*C.item_width},500,C.update_arrows.bind(C));C.offset=(C.offset+C.item_count)%C.item_count;if(C.options.pagination=="page"){C.currPage.innerHTML=Math.floor(C.offset/C.per_page)+1}else{C.mousemove_handler(C.offset)()}return cancelEvent(D)}},mousemove_handler:function(A){var B=this;return function(){var D=B.item_list.getElementsByTagName("a");for(var C=0;C<D.length;C++){if(C==A){Element.addClassName(D[C],"focus");B.currPage.innerHTML=(C%B.item_count)+1}else{Element.removeClassName(D[C],"focus")}}}},update_arrows:function(){var B=true,A=true;if(!this.options.wraparound){B=(this.offset>0);A=(this.offset<(this.pages-1)*this.per_page);if(this.pages==1){B=A=false}}else{B=A=(this.item_count>this.per_page)}Element[B?"removeClassName":"addClassName"](this.prev,"disabled");Element[A?"removeClassName":"addClassName"](this.next,"disabled")}});Carousel._objects={};Carousel.getObject=function(A){return Carousel._objects[$(A).getAttribute("id")]};addLoadEvent(function(){var D,B=0;while(D=$("carousel"+B)){new Carousel(D);B++}var E=$("carousel");if(E){var D=new TabBar("carousel");var A=0;for(var C=0;tab=D.tab(C);C++){if(Element.hasClassName(tab,"default")){A=C}}D.update(A);D.onchange=function(G){var F=Carousel.getObject(this.panel(G).getElementsByTagName("div")[0]);window.setTimeout(F.setup.bind(F),1);return true}}});
/* /modules/cover-hero.js */
var coverIndex=0;var coverHeroTabCount=1;function countCoverHeroTabs(){coverHeroTabCount=j$("#cover-hero ul a").length}function evtcapture(){j$("#cover-hero ul a").each(function(A,B){B.onclick=function(C){setCover(B.id);return cancelEvent(C)}})}addLoadEvent(evtcapture);addLoadEvent(countCoverHeroTabs);function setCover(B,A){if(typeof (A)=="undefined"){clearInterval(coverInterval)}if(B>coverHeroTabCount-1){B=0}if($("cover_img_"+coverIndex)){$("cover_img_"+coverIndex).style.display="none"}if($("cover_list_"+coverIndex)){$("cover_list_"+coverIndex).className=""}if($("cover_h2_"+coverIndex)){$("cover_h2_"+coverIndex).style.display="none"}if($("actions_"+coverIndex)){$("actions_"+coverIndex).style.display="none"}if($("cover_img_"+B)){$("cover_img_"+B).style.display="block"}if($("cover_list_"+B)){$("cover_list_"+B).className="selected"}if($("cover_h2_"+B)){$("cover_h2_"+B).style.display="block"}if($("actions_"+B)){$("actions_"+B).style.display="block"}coverIndex=B}var coverInterval=setInterval(function(){setCover((coverIndex+1)%(coverHeroTabCount||1),false)},10000);
/* /lib/jquery/effects.core.js */
(function(C){C.effects=C.effects||{};C.extend(C.effects,{save:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){C.data(F[0],"ec.storage."+G[E],F[0].style[G[E]])}}},restore:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){F.css(G[E],C.data(F[0],"ec.storage."+G[E]))}}},setMode:function(E,F){if(F=="toggle"){F=E.is(":hidden")?"show":"hide"}return F},getBaseline:function(F,G){var H,E;switch(F[0]){case"top":H=0;break;case"middle":H=0.5;break;case"bottom":H=1;break;default:H=F[0]/G.height}switch(F[1]){case"left":E=0;break;case"center":E=0.5;break;case"right":E=1;break;default:E=F[1]/G.width}return{x:E,y:H}},createWrapper:function(F){if(F.parent().attr("id")=="fxWrapper"){return F}var E={width:F.outerWidth({margin:true}),height:F.outerHeight({margin:true}),"float":F.css("float")};F.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var I=F.parent();if(F.css("position")=="static"){I.css({position:"relative"});F.css({position:"relative"})}else{var H=F.css("top");if(isNaN(parseInt(H))){H="auto"}var G=F.css("left");if(isNaN(parseInt(G))){G="auto"}I.css({position:F.css("position"),top:H,left:G,zIndex:F.css("z-index")}).show();F.css({position:"relative",top:0,left:0})}I.css(E);return I},removeWrapper:function(E){if(E.parent().attr("id")=="fxWrapper"){return E.parent().replaceWith(E)}return E},setTransition:function(F,G,E,H){H=H||{};C.each(G,function(J,I){unit=F.cssUnit(I);if(unit[0]>0){H[I]=unit[0]*E+unit[1]}});return H},animateClass:function(G,H,J,I){var E=(typeof J=="function"?J:(I?I:null));var F=(typeof J=="object"?J:null);return this.each(function(){var O={};var M=C(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N.cssText}if(G.toggle){M.hasClass(G.toggle)?G.remove=G.toggle:G.add=G.toggle}var K=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.addClass(G.add)}if(G.remove){M.removeClass(G.remove)}var L=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.removeClass(G.add)}if(G.remove){M.addClass(G.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=K[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(K.position!="static"||(K.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,H,F,function(){if(typeof C(this).attr("style")=="object"){C(this).attr("style")["cssText"]="";C(this).attr("style")["cssText"]=N}else{C(this).attr("style",N)}if(G.add){C(this).addClass(G.add)}if(G.remove){C(this).removeClass(G.remove)}if(E){E.apply(this,arguments)}})})}});C.fn.extend({_show:C.fn.show,_hide:C.fn.hide,__toggle:C.fn.toggle,_addClass:C.fn.addClass,_removeClass:C.fn.removeClass,_toggleClass:C.fn.toggleClass,effect:function(E,G,F,H){return C.effects[E]?C.effects[E].call(this,{method:E,options:G||{},duration:F,callback:H}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var E=arguments[1]||{};E.mode="show";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var E=arguments[1]||{};E.mode="hide";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var E=arguments[1]||{};E.mode="toggle";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},addClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{add:F},E,H,G]):this._addClass(F)},removeClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{remove:F},E,H,G]):this._removeClass(F)},toggleClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{toggle:F},E,H,G]):this._toggleClass(F)},morph:function(E,G,F,I,H){return C.effects.animateClass.apply(this,[{add:G,remove:E},F,I,H])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(E){var F=this.css(E),G=[];C.each(["em","px","%","pt"],function(H,I){if(F.indexOf(I)>0){G=[parseFloat(F),I]}});return G}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,E){jQuery.fx.step[E]=function(G){if(G.state==0){G.start=D(G.elem,E);G.end=B(G.end)}G.elem.style[E]="rgb("+[Math.max(Math.min(parseInt((G.pos*(G.end[0]-G.start[0]))+G.start[0]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[1]-G.start[1]))+G.start[1]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[2]-G.start[2]))+G.start[2]),255),0)].join(",")+")"}});function B(F){var E;if(F&&F.constructor==Array&&F.length==3){return F}if(E=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}if(E=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return[parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55]}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}if(E=/rgba\(0, 0, 0, 0\)/.exec(F)){return A.transparent}return A[jQuery.trim(F).toLowerCase()]}function D(G,E){var F;do{F=jQuery.curCSS(G,E);if(F!=""&&F!="transparent"||jQuery.nodeName(G,"body")){break}E="backgroundColor"}while(G=G.parentNode);return B(F)}var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(F,G,E,I,H){return jQuery.easing[jQuery.easing.def](F,G,E,I,H)},easeInQuad:function(F,G,E,I,H){return I*(G/=H)*G+E},easeOutQuad:function(F,G,E,I,H){return -I*(G/=H)*(G-2)+E},easeInOutQuad:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G+E}return -I/2*((--G)*(G-2)-1)+E},easeInCubic:function(F,G,E,I,H){return I*(G/=H)*G*G+E},easeOutCubic:function(F,G,E,I,H){return I*((G=G/H-1)*G*G+1)+E},easeInOutCubic:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G+E}return I/2*((G-=2)*G*G+2)+E},easeInQuart:function(F,G,E,I,H){return I*(G/=H)*G*G*G+E},easeOutQuart:function(F,G,E,I,H){return -I*((G=G/H-1)*G*G*G-1)+E},easeInOutQuart:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G+E}return -I/2*((G-=2)*G*G*G-2)+E},easeInQuint:function(F,G,E,I,H){return I*(G/=H)*G*G*G*G+E},easeOutQuint:function(F,G,E,I,H){return I*((G=G/H-1)*G*G*G*G+1)+E},easeInOutQuint:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G*G+E}return I/2*((G-=2)*G*G*G*G+2)+E},easeInSine:function(F,G,E,I,H){return -I*Math.cos(G/H*(Math.PI/2))+I+E},easeOutSine:function(F,G,E,I,H){return I*Math.sin(G/H*(Math.PI/2))+E},easeInOutSine:function(F,G,E,I,H){return -I/2*(Math.cos(Math.PI*G/H)-1)+E},easeInExpo:function(F,G,E,I,H){return(G==0)?E:I*Math.pow(2,10*(G/H-1))+E},easeOutExpo:function(F,G,E,I,H){return(G==H)?E+I:I*(-Math.pow(2,-10*G/H)+1)+E},easeInOutExpo:function(F,G,E,I,H){if(G==0){return E}if(G==H){return E+I}if((G/=H/2)<1){return I/2*Math.pow(2,10*(G-1))+E}return I/2*(-Math.pow(2,-10*--G)+2)+E},easeInCirc:function(F,G,E,I,H){return -I*(Math.sqrt(1-(G/=H)*G)-1)+E},easeOutCirc:function(F,G,E,I,H){return I*Math.sqrt(1-(G=G/H-1)*G)+E},easeInOutCirc:function(F,G,E,I,H){if((G/=H/2)<1){return -I/2*(Math.sqrt(1-G*G)-1)+E}return I/2*(Math.sqrt(1-(G-=2)*G)+1)+E},easeInElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}return -(G*Math.pow(2,10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J))+E},easeOutElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}return G*Math.pow(2,-10*H)*Math.sin((H*K-I)*(2*Math.PI)/J)+L+E},easeInOutElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K/2)==2){return E+L}if(!J){J=K*(0.3*1.5)}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}if(H<1){return -0.5*(G*Math.pow(2,10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J))+E}return G*Math.pow(2,-10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J)*0.5+L+E},easeInBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*(G/=I)*G*((H+1)*G-H)+E},easeOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},easeInOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}if((G/=I/2)<1){return J/2*(G*G*(((H*=(1.525))+1)*G-H))+E}return J/2*((G-=2)*G*(((H*=(1.525))+1)*G+H)+2)+E},easeInBounce:function(F,G,E,I,H){return I-jQuery.easing.easeOutBounce(F,H-G,0,I,H)+E},easeOutBounce:function(F,G,E,I,H){if((G/=H)<(1/2.75)){return I*(7.5625*G*G)+E}else{if(G<(2/2.75)){return I*(7.5625*(G-=(1.5/2.75))*G+0.75)+E}else{if(G<(2.5/2.75)){return I*(7.5625*(G-=(2.25/2.75))*G+0.9375)+E}else{return I*(7.5625*(G-=(2.625/2.75))*G+0.984375)+E}}}},easeInOutBounce:function(F,G,E,I,H){if(G<H/2){return jQuery.easing.easeInBounce(F,G*2,0,I,H)*0.5+E}return jQuery.easing.easeOutBounce(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(jQuery);(function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this);var F=A.effects.setMode(D,B.options.mode||"show");var E=B.options.times||5;if(F=="hide"){E--}if(D.is(":hidden")){D.css("opacity",0);D.show();D.animate({opacity:1},B.duration/2,B.options.easing);E=E-2}for(var C=0;C<E;C++){D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing)}if(F=="hide"){D.animate({opacity:0},B.duration/2,B.options.easing,function(){D.hide();if(B.callback){B.callback.apply(this,arguments)}})}else{D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing,function(){if(B.callback){B.callback.apply(this,arguments)}})}D.queue("fx",function(){D.dequeue()});D.dequeue()})}})(jQuery);(function(A){A.effects.highlight=function(B){return this.queue(function(){var E=A(this),D=["backgroundImage","backgroundColor","opacity"];var H=A.effects.setMode(E,B.options.mode||"show");var C=B.options.color||"#ffff99";var G=E.css("backgroundColor");A.effects.save(E,D);E.show();E.css({backgroundImage:"none",backgroundColor:C});var F={backgroundColor:G};if(H=="hide"){F.opacity=0}E.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,D);if(H=="show"&&jQuery.browser.msie){this.style.removeAttribute("filter")}if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery);
/* /modules/video/video-general.js */
function updateMyVideosCount(A){if(!updateMyVideosCount.bTag){updateMyVideosCount.bTag=j$("#channels a[href$='/video/my/'] b")}var B=updateMyVideosCount.bTag.css("color");updateMyVideosCount.bTag.css("color","#FFBC00");updateMyVideosCount.bTag.html("My Videos ("+A+")");if(j$.browser.msie==true){setTimeout(function(){j$("#channels a[href$='/video/my/'] b").css("color","")},1000);setTimeout(function(){j$("#channels a[href$='/video/my/'] b").css("color","#FFBC00")},1500);setTimeout(function(){j$("#channels a[href$='/video/my/'] b").css("color","")},2000)}else{updateMyVideosCount.bTag.effect("pulsate",{times:1},500,function(){j$(this).css("color","")})}}jQuery(document).ready(function(){jQuery("div.bwsMain div.bws-bd ul li a").hover(function(){jQuery(this).find("div.imgBox div.hilite").css("top","0px")},function(){jQuery(this).find("div.imgBox div.hilite").css("top","-72px")})});
