(function(a){a.fn.wtListRotator=function(c){var t="left";var K="right";var J=0;var p=1;var E="auto_adjust";var v="update_text";var n="update_buttons";var I="update_number";var y="show_scrollbar";var q="hide_scrollbar";var e="update_knob";var M={TL:0,TC:1,TR:2,BL:3,BC:4,BR:5};var L=0;var o={"block.top":L++,"block.right":L++,"block.bottom":L++,"block.left":L++,"block.drop":L++,"diag.fade":L++,"diag.exp":L++,"rev.diag.fade":L++,"rev.diag.exp":L++,"block.fade":L++,"block.exp":L++,"block.top.zz":L++,"block.bottom.zz":L++,"block.left.zz":L++,"block.right.zz":L++,"spiral.in":L++,"spiral.out":L++,"vert.tl":L++,"vert.tr":L++,"vert.bl":L++,"vert.br":L++,"fade.left":L++,"fade.right":L++,"alt.left":L++,"alt.right":L++,"blinds.left":L++,"blinds.right":L++,"horz.tl":L++,"horz.tr":L++,"horz.bl":L++,"horz.br":L++,"fade.top":L++,"fade.bottom":L++,"alt.top":L++,"alt.bottom":L++,"blinds.top":L++,"blinds.bottom":L++,none:L++,fade:L++,"h.slide":L++,"v.slide":L++,random:L++};var l={fade:0,down:1,right:2,up:3,left:4,none:5};var x=250;var B=75;var D=50;var d=5000;var u=800;var g=300;var H=600;var z=0.1;var C=4;var k=600;function b(Q,Y,X,aa,W,R,S){var T;var O;var V;var Z=null;var ab=function(){V=Math.ceil(Y/aa);if(V>x){aa=Math.ceil(Y/x);V=Math.ceil(Y/aa)}var ad="";for(var ac=0;ac<V;ac++){ad+="<div class='vpiece' id='"+ac+"'/>"}Q.addToScreen(ad);T=Q.$el.find("div.vpiece");O=new Array(V);T.each(function(ae){a(this).css({left:(ae*aa),height:X});O[ae]=a(this)})};this.clear=function(){clearInterval(Z);T.stop(true).css({"z-index":2,opacity:0})};this.displayContent=function(ac,ad){N(ac,ad);P(ac,ad)};var N=function(ac,ad){switch(ad){case o["vert.tl"]:case o["vert.tr"]:U(ac,-X,1,aa,false);break;case o["vert.bl"]:case o["vert.br"]:U(ac,X,1,aa,false);break;case o["alt.left"]:case o["alt.right"]:U(ac,0,1,aa,true);break;case o["blinds.left"]:case o["blinds.right"]:U(ac,0,1,0,false);break;default:U(ac,0,0,aa,false)}};var U=function(ac,ai,aj,ae,ah){var al=ac.attr("src");var ak=0;var ad=0;if(Q.autoCenter()){ak=(X-ac.height())/2;ad=(Y-ac.width())/2}for(var af=0;af<V;af++){var ag=((-af*aa)+ad);if(ah){ai=(af%2)==0?-X:X}a(T.get(af)).css({background:W+" url('"+al+"') no-repeat",backgroundPosition:ag+"px "+ak+"px",opacity:aj,top:ai,width:ae,"z-index":3})}};var P=function(ae,af){var ah,ad,ag,ac;switch(af){case o["vert.tl"]:case o["vert.bl"]:case o["fade.left"]:case o["blinds.left"]:case o["alt.left"]:ah=0;ad=V-1;ag=1;break;default:ah=V-1;ad=0;ag=-1}Z=setInterval(function(){a(T.get(ah)).animate({top:0,opacity:1,width:aa},R,Q.easing(),function(){if(a(this).attr("id")==ad){Q.setComplete(ae)}});if(ah==ad){clearInterval(Z)}ah+=ag},S)};ab()}function r(Q,Y,X,aa,W,R,S){var T;var O;var V;var Z=null;var ab=function(){V=Math.ceil(X/aa);if(V>x){aa=Math.ceil(X/x);V=Math.ceil(X/aa)}var ad="";for(var ac=0;ac<V;ac++){ad+="<div class='hpiece' id='"+ac+"'><!-- --></div>"}Q.addToScreen(ad);T=Q.$el.find("div.hpiece");O=new Array(V);T.each(function(ae){a(this).css({top:(ae*aa),width:Y});O[ae]=a(this)})};this.clear=function(){clearInterval(Z);T.stop(true).css({"z-index":2,opacity:0})};this.displayContent=function(ac,ad){N(ac,ad);P(ac,ad)};var N=function(ac,ad){switch(ad){case o["horz.tr"]:case o["horz.br"]:U(ac,Y,1,aa,false);break;case o["horz.tl"]:case o["horz.bl"]:U(ac,-Y,1,aa,false);break;case o["alt.top"]:case o["alt.bottom"]:U(ac,0,1,aa,true);break;case o["blinds.top"]:case o["blinds.bottom"]:U(ac,0,1,0,false);break;default:U(ac,0,0,aa,false)}};var U=function(ac,af,ai,ak,ah){var al=ac.attr("src");var aj=0;var ad=0;if(Q.autoCenter()){aj=(X-ac.height())/2;ad=(Y-ac.width())/2}for(var ag=0;ag<V;ag++){var ae=((-ag*aa)+aj);if(ah){af=(ag%2)==0?-Y:Y}a(T.get(ag)).css({background:W+" url('"+al+"') no-repeat",backgroundPosition:ad+"px "+ae+"px",opacity:ai,left:af,height:ak,"z-index":3})}};var P=function(ad,ae){var ag,ac,af;switch(ae){case o["horz.tl"]:case o["horz.tr"]:case o["fade.top"]:case o["blinds.top"]:case o["alt.top"]:ag=0;ac=V-1;af=1;break;default:ag=V-1;ac=0;af=-1}Z=setInterval(function(){a(T.get(ag)).animate({left:0,opacity:1,height:aa},R,Q.easing(),function(){if(a(this).attr("id")==ac){Q.setComplete(ad)}});if(ag==ac){clearInterval(Z)}ag+=af},S)};ab()}function s(X,Y,T,Z,W,N,ag){var V;var O;var aa;var S;var U;var ai;var ah;var af=function(){S=Math.ceil(T/Z);U=Math.ceil(Y/Z);ai=S*U;if(ai>x){Z=Math.ceil(Math.sqrt((T*Y)/x));S=Math.ceil(T/Z);U=Math.ceil(Y/Z);ai=S*U}var am="";for(var al=0;al<S;al++){for(var ak=0;ak<U;ak++){am+="<div class='block' id='"+al+"-"+ak+"'/>"}}X.addToScreen(am);O=X.$el.find("div.block");O.data({tlId:"0-0",trId:"0-"+(U-1),blId:(S-1)+"-0",brId:(S-1)+"-"+(U-1)});var aj=0;aa=new Array(ai);V=new Array(S);for(var al=0;al<S;al++){V[al]=new Array(U);for(var ak=0;ak<U;ak++){V[al][ak]=aa[aj++]=O.filter("#"+(al+"-"+ak)).data("top",al*Z)}}};this.clear=function(){clearInterval(ah);O.stop(true).css({"z-index":2,opacity:0})};this.displayContent=function(aj,ak){switch(ak){case o["diag.fade"]:ac(aj,0,Z,0);ad(aj,{opacity:1},false);break;case o["diag.exp"]:ac(aj,0,0,0);ad(aj,{opacity:1,width:Z,height:Z},false);break;case o["rev.diag.fade"]:ac(aj,0,Z,0);ad(aj,{opacity:1},true);break;case o["rev.diag.exp"]:ac(aj,0,0,0);ad(aj,{opacity:1,width:Z,height:Z},true);break;case o["block.fade"]:ac(aj,0,Z,0);P(aj);break;case o["block.exp"]:ac(aj,1,0,0);P(aj);break;case o["block.drop"]:ac(aj,1,Z,-(S*Z));P(aj);break;case o["block.top.zz"]:case o["block.bottom.zz"]:ac(aj,0,Z,0);R(aj,ak);break;case o["block.left.zz"]:case o["block.right.zz"]:ac(aj,0,Z,0);ab(aj,ak);break;case o["spiral.in"]:ac(aj,0,Z,0);ae(aj,false);break;case o["spiral.out"]:ac(aj,0,Z,0);ae(aj,true);break;default:ac(aj,1,0,0);Q(aj,ak)}};var ac=function(aj,ap,au,ao){var aq=0;var al=0;if(X.autoCenter()){aq=(T-aj.height())/2;al=(Y-aj.width())/2}var ar=aj.attr("src");for(var an=0;an<S;an++){for(var am=0;am<U;am++){var at=((-an*Z)+aq);var ak=((-am*Z)+al);V[an][am].css({background:W+" url('"+ar+"') no-repeat",backgroundPosition:ak+"px "+at+"px",opacity:ap,top:(an*Z)+ao,left:(am*Z),width:au,height:au,"z-index":3})}}};var ad=function(aj,ar,ao){var aq=new Array(ai);var ak,an,al,am;var at=(S-1)+(U-1);if(ao){ak=at;an=-1;al=-1;am=O.data("tlId")}else{ak=0;an=at+1;al=1;am=O.data("brId")}var ap=0;while(ak!=an){i=Math.min(S-1,ak);while(i>=0){j=Math.abs(i-ak);if(j>=U){break}aq[ap++]=V[i][j];i--}ak+=al}ap=0;ah=setInterval(function(){aq[ap++].animate(ar,N,X.easing(),function(){if(a(this).attr("id")==am){X.setComplete(aj)}});if(ap==ai){clearInterval(ah)}},ag)};var ab=function(am,an){var al=true;var ak=0,aj,ap,ao;if(an==o["block.left.zz"]){ao=(U%2==0)?O.data("trId"):O.data("brId");aj=0;ap=1}else{ao=(U%2==0)?O.data("tlId"):O.data("blId");aj=U-1;ap=-1}ah=setInterval(function(){V[ak][aj].animate({opacity:1},N,X.easing(),function(){if(a(this).attr("id")==ao){X.setComplete(am)}});if(V[ak][aj].attr("id")==ao){clearInterval(ah)}(al?ak++:ak--);if(ak==S||ak<0){al=!al;ak=(al?0:S-1);aj+=ap}},ag)};var R=function(am,an){var al=true;var ak,aj=0,ap,ao;if(an==o["block.top.zz"]){ao=(S%2==0)?O.data("blId"):O.data("brId");ak=0;ap=1}else{ao=(S%2==0)?O.data("tlId"):O.data("trId");ak=S-1;ap=-1}ah=setInterval(function(){V[ak][aj].animate({opacity:1},N,X.easing(),function(){if(a(this).attr("id")==ao){X.setComplete(am)}});if(V[ak][aj].attr("id")==ao){clearInterval(ah)}(al?aj++:aj--);if(aj==U||aj<0){al=!al;aj=(al?0:U-1);ak+=ap}},ag)};var Q=function(al,am){var ao=new Array(ai);var ap;var an=0;switch(am){case o["block.left"]:ap=O.data("brId");for(var aj=0;aj<U;aj++){for(var ak=0;ak<S;ak++){ao[an++]=V[ak][aj]}}break;case o["block.right"]:ap=O.data("blId");for(var aj=U-1;aj>=0;aj--){for(var ak=0;ak<S;ak++){ao[an++]=V[ak][aj]}}break;case o["block.top"]:ap=O.data("brId");for(var ak=0;ak<S;ak++){for(var aj=0;aj<U;aj++){ao[an++]=V[ak][aj]}}break;default:ap=O.data("trId");for(var ak=S-1;ak>=0;ak--){for(var aj=0;aj<U;aj++){ao[an++]=V[ak][aj]}}}an=0;ah=setInterval(function(){ao[an++].animate({width:Z,height:Z},N,X.easing(),function(){if(a(this).attr("id")==ap){X.setComplete(al)}});if(an==ai){clearInterval(ah)}},ag)};var P=function(ak){m(aa);var aj=0;count=0;ah=setInterval(function(){aa[aj].animate({top:aa[aj].data("top"),width:Z,height:Z,opacity:1},N,X.easing(),function(){if(++count==ai){X.setComplete(ak)}});aj++;if(aj==ai){clearInterval(ah)}},ag)};var ae=function(aj,ar){var aq=0,ap=0;var av=S-1;var aw=U-1;var al=0;var ao=aw;var au=new Array();while(av>=0&&aw>=0){var at=0;while(true){au[au.length]=V[aq][ap];if((++at)>ao){break}switch(al){case 0:ap++;break;case 1:aq++;break;case 2:ap--;break;case 3:aq--}}switch(al){case 0:al=1;ao=(--av);aq++;break;case 1:al=2;ao=(--aw);ap--;break;case 2:al=3;ao=(--av);aq--;break;case 3:al=0;ao=(--aw);ap++}}if(au.length>0){if(ar){au.reverse()}var an=au.length-1;var ak=au[an].attr("id");var am=0;ah=setInterval(function(){au[am].animate({opacity:1},N,X.easing(),function(){if(a(this).attr("id")==ak){X.setComplete(aj)}});if(am==an){clearInterval(ah)}am++},ag)}};af()}function G(bR,bK){var aF=h(bK.screen_width,600);var bE=h(bK.screen_height,300);var ar=h(bK.item_width,250);var bz=h(bK.item_height,75);var bb=h(bK.item_display,4);var a4=bK.auto_start;var aL=h(bK.transition_speed,u);var bP=bK.transition.toLowerCase();var bo=bK.easing;var bi=bK.scroll_type.toLowerCase();var al=bK.display_arrow;var Q=bK.display_thumbs;var aw=bK.display_scrollbar;var Y=bK.display_playbutton;var az=bK.display_number;var aj=bK.display_timer;var aN=bK.text_effect.toLowerCase();var bM=bK.text_sync;var aM=bK.play_once;var af=bK.list_align.toLowerCase();var aB=bK.move_one;var ab=bK.auto_center;var bN=bK.text_mouseover;var ah=bK.pause_mouseover;var aQ=bK.cpanel_mouseover;var av;var aI;var T;var aE;var bc;var a5;var bA;var R;var W;var a7;var bj;var aD;var ag;var bv;var bL;var bu;var aA;var bq;var a9;var aq;var au;var bf;var br;var bk;var aZ;var bS;var X;var aK;var a8;var ad;var O;var P;var bp;var ae;var Z;var at;var aJ;var an;var ao;var S;this.$el=bR;this.init=function(){au=bR.find(".l-rotator");bf=au.find(".screen");bk=au.find(".thumbnails");aZ=bk.find(">ul:first");bS=aZ.find(">li");aA=bq=a9=false;bB(o[bP]);bL=null;bu=null;aI=0;T=-1;av=bS.size();bA=0;a5=av-bb;aE=0;bc=a5;a6();bm();a1();if(bN){au.hover(ap,ay)}else{au.bind(v,bn)}au.css({width:aF+ar,height:bk.height()>bE?bk.height():bE});if(ah){au.hover(a3,ak)}var bT=bf.css("background-color");if(a9){W=new b(this,aF,bE,h(bK.vert_size,D),bT,aL,h(bK.vstripe_delay,90))}if(bq){a7=new r(this,aF,bE,h(bK.horz_size,D),bT,aL,h(bK.hstripe_delay,180))}if(aA){bj=new s(this,aF,bE,h(bK.block_size,B),bT,aL,h(bK.block_delay,35))}bs(0);aX(aI)};this.setComplete=function(bT){N(bT)};this.addToScreen=function(bT){aK.append(bT)};this.autoCenter=function(){return ab};this.easing=function(){return bo};var a6=function(){var bT="<div id='preloader'/>        <div id='timer'/>           <div class='textbox'>            <div class='inner-bg'/>         <div class='inner-text'/>           </div>           <div class='cpanel'>            <div id='play-btn'/>         <div id='num-info'/>        </div>";bf.append(bT).css({width:aF,height:bE});O=bf.find("#preloader");aP();a8=bf.find(".textbox");ad=a8.find(".inner-text");br=a("<div id='strip'/>");if(bP=="h.slide"){bf.append(br);br.css({width:2*aF,height:bE});bS.removeAttr("effect")}else{if(bP=="v.slide"){bf.append(br);br.css({width:aF,height:2*bE});bS.removeAttr("effect")}else{aK=a("<a href='#'></a>");bf.append(aK)}}bJ()};var aP=function(){X=bf.find("#timer").data("pct",1);if(aj){X.css("top",bK.timer_align.toLowerCase()=="top"?0:bE-X.height()).css("visibility","visible")}else{X.hide()}};var bJ=function(){P=bf.find(".cpanel");if(!az&&!Y){P.remove();return}ae=P.find("#num-info");if(az){var bU=F(av);var bV="";for(var bT=0;bT<bU;bT++){bV+="0"}bV+=" / "+bV;ae.html(bV).width(ae.width()).html("");au.bind(I,function(){ae.html((aI+1)+" / "+av)})}else{ae.remove()}bp=P.find("#play-btn");if(Y){bp.click(am).toggleClass("pause",a4)}else{bp.remove()}switch(M[bK.cpanel_align.toUpperCase()]){case M.TL:P.css({top:0,left:0});break;case M.TC:P.css({top:0,left:Math.floor((aF-P.outerWidth(true))/2)});break;case M.TR:P.css({top:0,left:aF-P.outerWidth(true)});break;case M.BL:P.css({top:bE-P.outerHeight(true),left:0});break;case M.BC:P.css({top:bE-P.outerHeight(true),left:Math.floor((aF-P.outerWidth(true))/2)});break;default:P.css({top:bE-P.outerHeight(true),left:aF-P.outerWidth(true)})}if(aQ){P.css("display","none");au.hover(ba,aS)}P.css("visibility","visible")};var ba=function(){P.stop(true,true).fadeIn(g)};var aS=function(){P.stop(true,true).fadeOut(g)};var bm=function(){var bU=h(bK.delay,d);var bT=ad.outerHeight()-ad.height();bS.each(function(bX){var bW=a(this).find(">a:first");var bV=o[a(this).attr("effect")];if(bV==undefined||bV==o["h.slide"]||bV==o["v.slide"]){bV=o[bP]}else{bB(bV)}a(this).data({imgurl:bW.attr("href"),delay:h(a(this).attr("delay"),bU),effect:bV});bC(a(this),bT)});ad.html("").css({width:"auto",height:"auto"});a8.css("visibility","visible");if(bK.shuffle){V()}bS.hover(function(){if(aI!=a(this).index()){a(this).addClass("item-over")}},function(){a(this).removeClass("item-over")});at=bS.find(">div.thumb");at.css(af==t?{"float":"left","border-right-width":1}:{"float":"right","border-left-width":1});at.css({width:ar-(at.outerWidth()-at.width()),height:bz-(at.outerHeight()-at.height())}).mousedown(ax);if(!Q){at.find(">img:first").hide()}};var a1=function(){var bT=0;if(al){Z=a("<div>&nbsp;&nbsp;&nbsp;</div>").attr("id",af==K?"left-arrow":"right-arrow").height(bz);a(bS.get(0)).append(Z);bT=Z.width()}else{bS.addClass("square")}bS.css({width:ar+bT,height:bz});aZ.height(av*bS.outerHeight());bk.css({width:bS.width(),height:bb*bS.outerHeight()}).click(aO);aD=aZ.height()-bk.height();if(af==t){bk.css("left",0);bf.css("left",ar)}else{bf.css("left",0);bk.css("left",aF-bT)}switch(bi){case"mouse_click":bw();aJ.click(aR).find("#up-btn").css("cursor","pointer");an.click(aV).find("#down-btn").css("cursor","pointer");break;case"mouse_over":bw();aJ.hover(bI,aH);an.hover(aW,aH);break;case"mouse_move":bk.mousemove(ac);break;default:aB=true;bS.bind("click",bd)}if(aw&&aD>0){bh()}if(bK.auto_adjust){au.bind(E,ai);bk.hover(function(){au.unbind(E)},function(){au.bind(E,ai)})}};var bh=function(){bk.append("<div id='scrollbar'><div id='knob'/></div>");ao=bk.find("#scrollbar");S=ao.find("#knob");ao.css("left",af==t?0:bk.width()-ao.width());S.height(Math.floor((bb/av)*ao.height()));var bT=ao.height()-S.height();var bU=bT/aD;ao.data({range:bT,ratio:bU});au.bind(y,function(){ao.stop(true,true).fadeIn(g)}).bind(q,function(){ao.stop(true,true).fadeOut(g)}).bind(e,function(){S.stop(true).animate({top:Math.round(-bA*bU)},bv)});ao.hide().css("visibility","visible")};var bw=function(){bk.append("<div class='btn-pane'><div id='up-btn'/></div>            <div class='btn-pane'><div id='down-btn'/></div>");var bT=bk.find(".btn-pane");bT.css({opacity:0,width:ar});bT.hover(bQ,a2);if(al&&af==K){bT.css("left",Z.width())}aJ=bT.has("#up-btn");an=bT.has("#down-btn");an.css("top",bk.height()-an.height());bT.css("visibility","visible");au.bind(n,aa).trigger(n)};var bQ=function(){a(this).stop(true,true).animate({opacity:1},g)};var a2=function(){a(this).stop(true,true).animate({opacity:0},g)};var aa=function(){bA<0?aJ.stop(true,true).fadeIn(g):aJ.stop(true,true).fadeOut(g);bA>-aD?an.stop(true,true).fadeIn(g):an.stop(true,true).fadeOut(g)};var aR=function(){if(bc<a5){var bT=aB?1:Math.min(a5-bc,bb);bc+=bT;aE-=bT;bD()}return false};var aV=function(){if(aE<a5){var bT=aB?1:Math.min(a5-aE,bb);aE+=bT;bc-=bT;bD()}return false};var bd=function(){var bT=(a(this).index()-aE)%bb;if(bT+1==bb){aV()}else{if(bT==0){aR()}}};var bI=function(){an.stop(true,true).fadeIn(g);au.trigger(y);bv=-aZ.stop(true).position().top*C;aZ.animate({top:0},bv,function(){aJ.stop(true,true).fadeOut(g);au.trigger(q)});S.stop(true).animate({top:0},bv)};var aW=function(){aJ.stop(true,true).fadeIn(g);au.trigger(y);bv=(aD+aZ.stop(true).position().top)*C;aZ.animate({top:-aD},bv,function(){an.stop(true,true).fadeOut(g);au.trigger(q)});S.stop(true).animate({top:ao.data("range")},bv)};var aH=function(){aZ.stop(true);try{S.stop(true)}catch(bT){}au.trigger(q)};var ac=function(bU){var bT=Math.round(((bU.pageY-bk.offset().top)/bk.height())*100)/100;ag=-Math.round(aD*bT);if(bL==null&&ag!=aZ.position().top){aH();au.trigger(y);bL=setInterval(aY,30)}};var aY=function(){var bV=aZ.stop(true).position().top;if(bV==ag){aG();au.trigger(q)}else{var bT=(ag-bV)*z;bA+=bT<0?Math.min(-1,Math.round(bT)):Math.max(1,Math.round(bT));aZ.css("top",bA);try{S.css("top",Math.round(-bA*ao.data("ratio")))}catch(bU){}}};var aG=function(){clearInterval(bL);bL=null};var ai=function(){if(bL==null){var bT=Math.min(aI,a5);aE=bT;bc=a5-aE;bD()}};var bD=function(){bA=-aE*bS.outerHeight();bv=Math.min(k,Math.abs(aZ.position().top-bA)*C);if(bv>0){au.trigger(y)}aZ.stop(true).animate({top:bA},bv,function(){au.trigger(n);au.trigger(q)});au.trigger(e)};var bC=function(bT,bV){var bU=bT.find(">div:hidden");var bX=h(parseInt(bU.css("width"))-bV,300);var bW=h(parseInt(bU.css("height"))-bV,0);ad.width(bX).html(bU.html());if(bW<ad.height()){bW=ad.height()}bT.data("textbox",{x:bU.css("left"),y:bU.css("top"),w:bX+bV,h:bW+bV+1,color:bU.css("color"),bgcolor:bU.css("background-color")})};var aO=function(bV){var bT=a(bV.target);if(bT[0].nodeName!="LI"){bT=bT.parents("li").eq(0)}var bU=bT.index();if(bU>=0&&bU!=aI){aq=bU<aI?J:p;bx();T=aI;aI=bU;aX(aI)}return false};var bF=function(){bx();aq=p;T=aI;aI=aI<av-1?aI+1:0;aX(aI)};var am=function(){a4=!a4;a(this).toggleClass("pause",a4);a4?be():U();return false};var aT=function(bT){if(bT==av-1){a4=false;bp.toggleClass("pause",a4)}};var ak=function(){a4=true;bp.toggleClass("pause",a4);be()};var a3=function(){a4=false;bp.toggleClass("pause",a4);U()};var bn=function(bU){if(!a8.data("visible")){a8.data("visible",true);var bV=a(bS.get(aI)).find(">div:hidden").html();if(bV&&bV.length>0){var bT=a(bS.get(aI)).data("textbox");ad.css("color",bT.color);a8.find(".inner-bg").css({"background-color":bT.bgcolor,height:bT.h-1});switch(l[aN]){case l.fade:bg(bV,bT);break;case l.down:by(bV,bT,{width:bT.w,height:0},{height:bT.h});break;case l.right:by(bV,bT,{width:0,height:bT.h},{width:bT.w});break;case l.left:by(bV,bT,{"margin-left":bT.w,width:0,height:bT.h},{width:bT.w,"margin-left":0});break;case l.up:by(bV,bT,{"margin-top":bT.h,height:0,width:bT.w},{height:bT.h,"margin-top":0});break;default:bO(bV,bT)}}}};var bG=function(){a8.data("visible",false).stop(true,true);switch(l[aN]){case l.fade:if(jQuery.browser.msie){ad.css("opacity",0)}a8.fadeOut(H,function(){a(this).css("display","none")});break;case l.down:ad.html("");a8.animate({height:0,"margin-top":a8.outerHeight()},H);break;case l.right:ad.html("");a8.animate({width:0,"margin-left":a8.outerWidth()},H);break;case l.left:ad.html("");a8.animate({width:0},H);break;case l.up:ad.html("");a8.animate({height:0},H);break;default:a8.css("display","none")}};var bg=function(bU,bT){ad.css("opacity",1).html(bU);a8.css({top:bT.y,left:bT.x,width:bT.w,height:bT.h}).stop(true,true).fadeIn(H,function(){if(jQuery.browser.msie){ad[0].style.removeAttribute("filter")}})};var by=function(bW,bV,bU,bT){ad.html("");a8.stop(true).css({display:"block",top:bV.y,left:bV.x,"margin-top":0,"margin-left":0}).css(bU).animate(bT,H,function(){ad.html(bW)})};var bO=function(bU,bT){a8.stop(true).css({display:"block",top:bT.y,left:bT.x,width:bT.w,height:bT.h});ad.html(bU)};var ap=function(){au.unbind(v).bind(v,bn).trigger(v)};var ay=function(){au.unbind(v);bG()};var aX=function(bV){au.trigger(E).trigger(I);if(aM){aT(bV)}var bX=a(bS.get(bV));bS.filter(".selected").removeClass("selected");bX.removeClass("item-over").addClass("selected").append(Z);R=bX.data("delay");bG();if(!bM){au.trigger(v)}if(aK){var bW=a(bX.find(">a").get(1));var bT=bW.attr("href");if(bT){aK.unbind("click",ax).css("cursor","pointer").attr({href:bT,target:bW.attr("target")})}else{aK.click(ax).css("cursor","default")}}if(bX.data("img")){O.hide();a0(bX.data("img"))}else{var bU=a("<img width='675' height='375' class='main-img'/>");bU.attr("src",bX.data("imgurl"));if(bU[0].complete||bU[0].readyState=="complete"){O.hide();bH(bX,bU);a0(bU)}else{O.show();bU.load(function(){O.hide();bH(bX,a(this));a0(a(this))}).error(function(){alert("Error loading image")})}}};var a0=function(bT){if(a9){W.clear();aC()}if(bq){a7.clear();aC()}if(aA){bj.clear();aC()}var bU=a(bS.get(aI)).data("effect");if(bU==o.none||bU==undefined){N(bT);return}else{if(bU==o.fade){bt(bT);return}else{if(bU==o["h.slide"]){bl(bT,"left",aF);return}else{if(bU==o["v.slide"]){bl(bT,"top",bE);return}}}}if(bU==o.random){bU=Math.floor(Math.random()*(L-5))}if(bU<=o["spiral.out"]){bj.displayContent(bT,bU)}else{if(bU<=o["blinds.right"]){W.displayContent(bT,bU)}else{a7.displayContent(bT,bU)}}};var aC=function(){if(T>=0){var bU=aK.find("img#curr-img").attr("src");var bV=a(bS.get(T)).data("imgurl");if(bU!=bV){aK.find("img.main-img").removeAttr("id").hide();var bT=aK.find("img.main-img").filter(function(){return a(this).attr("src")==bV});a(bT.get(0)).show()}}};var N=function(bT){if(bM){au.trigger(v)}aK.find("img.main-img").removeAttr("id").hide();bT.attr("id","curr-img").show();be()};var bt=function(bT){aK.find("img#curr-img").stop(true,true);aK.find("img.main-img").removeAttr("id").css("z-index",0);bT.attr("id","curr-img").stop(true,true).css({opacity:0,"z-index":1}).show().animate({opacity:1},aL,bo,function(){aK.find("img.main-img:not('#curr-img')").hide();if(bM){au.trigger(v)}be()})};var bl=function(bX,bZ,bW){br.stop(true,true);var bT=a("#curr-img",br);if(bT.size()>0){br.find(".main-img").removeAttr("id").parents(".content-box").css({top:0,left:0});bX.attr("id","curr-img").parents(".content-box").show();var bV,bU;if(aq==J){br.css(bZ,-bW);bV=bT;bU=0}else{bV=bX;bU=-bW}bV.parents(".content-box").css(bZ,bW);var bY=(bZ=="top")?{top:bU}:{left:bU};br.stop(true,true).animate(bY,aL,bo,function(){br.find(".main-img:not('#curr-img')").parents(".content-box").hide();bV.parents(".content-box").css({top:0,left:0});br.css({top:0,left:0});if(bM){au.trigger(v)}be()})}else{br.css({top:0,left:0});br.find(".main-img").parents(".content-box").hide().css({top:0,left:0});bX.attr("id","curr-img").parents(".content-box").show();if(bM){au.trigger(v)}be()}};var bs=function(bU){try{var bT=a(bS.get(bU));var bW=a("<img width='675' height='375' class='main-img'/>");bW.attr("src",bT.data("imgurl"));bW.load(function(){if(!bT.data("img")){bH(bT,a(this))}bU++;if(bU<av){bs(bU)}}).error(function(){bU++;if(bU<av){bs(bU)}})}catch(bV){}};var bH=function(bV,bW){if(bP=="h.slide"||bP=="v.slide"){br.append(bW);aU(bW);var bT=a("<div class='content-box'/>").css({width:aF,height:bE});bW.wrap(bT);bW.css("display","block");var bU=a(bV.find(">a").get(1));if(bU){bW.wrap(bU)}}else{aK.append(bW);aU(bW)}bV.data("img",bW)};var aU=function(bW){if(ab&&bW.width()>0&&bW.height()>0){var bZ=(bE-bW.height())/2;var bV=(aF-bW.width())/2;var bY=0,bX=0,bU=0,bT=0;if(bZ>0){bU=bZ}else{if(bZ<0){bY=bZ}}if(bV>0){bT=bV}else{if(bV<0){bX=bV}}bW.css({top:bY,left:bX,"padding-top":bU,"padding-bottom":bU,"padding-left":bT,"padding-right":bT})}};var be=function(){if(a4&&bu==null){var bT=Math.round(X.data("pct")*R);X.animate({width:aF+1},bT,"linear");bu=setTimeout(bF,bT)}};var bx=function(){clearTimeout(bu);bu=null;X.stop(true).width(0).data("pct",1)};var U=function(){clearTimeout(bu);bu=null;X.stop(true).data("pct",1-(X.width()/(aF+1)))};var V=function(){var bW=new Array(av);for(var bV=0;bV<av;bV++){bW[bV]=a(bS.get(bV)).clone(true)}for(var bV=0;bV<av;bV++){var bT=Math.floor(Math.random()*av);var bU=bW[bV];bW[bV]=bW[bT];bW[bT]=bU}for(var bV=0;bV<av;bV++){a(bS.get(bV)).replaceWith(bW[bV])}bS=aZ.find(">li")};var bB=function(bT){if(bT==o.random){aA=bq=a9=true}else{if(bT<=o["spiral.out"]){aA=true}else{if(bT<=o["blinds.right"]){a9=true}else{if(bT<=o["blinds.bottom"]){bq=true}}}}};var ax=function(){return false}}var h=function(N,O){if(!isNaN(N)&&N>0){return N}return O};var f=function(N,O){if(!isNaN(N)&&N>=0){return N}return O};var m=function(N){var R=N.length;for(var Q=0;Q<R;Q++){var O=Math.floor(Math.random()*R);var P=N[Q];N[Q]=N[O];N[O]=P}};var F=function(N){var O=1;N=Math.abs(N);N=parseInt(N/10);while(N>0){O++;N=parseInt(N/10)}return O};var A={screen_width:600,screen_height:300,item_width:250,item_height:75,item_display:4,list_align:t,scroll_type:"mouse_move",auto_start:true,delay:d,transition:"fade",transition_speed:u,easing:"",auto_center:true,display_playbutton:true,display_number:true,display_timer:true,display_arrow:true,display_thumbs:true,display_scrollbar:true,pause_mouseover:false,cpanel_mouseover:true,text_mouseover:false,text_effect:"down",text_sync:true,cpanel_align:"TR",timer_align:"bottom",move_one:false,auto_adjust:true,shuffle:false,play_once:false,block_size:B,vert_size:D,horz_size:D,block_delay:35,vstripe_delay:90,hstripe_delay:180};var w=a.extend({},A,c);return this.each(function(){var N=new G(a(this),w);N.init()})}})(jQuery);;;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case"html":m.html(e.content);F();break;case"inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case"image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case"swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case"ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win=="function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case"iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case"inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case"over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case"float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type=="image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=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(f);D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.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);;var cookieName="FlB";var whereFlyIn=0.5;var upprev_closed=false;var imgUrl;function getScrollY(){scrOfY=0;if(typeof(window.pageYOffset)=="number"){scrOfY=window.pageYOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;}
return scrOfY;}
$(document).ready(function($){var upprev_hidden=true;if($.cookie(cookieName)){upprev_closed=true;}
$(window).scroll(function(){var lastScreen=getScrollY()+$(window).height()<$(document).height()*whereFlyIn?false:true;if(lastScreen&&!upprev_closed){$("#upprev_box").stop().animate({right:"0px"});if(upprev_hidden&&imgUrl){var tmp=Math.floor(Math.random()*1000000000);$("#upprev_box").prepend('<img id="flyerAV" src="'+imgUrl+'&'+tmp+'" border="0" />');}
upprev_hidden=false;}
else if(!upprev_hidden){upprev_hidden=true;$("#upprev_box").stop().animate({right:"-400px"});$("#upprev_box img#flyerAV").remove();}});$("#upprev_close").click(function(){$("#upprev_box").stop().animate({right:"-400px"});upprev_closed=true;upprev_hidden=true;$.cookie(cookieName,"no",{expires:1,path:'/'});});});;(function($){$.timeago=function(timestamp){if(timestamp instanceof Date)return inWords(timestamp);else if(typeof timestamp=="string")return inWords($.timeago.parse(timestamp));else return inWords($.timeago.parse($(timestamp).attr("title")));};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",ago:null,fromNow:null,seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years"}},inWords:function(distanceMillis){var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo||$l.ago;if(this.settings.allowFuture){if(distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow||$l.fromNow;}
distanceMillis=Math.abs(distanceMillis);}
var seconds=distanceMillis/1000;var minutes=seconds/60;var hours=minutes/60;var days=hours/24;var years=days/365;var words=seconds<45&&sprintf($l.seconds,Math.round(seconds))||seconds<90&&$l.minute||minutes<45&&sprintf($l.minutes,Math.round(minutes))||minutes<90&&$l.hour||hours<24&&sprintf($l.hours,Math.round(hours))||hours<48&&$l.day||days<30&&sprintf($l.days,Math.floor(days))||days<60&&$l.month||days<365&&sprintf($l.months,Math.floor(days/30))||years<2&&$l.year||sprintf($l.years,Math.floor(years));return $.trim([prefix,words,suffix].join(" "));},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace(/-/,"/").replace(/-/,"/");s=s.replace(/T/," ").replace(/Z/," UTC");s=s.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(s);}});$.fn.timeago=function(){var self=this;self.each(refresh);var $s=$t.settings;if($s.refreshMillis>0){setInterval(function(){self.each(refresh);},$s.refreshMillis);}
return self;};function refresh(){var date=$t.parse(this.title);if(!isNaN(date)){$(this).text(inWords(date));}
return this;}
function inWords(date){return $t.inWords(distance(date));}
function distance(date){return(new Date().getTime()-date.getTime());}
function sprintf(string,value){return string.replace(/%d/i,value);}
if($.browser.msie&&$.browser.version<7.0){document.createElement('abbr');}})(jQuery);;jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};;(function(i){var l="2.73";if(i.support==undefined){i.support={opacity:!(i.browser.msie)}}function a(q){if(i.fn.cycle.debug){f(q)}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}i.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length===0&&r!="stop"){if(!i.isReady&&s.s){f("DOM not ready, queuing slideshow");i(function(){i(s.s,s.c).cycle(r,q)});return this}f("terminating; zero elements found by selector"+(i.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var w=m(this,r,q);if(w===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var x=i(this);var y=w.slideExpr?i(w.slideExpr,this):x.children();var u=y.get();if(u.length<2){f("terminating; too few slides: "+u.length);return}var t=k(x,y,u,w,s);if(t===false){return}var v=t.continuous?10:h(t.currSlide,t.nextSlide,t,!t.rev);if(v){v+=(t.delay||0);if(v<10){v=10}a("first timeout: "+v);this.cycleTimeout=setTimeout(function(){e(u,t,0,!t.rev)},v)}})};function m(q,t,r){if(q.cycleStop==undefined){q.cycleStop=0}if(t===undefined||t===null){t={}}if(t.constructor==String){switch(t){case"stop":q.cycleStop++;if(q.cycleTimeout){clearTimeout(q.cycleTimeout)}q.cycleTimeout=0;i(q).removeData("cycle.opts");return false;case"pause":q.cyclePause=1;return false;case"resume":q.cyclePause=0;if(r===true){t=i(q).data("cycle.opts");if(!t){f("options not found, can not resume");return false}if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}e(t.elements,t,1,1)}return false;case"prev":case"next":var u=i(q).data("cycle.opts");if(!u){f('options not found, "prev/next" ignored');return false}i.fn.cycle[t](u);return false;default:t={fx:t}}return t}else{if(t.constructor==Number){var s=t;t=i(q).data("cycle.opts");if(!t){f("options not found, can not advance slide");return false}if(s<0||s>=t.elements.length){f("invalid slide index: "+s);return false}t.nextSlide=s;if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}if(typeof r=="string"){t.oneTimeFx=r}e(t.elements,t,1,s>=t.currSlide);return false}}return t}function b(q,r){if(!i.support.opacity&&r.cleartype&&q.style.filter){try{q.style.removeAttribute("filter")}catch(s){}}}function k(y,J,u,t,E){var C=i.extend({},i.fn.cycle.defaults,t||{},i.metadata?y.metadata():i.meta?y.data():{});if(C.autostop){C.countdown=C.autostopCount||u.length}var r=y[0];y.data("cycle.opts",C);C.$cont=y;C.stopCount=r.cycleStop;C.elements=u;C.before=C.before?[C.before]:[];C.after=C.after?[C.after]:[];C.after.unshift(function(){C.busy=0});if(!i.support.opacity&&C.cleartype){C.after.push(function(){b(this,C)})}if(C.continuous){C.after.push(function(){e(u,C,0,!C.rev)})}n(C);if(!i.support.opacity&&C.cleartype&&!C.cleartypeNoBg){g(J)}if(y.css("position")=="static"){y.css("position","relative")}if(C.width){y.width(C.width)}if(C.height&&C.height!="auto"){y.height(C.height)}if(C.startingSlide){C.startingSlide=parseInt(C.startingSlide)}if(C.random){C.randomMap=[];for(var H=0;H<u.length;H++){C.randomMap.push(H)}C.randomMap.sort(function(L,w){return Math.random()-0.5});C.randomIndex=0;C.startingSlide=C.randomMap[0]}else{if(C.startingSlide>=u.length){C.startingSlide=0}}C.currSlide=C.startingSlide=C.startingSlide||0;var x=C.startingSlide;J.css({position:"absolute",top:0,left:0}).hide().each(function(w){var L=x?w>=x?u.length-(w-x):x-w:u.length-w;i(this).css("z-index",L)});i(u[x]).css("opacity",1).show();b(u[x],C);if(C.fit&&C.width){J.width(C.width)}if(C.fit&&C.height&&C.height!="auto"){J.height(C.height)}var D=C.containerResize&&!y.innerHeight();if(D){var v=0,B=0;for(var F=0;F<u.length;F++){var q=i(u[F]),K=q[0],A=q.outerWidth(),I=q.outerHeight();if(!A){A=K.offsetWidth}if(!I){I=K.offsetHeight}v=A>v?A:v;B=I>B?I:B}if(v>0&&B>0){y.css({width:v+"px",height:B+"px"})}}if(C.pause){y.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(c(C)===false){return false}var s=false;t.requeueAttempts=t.requeueAttempts||0;J.each(function(){var N=i(this);this.cycleH=(C.fit&&C.height)?C.height:N.height();this.cycleW=(C.fit&&C.width)?C.width:N.width();if(N.is("img")){var L=(i.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var O=(i.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var M=(i.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(L||O||M||w){if(E.s&&C.requeueOnImageNotLoaded&&++t.requeueAttempts<100){f(t.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){i(E.s,E.c).cycle(t)},C.requeueTimeout);s=true;return false}else{f("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(s){return false}C.cssBefore=C.cssBefore||{};C.animIn=C.animIn||{};C.animOut=C.animOut||{};J.not(":eq("+x+")").css(C.cssBefore);if(C.cssFirst){i(J[x]).css(C.cssFirst)}if(C.timeout){C.timeout=parseInt(C.timeout);if(C.speed.constructor==String){C.speed=i.fx.speeds[C.speed]||parseInt(C.speed)}if(!C.sync){C.speed=C.speed/2}while((C.timeout-C.speed)<250){C.timeout+=C.speed}}if(C.easing){C.easeIn=C.easeOut=C.easing}if(!C.speedIn){C.speedIn=C.speed}if(!C.speedOut){C.speedOut=C.speed}C.slideCount=u.length;C.currSlide=C.lastSlide=x;if(C.random){C.nextSlide=C.currSlide;if(++C.randomIndex==u.length){C.randomIndex=0}C.nextSlide=C.randomMap[C.randomIndex]}else{C.nextSlide=C.startingSlide>=(u.length-1)?0:C.startingSlide+1}if(!C.multiFx){var G=i.fn.cycle.transitions[C.fx];if(i.isFunction(G)){G(y,J,C)}else{if(C.fx!="custom"&&!C.multiFx){f("unknown transition: "+C.fx,"; slideshow terminating");return false}}}var z=J[x];if(C.before.length){C.before[0].apply(z,[z,z,C,true])}if(C.after.length>1){C.after[1].apply(z,[z,z,C,true])}if(C.next){i(C.next).bind(C.prevNextEvent,function(){return o(C,C.rev?-1:1)})}if(C.prev){i(C.prev).bind(C.prevNextEvent,function(){return o(C,C.rev?1:-1)})}if(C.pager){d(u,C)}j(C,u);return C}function n(q){q.original={before:[],after:[]};q.original.cssBefore=i.extend({},q.cssBefore);q.original.cssAfter=i.extend({},q.cssAfter);q.original.animIn=i.extend({},q.animIn);q.original.animOut=i.extend({},q.animOut);i.each(q.before,function(){q.original.before.push(this)});i.each(q.after,function(){q.original.after.push(this)})}function c(w){var u,s,r=i.fn.cycle.transitions;if(w.fx.indexOf(",")>0){w.multiFx=true;w.fxs=w.fx.replace(/\s*/g,"").split(",");for(u=0;u<w.fxs.length;u++){var v=w.fxs[u];s=r[v];if(!s||!r.hasOwnProperty(v)||!i.isFunction(s)){f("discarding unknown transition: ",v);w.fxs.splice(u,1);u--}}if(!w.fxs.length){f("No valid transitions named; slideshow terminating.");return false}}else{if(w.fx=="all"){w.multiFx=true;w.fxs=[];for(p in r){s=r[p];if(r.hasOwnProperty(p)&&i.isFunction(s)){w.fxs.push(p)}}}}if(w.multiFx&&w.randomizeEffects){var t=Math.floor(Math.random()*20)+30;for(u=0;u<t;u++){var q=Math.floor(Math.random()*w.fxs.length);w.fxs.push(w.fxs.splice(q,1)[0])}a("randomized fx sequence: ",w.fxs)}return true}function j(r,q){r.addSlide=function(u,v){var t=i(u),w=t[0];if(!r.autostopCount){r.countdown++}q[v?"unshift":"push"](w);if(r.els){r.els[v?"unshift":"push"](w)}r.slideCount=q.length;t.css("position","absolute");t[v?"prependTo":"appendTo"](r.$cont);if(v){r.currSlide++;r.nextSlide++}if(!i.support.opacity&&r.cleartype&&!r.cleartypeNoBg){g(t)}if(r.fit&&r.width){t.width(r.width)}if(r.fit&&r.height&&r.height!="auto"){$slides.height(r.height)}w.cycleH=(r.fit&&r.height)?r.height:t.height();w.cycleW=(r.fit&&r.width)?r.width:t.width();t.css(r.cssBefore);if(r.pager){i.fn.cycle.createPagerAnchor(q.length-1,w,i(r.pager),q,r)}if(i.isFunction(r.onAddSlide)){r.onAddSlide(t)}else{t.hide()}}}i.fn.cycle.resetState=function(r,q){q=q||r.fx;r.before=[];r.after=[];r.cssBefore=i.extend({},r.original.cssBefore);r.cssAfter=i.extend({},r.original.cssAfter);r.animIn=i.extend({},r.original.animIn);r.animOut=i.extend({},r.original.animOut);r.fxFn=null;i.each(r.original.before,function(){r.before.push(this)});i.each(r.original.after,function(){r.after.push(this)});var s=i.fn.cycle.transitions[q];if(i.isFunction(s)){s(r.$cont,i(r.elements),r)}};function e(x,q,w,y){if(w&&q.busy&&q.manualTrump){i(x).stop(true,true);q.busy=false}if(q.busy){return}var u=q.$cont[0],A=x[q.currSlide],z=x[q.nextSlide];if(u.cycleStop!=q.stopCount||u.cycleTimeout===0&&!w){return}if(!w&&!u.cyclePause&&((q.autostop&&(--q.countdown<=0))||(q.nowrap&&!q.random&&q.nextSlide<q.currSlide))){if(q.end){q.end(q)}return}if(w||!u.cyclePause){var v=q.fx;A.cycleH=A.cycleH||i(A).height();A.cycleW=A.cycleW||i(A).width();z.cycleH=z.cycleH||i(z).height();z.cycleW=z.cycleW||i(z).width();if(q.multiFx){if(q.lastFx==undefined||++q.lastFx>=q.fxs.length){q.lastFx=0}v=q.fxs[q.lastFx];q.currFx=v}if(q.oneTimeFx){v=q.oneTimeFx;q.oneTimeFx=null}i.fn.cycle.resetState(q,v);if(q.before.length){i.each(q.before,function(B,C){if(u.cycleStop!=q.stopCount){return}C.apply(z,[A,z,q,y])})}var s=function(){i.each(q.after,function(B,C){if(u.cycleStop!=q.stopCount){return}C.apply(z,[A,z,q,y])})};if(q.nextSlide!=q.currSlide){q.busy=1;if(q.fxFn){q.fxFn(A,z,q,s,y)}else{if(i.isFunction(i.fn.cycle[q.fx])){i.fn.cycle[q.fx](A,z,q,s)}else{i.fn.cycle.custom(A,z,q,s,w&&q.fastOnEvent)}}}q.lastSlide=q.currSlide;if(q.random){q.currSlide=q.nextSlide;if(++q.randomIndex==x.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex]}else{var t=(q.nextSlide+1)==x.length;q.nextSlide=t?0:q.nextSlide+1;q.currSlide=t?x.length-1:q.nextSlide-1}if(q.pager){i.fn.cycle.updateActivePagerLink(q.pager,q.currSlide)}}var r=0;if(q.timeout&&!q.continuous){r=h(A,z,q,y)}else{if(q.continuous&&u.cyclePause){r=10}}if(r>0){u.cycleTimeout=setTimeout(function(){e(x,q,0,!q.rev)},r)}}i.fn.cycle.updateActivePagerLink=function(q,r){i(q).each(function(){i(this).find("a").removeClass("activeSlide").filter("a:eq("+r+")").addClass("activeSlide")})};function h(v,s,u,r){if(u.timeoutFn){var q=u.timeoutFn(v,s,u,r);while((q-u.speed)<250){q+=u.speed}a("calculated timeout: "+q+"; speed: "+u.speed);if(q!==false){return q}}return u.timeout}i.fn.cycle.next=function(q){o(q,q.rev?-1:1)};i.fn.cycle.prev=function(q){o(q,q.rev?1:-1)};function o(r,u){var q=r.elements;var t=r.$cont[0],s=t.cycleTimeout;if(s){clearTimeout(s);t.cycleTimeout=0}if(r.random&&u<0){r.randomIndex--;if(--r.randomIndex==-2){r.randomIndex=q.length-2}else{if(r.randomIndex==-1){r.randomIndex=q.length-1}}r.nextSlide=r.randomMap[r.randomIndex]}else{if(r.random){if(++r.randomIndex==q.length){r.randomIndex=0}r.nextSlide=r.randomMap[r.randomIndex]}else{r.nextSlide=r.currSlide+u;if(r.nextSlide<0){if(r.nowrap){return false}r.nextSlide=q.length-1}else{if(r.nextSlide>=q.length){if(r.nowrap){return false}r.nextSlide=0}}}}if(i.isFunction(r.prevNextClick)){r.prevNextClick(u>0,r.nextSlide,q[r.nextSlide])}e(q,r,1,u>=0);return false}function d(r,s){var q=i(s.pager);i.each(r,function(t,u){i.fn.cycle.createPagerAnchor(t,u,q,r,s)});i.fn.cycle.updateActivePagerLink(s.pager,s.startingSlide)}i.fn.cycle.createPagerAnchor=function(u,v,s,t,w){var r;if(i.isFunction(w.pagerAnchorBuilder)){r=w.pagerAnchorBuilder(u,v)}else{r='<a href="#">'+(u+1)+"</a>"}if(!r){return}var x=i(r);if(x.parents("body").length===0){var q=[];if(s.length>1){s.each(function(){var y=x.clone(true);i(this).append(y);q.push(y[0])});x=i(q)}else{x.appendTo(s)}}x.bind(w.pagerEvent,function(A){A.preventDefault();w.nextSlide=u;var z=w.$cont[0],y=z.cycleTimeout;if(y){clearTimeout(y);z.cycleTimeout=0}if(i.isFunction(w.pagerClick)){w.pagerClick(w.nextSlide,t[w.nextSlide])}e(t,w,1,w.currSlide<u);return false});if(w.pagerEvent!="click"){x.click(function(){return false})}if(w.pauseOnPagerHover){x.hover(function(){w.$cont[0].cyclePause++},function(){w.$cont[0].cyclePause--})}};i.fn.cycle.hopsFromLast=function(t,s){var r,q=t.lastSlide,u=t.currSlide;if(s){r=u>q?u-q:t.slideCount-q}else{r=u<q?q-u:q+t.slideCount-u}return r};function g(s){function r(t){t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function q(w){for(;w&&w.nodeName.toLowerCase()!="html";w=w.parentNode){var t=i.css(w,"background-color");if(t.indexOf("rgb")>=0){var u=t.match(/\d+/g);return"#"+r(u[0])+r(u[1])+r(u[2])}if(t&&t!="transparent"){return t}}return"#ffffff"}s.each(function(){i(this).css("background-color",q(this))})}i.fn.cycle.commonReset=function(v,t,u,r,s,q){i(u.elements).not(v).hide();u.cssBefore.opacity=1;u.cssBefore.display="block";if(r!==false&&t.cycleW>0){u.cssBefore.width=t.cycleW}if(s!==false&&t.cycleH>0){u.cssBefore.height=t.cycleH}u.cssAfter=u.cssAfter||{};u.cssAfter.display="none";i(v).css("zIndex",u.slideCount+(q===true?1:0));i(t).css("zIndex",u.slideCount+(q===true?0:1))};i.fn.cycle.custom=function(B,v,q,s,r){var A=i(B),w=i(v);var t=q.speedIn,z=q.speedOut,u=q.easeIn,y=q.easeOut;w.css(q.cssBefore);if(r){if(typeof r=="number"){t=z=r}else{t=z=1}u=y=null}var x=function(){w.animate(q.animIn,t,u,s)};A.animate(q.animOut,z,y,function(){if(q.cssAfter){A.css(q.cssAfter)}if(!q.sync){x()}});if(q.sync){x()}};i.fn.cycle.transitions={fade:function(r,s,q){s.not(":eq("+q.currSlide+")").css("opacity",0);q.before.push(function(v,t,u){i.fn.cycle.commonReset(v,t,u);u.cssBefore.opacity=0});q.animIn={opacity:1};q.animOut={opacity:0};q.cssBefore={top:0,left:0}}};i.fn.cycle.ver=function(){return l};i.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!i.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxFn=function(g,e,f,h){a(e).show();a(g).hide();h()}};a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var c,b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true)});if(!d.speedAdjusted){d.speed=d.speed/2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(c=0;c<f.length;c++){d.els.push(f[c])}for(c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(m,j,l,g,i){var h=i?a(m):a(j);a(j).css(l.cssBefore);var k=l.slideCount;h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=a.fn.cycle.hopsFromLast(l,i);for(var q=0;q<o;q++){i?l.els.push(l.els.shift()):l.els.unshift(l.els.pop())}if(i){for(var r=0,n=l.els.length;r<n;r++){a(l.els[r]).css("z-index",n-r+k)}}else{var s=a(m).css("z-index");h.css("z-index",parseInt(s)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h);h.animIn.height=g.cycleH;h.animOut.top=i.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h);if(i=="right"){h.cssBefore.left=-b}else{if(i=="up"){h.cssBefore.top=c}else{if(i=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h,true,true,true);if(i=="right"){h.animOut.left=b}else{if(i=="up"){h.animOut.top=-c}else{if(i=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(s,m,e){var q=s.css("overflow","hidden").width();var j=s.height();e.cssBefore=e.cssBefore||{};var g;if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+j+"px 0px)"}else{if(/r2l/.test(e.clip)){g="rect(0px "+q+"px "+j+"px "+q+"px)"}else{if(/t2b/.test(e.clip)){g="rect(0px "+q+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){g="rect("+j+"px "+q+"px "+j+"px 0px)"}else{if(/zoom/.test(e.clip)){var o=parseInt(j/2);var f=parseInt(q/2);g="rect("+o+"px "+f+"px "+o+"px "+f+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var k=e.cssBefore.clip.match(/(\d+)/g);var u=parseInt(k[0]),c=parseInt(k[1]),n=parseInt(k[2]),i=parseInt(k[3]);e.before.push(function(w,h,t){if(w==h){return}var d=a(w),b=a(h);a.fn.cycle.commonReset(w,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13))-1;(function v(){var y=u?u-parseInt(r*(u/l)):0;var z=i?i-parseInt(r*(i/l)):0;var A=n<j?n+parseInt(r*((j-n)/l||1)):j;var x=c<q?c+parseInt(r*((q-c)/l||1)):q;b.css({clip:"rect("+y+"px "+x+"px "+A+"px "+z+"px)"});(r++<=l)?setTimeout(v,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);;(function($){$.extend({progressBar:new function(){this.defaults={increment:2,speed:15,showText:true,width:120,boxImage:'/images/progressbar.gif',barImage:'/images/progressbg_orange.gif',height:12};this.construct=function(arg1,arg2){var argpercentage=null;var argconfig=null;if(arg1!=null){if(!isNaN(arg1)){argpercentage=arg1;if(arg2!=null){argconfig=arg2;}}else{argconfig=arg1;}}
return this.each(function(child){var pb=this;if(argpercentage!=null&&this.bar!=null&&this.config!=null){this.config.tpercentage=argpercentage;if(argconfig!=null)
pb.config=$.extend(this.config,argconfig);}else{var $this=$(this);var config=$.extend({},$.progressBar.defaults,argconfig);var percentage=argpercentage;if(argpercentage==null)
var percentage=$this.html().replace("%","");$this.html("");var bar=document.createElement('img');var text=document.createElement('span');bar.id=this.id+"_percentImage";text.id=this.id+"_percentText";bar.src=config.boxImage;bar.width=config.width;var $bar=$(bar);var $text=$(text);this.bar=$bar;this.ntext=$text;this.config=config;this.config.cpercentage=0;this.config.tpercentage=percentage;$bar.css("width",config.width+"px");$bar.css("height",config.height+"px");$bar.css("background-image","url("+config.barImage+")");$bar.css("padding","0");$bar.css("margin","0");$this.append($bar);$this.append($text);bar.alt=this.tpercentage;bar.title=this.tpercentage;}
var t=setInterval(function(){var config=pb.config;var cpercentage=parseInt(config.cpercentage);var tpercentage=parseInt(config.tpercentage);var increment=parseInt(config.increment);var bar=pb.bar;var text=pb.ntext;var pixels=config.width/100;bar.css("background-position",(((config.width*-1))+(cpercentage*pixels))+'px 50%');if(config.showText)
text.html(" "+Math.round(cpercentage)+"%");if(cpercentage>tpercentage){if(cpercentage-increment<tpercentage){pb.config.cpercentage=0+tpercentage}else{pb.config.cpercentage-=increment;}}
else if(pb.config.cpercentage<pb.config.tpercentage){if(cpercentage+increment>tpercentage){pb.config.cpercentage=tpercentage}else{pb.config.cpercentage+=increment;}}
else{clearInterval(t);}},pb.config.speed);});};}});$.fn.extend({progressBar:$.progressBar.construct});})(jQuery);
