(function(a){function b(b,c){var d=a.extend({},{banner_width:"",banner_height:"",image_sprite:"fmslideshow_assets/sprite.png",image_background:"",image_topShadow:"",image_bottomShadow:"",image_loader:"fmslideshow_assets/loader_img.png",background_fullScreen:false,background_move:false,background_moveDistance:500,
											
											
											buttons_type:0,buttons_autoHide:false,buttons_align:"BC",buttons_spacing:"10,0", buttons_hide: true
											
											
											,button_nextPrevious_type:0,button_nextPrevious_autoHide:true,button_next_align:"RC",button_next_spacing:"20,0",button_previous_align:"LC",button_previous_spacing:"20,0",slideShow:true,slideShow_delayTime:1.5,slideShow_loop:true,default_data_align:"LC",default_data_spacing:"70,0",default_data_inOutDirection:"LR",default_data_inOutDistance:"60"},c);var e=a.browser.msie&&parseInt(a.browser.version,10)==8?true:false;var f=a.browser.msie&&parseInt(a.browser.version,10)==7?true:false;var g=a.browser.msie&&parseInt(a.browser.version,10)==6?true:false;var h=a(b);var i;a(h.children()).each(function(){if(a(this).attr("id")=="fmslideshow"){i=a(this)}});var j=d.image_sprite;var k=0;var l=0;var m=d.banner_width;var n=0;var o=0;var p=0;var q=0;var r=false;var s=false;var t=false;var u=[];var v=[];var w=400;var x=500;var y=200;var z=200;var A=100;var B=d.background_moveDistance;var C=d.background_move;var D="easeOutSine";var E="easeInQuad";var F="easeInOutQuad";var G=[];var H=0;var I=0;var J=-1;var K;var L;var M;var N=[];var O;var P=d.slideShow;var Q=P;var R=Number(d.slideShow_delayTime)*2500;var S;var T=Number(d.buttons_type)?Number(d.buttons_type)>0&&Number(d.buttons_type)<3?Number(d.buttons_type):0:0;var U=T==0?24:T==1?22:25;var V=T==0?24:T==1?30:44;var W=T==0?0:T==1?39:80;var X=T==1?15:T==2?7:0;var Y;var Z;var _=d.slideShow_loop;var ba=Number(d.button_nextPrevious_type)?Number(d.button_nextPrevious_type):0;var bb=ba==2?36:ba==0?29:40;var bc=ba==2?0:ba==0?43:80;var bd=d.buttons_align.toUpperCase();var be=d.buttons_spacing.split(",");var bf=d.button_next_align.toUpperCase();var bg=d.button_next_spacing.split(",");var bh=d.button_previous_align.toUpperCase();var bi=d.button_previous_spacing.split(",");var bj=d.button_nextPrevious_autoHide||d.buttons_autoHide;var bk=d.button_nextPrevious_autoHide;var bl=[];var bm=d.buttons_autoHide;var bn;var bo=d.image_loader;var bp;if("ontouchstart"in document.documentElement){bm=bk=false}if(g){var bq=j.split(".");j=bq[0]+"_ie6.gif"}var br=[];var bs=-1;a("<style type='text/css'> .cufon_fm{} </style>").appendTo(h);h.css({"background-position":"0px 0px",visibility:"hidden"});if(d.banner_height!=""){i.css({height:d.banner_height})}i.css({position:"relative",margin:"0 auto",overflow:"hidden",visibility:"hidden"});a(i.children()).each(function(){bs=bs+1;v[bs]=[];br[bs]=false;u[bs]=a(this);var b=-1;a(this).children().each(function(){var c=a(this);b=b+1;if(c.get(0).nodeName.toUpperCase()=="A"){c=c.children()}c.wrap("<div />");c.css({position:"absolute"});if(c.attr("data-align")){c.parent().data("data-align",c.attr("data-align").toUpperCase())}else{c.parent().data("data-align",d.default_data_align.toUpperCase());c.removeAttr("data-align")}if(c.attr("data-spacing")){c.parent().data("spacingObj",c.attr("data-spacing"))}else{c.parent().data("spacingObj",d.default_data_spacing);c.removeAttr("data-spacing")}if(c.attr("data-inOutDirection")){c.parent().data("inOutDirection",c.attr("data-inOutDirection").toUpperCase())}else{c.parent().data("inOutDirection",d.default_data_inOutDirection.toUpperCase());c.removeAttr("data-inOutDirection")}if(c.attr("data-inOutDirection")){c.parent().data("inOutDistance",c.attr("data-inOutDistance"))}else{c.parent().data("inOutDistance",d.default_data_inOutDistance);c.removeAttr("data-inOutDistance")}if(c.children().length>1){var e;var f=false;var h;c.children().each(function(){h=a(this);if(h.attr("id")=="bg"){e=h;f=true}else{if(f){h.css({position:"relative"})}}});if(f){if(!g){e.css({width:"100%",height:"100%",position:"absolute"})}else{e.css({width:"100%",height:h.height()+12+"px",position:"absolute"})}}}if(c.html()==""){c.parent().data("img-src",c.attr("src"));c.attr("src","");c.parent().css({overflow:"hidden","background-repeat":"no-repeat",position:"absolute",visibility:"hidden"});c.parent().append("<div />");v[bs][b]=c.parent()}else{c.parent().css({width:c.width(),height:c.height(),position:"absolute"})}v[bs][b]=c.parent();if(c.html()==""){c.remove()}v[bs][b].css({visibility:"hidden"})})});a(i.children()).wrapAll("<div />");var bt=a(i.children());bt.css({position:"absolute",visibility:"visible",width:"100%",height:i.height()+"px"});i.prepend("<div />");bp=i.children(":first-child");bp.attr("id","ts");bp.css({position:"absolute",visibility:"visible",width:"100%",height:i.height()+"px"});if(!d.background_fullScreen){h.css({width:m+"px"})}if(d.image_background!=""){G.push(d.image_background)}if(d.image_topShadow!=""){G.push(d.image_topShadow)}if(d.image_bottomShadow!=""){G.push(d.image_bottomShadow)}if(bo!=""){G.push(bo)}G.push(j);var bu=0;var bv=0;var bw=function(){if(H<G.length){var b=a("<img />");b.hide();b.bind("load",function(){if(G[H]==d.image_topShadow){bu=b.height()}if(G[H]==d.image_bottomShadow){bv=b.height()}if(G[H]==j){k=b.width();l=b.height()}a(this).remove();H++;bw()}).error(function(){a(this).remove();H++;bw()});i.append(b);b.attr("src",G[H])}else{h.css({visibility:"hidden"});h.css({display:"none"});h.prepend("<div ></div>");K=h.children(":first-child");K.css({width:"100%",height:bu+"px",position:"absolute",top:"0px",left:"0px","background-repeat":"repeat-x"});h.prepend("<div ></div>");L=h.children(":first-child");L.css({width:"100%",height:bv+"px",position:"absolute",bottom:"0px",left:"0px","background-repeat":"repeat-x"});if(g){L.css({bottom:-bv+"px"})}if(d.image_background!=""){h.css({"background-image":"url("+d.image_background+")","background-position":"0px"})}if(d.image_topShadow!=""){K.css({"background-image":"url("+d.image_topShadow+")"})}if(d.image_bottomShadow!=""){L.css({"background-image":"url("+d.image_bottomShadow+")"})}h.css({visibility:"visible"});h.fadeIn(w);bx();bZ(U,V,u.length);bD();var c;a(window).resize(function(){clearInterval(c);c=setInterval(function(){clearInterval(c);by()},200)})}};var bx=function(){if((h.css("width")=="0px"||h.css("width")=="auto")&&m==0){m=parseInt(h.css("width"))}if(m>a(window).width()){i.css("width","100%")}else{i.css("width",m+"px")}if(!s){s=true;if(parseInt(i.css("height"))==0){r=true;i.css("height",a(window).height()+"px")}}var b=v.length;for(var c=0;c<v.length;c++){a(v[c]).css("z-index",b);for(var d=0;d<v[c].length;d++){v[c][d].css({width:"auto",height:"auto"});bJ(c,d)}}K.css("z-index",b+1);L.css("z-index",b+2);i.prepend("<div />");M=i.children(":first-child");M.css({position:"absolute","z-index":2});M.append("<div />");O=a(M.children(":first-child"));M.css({display:"none"});i.prepend("<div />");bn=i.children(":first-child");bn.css({position:"absolute",height:"18px","z-index":b+6,visibility:"visible",display:"none"});bn.prepend("<div />");var e=bn.children(":first-child");e.css({position:"absolute",width:"22px",height:"18px",overflow:"hidden"});e.prepend("<div />");var f=e.children(":first-child");f.css({position:"absolute",width:"22px",height:"200px",top:"0px",left:"0px"});if(a.browser.msie){f.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+bo+", sizingMethod='noscale')"})}else{f.css({"background-image":"url("+bo+")"})}bL(bn,"C",[0,0],parseInt(i.width())-parseInt(bn.width()),parseInt(i.height())-parseInt(bn.height()));bn.fadeIn(500);bz(f)};var by=function(){if(r){if(m>a(window).width()){i.css("width","100%");bt.css("width","100%")}else{i.css("width",m+"px");bt.css("width",m+"px")}}if(t){M.css({left:Math.round((parseInt(i.width())-parseInt(M.width()))/2)+"px"})}for(var b=0;b<v[bP].length;b++){bJ(bP,b)}if(Y&&Z){bL(Y,bf,bg,parseInt(i.width())-parseInt(Y.width()),parseInt(i.height())-parseInt(Y.height()));bL(Z,bh,bi,parseInt(i.width())-parseInt(Z.width()),parseInt(i.height())-parseInt(Z.height()))}if(M){bL(M,bd,be,parseInt(i.width())-parseInt(M.width()),parseInt(i.height())-parseInt(M.height()))}if(bn){bL(bn,"C",[0,0],parseInt(i.width())-parseInt(bn.width()),parseInt(i.height())-parseInt(bn.height()))}};var bz=function(a){bA=setInterval(function(){bC(a)},30)};var bA;var bB=0;var bC=function(a){bB=bB<162?bB+18:0;a.css({top:-bB+"px"})};var bD=function(){J++;if(J>=v[I].length){J=0;br[I]=true;I++}if(I==1&&J==0){bn.fadeOut(300);i.css({display:"show"});for(var a=0;a<bl.length;a++){bl[a].show();bl[a].fadeTo("fast",1)}if(_){Z.show();leftBt.fadeTo("fast",1)}else{Z.fadeTo("fast",.2)}M.css({visibility:"visible"});for(a=0;a<bl.length;a++){bl[a].fadeTo("slow",0)}i.hide();i.fadeIn(500,function(){bI(0,true)});bX()}if(I<v.length){bH()}else{bn.fadeOut(300,function(){bn.remove()})}};var bE=false;var bF;var bG=function(){clearInterval(bF);if(bE){bE=false;bD()}else{bF=setInterval(function(){bG()},20)}};var bH=function(){var b=v[I][J];var c=b.children();if(b.text()==""){var d=a("<img>");d.hide();d.bind("load",function(){b.css({width:d.width()+"px",height:d.height()+"px"});c.css({width:d.width()+"px",height:d.height()+"px"});if(a.browser.msie){c.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.data("img-src")+", sizingMethod='noscale')"})}else{c.css({"background-image":"url("+b.data("img-src")+")"})}a(this).remove();bE=true}).error(function(){b.css({width:d.width()+"px",height:d.height()+"px"});c.css({width:d.width()+"px",height:d.height()+"px"});a(this).remove();bE=true});i.append(d);d.attr("src",b.data("img-src"))}else{bE=true}bF=setInterval(function(){bG()},20)};var bI=function(b,c){for(var d=0;d<bM.length;d++){clearInterval(bM[d])}for(var e=0;e<bN.length;e++){clearInterval(bN[e])}if(c){bt.css({left:"0px"});for(var f=0;f<v[n].length;f++){bQ(f)}}else{if(C){if(a.browser.msie){if(p>b){h.animate({"background-position-x":"+=1000"+"px"},{queue:false,duration:B,easing:F})}else{h.animate({"background-position-x":"-=1000"+"px"},{queue:false,duration:B,easing:F})}}else{if(p>b){h.animate({"background-position":"+=1000"+"px"},{queue:false,duration:B,easing:F})}else{h.animate({"background-position":"-=1000"+"px"},{queue:false,duration:B,easing:F})}}}p=b;for(var g=0;g<v[n].length;g++){bR(g)}}};var bJ=function(b,c){var d=a(v[b][c]);var e=a(v[b][c-1]);d.css({left:"auto",right:"auto",top:"auto",bottom:"auto"});var f=String(d.data("data-align"));var g=[];g[0]=g[1]=0;if(String(d.data("spacingObj"))!="undefined"){g=d.data("spacingObj").split(",");g[0]=isNaN(g[0])?0:g[0];g[1]=isNaN(g[1])?0:g[1]}d.show();bL(d,f,g,parseInt(i.width())-parseInt(d.width()),parseInt(i.height())-parseInt(d.height()));if(d.children(":first-child").text()!=""){d.children(":first-child").css({position:""})}if(d.data("data-align")==e.data("data-align")){if(d.children(":first-child").html()!=""){if(f.substring(0,1)=="B"){d.css({bottom:Number(e.data("pB"))-Number(d.height())-Number(g[0])+"px"})}else{if(!isNaN(e.height())){if(f=="LC"||f=="RC"){d.css({top:Number(e.data("pT"))+Number(e.height())+Number(g[1])+"px"})}else{d.css({top:Number(e.data("pT"))+Number(e.height())+Number(g[0])+"px"})}}}}else{if(d.children(":first-child").html()==""){if(f.substring(0,1)=="L"){d.css({left:Number(e.data("pL"))+Number(e.width())+Number(g[0])+"px"})}else{d.css({right:Number(e.data("pR"))-Number(d.width())-Number(g[0])+"px"})}}}}if(d.children(":first-child").html()!=""){d.data({pT:parseInt(d.css("top"))});d.data({pB:parseInt(d.css("bottom"))})}if(d.children(":first-child").html()==""){d.data({pL:parseInt(d.css("left"))});d.data({pR:parseInt(d.css("right"))})}};var bK=function(b,c){var d=a(v[n][b]);var g=isNaN(d.data("inOutDistance"))?50:Number(d.data("inOutDistance"));var h=String(d.data("inOutDirection"));var i=0;if(c&&d.text()!=""&&!d.data("cufon")&&typeof Cufon!="undefined"){d.data("cufon",true);d.css({visibility:"visible"});d.show();Cufon.replace(d.find(".cufon_fm"));d.hide()}bJ(n,b);if(c){u[n].css({visibility:"visible",display:"show"});if(h.substring(0,1)=="T"||h.substring(0,1)=="B"){if(d.css("top")!="auto"){i=parseInt(d.css("top"));if(h.substring(0,1)=="T"){d.css({top:i-Number(g)+"px"})}else{d.css({top:i+Number(g)+"px"})}d.animate({top:i+"px"},{queue:false,duration:w,easing:D})}else{i=parseInt(d.css("bottom"));if(h.substring(0,1)=="T"){d.css({bottom:i+Number(g)+"px"})}else{d.css({bottom:i-Number(g)+"px"})}d.animate({bottom:i+"px"},{queue:false,duration:w,easing:D})}}i=0;if(h.substring(0,1)=="L"||h.substring(0,1)=="R"){if(d.css("left")!="auto"){i=parseInt(d.css("left"));if(h.substring(0,1)=="L"){d.css({left:i-Number(g)+"px"})}else{d.css({left:i+Number(g)+"px"})}d.animate({left:i+"px"},{queue:false,duration:w,easing:D})}else{i=parseInt(d.css("right"));if(h.substring(0,1)=="R"){d.css({right:i-Number(g)+"px"})}else{d.css({right:i+Number(g)+"px"})}d.animate({right:i+"px"},{queue:false,duration:w,easing:D})}}if(!e||d.text()==""){d.css({display:"none"});d.css({visibility:"visible"});j=f?200:x;d.fadeIn(j)}else{d.css({display:"show"});d.css({visibility:"hidden"});b$(d.get(0))}if(n!=p){if(q>=v[n].length){q=0;n=p;bI(n,false)}}else{q++}}else{if(h.substring(1,2)=="T"||h.substring(1,2)=="B"){if(d.css("top")!="auto"){i=parseInt(d.css("top"));if(h.substring(1,2)=="T"){d.animate({top:i-Number(g)+"px"},{queue:false,duration:w,easing:E})}else{d.animate({top:i+Number(g)+"px"},{queue:false,duration:w,easing:E})}}else{i=parseInt(d.css("bottom"));if(h.substring(1,2)=="T"){d.animate({bottom:i+Number(g)+"px"},{queue:false,duration:w,easing:E})}else{d.animate({bottom:i-Number(g)+"px"},{queue:false,duration:w,easing:E})}}}if(h.substring(1,2)=="L"||h.substring(1,2)=="R"){if(d.css("left")!="auto"){i=parseInt(d.css("left"));if(h.substring(1,2)=="L"){d.animate({left:i-Number(g)+"px"},{queue:false,duration:w,easing:E})}else{d.animate({left:i+Number(g)+"px"},{queue:false,duration:w,easing:E})}}else{i=parseInt(d.css("right"));if(h.substring(1,2)=="R"){d.animate({right:i-Number(g)+"px"},{queue:false,duration:w,easing:E})}else{d.animate({right:i+Number(g)+"px"},{queue:false,duration:w,easing:E})}}}var j=!e||d.text()==""?y:300;d.fadeOut(j,function(){d.css({display:"show"});d.css({visibility:"hidden"});o++;if(o>=v[n].length){o=0;n=p;for(var a=0;a<u.length;a++){for(var b=0;b<v[a].length;b++){v[a][b].css({visibility:"hidden",display:"none"})}}u[n].css({visibility:"visible"});bI(n,true)}})}};var bL=function(a,b,c,d,e){if(b=="TL"){a.css({top:c[0]+"px"});a.css({left:c[1]+"px"})}if(b=="TC"){a.css({top:c[0]+"px"});a.css({left:Number(d/2)+Number(c[1])+"px"})}if(b=="TR"){a.css({top:c[0]+"px"});a.css({right:c[1]+"px"})}if(b=="LC"){a.css({left:c[0]+"px"});a.css({top:Number(e/2)+Number(c[1])+"px"})}if(b=="C"){a.css({top:Number(e/2)+Number(c[0])+"px"});a.css({left:Number(d/2)+Number(c[1])+"px"})}if(b=="RC"){a.css({right:c[0]+"px"});a.css({top:Number(e/2)+Number(c[1])+"px"})}if(b=="BL"){a.css({bottom:c[0]+"px"});a.css({left:c[1]+"px"})}if(b=="BC"){a.css({bottom:c[0]+"px"});a.css({left:Number(d/2)+Number(c[1])+"px"})}if(b=="BR"){a.css({bottom:c[0]+"px"});a.css({right:c[1]+"px"})}};var bM=[];var bN=[];var bO;var bP=0;var bQ=function(a){bM[a]=setInterval(function(){bS(a)},z*a)};var bR=function(a){bN[a]=setInterval(function(){bT(a)},A*a)};var bS=function(a){clearInterval(bM[a]);bK(a,true)};var bT=function(a){clearInterval(bN[a]);bK(a,false)};var bU=function(){clearInterval(S);if(n!=bP&&br[bP]){q=0;clearInterval(bO);bI(bP,false);if(bn){bn.fadeOut(300)}if(Q){clearInterval(S);S=setInterval(function(){bV()},R)}}if(!br[bP]){if(bn){bn.fadeIn(300)}}};var bV=function(){if(Number(bP)<v.length-1){var a=Number(bP)+1;bW(a)}else{if(_){bW(0)}}};var bW=function(a){N[bP].css({"background-position":0+"px "+ -W+"px"});bP=a;N[bP].css({"background-position":-(U*2)+"px "+ -W+"px"});Y.data("hid",false);Z.data("hid",false);Y.css({cursor:"pointer"});Z.css({cursor:"pointer"});if(!(Number(bP)>v.length-2&&Number(bP)<1)&&!Q||!bk){Y.fadeTo("fast",1);Z.fadeTo("fast",1)}if(!_){if(Number(bP)>v.length-2){Y.children(":first-child").css({right:0+"px ",bottom:-bc+"px"});Y.data("hid",true);Y.css({cursor:""});if(!Q||!bk){Y.fadeTo("fast",.2);Z.fadeTo("fast",1)}}if(Number(bP)<1){Z.data("hid",true);Z.children(":first-child").css({left:0+"px ",bottom:-bc+"px"});Z.css({cursor:""});if(!Q||!bk){Z.fadeTo("fast",.2);Y.fadeTo("fast",1)}}}clearInterval(S);bO=setInterval(function(){bU()},27)};var bX=function(){clearInterval(S);if(P){S=setInterval(function(){bV()},R)}if(!bm){if(a.browser.msie){M.show()}else{M.fadeIn()}}if(!bk){if(a.browser.msie){Y.show()}else{Y.fadeIn()}}if(P||bj){h.bind("mouseover mouseleave",function(a){bY(String(a.type))})}};var bY=function(b){if(b==""){if(P){Q=false;clearInterval(S)}if(bj){if(a.browser.msie){M.fadeIn(100)}for(var c=0;c<bl.length;c++){if(!bl[c].data("hid")){bl[c].fadeTo("fast",1);bl[c].show()}else{if(_){bl[c].fadeTo("fast",1);bl[c].show()}else{bl[c].fadeTo("fast",.2)}}}}}else{if(a.browser.msie&&bm){M.fadeOut(100)}if(P){Q=true;clearInterval(S);S=setInterval(function(){bV()},R)}if(bj){for(c=0;c<bl.length;c++){bl[c].fadeTo("fast",0)}}}};var bZ=function(b,c,d){O.css({top:"0px",left:"0"});O.prepend("<div />");O.children(":first-child").css({width:X+"px",height:V+1+"px","background-image":"url("+j+")",position:"absolute",top:"0px",left:"0","background-repeat":"no-repeat"});if(T==1){O.children(":first-child").css({"background-position":-65+"px "+ -W+"px",left:"0px"})}if(T==2){O.children(":first-child").css({"background-position":-77+"px "+ -W+"px",left:"0px"})}for(var e=0;e<d;e++){O.append("<div ></div>");O.children(":last-child").css({left:(b-1)*e+X+"px",position:"absolute",width:b-1,height:c,top:"0px",cursor:"pointer","background-image":"url("+j+")","background-position":"0px "+ -W+"px"});N[e]=O.children(":last-child");N[e].data("nam",e);if(T==2){N[e].append("<div />");N[e].children(":last-child").text(e+1);N[e].css({"padding-top":N[e].height()/2-2+"px"})}N[e].addClass("buttonText");b_(N[e]);O.css({height:c+"px"})}O.prepend("<div />");O.children(":first-child").css({width:X+"px",height:V+1+"px",left:(b-1)*e+X+"px","background-image":"url("+j+")",position:"absolute","background-repeat":"no-repeat"});if(T==1){O.children(":first-child").css({"background-position":-87+"px "+ -W+"px"})}if(T==2){O.children(":first-child").css({"background-position":-103+"px "+ -W+"px"})}O.css({visibility:"visible"});M.css({width:parseInt(b*e)+X*2+"px"});bL(M,bd,be,parseInt(i.width())-parseInt(M.width()),parseInt(i.height())-parseInt(M.height()));O.fadeTo("fast",1);N[0].css({"background-position":-(U*2)+"px "+ -W+"px"});i.prepend("<div  />");Y=i.children(":first-child");Y.css({width:bb+"px",height:bb+"px",position:"absolute","z-index":v.length+2,visibility:"visible",overflow:"hidden",cursor:"pointer"});Y.prepend("<div />");rightBt=Y.children(":first-child");rightBt.css({position:"absolute",visibility:"visible",width:k+"px",height:l+"px",right:"0px",bottom:-bc+"px"});if(a.browser.msie){rightBt.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+j+", sizingMethod='noscale')"})}else{rightBt.css({"background-image":"url("+j+")"})}Y.data({nam:"rBtn",hid:false});b_(Y);Y.show();bL(Y,bf,bg,parseInt(i.width())-parseInt(Y.width()),parseInt(i.height())-parseInt(Y.height()));i.prepend("<div  />");Z=i.children(":first-child");Z.css({position:"absolute",width:bb-1+"px",height:bb+"px","z-index":v.length+3,visibility:"visible",overflow:"hidden",cursor:"pointer"});Z.prepend("<div />");leftBt=Z.children(":first-child");leftBt.css({position:"absolute",width:k+"px",height:l+"px",visibility:"visible",left:"0px",bottom:-bc+"px"});if(a.browser.msie){leftBt.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+j+", sizingMethod='noscale')"})}else{leftBt.css({"background-image":"url("+j+")"})}Z.data({nam:"lBtn",hid:false});b_(Z);Y.hide();Z.hide();leftBt.fadeTo("fast",1);rightBt.fadeTo("fast",1);if(!_){Z.css({cursor:""});Z.data("hid",true)}bL(Z,bh,bi,parseInt(i.width())-parseInt(Z.width()),parseInt(i.height())-parseInt(Z.height()));if(bk){bl=[Z,Y]}if(!a.browser.msie){if(bm){bl.push(M)}}};var b$=function(a){a.style.filter="blendTrans(duration=.2)";if(a.filters.blendTrans.status!=2){a.filters.blendTrans.apply();a.style.visibility="visible";a.filters.blendTrans.play()}};var b_=function(a){a.bind("mouseover mouseup mouseleave",function(){if(P){clearInterval(S)}if(a.data("nam")!="rBtn"&&a.data("nam")!="lBtn"){if(bP!=a.data("nam")){a.css({"background-position":-U+"px "+ -W+"px"})}}else{if(!a.data("hid")){if(a.data("nam")=="rBtn"){a.children(":first-child").css({right:-bb+"px ",bottom:-bc+"px"})}else{a.children(":first-child").css({left:-bb+"px ",bottom:-bc+"px"})}}}});a.bind("mouseout",function(){if(a.data("nam")!="rBtn"&&a.data("nam")!="lBtn"){if(bP!=a.data("nam")){a.css({"background-position":"0px "+ -W+"px"})}}else{if(!a.data("hid")){if(a.data("nam")=="rBtn"){a.children(":first-child").css({right:0+"px ",bottom:-bc+"px"})}else{a.children(":first-child").css({left:0+"px ",bottom:-bc+"px"})}}}});a.bind("mousedown",function(){if(P){clearInterval(S)}if(a.data("nam")!="rBtn"&&a.data("nam")!="lBtn"){if(bP!=a.data("nam")){a.css({"background-position":-(U*2)+"px "+ -W+"px"})}}else{if(!a.data("hid")){if(a.data("nam")=="rBtn"){a.children(":first-child").css({right:-bb*2+"px ",bottom:-bc+"px"})}else{a.children(":first-child").css({left:-bb*2+"px ",bottom:-bc+"px"})}}}});a.bind("click",function(){if(P){clearInterval(S)}if(a.data("nam")!="rBtn"&&a.data("nam")!="lBtn"){if(bP!=a.data("nam")){bW(a.data("nam"))}}else{if(a.data("nam")=="rBtn"){if(bP<v.length-1){a.children(":first-child").css({right:-bb+"px ",bottom:-bc+"px"});bW(Number(bP)+1)}else{if(_){bW(0)}}}else{if(bP>0){a.children(":first-child").css({left:-bb+"px ",bottom:-bc+"px"});bW(Number(bP)-1)}else{if(_){bW(v.length-1)}}}}})};var ca=i.children();var cb=0;var cc=0;try{document.createEvent("TouchEvent");a(ca).each(function(){this.ontouchstart=function(a){ce(a);return true};this.ontouchend=function(a){a.preventDefault();a.stopPropagation();cf()};this.ontouchmove=function(a){cg(a);a.preventDefault();a.stopPropagation();return false}})}catch(cd){}var ce=function(a){if(P){Q=false;clearInterval(S)}cb=a.targetTouches[0].clientX};var cf=function(){if(Number(cb)!=Number(cc)){if(Number(cb)>Number(cc)){if(Number(cb)-Number(cc)>100){if(bP<v.length-1){bW(Number(bP)+1)}else{if(_){bW(0)}else{bt.css({left:"0px"})}}}else{bt.css({left:"0px"})}}else{if(Number(cc)-Number(cb)>100){if(bP>0){bW(Number(bP)-1)}else{if(_){bW(v.length-1)}else{bt.css({left:"0px"})}}}else{bt.css({left:"0px"})}}}if(P){Q=true;clearInterval(S);S=setInterval(function(){bV()},R)}cb=cc=0};var cg=function(a){cc=a.targetTouches[0].clientX;var b=Math.round(Math.abs(Number(cc)-Number(cb))*.2)<21?Math.round(Math.abs(Number(cc)-Number(cb))*.2):20;if(Number(cc)>Number(cb)){bt.css({left:Number(b)+"px"})}else{bt.css({left:-Number(b)+"px"})}};bw()}a.fn.fmslideshow=function(c){return this.each(function(){var d=a(this);var e=d.data("GBInstance");if(!e){d.data("GBInstance",new b(this,c))}})}})(jQuery);jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;if(!g)g=e*.3*1.5;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;if((b/=e/2)<1)return d/2*b*b*(((f*=1.525)+1)*b-f)+c;return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c;return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}})
