var animatedcollapse={divholders:{},divgroups:{},lastactiveingroup:{},preloadimages:[],show:function(a){if("object"==typeof a)for(var d=0;d<a.length;d++)this.showhide(a[d],"show");else this.showhide(a,"show")},hide:function(a){if("object"==typeof a)for(var d=0;d<a.length;d++)this.showhide(a[d],"hide");else this.showhide(a,"hide")},toggle:function(a){"object"==typeof a&&(a=a[0]);this.showhide(a,"toggle")},addDiv:function(a,d){this.divholders[a]={id:a,$divref:null,attrs:d};this.divholders[a].getAttr=
function(a){return RegExp(a+"=([^,]+)","i").test(this.attrs)&&0!=parseInt(RegExp.$1)?RegExp.$1:null};this.currentid=a;return this},showhide:function(a,d){var g=this.divholders[a].$divref;if(this.divholders[a]&&1==g.length){var h=this.divgroups[g.attr("groupname")];g.attr("groupname")&&1<h.count&&("show"==d||"toggle"==d&&"none"==g.css("display"))?(h.lastactivedivid&&h.lastactivedivid!=a&&this.slideengine(h.lastactivedivid,"hide"),this.slideengine(a,"show"),h.lastactivedivid=a):this.slideengine(a,d)}},
slideengine:function(a,d){var g=this.divholders[a].$divref,h=this.divholders[a].$togglerimage;if(this.divholders[a]&&1==g.length){var f={height:d};if(g.attr("fade"))f.opacity=d;g.animate(f,g.attr("speed")?parseInt(g.attr("speed")):500,function(){h&&h.attr("src","none"==g.css("display")?h.data("srcs").closed:h.data("srcs").open);if(animatedcollapse.ontoggle)try{animatedcollapse.ontoggle(jQuery,g.get(0),g.css("display"))}catch(a){alert('An error exists inside your "ontoggle" function:\n\n'+a+"\n\nAborting execution of function.")}});
return!1}},generatemap:function(){for(var a={},d=0;d<arguments.length;d++)null!=arguments[d][1]&&(a[arguments[d][0]]=arguments[d][1]);return a},init:function(){var a=this;jQuery(document).ready(function(d){animatedcollapse.ontoggle=animatedcollapse.ontoggle||null;var g=animatedcollapse.urlparamselect(),h=a.getCookie("acopendivids"),f=a.getCookie("acgroupswithpersist");null!=h&&(h="nada"==h?[]:h.split(","));f=null==f||"nada"==f?[]:f.split(",");jQuery.each(a.divholders,function(){this.$divref=d("#"+
this.id);var j=(this.getAttr("persist")||-1!=jQuery.inArray(this.getAttr("group"),f))&&null!=h?-1!=jQuery.inArray(this.id,h)?"block":"none":this.getAttr("hide")?"none":null;"all"==g[0]||-1!=jQuery.inArray(this.id,g)?j="block":"none"==g[0]&&(j="none");this.$divref.css(a.generatemap(["height",this.getAttr("height")],["display",j]));this.$divref.attr(a.generatemap(["groupname",this.getAttr("group")],["fade",this.getAttr("fade")],["speed",this.getAttr("speed")]));if(this.getAttr("group")){var k=a.divgroups[this.getAttr("group")]||
(a.divgroups[this.getAttr("group")]={});k.count=(k.count||0)+1;if(-1!=jQuery.inArray(this.id,g))k.lastactivedivid=this.id,k.overridepersist=1;if(!k.lastactivedivid&&"none"!=this.$divref.css("display")||"block"==j&&"undefined"==typeof k.overridepersist)k.lastactivedivid=this.id;this.$divref.css({display:"none"})}});jQuery.each(a.divgroups,function(){this.lastactivedivid&&"none"!=g[0]&&a.divholders[this.lastactivedivid].$divref.show()});animatedcollapse.ontoggle&&jQuery.each(a.divholders,function(){animatedcollapse.ontoggle(jQuery,
this.$divref.get(0),this.$divref.css("display"))});d("a[rel]").filter('[rel^="collapse["], [rel^="expand["], [rel^="toggle["]').each(function(){this._divids=this.getAttribute("rel").replace(/(^\w+)|(\s+)/g,"").replace(/[\[\]']/g,"");if(1==this.getElementsByTagName("img").length&&a.divholders[this._divids])animatedcollapse.preloadimage(this.getAttribute("data-openimage"),this.getAttribute("data-closedimage")),$togglerimage=d(this).find("img").eq(0).data("srcs",{open:this.getAttribute("data-openimage"),
closed:this.getAttribute("data-closedimage")}),a.divholders[this._divids].$togglerimage=d(this).find("img").eq(0),a.divholders[this._divids].$togglerimage.attr("src","none"==a.divholders[this._divids].$divref.css("display")?$togglerimage.data("srcs").closed:$togglerimage.data("srcs").open);d(this).click(function(){var a=this.getAttribute("rel"),d=""==this._divids?[]:this._divids.split(",");if(0<d.length)return animatedcollapse[/expand/i.test(a)?"show":/collapse/i.test(a)?"hide":"toggle"](d),!1})});
d(window).bind("unload",function(){a.uninit()})})},uninit:function(){var a="",d="";jQuery.each(this.divholders,function(){"none"!=this.$divref.css("display")&&(a+=this.id+",");this.getAttr("group")&&this.getAttr("persist")&&(d+=this.getAttr("group")+",")});a=""==a?"nada":a.replace(/,$/,"");d=""==d?"nada":d.replace(/,$/,"");this.setCookie("acopendivids",a);this.setCookie("acgroupswithpersist",d)},getCookie:function(a){a=RegExp(a+"=[^;]*","i");return document.cookie.match(a)?document.cookie.match(a)[0].split("=")[1]:
null},setCookie:function(a,d,g){if("undefined"!=typeof g){var h=new Date;h.setDate(h.getDate()+g);document.cookie=a+"="+d+"; path=/; expires="+h.toGMTString()}else document.cookie=a+"="+d+"; path=/"},urlparamselect:function(){window.location.search.match(/expanddiv=([\w\-_,]+)/i);return""!=RegExp.$1?RegExp.$1.split(","):[]},preloadimage:function(){for(var a=this.preloadimages,d=0;d<arguments.length;d++)if(arguments[d]&&0<arguments[d].length)a[a.length]=new Image,a[a.length-1].src=arguments[d]}};(function(a){var d,g,h,f,j,k,A,u,z,x,n=0,i={},v=[],w=0,b={},c=[],l=null,y=new Image,B=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,e=/[^\.]\.(swf)\s*$/i,r,m=1,C=0,s="",t,q,o=!1,D=a.extend(a("<div/>")[0],{prop:0}),E=a.browser.msie&&7>a.browser.version&&!window.XMLHttpRequest,H=function(){g.hide();y.onerror=y.onload=null;l&&l.abort();d.empty()},I=function(){!1===i.onError(v,n,i)?(g.hide(),o=!1):(i.titleShow=!1,i.width="auto",i.height="auto",d.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),
F())},G=function(){var b=v[n],c,j,f,h,m,r;H();i=a.extend({},a.fn.fancybox.defaults,"undefined"==typeof a(b).data("fancybox")?i:a(b).data("fancybox"));r=i.onStart(v,n,i);if(!1===r)o=!1;else{"object"==typeof r&&(i=a.extend(i,r));f=i.title||(b.nodeName?a(b).attr("title"):b.title)||"";if(b.nodeName&&!i.orig)i.orig=a(b).children("img:first").length?a(b).children("img:first"):a(b);""===f&&i.orig&&i.titleFromAlt&&(f=i.orig.attr("alt"));c=i.href||(b.nodeName?a(b).attr("href"):b.href)||null;if(/^(?:javascript)/i.test(c)||
"#"==c)c=null;if(i.type){if(j=i.type,!c)c=i.content}else i.content?j="html":c&&(j=c.match(B)?"image":c.match(e)?"swf":a(b).hasClass("iframe")?"iframe":0===c.indexOf("#")?"inline":"ajax");if(j){"inline"==j&&(b=c.substr(c.indexOf("#")),j=0<a(b).length?"inline":"ajax");i.type=j;i.href=c;i.title=f;if(i.autoDimensions)"html"==i.type||"inline"==i.type||"ajax"==i.type?(i.width="auto",i.height="auto"):i.autoDimensions=!1;if(i.modal)i.overlayShow=!0,i.hideOnOverlayClick=!1,i.hideOnContentClick=!1,i.enableEscapeButton=
!1,i.showCloseButton=!1;i.padding=parseInt(i.padding,10);i.margin=parseInt(i.margin,10);d.css("padding",i.padding+i.margin);a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(k.children())});switch(j){case "html":d.html(i.content);F();break;case "inline":if(!0===a(b).parent().is("#fancybox-content")){o=!1;break}a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(b)).bind("fancybox-cleanup",function(){a(this).replaceWith(k.children())}).bind("fancybox-cancel",
function(){a(this).replaceWith(d.children())});a(b).appendTo(d);F();break;case "image":o=!1;a.fancybox.showActivity();y=new Image;y.onerror=function(){I()};y.onload=function(){o=!0;y.onerror=y.onload=null;i.width=y.width;i.height=y.height;a("<img />").attr({id:"fancybox-img",src:y.src,alt:i.title}).appendTo(d);J()};y.src=c;break;case "swf":i.scrolling="no";h='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+i.width+'" height="'+i.height+'"><param name="movie" value="'+c+'"></param>';
m="";a.each(i.swf,function(b,a){h+='<param name="'+b+'" value="'+a+'"></param>';m+=" "+b+'="'+a+'"'});h+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+i.width+'" height="'+i.height+'"'+m+"></embed></object>";d.html(h);F();break;case "ajax":o=!1;a.fancybox.showActivity();i.ajax.win=i.ajax.success;l=a.ajax(a.extend({},i.ajax,{url:c,data:i.ajax.data||{},error:function(b){0<b.status&&I()},success:function(b,a,e){if(200==("object"==typeof e?e:l).status){if("function"==typeof i.ajax.win){r=
i.ajax.win(c,b,a,e);if(!1===r){g.hide();return}if("string"==typeof r||"object"==typeof r)b=r}d.html(b);F()}}}));break;case "iframe":J()}}else I()}},F=function(){var b=i.width,c=i.height,b=-1<b.toString().indexOf("%")?parseInt((a(window).width()-2*i.margin)*parseFloat(b)/100,10)+"px":"auto"==b?"auto":b+"px",c=-1<c.toString().indexOf("%")?parseInt((a(window).height()-2*i.margin)*parseFloat(c)/100,10)+"px":"auto"==c?"auto":c+"px";d.wrapInner('<div style="width:'+b+";height:"+c+";overflow: "+("auto"==
i.scrolling?"auto":"yes"==i.scrolling?"scroll":"hidden")+';position:relative;"></div>');i.width=d.width();i.height=d.height();J()},J=function(){var R;var e,l;g.hide();if(f.is(":visible")&&!1===b.onCleanup(c,w,b))a.event.trigger("fancybox-cancel"),o=!1;else{o=!0;a(k.add(h)).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");f.is(":visible")&&"outside"!==b.titlePosition&&f.css("height",f.height());c=v;w=n;b=i;b.overlayShow?(h.css({"background-color":b.overlayColor,opacity:b.overlayOpacity,
cursor:b.hideOnOverlayClick?"pointer":"auto",height:a(document).height()}),h.is(":visible")||(E&&a("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),h.show())):h.hide();q=O();s=b.title||"";C=0;u.empty().removeAttr("style").removeClass();if(!1!==b.titleShow&&(R=e=a.isFunction(b.titleFormat)?b.titleFormat(s,c,w,b):s&&s.length?"float"==b.titlePosition?'<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-'+b.titlePosition+'">'+s+"</div>":!1,s=R)&&""!==s)switch(u.addClass("fancybox-title-"+b.titlePosition).html(s).appendTo("body").show(),b.titlePosition){case "inside":u.css({width:q.width-2*b.padding,marginLeft:b.padding,marginRight:b.padding});C=u.outerHeight(!0);u.appendTo(j);q.height+=C;break;case "over":u.css({marginLeft:b.padding,width:q.width-2*b.padding,bottom:b.padding}).appendTo(j);break;case "float":u.css("left",
-1*parseInt((u.width()-q.width-40)/2,10)).appendTo(f);break;default:u.css({width:q.width-2*b.padding,paddingLeft:b.padding,paddingRight:b.padding}).appendTo(f)}u.hide();if(f.is(":visible"))a(A.add(z).add(x)).hide(),e=f.position(),t={top:e.top,left:e.left,width:f.width(),height:f.height()},l=t.width==q.width&&t.height==q.height,k.fadeTo(b.changeFade,0.3,function(){var c=function(){k.html(d.contents()).fadeTo(b.changeFade,1,K)};a.event.trigger("fancybox-change");k.empty().removeAttr("filter").css({"border-width":b.padding,
width:q.width-2*b.padding,height:i.autoDimensions?"auto":q.height-C-2*b.padding});l?c():(D.prop=0,a(D).animate({prop:1},{duration:b.changeSpeed,easing:b.easingChange,step:L,complete:c}))});else if(f.removeAttr("style"),k.css("border-width",b.padding),"elastic"==b.transitionIn){t=N();k.html(d.contents());f.show();if(b.opacity)q.opacity=0;D.prop=0;a(D).animate({prop:1},{duration:b.speedIn,easing:b.easingIn,step:L,complete:K})}else"inside"==b.titlePosition&&0<C&&u.show(),k.css({width:q.width-2*b.padding,
height:i.autoDimensions?"auto":q.height-C-2*b.padding}).html(d.contents()),f.css(q).fadeIn("none"==b.transitionIn?0:b.speedIn,K)}},P=function(){(b.enableEscapeButton||b.enableKeyboardNav)&&a(document).bind("keydown.fb",function(c){if(27==c.keyCode&&b.enableEscapeButton)c.preventDefault(),a.fancybox.close();else if((37==c.keyCode||39==c.keyCode)&&b.enableKeyboardNav&&"INPUT"!==c.target.tagName&&"TEXTAREA"!==c.target.tagName&&"SELECT"!==c.target.tagName)c.preventDefault(),a.fancybox[37==c.keyCode?"prev":
"next"]()});b.showNavArrows?((b.cyclic&&1<c.length||0!==w)&&z.show(),(b.cyclic&&1<c.length||w!=c.length-1)&&x.show()):(z.hide(),x.hide())},K=function(){a.support.opacity||(k.get(0).style.removeAttribute("filter"),f.get(0).style.removeAttribute("filter"));i.autoDimensions&&k.css("height","auto");f.css("height","auto");s&&s.length&&u.show();b.showCloseButton&&A.show();P();b.hideOnContentClick&&k.bind("click",a.fancybox.close);b.hideOnOverlayClick&&h.bind("click",a.fancybox.close);a(window).bind("resize.fb",
a.fancybox.resize);b.centerOnScroll&&a(window).bind("scroll.fb",a.fancybox.center);"iframe"==b.type&&a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(a.browser.msie?'allowtransparency="true""':"")+' scrolling="'+i.scrolling+'" src="'+b.href+'"></iframe>').appendTo(k);f.show();o=!1;a.fancybox.center();b.onComplete(c,w,b);var e,l;if(c.length-1>w&&(e=c[w+1].href,"undefined"!==typeof e&&e.match(B)))l=new Image,l.src=e;if(0<w&&(e=c[w-1].href,"undefined"!==
typeof e&&e.match(B)))l=new Image,l.src=e},L=function(a){var c={width:parseInt(t.width+(q.width-t.width)*a,10),height:parseInt(t.height+(q.height-t.height)*a,10),top:parseInt(t.top+(q.top-t.top)*a,10),left:parseInt(t.left+(q.left-t.left)*a,10)};if("undefined"!==typeof q.opacity)c.opacity=0.5>a?0.5:a;f.css(c);k.css({width:c.width-2*b.padding,height:c.height-C*a-2*b.padding})},M=function(){return[a(window).width()-2*b.margin,a(window).height()-2*b.margin,a(document).scrollLeft()+b.margin,a(document).scrollTop()+
b.margin]},O=function(){var a=M(),c={},e=b.autoScale,l=2*b.padding;c.width=-1<b.width.toString().indexOf("%")?parseInt(a[0]*parseFloat(b.width)/100,10):b.width+l;c.height=-1<b.height.toString().indexOf("%")?parseInt(a[1]*parseFloat(b.height)/100,10):b.height+l;if(e&&(c.width>a[0]||c.height>a[1]))if("image"==i.type||"swf"==i.type){e=b.width/b.height;if(c.width>a[0])c.width=a[0],c.height=parseInt((c.width-l)/e+l,10);if(c.height>a[1])c.height=a[1],c.width=parseInt((c.height-l)*e+l,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]+0.5*(a[1]-c.height-40)),10);c.left=parseInt(Math.max(a[2]-20,a[2]+0.5*(a[0]-c.width-40)),10);return c},N=function(){var c=i.orig?a(i.orig):!1,e={};c&&c.length?(e=c.offset(),e.top+=parseInt(c.css("paddingTop"),10)||0,e.left+=parseInt(c.css("paddingLeft"),10)||0,e.top+=parseInt(c.css("border-top-width"),10)||0,e.left+=parseInt(c.css("border-left-width"),10)||0,e.width=c.width(),e.height=c.height(),e={width:e.width+2*b.padding,
height:e.height+2*b.padding,top:e.top-b.padding-20,left:e.left-b.padding-20}):(c=M(),e={width:2*b.padding,height:2*b.padding,top:parseInt(c[3]+0.5*c[1],10),left:parseInt(c[2]+0.5*c[0],10)});return e},Q=function(){g.is(":visible")?(a("div",g).css("top",-40*m+"px"),m=(m+1)%12):clearInterval(r)};a.fn.fancybox=function(b){if(!a(this).length)return this;a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).unbind("click.fb").bind("click.fb",function(b){b.preventDefault();o||(o=!0,a(this).blur(),
v=[],n=0,b=a(this).attr("rel")||"",!b||""==b||"nofollow"===b?v.push(this):(v=a("a[rel="+b+"], area[rel="+b+"]"),n=v.index(this)),G())});return this};a.fancybox=function(b,c){var e;if(!o){o=!0;e="undefined"!==typeof c?c:{};v=[];n=parseInt(e.index,10)||0;if(a.isArray(b)){for(var l=0,j=b.length;l<j;l++)"object"==typeof b[l]?a(b[l]).data("fancybox",a.extend({},e,b[l])):b[l]=a({}).data("fancybox",a.extend({content:b[l]},e));v=jQuery.merge(v,b)}else"object"==typeof b?a(b).data("fancybox",a.extend({},e,
b)):b=a({}).data("fancybox",a.extend({content:b},e)),v.push(b);if(n>v.length||0>n)n=0;G()}};a.fancybox.showActivity=function(){clearInterval(r);g.show();r=setInterval(Q,66)};a.fancybox.hideActivity=function(){g.hide()};a.fancybox.next=function(){return a.fancybox.pos(w+1)};a.fancybox.prev=function(){return a.fancybox.pos(w-1)};a.fancybox.pos=function(a){o||(a=parseInt(a),v=c,-1<a&&a<c.length?(n=a,G()):b.cyclic&&1<c.length&&(n=a>=c.length?0:c.length-1,G()))};a.fancybox.cancel=function(){o||(o=!0,a.event.trigger("fancybox-cancel"),
H(),i.onCancel(v,n,i),o=!1)};a.fancybox.close=function(){function e(){h.fadeOut("fast");u.empty().hide();f.hide();a.event.trigger("fancybox-cleanup");k.empty();b.onClosed(c,w,b);c=i=[];w=n=0;b=i={};o=!1}if(!o&&!f.is(":hidden"))if(o=!0,b&&!1===b.onCleanup(c,w,b))o=!1;else if(H(),a(A.add(z).add(x)).hide(),a(k.add(h)).unbind(),a(window).unbind("resize.fb scroll.fb"),a(document).unbind("keydown.fb"),k.find("iframe").attr("src",E&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),
"inside"!==b.titlePosition&&u.empty(),f.stop(),"elastic"==b.transitionOut){t=N();var l=f.position();q={top:l.top,left:l.left,width:f.width(),height:f.height()};if(b.opacity)q.opacity=1;u.empty().hide();D.prop=1;a(D).animate({prop:0},{duration:b.speedOut,easing:b.easingOut,step:L,complete:e})}else f.fadeOut("none"==b.transitionOut?0:b.speedOut,e)};a.fancybox.resize=function(){h.is(":visible")&&h.css("height",a(document).height());a.fancybox.center(!0)};a.fancybox.center=function(a){var c,e;o||(e=!0===
a?1:0,c=M(),!e&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+0.5*(c[1]-k.height()-40)-b.padding)),left:parseInt(Math.max(c[2]-20,c[2]+0.5*(c[0]-k.width()-40)-b.padding))},"number"==typeof a?a:200))};a.fancybox.init=function(){a("#fancybox-wrap").length||(a("body").append(d=a('<div id="fancybox-tmp"></div>'),g=a('<div id="fancybox-loading"><div></div></div>'),h=a('<div id="fancybox-overlay"></div>'),f=a('<div id="fancybox-wrap"></div>')),j=a('<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),
j.append(k=a('<div id="fancybox-content"></div>'),A=a('<a id="fancybox-close"></a>'),u=a('<div id="fancybox-title"></div>'),z=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),x=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),A.click(a.fancybox.close),g.click(a.fancybox.cancel),z.click(function(b){b.preventDefault();a.fancybox.prev()}),x.click(function(b){b.preventDefault();a.fancybox.next()}),
a.fn.mousewheel&&f.bind("mousewheel.fb",function(b,c){if(o)b.preventDefault();else if(0==a(b.target).get(0).clientHeight||a(b.target).get(0).scrollHeight===a(b.target).get(0).clientHeight)b.preventDefault(),a.fancybox[0<c?"prev":"next"]()}),a.support.opacity||f.addClass("fancybox-ie"),E&&(g.addClass("fancybox-ie6"),f.addClass("fancybox-ie6"),a('<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(j)))};
a.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:0.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,
showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};a(document).ready(function(){a.fancybox.init()})})(jQuery);(function(a){a.fn.extend({imghover:function(d){return this.each(function(){d=a.extend({prefix:"",suffix:"_o",src:"",btnOnly:!0,fade:!1,fadeSpeed:500},d||{});var g=a(this);if(!g.is("img")&&!g.is(":image")){var h="img,:image";d.btnOnly&&(h="a "+h);g.find(h).imghover(d)}else{var f=g.attr("src"),j;d.src?j=d.src:(j=f,d.prefix&&(h=j.lastIndexOf("/"),j=0<h?j.substr(0,h-1)+d.prefix+j.substr(h-1):d.prefix+j),d.suffix&&(h=j.lastIndexOf("."),j=0<h?j.substr(0,h)+d.suffix+j.substr(h):j+d.suffix));if(d.fade){var h=
g.offset(),k=g.clone(!0);k.attr("src",j);k.css({position:"absolute",left:h.left,top:h.top,zIndex:1E3}).hide().insertAfter(g);g.mouseover(function(){var a=g.offset();k.css({left:a.left,top:a.top});k.fadeIn(d.fadeSpeed);g.fadeOut(d.fadeSpeed,function(){g.show()})});k.mouseout(function(){g.fadeIn(d.fadeSpeed);k.fadeOut(d.fadeSpeed)})}else g.hover(function(){g.attr("src",j)},function(){g.attr("src",f)})}})}})})(jQuery);var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};
jaaulde.utils.cookies=function(){var a,d,g,h,f={expiresAt:null,path:"/",domain:null,secure:!1};a=function(a){var d,g;if("object"!==typeof a||null===a)d=f;else{d={expiresAt:f.expiresAt,path:f.path,domain:f.domain,secure:f.secure};if("object"===typeof a.expiresAt&&a.expiresAt instanceof Date)d.expiresAt=a.expiresAt;else if("number"===typeof a.hoursToLive&&0!==a.hoursToLive)g=new Date,g.setTime(g.getTime()+36E5*a.hoursToLive),d.expiresAt=g;if("string"===typeof a.path&&""!==a.path)d.path=a.path;if("string"===
typeof a.domain&&""!==a.domain)d.domain=a.domain;if(!0===a.secure)d.secure=a.secure}return d};d=function(d){d=a(d);return("object"===typeof d.expiresAt&&d.expiresAt instanceof Date?"; expires="+d.expiresAt.toGMTString():"")+"; path="+d.path+("string"===typeof d.domain?"; domain="+d.domain:"")+(!0===d.secure?"; secure":"")};g=function(){var a={},d,g,f,h,x=document.cookie.split(";"),n;for(d=0;d<x.length;d+=1){g=x[d].split("=");f=g[0].replace(/^\s*/,"").replace(/\s*$/,"");try{h=decodeURIComponent(g[1])}catch(i){h=
g[1]}if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.parse)try{n=h,h=JSON.parse(h)}catch(v){h=n}a[f]=h}return a};h=function(){};h.prototype.get=function(a){var d,f,h=g();if("string"===typeof a)d="undefined"!==typeof h[a]?h[a]:null;else if("object"===typeof a&&null!==a)for(f in d={},a)d[a[f]]="undefined"!==typeof h[a[f]]?h[a[f]]:null;else d=h;return d};h.prototype.filter=function(a){var d,f={},h=g();"string"===typeof a&&(a=RegExp(a));for(d in h)d.match(a)&&(f[d]=h[d]);return f};h.prototype.set=
function(a,g,f){if("object"!==typeof f||null===f)f={};if("undefined"===typeof g||null===g)g="",f.hoursToLive=-8760;else if("string"!==typeof g)if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.stringify)g=JSON.stringify(g);else throw Error("cookies.set() received non-string value and could not serialize.");f=d(f);document.cookie=a+"="+encodeURIComponent(g)+f};h.prototype.del=function(a,d){var g={},f;if("object"!==typeof d||null===d)d={};"boolean"===typeof a&&!0===a?g=this.get():"string"===
typeof a&&(g[a]=!0);for(f in g)"string"===typeof f&&""!==f&&this.set(f,null,d)};h.prototype.test=function(){var a=!1;this.set("cT","data");"data"===this.get("cT")&&(this.del("cT"),a=!0);return a};h.prototype.setOptions=function(d){"object"!==typeof d&&(d=null);f=a(d)};return new h}();
(function(){window.jQuery&&function(a){a.cookies=jaaulde.utils.cookies;a.each({cookify:function(d){return this.each(function(){var g,h=["name","id"],f,j=a(this),k;for(g in h)if(!isNaN(g)&&(f=j.attr(h[g]),"string"===typeof f&&""!==f)){j.is(":checkbox, :radio")?j.attr("checked")&&(k=j.val()):k=j.is(":input")?j.val():j.html();if("string"!==typeof k||""===k)k=null;a.cookies.set(f,k,d);break}})},cookieFill:function(){return this.each(function(){var d,g,h=["name","id"],f,j=a(this);for(g=function(){d=h.pop();
return!!d};g();)if(f=j.attr(d),"string"===typeof f&&""!==f){g=a.cookies.get(f);null!==g&&(j.is(":checkbox, :radio")?j.val()===g?j.attr("checked","checked"):j.removeAttr("checked"):j.is(":input")?j.val(g):j.html(g));break}})},cookieBind:function(d){return this.each(function(){var g=a(this);g.cookieFill().change(function(){g.cookify(d)})})}},function(d){a.fn[d]=this})}(window.jQuery)})();(function(a){function d(b){a.fn.cycle.debug&&g(b)}function g(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function h(b,c,d){function f(b,c,d){if(!b&&!0===c){b=a(d).data("cycle.opts");if(!b)return g("options not found, can not resume"),!1;if(d.cycleTimeout)clearTimeout(d.cycleTimeout),d.cycleTimeout=0;x(b.elements,b,1,!b.backwards)}}if(void 0==b.cycleStop)b.cycleStop=0;if(void 0===c||null===c)c={};if(c.constructor==String)switch(c){case "destroy":case "stop":d=
a(b).data("cycle.opts");if(!d)return!1;b.cycleStop++;b.cycleTimeout&&clearTimeout(b.cycleTimeout);b.cycleTimeout=0;a(b).removeData("cycle.opts");"destroy"==c&&j(d);return!1;case "toggle":return b.cyclePause=1===b.cyclePause?0:1,f(b.cyclePause,d,b),!1;case "pause":return b.cyclePause=1,!1;case "resume":return b.cyclePause=0,f(!1,d,b),!1;case "prev":case "next":d=a(b).data("cycle.opts");if(!d)return g('options not found, "prev/next" ignored'),!1;a.fn.cycle[c](d);return!1;default:c={fx:c}}else if(c.constructor==
Number){var h=c,c=a(b).data("cycle.opts");if(!c)return g("options not found, can not advance slide"),!1;if(0>h||h>=c.elements.length)return g("invalid slide index: "+h),!1;c.nextSlide=h;if(b.cycleTimeout)clearTimeout(b.cycleTimeout),b.cycleTimeout=0;if("string"==typeof d)c.oneTimeFx=d;x(c.elements,c,1,h>=c.currSlide);return!1}return c}function f(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function j(b){b.next&&a(b.next).unbind(b.prevNextEvent);
b.prev&&a(b.prev).unbind(b.prevNextEvent);if(b.pager||b.pagerAnchorBuilder)a.each(b.pagerAnchors||[],function(){this.unbind().remove()});b.pagerAnchors=null;b.destroy&&b.destroy(b)}function k(b,c,d,h,B){var e=a.extend({},a.fn.cycle.defaults,h||{},a.metadata?b.metadata():a.meta?b.data():{});if(e.autostop)e.countdown=e.autostopCount||d.length;var j=b[0];b.data("cycle.opts",e);e.$cont=b;e.stopCount=j.cycleStop;e.elements=d;e.before=e.before?[e.before]:[];e.after=e.after?[e.after]:[];!a.support.opacity&&
e.cleartype&&e.after.push(function(){f(this,e)});e.continuous&&e.after.push(function(){x(d,e,0,!e.backwards)});A(e);!a.support.opacity&&e.cleartype&&!e.cleartypeNoBg&&w(c);"static"==b.css("position")&&b.css("position","relative");e.width&&b.width(e.width);e.height&&"auto"!=e.height&&b.height(e.height);if(e.startingSlide)e.startingSlide=parseInt(e.startingSlide);else if(e.backwards)e.startingSlide=d.length-1;if(e.random){e.randomMap=[];for(j=0;j<d.length;j++)e.randomMap.push(j);e.randomMap.sort(function(){return Math.random()-
0.5});e.randomIndex=1;e.startingSlide=e.randomMap[1]}else if(e.startingSlide>=d.length)e.startingSlide=0;e.currSlide=e.startingSlide||0;var m=e.startingSlide;c.css({position:"absolute",top:0,left:0}).hide().each(function(b){b=e.backwards?m?b<=m?d.length+(b-m):m-b:d.length-b:m?b>=m?d.length-(b-m):m-b:d.length-b;a(this).css("z-index",b)});a(d[m]).css("opacity",1).show();f(d[m],e);e.fit&&e.width&&c.width(e.width);e.fit&&e.height&&"auto"!=e.height&&c.height(e.height);if(e.containerResize&&!b.innerHeight()){for(var k=
j=0,s=0;s<d.length;s++){var t=a(d[s]),q=t[0],o=t.outerWidth(),n=t.outerHeight();o||(o=q.offsetWidth||q.width||t.attr("width"));n||(n=q.offsetHeight||q.height||t.attr("height"));j=o>j?o:j;k=n>k?n:k}0<j&&0<k&&b.css({width:j+"px",height:k+"px"})}e.pause&&b.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(!1===u(e))return!1;var E=!1;h.requeueAttempts=h.requeueAttempts||0;c.each(function(){var b=a(this);this.cycleH=e.fit&&e.height?e.height:b.height()||this.offsetHeight||this.height||
b.attr("height")||0;this.cycleW=e.fit&&e.width?e.width:b.width()||this.offsetWidth||this.width||b.attr("width")||0;if(b.is("img")){var b=a.browser.mozilla&&34==this.cycleW&&19==this.cycleH&&!this.complete,c=a.browser.opera&&(42==this.cycleW&&19==this.cycleH||37==this.cycleW&&17==this.cycleH)&&!this.complete,d=0==this.cycleH&&0==this.cycleW&&!this.complete;if(a.browser.msie&&28==this.cycleW&&30==this.cycleH&&!this.complete||b||c||d){if(B.s&&e.requeueOnImageNotLoaded&&100>++h.requeueAttempts)return g(h.requeueAttempts,
" - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){a(B.s,B.c).cycle(h)},e.requeueTimeout),E=!0,!1;g("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0});if(E)return!1;e.cssBefore=e.cssBefore||{};e.cssAfter=e.cssAfter||{};e.cssFirst=e.cssFirst||{};e.animIn=e.animIn||{};e.animOut=e.animOut||{};c.not(":eq("+m+")").css(e.cssBefore);a(c[m]).css(e.cssFirst);if(e.timeout){e.timeout=parseInt(e.timeout);if(e.speed.constructor==
String)e.speed=a.fx.speeds[e.speed]||parseInt(e.speed);e.sync||(e.speed/=2);for(j="none"==e.fx?0:"shuffle"==e.fx?500:250;e.timeout-e.speed<j;)e.timeout+=e.speed}if(e.easing)e.easeIn=e.easeOut=e.easing;if(!e.speedIn)e.speedIn=e.speed;if(!e.speedOut)e.speedOut=e.speed;e.slideCount=d.length;e.currSlide=e.lastSlide=m;if(e.random){if(++e.randomIndex==d.length)e.randomIndex=0;e.nextSlide=e.randomMap[e.randomIndex]}else e.nextSlide=e.backwards?0==e.startingSlide?d.length-1:e.startingSlide-1:e.startingSlide>=
d.length-1?0:e.startingSlide+1;if(!e.multiFx)if(j=a.fn.cycle.transitions[e.fx],a.isFunction(j))j(b,c,e);else if("custom"!=e.fx&&!e.multiFx)return g("unknown transition: "+e.fx,"; slideshow terminating"),!1;b=c[m];e.before.length&&e.before[0].apply(b,[b,b,e,!0]);e.after.length&&e.after[0].apply(b,[b,b,e,!0]);e.next&&a(e.next).bind(e.prevNextEvent,function(){return i(e,1)});e.prev&&a(e.prev).bind(e.prevNextEvent,function(){return i(e,0)});(e.pager||e.pagerAnchorBuilder)&&v(d,e);z(e,d);return e}function A(b){b.original=
{before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function u(b){var c,l,f=a.fn.cycle.transitions;if(0<b.fx.indexOf(",")){b.multiFx=!0;b.fxs=b.fx.replace(/\s*/g,"").split(",");for(c=0;c<b.fxs.length;c++){var h=b.fxs[c];l=f[h];if(!l||!f.hasOwnProperty(h)||
!a.isFunction(l))g("discarding unknown transition: ",h),b.fxs.splice(c,1),c--}if(!b.fxs.length)return g("No valid transitions named; slideshow terminating."),!1}else if("all"==b.fx)for(p in b.multiFx=!0,b.fxs=[],f)l=f[p],f.hasOwnProperty(p)&&a.isFunction(l)&&b.fxs.push(p);if(b.multiFx&&b.randomizeEffects){l=Math.floor(20*Math.random())+30;for(c=0;c<l;c++)f=Math.floor(Math.random()*b.fxs.length),b.fxs.push(b.fxs.splice(f,1)[0]);d("randomized fx sequence: ",b.fxs)}return!0}function z(b,c){b.addSlide=
function(d,f){var g=a(d),e=g[0];b.autostopCount||b.countdown++;c[f?"unshift":"push"](e);if(b.els)b.els[f?"unshift":"push"](e);b.slideCount=c.length;g.css("position","absolute");g[f?"prependTo":"appendTo"](b.$cont);f&&(b.currSlide++,b.nextSlide++);!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&w(g);b.fit&&b.width&&g.width(b.width);b.fit&&b.height&&"auto"!=b.height&&g.height(b.height);e.cycleH=b.fit&&b.height?b.height:g.height();e.cycleW=b.fit&&b.width?b.width:g.width();g.css(b.cssBefore);(b.pager||
b.pagerAnchorBuilder)&&a.fn.cycle.createPagerAnchor(c.length-1,e,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(g);else g.hide()}}function x(b,c,f,g){if(f&&c.busy&&c.manualTrump)d("manualTrump in go(), stopping active transition"),a(b).stop(!0,!0),c.busy=0;if(c.busy)d("transition active, ignoring new tx request");else{var h=c.$cont[0],e=b[c.currSlide],i=b[c.nextSlide];if(!(h.cycleStop!=c.stopCount||0===h.cycleTimeout&&!f))if(!f&&!h.cyclePause&&!c.bounce&&(c.autostop&&0>=--c.countdown||
c.nowrap&&!c.random&&c.nextSlide<c.currSlide))c.end&&c.end(c);else{var j=!1;if((f||!h.cyclePause)&&c.nextSlide!=c.currSlide){var j=!0,k=c.fx;e.cycleH=e.cycleH||a(e).height();e.cycleW=e.cycleW||a(e).width();i.cycleH=i.cycleH||a(i).height();i.cycleW=i.cycleW||a(i).width();if(c.multiFx){if(void 0==c.lastFx||++c.lastFx>=c.fxs.length)c.lastFx=0;k=c.fxs[c.lastFx];c.currFx=k}if(c.oneTimeFx)k=c.oneTimeFx,c.oneTimeFx=null;a.fn.cycle.resetState(c,k);c.before.length&&a.each(c.before,function(b,a){h.cycleStop==
c.stopCount&&a.apply(i,[e,i,c,g])});var s=function(){c.busy=0;a.each(c.after,function(b,a){h.cycleStop==c.stopCount&&a.apply(i,[e,i,c,g])})};d("tx firing("+k+"); currSlide: "+c.currSlide+"; nextSlide: "+c.nextSlide);c.busy=1;if(c.fxFn)c.fxFn(e,i,c,s,g,f&&c.fastOnEvent);else if(a.isFunction(a.fn.cycle[c.fx]))a.fn.cycle[c.fx](e,i,c,s,g,f&&c.fastOnEvent);else a.fn.cycle.custom(e,i,c,s,g,f&&c.fastOnEvent)}if(j||c.nextSlide==c.currSlide)if(c.lastSlide=c.currSlide,c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==
b.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex];if(c.nextSlide==c.currSlide)c.nextSlide=c.currSlide==c.slideCount-1?0:c.currSlide+1}else c.backwards?(f=0>c.nextSlide-1)&&c.bounce?(c.backwards=!c.backwards,c.nextSlide=1,c.currSlide=0):(c.nextSlide=f?b.length-1:c.nextSlide-1,c.currSlide=f?0:c.nextSlide+1):(f=c.nextSlide+1==b.length)&&c.bounce?(c.backwards=!c.backwards,c.nextSlide=b.length-2,c.currSlide=b.length-1):(c.nextSlide=f?0:c.nextSlide+1,c.currSlide=f?b.length-1:c.nextSlide-1);
j&&c.pager&&c.updateActivePagerLink(c.pager,c.currSlide,c.activePagerClass);j=0;c.timeout&&!c.continuous?j=n(b[c.currSlide],b[c.nextSlide],c,g):c.continuous&&h.cyclePause&&(j=10);if(0<j)h.cycleTimeout=setTimeout(function(){x(b,c,0,!c.backwards)},j)}}}function n(a,c,f,g){if(f.timeoutFn){for(a=f.timeoutFn.call(a,a,c,f,g);"none"!=f.fx&&250>a-f.speed;)a+=f.speed;d("calculated timeout: "+a+"; speed: "+f.speed);if(!1!==a)return a}return f.timeout}function i(b,c){var d=c?1:-1,f=b.elements,g=b.$cont[0],e=
g.cycleTimeout;if(e)clearTimeout(e),g.cycleTimeout=0;if(b.random&&0>d){b.randomIndex--;if(-2==--b.randomIndex)b.randomIndex=f.length-2;else if(-1==b.randomIndex)b.randomIndex=f.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else if(b.nextSlide=b.currSlide+d,0>b.nextSlide){if(b.nowrap)return!1;b.nextSlide=f.length-1}else if(b.nextSlide>=f.length){if(b.nowrap)return!1;b.nextSlide=0}g=b.onPrevNextEvent||b.prevNextClick;a.isFunction(g)&&g(0<d,b.nextSlide,
f[b.nextSlide]);x(f,b,1,c);return!1}function v(b,c){var d=a(c.pager);a.each(b,function(f,g){a.fn.cycle.createPagerAnchor(f,g,d,b,c)});c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function w(b){function c(a){a=parseInt(a).toString(16);return 2>a.length?"0"+a:a}function f(b){for(;b&&"html"!=b.nodeName.toLowerCase();b=b.parentNode){var d=a.css(b,"background-color");if(d&&0<=d.indexOf("rgb"))return b=d.match(/\d+/g),"#"+c(b[0])+c(b[1])+c(b[2]);if(d&&"transparent"!=d)return d}return"#ffffff"}
d("applying clearType background-color hack");b.each(function(){a(this).css("background-color",f(this))})}if(void 0==a.support)a.support={opacity:!a.browser.msie};a.expr[":"].paused=function(a){return a.cyclePause};a.fn.cycle=function(b,c){var f={s:this.selector,c:this.context};if(0===this.length&&"stop"!=b){if(!a.isReady&&f.s)return g("DOM not ready, queuing slideshow"),a(function(){a(f.s,f.c).cycle(b,c)}),this;g("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var i=
h(this,b,c);if(!1!==i){i.updateActivePagerLink=i.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var j=a(this),e=i.slideExpr?a(i.slideExpr,this):j.children(),r=e.get();if(2>r.length)g("terminating; too few slides: "+r.length);else{var m=k(j,e,r,i,f);if(!1!==m&&(j=m.continuous?10:n(r[m.currSlide],r[m.nextSlide],m,!m.backwards)))j+=m.delay||0,10>j&&(j=10),d("first timeout: "+j),this.cycleTimeout=setTimeout(function(){x(r,
m,0,!i.backwards)},j)}}})};a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];a.isFunction(d)&&d(b.$cont,a(b.elements),b)};a.fn.cycle.updateActivePagerLink=
function(b,c,d){a(b).each(function(){a(this).children().removeClass(d).eq(c).addClass(d)})};a.fn.cycle.next=function(a){i(a,1)};a.fn.cycle.prev=function(a){i(a,0)};a.fn.cycle.createPagerAnchor=function(b,c,f,g,h){a.isFunction(h.pagerAnchorBuilder)?(c=h.pagerAnchorBuilder(b,c),d("pagerAnchorBuilder("+b+", el) returned: "+c)):c='<a href="#">'+(b+1)+"</a>";if(c){var e=a(c);if(0===e.parents("body").length){var i=[];1<f.length?(f.each(function(){var b=e.clone(!0);a(this).append(b);i.push(b[0])}),e=a(i)):
e.appendTo(f)}h.pagerAnchors=h.pagerAnchors||[];h.pagerAnchors.push(e);e.bind(h.pagerEvent,function(c){c.preventDefault();h.nextSlide=b;var c=h.$cont[0],e=c.cycleTimeout;if(e)clearTimeout(e),c.cycleTimeout=0;c=h.onPagerEvent||h.pagerClick;a.isFunction(c)&&c(h.nextSlide,g[h.nextSlide]);x(g,h,1,h.currSlide<b)});!/^click/.test(h.pagerEvent)&&!h.allowPagerClickBubble&&e.bind("click.cycle",function(){return!1});h.pauseOnPagerHover&&e.hover(function(){h.$cont[0].cyclePause++},function(){h.$cont[0].cyclePause--})}};
a.fn.cycle.hopsFromLast=function(a,c){var d=a.lastSlide,f=a.currSlide;return c?f>d?f-d:a.slideCount-d:f<d?d-f:d+a.slideCount-f};a.fn.cycle.commonReset=function(b,c,d,f,g,e){a(d.elements).not(b).hide();if("undefined"==typeof d.cssBefore.opacity)d.cssBefore.opacity=1;d.cssBefore.display="block";if(d.slideResize&&!1!==f&&0<c.cycleW)d.cssBefore.width=c.cycleW;if(d.slideResize&&!1!==g&&0<c.cycleH)d.cssBefore.height=c.cycleH;d.cssAfter=d.cssAfter||{};d.cssAfter.display="none";a(b).css("zIndex",d.slideCount+
(!0===e?1:0));a(c).css("zIndex",d.slideCount+(!0===e?0:1))};a.fn.cycle.custom=function(b,c,d,f,g,e){var h=a(b),i=a(c),j=d.speedIn,b=d.speedOut,k=d.easeIn,c=d.easeOut;i.css(d.cssBefore);e&&(j="number"==typeof e?b=e:b=1,k=c=null);var n=function(){i.animate(d.animIn,j,k,function(){f()})};h.animate(d.animOut,b,c,function(){h.css(d.cssAfter);d.sync||n()});d.sync&&n()};a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq("+d.currSlide+")").css("opacity",0);d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,
c,d);d.cssBefore.opacity=0});d.animIn={opacity:1};d.animOut={opacity:0};d.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return"2.99"};a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:!1,before:null,cleartype:!a.support.opacity,cleartypeNoBg:!1,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,
height:"auto",manualTrump:!0,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1E3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4E3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);$(document).ready(function(){$("a.watchIntroVideoLink").fancybox({width:"640",height:"390"}).click(function(){_gaq&&_gaq.push(["_trackEvent","Videos","Play","Pop-up from "+location.pathname+", MozyHome Intro Video"])});$("a.watchProVideoLink").fancybox({width:"640",height:"390",href:"/media/video/mozyVidPlayer.swf",type:"swf",swf:{FlashVars:"flvFile=/assets/808/mozypro640x360.flv"}}).click(function(){_gaq&&_gaq.push(["_trackEvent","Videos","Play","Pop-up from "+location.pathname+", MozyPro Intro Video"])})});var timeout=500,closetimer=0,ddmenuitem=0;function jsddm_open(){jsddm_canceltimer();jsddm_close();ddmenuitem=$(this).find("ul").css("visibility","visible")}function jsddm_close(){ddmenuitem&&ddmenuitem.css("visibility","hidden")}function jsddm_timer(){closetimer=window.setTimeout(jsddm_close,timeout)}function jsddm_canceltimer(){closetimer&&(window.clearTimeout(closetimer),closetimer=null)}
$(document).ready(function(){$("#global-nav > li").bind("mouseover",jsddm_open);$("#global-nav > li").bind("mouseout",jsddm_timer)});document.onclick=jsddm_close;$(document).ready(function(){function a(d){h++;"list-item"!=d.css("display")&&null!=d.style&&5>=h?setTimeout(function(){a(d)},50):window.scrollTo(0,document.body.scrollHeight)}var d=!1,g=RegExp("https?://"+location.host+".*");$("#site-dropdown li a").not("#site-dropdown li#change-language a").each(function(){$(this).attr("href").match(g)?$(this).parent().remove():($(this).attr("href",function(){var a;return a=this+location.pathname.substr(1)}),$(this).click(function(){var a=new Date;a.setDate((new Date).getDate()+
365);var a={expiresAt:a},d=$(this).attr("id").match(/^country-([A-Z]+)$/)[1];$.cookies.set("country",d,a)}))});$("#site-dropdown li#change-language").click(function(f){f.preventDefault();d?($(this).siblings().fadeOut("fast"),d=!1):(siblings=$(this).siblings(),siblings.fadeIn("fast"),a(siblings.eq(siblings.length-1)),d=!0)});var h=0;$("ul#site-dropdown").hover(function(){$(this).children("li#change-language").addClass("hover-over")},function(){$(this).children("li").not("#change-language").fadeOut("fast",
function(){$(this).siblings("li#change-language").removeClass("hover-over");d=!1})})});function trackEvent(a,d,g){_gat._getTracker("UA-71058-4")._trackEvent("_trackEvent",a,d,g)};$(function(){null!=$.cookies.get("MOZY_USERNAME")&&0<$.cookies.get("MOZY_USERNAME").length&&($("#header").addClass("logged-in"),$("#navlink2 a").html("My Account").attr("href","http://mozy.com/account"),$("#navlink5 a").html("Log Out").attr("href","http://mozy.com/login/logout"))});
