(function(){var B={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(A){for(var H=0;H<A.length;H++){var G=A[H].string;var F=A[H].prop;this.versionSearchString=A[H].versionSearch||A[H].identity;if(G){if(G.indexOf(A[H].subString)!=-1){return A[H].identity;}}else{if(F){return A[H].identity;}}}},searchVersion:function(A){var D=A.indexOf(this.versionSearchString);if(D==-1){return ;}return parseFloat(A.substring(D+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};B.init();window.$.client={os:B.OS,browser:B.browser};})();var jq=jQuery.noConflict();jq(document).ready(function(){jq("INPUT.formBtnAbort").click(function(){if(jq(this+"[type=button]")){location.href=jq("INPUT#btn_abort_link").val();}});jq("INPUT.formBtnBack").click(function(){location.href=jq("INPUT#btn_back_link").val();});});function machTausender(G,F){var G=""+G;G=remGliederung(G);charPos=G.indexOf("-");numberTmp=G.substring(charPos+1,G.length);prefix=G.substring(0,charPos+1);if(numberTmp.length>3){var H=numberTmp.length%3;var E=(H>0?(numberTmp.substring(0,H)):"");for(i=0;i<Math.floor(G.length/3);i++){if((H==0)&&(i==0)){E+=numberTmp.substring(H+3*i,H+3*i+3);}else{E+="."+numberTmp.substring(H+3*i,H+3*i+3);}}E=prefix+E;if(F){jq("#"+F).val(E);}else{return(E);}}else{return G;}}function remGliederung(F,E){var F;for(var D=0;D<F.length;D++){F=F.replace(".","");}if(E){jq("#"+E).val(F);}else{return(F);}}function clearForm(B){jq(":input",B).each(function(){var A=this.type;var D=this.tagName.toLowerCase();if(A=="text"||A=="password"||D=="textarea"){this.value="";}else{if(A=="checkbox"||A=="radio"){this.checked=false;}else{if(D=="select"){this.selectedIndex=-1;}}}});}function goToByScroll(B){jq("html,body").animate({scrollTop:jq("."+B).offset().top},"slow");}var textFieldErrorMessage="Bitte ausf\xfcllen!";var errorMessageID="#errorMessage";function validateFormBasic(I){var J;var L;var H=true;removeAllErrors();for(i=0;i<I.length;i++){var M=jq("#"+I[i]);J=jq(M)[0].tagName.toLowerCase();if(J==="input"){var L=jq(M).attr("type");if(L==="text"||L==="email"||L==="tel"||L==="number"){jq(M).removeClass("errorEingabe");if(jq(M).val()===""||jq(M).val()===textFieldErrorMessage){setError(M,"text",textFieldErrorMessage);jq(errorMessageID).show();H=false;}}else{if(L==="checkbox"){if(jq(M).is(":checked")===false){setError(M,"checkbox","");jq(errorMessageID).show();H=false;}}else{if(L==="radio"){var N=jq(M).attr("name");var K=jq("input[name="+N+"]").is("input[name="+N+"]:checked");if(K===false){setError(M,"radio","");jq(errorMessageID).show();H=false;}}}}}else{if(J==="textarea"){if(jq(M).val()===""||jq(M).val()===textFieldErrorMessage){setError(M,"textarea",textFieldErrorMessage);jq(errorMessageID).show();H=false;}}else{if(J==="select"){if(jq(M).val()===""||jq(M).val()==="Bitte ausw\xe4hlen"||jq(M).val()===null){setError(M,"select","");jq(errorMessageID).show();H=false;}}}}}return H;}function hideErrormessages(){jq(".errorText").each(function(){jq(this).hide();});jq("DIV.boxErrorText P").each(function(){jq(this).hide();});}function setError(M,H,J){var N;var L;if(H==="text"||H==="textarea"||H==="select"){N=jq(M).parent();L=jq(M).parent().next();jq(M).addClass("errorEingabe");jq(N).addClass("errorEingabe");jq(L).addClass("errorEingabe");jq(M).val(J);}else{if(H==="checkbox"){var I=jq(M).attr("id");I=I.substr(1,I.length);jq("#L"+I).addClass("errorEingabe");}else{if(H==="radio"){var K=jq(M).attr("name");objectGroupLabelID=K.substr(1,K.length);jq("#L"+objectGroupLabelID).addClass("errorEingabe");jq('INPUT[name="f'+objectGroupLabelID+'"]').parent().prev().addClass("errorEingabe");}}}}function removeAllErrors(){jq(".kontaktModul .errorEingabe").each(function(){jq(this).removeClass("errorEingabe");var B=jq(this).children("input").val();if(B===textFieldErrorMessage){jq(this).children("input").val("");}});}function removeError(F){var D;var E;D=jq("#"+F).parent();E=jq("#"+F).parent().next();jq(D).removeClass("errorEingabe");jq(E).removeClass("errorEingabe");jq("#"+F).removeClass("errorEingabe");}function isValidEmailAddress(B){if(!B.match(/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i)){result=false;}else{result=true;}return result;}jq(document).ready(function(){jq(".boxErrorText P").each(function(){jq(this).hide();});if(location.href.match(/\?captcha|&captcha/i)){jq("#captchaResponse").addClass("errorEingabe").parent().addClass("errorEingabe").next().addClass("errorEingabe");jq("P#errorMessage9").show();}jq("input:radio[name=istKunde]").click(function(){var A=jq("input[name=istKunde]:checked").val();if(A==="ja"){jq(".bankaccountDependbox").show();}else{jq(".bankaccountDependbox").hide();}});jq("INPUT, TEXTAREA").bind("click focus",function(){if(jq(this).val()===textFieldErrorMessage){jq(this).val("");}});jq("SELECT.select").click(function(){jq(this).removeClass("errorEingabe");jq(this).parent().removeClass("errorEingabe");});jq('.boxColPflicht INPUT[type="checkbox"]').change(function(){jq(this).parent().parent().prev().removeClass("errorEingabe");});function D(){var B=jq.browser.msie;var A=jq.browser.webkit;var F=jq.browser.version;if(B===true&&F===6){return("msi6");}else{if(B===true&&F===7){return("msi7");}else{return false;}}if(A===true){return("webkit");}}function C(B){var A=navigator.userAgent.toLowerCase();if(A.indexOf(B.toLowerCase())>-1){return true;}return false;}});function validateForm(){var L=new Array();var R=jq(".required");for(i=0;i<R.length;i++){L[i]=R[i].id;}var J=new Array();var M=jq(".checkEmail");for(i=0;i<M.length;i++){J[i]=M[i].id;}var N=true;var O;goToByScroll("boxErrorText");hideErrormessages();var Q=validateFormBasic(L);if(J!==""){for(i=0;i<J.length;i++){var P=jq("#"+J[i]);var K=jq(P).val();if(K!==""){O=isValidEmailAddress(K);if(O===false){setError(P,"text",K);O=false;}}}}if(Q===false){jq("#errorMessage").show();N=false;}if(O===false){jq("#errorMessage2").show();N=false;}return N;}var usrChangeNews=false;var newsSliderInstances={};function debugAusgabe(D,C){if(debug===true&&C===true){console.log(D);}}if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){jq("HTML").addClass("mobileSafari");jq("HEAD").append('<meta name="format-detection" content="telephone=no">');}function checkBrowser(){var F=jq.browser.msie;var E=jq.browser.webkit;var D=jq.browser.version;if(F===true&&D===6){return("msi6");}else{if(F===true&&D===7){return("msi7");}else{if(F===true&&D===8){return("msi8");}else{return false;}}}if(E===true){return("webkit");}}jq(document).ready(function(){jq("SPAN.buttonLink").parent().css("padding-bottom","0");var Ah=0;window.onbeforeprint=function(){Aa();Ah=1;};window.onafterprint=function(){A1();};if("matchMedia" in window){window.matchMedia("print").addListener(function(A){if(A.matches){Aa();
Ah=1;}});}function Aa(){if(Ah===0){if(jq("DIV.timelineHeader").length>0||jq("DIV.stepModul").length>0){jq("DIV#content").prepend('<img class="print header" src="/media/layout/web/img/print/bwb_col_950x72_342811.png" alt="BW Bank - Baden-W&uuml;rttembergische Bank" height="72px" width="950px" />');}else{jq("DIV#content").prepend('<img class="print header" src="/media/layout/web/img/print/bwb_col_710x72_342816.png" alt="BW Bank - Baden-W&uuml;rttembergische Bank" height="72px" width="710px" />');}if(jq("DIV.cardDesingWrap").length>0||jq("cardDesingWrapJungeLeute").length>0){var B;var A;jq(".card").each(function(){if(jq(this).hasClass("activCard")){A=" active";}else{A="";}B=jq(this).css("background-image");B=B.substring(4,B.length-1);if(B.substring(0,1)==='"'||B.substring(0,1)==="'"){B=B.substring(1,B.length-1);}jq(this).parent().append('<img class="print cards'+A+'" src="'+B+'" />');});if(jq("IMG.cards.active").length>0){jq("IMG.cards").each(function(){if(!jq(this).hasClass("active")){jq(this).remove();}});}}if(jq("DIV.kontaktModul FORM DIV.formularWrap").length>0){jq("DIV.formularWrap").each(function(){if(jq(this).prev().is("h2")){jq(this).prev("H2").andSelf().wrapAll('<div class="pagebreak">');}});}if(jq("DIV.kontaktModul FORM DIV.combiWrap").length>0){jq("DIV.combiWrap").each(function(){if(jq(this).prev().is("h2")){jq(this).prev("H2").andSelf().wrapAll('<div class="pagebreak">');}});}}}function A1(){if(jq("DIV.cardDesingWrap").length>0){jq(".card").css("display","block");}}if(jq("DIV#header").hasClass("tallHeader")){jq("DIV#header").append('<div class="headerShadow"></div>');}else{jq("DIV.headerTheme").append('<div class="headerShadow"></div>');}if(jq("DIV.contModulMarginalie").attr("class")==="contModulMarginalie"){jq("DIV.contentAccModul").css("margin-bottom","8px");}jq("#topSearch").val("Suche");jq("#scrollbarSearch").css("display","none");jq(".topSearchResults").css("display","none");if(navigator.userAgent.indexOf("Mac")>0){jq("body").addClass("macOs");}jq(document).click(function(){if(jq("#scrollbarSearch").css("display")==="block"){jq(".topSearchResults").slideUp(500);jq("#scrollbarSearch").slideUp(500);}});jq(function(){jq("DIV.searchModulBottomWrap SELECT").change(function(){jq(this).closest("FORM").submit();});});function AM(B){var A=navigator.userAgent.toLowerCase();if(A.indexOf(B.toLowerCase())>-1){return true;}return false;}var AW;var AH;var A2;var As;var AU;var A0;var A3;if(jq("DIV.tabModulFixedHeight").length>0){AW=jq(".navi").css("height");AW=AW.substr(0,AW.length-2);AH=jq(".breadcrumb").css("height");AH=parseInt(AH.substr(0,AH.length-2));A2=jq(".breadcrumb").css("margin-bottom");A2=parseInt(A2.substr(0,A2.length-2));As=jq(".tabWrapper").css("height");As=parseInt(As.substr(0,As.length-2));AU=jq(".tabWrapper").css("padding-top");AU=parseInt(AU.substr(0,AU.length-2));A3=jq(".tabModulContent").css("padding-bottom");A3=parseInt(A3.substr(0,A3.length-2));A0=AW-(AH+A2+As+AU+A3);jq("DIV.tabModulContent").css("height",A0+"px");jq("DIV.tabModulContent").each(function(){jq(this).css("display","none");});jq("DIV.tabModulContent:first").css("display","block");}else{jq("DIV.tabModulContent").each(function(){jq(this).css("display","none");});jq("DIV.tabModulContent:first").css("display","block");}var AL;jq(".tabModulTab A").click(function(A){A.preventDefault();AL=jq(this).attr("rel");jq("DIV.tabModulContent").each(function(){jq(this).css("display","none");});jq("#"+AL).css("display","block");jq(this).each(function(){jq(".tabModulTab A").removeClass("aktivTab");});jq(this).addClass("aktivTab");});jq(".accHead").click(function(){jq(this).next().slideToggle();jq(this).children("span").toggleClass("closed");return false;});jq(document).ready(function(){var B;var A;jq("INPUT").focus(function(){var D=jq(this).attr("type");if(D==="text"||D==="tel"||D==="number"||D==="email"||D==="password"){B=jq(this).parent();A=jq(this).parent().next();jq(B).removeAttr("style");jq(A).removeAttr("style");jq(B).removeClass("errorEingabe");jq(A).removeClass("errorEingabe");jq(B).addClass("focusEingabe");jq(A).addClass("focusEingabe");var C=jq(B).children("INPUT").val();if(C==="Bitte ausf\xfcllen!"){jq(B).children("INPUT").val("");}}}).blur(function(){jq(B).removeClass("focusEingabe");jq(A).removeClass("focusEingabe");});jq("TEXTAREA").focus(function(){B=jq(this).parent();A=jq(this).parent().next();jq(B).removeAttr("style");jq(A).removeAttr("style");jq(B).removeClass("errorEingabe");jq(A).removeClass("errorEingabe");jq(B).addClass("focusEingabe");jq(A).addClass("focusEingabe");}).blur(function(){jq(B).removeClass("focusEingabe");jq(A).removeClass("focusEingabe");});jq("SELECT").focus(function(){B=jq(this).parent();A=jq(this).parent().next();jq(B).removeAttr("style");jq(A).removeAttr("style");jq(B).removeClass("errorEingabe");jq(A).removeClass("errorEingabe");jq(B).addClass("focusEingabe");jq(A).addClass("focusEingabe");}).blur(function(){jq(B).removeClass("focusEingabe");jq(A).removeClass("focusEingabe");});});var AO="";AO+='<div class="toolTip">';AO+='<div class="toolTipContent"><p>';AO+="</p></div>";AO+='<div class="toolTipFooter"></div>';AO+="</div>";var At=false;var An;var A6;var AS;var AT=-234;var Aj=18;var Ap=350;var Al=1;var Am;if(checkBrowser()==="msi6"){Aj=3;}else{if(checkBrowser()==="msi7"){}}function Az(A,B){if(checkBrowser()==="msi8"){Ap=0;}jq(A).animate({"right":B},Ap,function(){});}jq("INPUT[type='text'].tooltiptrue, INPUT[type='password'].tooltiptrue").focus(function(){jq(".toolTip").remove();At=false;jq("a").removeClass("activeTooltip");A6=jq(this).attr("id");Am=jq(".tooltiptext[id='"+A6+"_tooltip']").html();An=jq(this);AS=An.position();if(At===false){jq(this).after(AO);jq(".toolTip").css("top",(AS.top-Aj)+"px");Az(jq(".toolTip"),AT);jq(".toolTipContent P").html(Am);At=true;}}).blur(function(){if(At===true){jq(".toolTip").remove();At=false;}});jq(".tooltipclick").click(function(A){A.preventDefault();jq(".toolTip").remove();At=false;jq(this).toggleClass("activeTooltip");if(jq(this).hasClass("activeTooltip")){jq("a").removeClass("activeTooltip");jq(this).toggleClass("activeTooltip");A6=jq(this).attr("id");Am=jq(".tooltiptext[id='"+A6+"_tooltip']").html();An=jq(this);AS=An.position();if(At===false){jq(this).after(AO);jq(".toolTip").css("top",(AS.top-Aj)+"px");Az(jq(".toolTip"),AT);jq(".toolTipContent P").html(Am);At=true;}}});jq(".kontaktModul INPUT:not(.tooltiptrue)").bind("focus click",function(){if(AM("webkit")===true&&At===true){jq(".toolTip").remove();At=false;}});jq(".kontaktModul SELECT:not(.tooltiptrue)").bind("focus click",function(){if(AM("webkit")===true&&At===true){jq(".toolTip").remove();At=false;}});jq(".entrySwitch").click(function(){if(jq(this).next().css("display")==="none"){jq(this).next().css("display","block");jq(this).next().next().css("display","none");}else{jq(this).next().css("display","none");jq(this).next().next().css("display","block");}});jq(".scrollItem").hover(function(){var A=jq(this).parent().parent().parent();jq(A).addClass("aktiv");},function(){enterElement=jq(this).parent().parent().parent();jq(enterElement).removeClass("aktiv");});jq("DIV.modulIndexNav UL LI").click(function(){if(jq("DIV.modulIndexNav UL LI").hasClass("visible")){jq("DIV.modulIndexNav UL LI.direkt UL").css("visibility","hidden");jq("DIV.modulIndexNav UL LI").removeClass("visible");}else{jq("DIV.modulIndexNav UL LI.direkt UL").css("visibility","visible");jq("DIV.modulIndexNav UL LI").addClass("visible");}});jq("LI.direkt").mouseleave(function(){jq("DIV.modulIndexNav UL LI.direkt UL").css("visibility","hidden");jq("DIV.modulIndexNav UL LI").removeClass("visible");});jq("LI.direkt").hover(function(){jq("LI.direkt").css("cursor","pointer");});jq(".direkt").click(function(){jq(this).css("z-index","999");}).mouseleave(function(){jq(this).css("z-index","0");});var Ae=jq.browser.msie;var Aw=jq.browser.version;jq("#directLinksStart").click(function(A){A.preventDefault();if(jq("#directLinks").css("display")==="none"){jq("#directLinks").slideDown(300);if(Ae===true&&Aw===6){jq("#directLinksStart").css("backgroundImage","url(/media/layout/web/img/mainnavigation/bg_directlinks_top_ie6_hover_342962.gif)");
}else{jq("#directLinksStart").css("backgroundImage","url(/media/layout/web/img/mainnavigation/bg_directlinks_top_hover_343007.png)");}}else{jq("#directLinks").slideUp(300);jq("#directLinksControl").val("1");jq("#directLinksStart").css("backgroundImage","url(/media/layout/web/img/mainnavigation/bg_directlinks_top_343008.png)");}});jq(".directLinks").mouseover(function(){jq("#directLinksControl").val("1");});jq("DIV.directLinksWrapper").mouseleave(function(){jq("#directLinksControl").val("0");setTimeout("hideDirectLinks()",600);});jq("DIV.productFinderContent").slideUp(0);jq("DIV.navi DIV.productFinder").click(function(){if(jq(this).hasClass("active")){jq("DIV.productFinderContent").slideUp(100);jq(this).removeClass("active");jq(this).css("background-image","url(/media/layout/web/img/mainnavigation/bg_productfinder_top_342978.png)");}else{jq("DIV.productFinderContent").slideDown(100);jq(this).addClass("active");jq(this).css("background-image","url(/media/layout/web/img/mainnavigation/bg_productfinder_top_hover_342981.png)");}});function AV(){jq("SELECT.select").each(function(){var B="";var C=jq(this).css("width");C=C.substr(0,C.length-2);var D=jq.browser.msie;if(D===true){var H=jq.browser.version;}var E=jq.browser.webkit;var A=jq.client.os;var F=jq.client.browser;if(H==="7.0"){C=(C*1)+6;}else{if(D===true){C=(C*1)+4;}else{if(D!==true&&A==="Windows"&&F==="Firefox"){C=(C*1)+2;}else{if(E===true&&A==="Windows"&&F==="Safari"){C=(C*1)+27;}else{if(E===true&&A==="Windows"&&F==="Chrome"){C=(C*1)+4;}else{if(E===true&&A==="Mac"&&F==="Safari"){C=(C*1)+2;}else{if(A==="Windows"&&F==="Opera"){C=(C*1)+6;}else{if(A==="Mac"&&F==="Firefox"){C=(C*1)+30;}}}}}}}}var G=jq(this).attr("title");if(jq("option:selected",this).val()!==""){G=jq("option:selected",this).text();}if(jq(this).is(".errorSelect")){B="color:#ca0003";}jq(this).css({"z-index":10,"opacity":0,"-khtml-appearance":"none"}).after('<span class="select" style="width:'+C+"px;"+B+'">'+G+"</span>").change(function(){val=jq("option:selected",this).text();jq(this).next().text(val);});});}AV();function Ar(A){jq(A).mouseover(function(){jq(this).parent().parent().find(".more").css("text-decoration","underline");}).mouseout(function(){jq(this).parent().parent().find(".more").css("text-decoration","none");});}Ar(".imageTextBeside A");function Ax(){var A=[],B;var D=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var C=0;C<D.length;C++){B=D[C].split("=");A.push(B[0]);A[B[0]]=B[1];}return A;}function Ak(){return window.location.hash.substring(1);}var AN=Ax()["bannerOpen"];var AJ;if(jq("#"+AN).length>0){Au(AN);}function Au(A){jq("#"+A).css("display","block");}function AI(A){jq("#"+A).css("display","none");}jq(".bannerLink").click(function(){AJ=jq(this).attr("rel");Au(AJ);return false;});jq("A.closeAdvLink").click(function(){AI(AJ);jq("DIV.advForm").css("display","block");jq("DIV.advResult").css("display","none");return false;});function Ai(A){jq(".tabModulContent").each(function(){jq(this).css("display","none");});jq("#"+A).css("display","block");jq(".tabModulTab A").each(function(){jq(this).removeClass("aktivTab");});jq(".tabModulTab A[rel="+A+"]").addClass("aktivTab");}function Av(A){if(A==="all"||A==="allMarginal"||A==="allContent"){if(jq(".tabModulTab A").hasClass("aktivTab")){var E="#"+jq(".tabModulTab A.aktivTab").attr("rel");if(A==="all"){jq(E+" .accStatus").addClass("closed");jq(E+" .accContent").addClass("accContentClosed");}else{if(A==="allMarginal"){jq(E+" .tabContentRight .accStatus").addClass("closed");jq(E+" .tabContentRight .accContent").addClass("accContentClosed");}else{if(A==="allContent"){jq(E+" .tabContentLeft .accStatus").addClass("closed");jq(E+" .tabContentLeft .accContent").addClass("accContentClosed");}}}}else{if(A==="all"){jq(".accStatus").addClass("closed");jq(".accContent").addClass("accContentClosed");}else{if(A==="allMarginal"){jq(".contModulMarginalie .accStatus").addClass("closed");jq(".contModulMarginalie .accContent").addClass("accContentClosed");}else{if(A==="allContent"){jq(".contModulContent .accStatus").addClass("closed");jq(".contModulContent .accContent").addClass("accContentClosed");}}}}}else{if(A){var C=A.split(",");for(var D=0;D<C.length;D++){var B="#"+C[D];if(jq(B).next().hasClass("accHead")){jq(B).next(".accStatus").addClass("closed");jq(B).next().next(".accContent").addClass("accContentClosed");}else{if(jq(B).next().hasClass("contentAccModul")){jq(B).next(".contentAccModul").children(".accStatus").addClass("closed");jq(B).next(".contentAccModul").children(".accContent").addClass("accContentClosed");}}}}}}function A5(A){if(A==="all"||A==="allMarginal"||A==="allContent"){if(jq(".tabModulTab A").hasClass("aktivTab")){var E="#"+jq(".tabModulTab A.aktivTab").attr("rel");if(A==="all"){jq(E+" .accStatus").removeClass("closed");jq(E+" .accContent").removeClass("accContentClosed");}else{if(A==="allMarginal"){jq(E+" .tabContentRight .accStatus").removeClass("closed");jq(E+" .tabContentRight .accContent").removeClass("accContentClosed");}else{if(A==="allContent"){jq(E+" .tabContentLeft .accStatus").removeClass("closed");jq(E+" .tabContentLeft .accContent").removeClass("accContentClosed");}}}}else{if(A==="all"){jq(".accStatus").removeClass("closed");jq(".accContent").removeClass("accContentClosed");}else{if(A==="allMarginal"){jq(".contModulMarginalie .accStatus").removeClass("closed");jq(".contModulMarginalie .accContent").removeClass("accContentClosed");}else{if(A==="allContent"){jq(".contModulContent .accStatus").removeClass("closed");jq(".contModulContent .accContent").removeClass("accContentClosed");}}}}}else{if(A){var C=A.split(",");for(var D=0;D<C.length;D++){var B="#"+C[D];if(jq(B).next().hasClass("accHead")){jq(B).next().children(".accStatus").removeClass("closed");jq(B).next().next(".accContent").removeClass("accContentClosed");}else{if(jq(B).next().hasClass("contentAccModul")){jq(B).next(".contentAccModul").children(".accStatus").removeClass("closed");jq(B).next(".contentAccModul").children(".accContent").removeClass("accContentClosed");}}}}}}var AY=Ak();var Ao=Ax()["tabOpen"];if(Ao&&Ao.indexOf("#")>-1){Ao=Ao.substring(0,Ao.indexOf("#"));}if(Ao&&jq(".tabModulTab A[rel="+Ao+"]").length>0){Ai(Ao);}if(AY&&AY!==Ao&&jq(".tabModulTab A[rel="+AY+"]").length>0){Ai(AY);}var AE=Ax()["accClose"];if(AE&&AE.indexOf("#")>-1){AE=AE.substring(0,AE.indexOf("#"));}if(AE){Av(AE);}var AR=Ax()["accOpen"];if(AR&&AR.indexOf("#")>-1){AR=AR.substring(0,AR.indexOf("#"));}if(AR){A5(AR);}function AZ(A){jq("#"+A).click();}var AX=Ax()["lbOpen"];if(jq("#"+AX).length>0){AZ(AX);}jq(".closeLightbox").live("click",function(A){A.preventDefault();});jq(".btnAbort").click(function(A){A.preventDefault();debugAusgabe("klick");jq("#cboxLoadedContent").find(".disclaimerFirst").fadeOut(function(){jq("#cboxLoadedContent").find(".disclaimerAfterDecline").fadeIn();});});var Ab;var Aq;jq('INPUT[type="text"].clearField').focus(function(){Ab=jq(this).attr("id");Aq=jq(this).val();fieldContentOld=jq(this).val();if(Aq==="Bitte ausf\xfcllen!"||Aq==="Suche"||Aq==="Suchbegriff"||Aq==="Suche nach"||Aq==="Search"||Aq==="search"){Aq="";}else{Aq=Aq;}jq(this).val(Aq);}).blur(function(){Aq=jq(this).val();if(Aq===""){jq(this).val(fieldContentOld);}});var Ag;var Af;jq("TEXTAREA.clearTextArea").focus(function(){tField=jq(this).attr("id");Af=jq(this).val();textAreaContentOld=jq(this).val();if(Af==="Bitte kurz erl\xe4utern"){Af="";}else{Af=Af;}jq(this).val(Af);}).blur(function(){Af=jq(this).val();if(Af===""){jq(this).val("Bitte kurz erl\xe4utern");}});if(jq(".tabModulContentWrapper").length>0){activeTabRel=jq("A.aktivTab").attr("rel");insertTabMarginalvr(activeTabRel);}jq("DIV.tabModulTab A").click(function(){activeTabRel=jq("A.aktivTab").attr("rel");insertTabMarginalvr(activeTabRel);});if(jq("#navigationWrapper").css("display")==="none"){jq("#content").css("background-image","none");}if(jq("DIV.kontaktModul_marginalie").length>0||jq("DIV.contModulMarginalie").length>0){if(jq("HTML").hasClass("mobileSafari")){jq("DIV.contModulContentWrap").css({"background-image":"url(/media/layout/web/img/module/bg_modulcontent_710w_withBorder_m3_342878.png),url(/media/layout/web/img/module/bg_modulcontent_710w_withBorder_m2_342879.png)","background-repeat":"no-repeat, repeat-y","background-position":"0 bottom, 0 0"});
}else{if(jq("DIV#navigationWrapper").css("display")!=="none"){if(jq("DIV.row").length<1){jq("DIV.contModulContentWrap").css("background-image","url(/media/layout/web/img/module/bg_modulcontent_710w_withBorder_342874.png)");}}else{jq("DIV.contModulContentWrap").css("background-image","url(/media/layout/web/img/module/bg_modulcontent_710w_withBorder_lightbox_342877.png)");}}}if(jq("DIV.lightbox").length>0||jq("DIV.contentModulLightbox").length>0){if(jq("DIV.contModulMarginalie").length>0){if(jq("HTML").hasClass("mobileSafari")){jq("DIV.contModulContentWrap").css("background-image","url(/media/layout/web/img/module/bg_modulcontent_710w_withBorder_lightbox_m2_342876.png)");jq("DIV.contModulContentWrap").css("background-position","bottom left");jq("DIV.contModulContentWrap").css("background-repeat","repeat-y");}else{jq("DIV.contModulContentWrap").css("background-image","url(/media/layout/web/img/module/bg_modulcontent_710w_withBorder_lightbox_342877.png)");jq("DIV.contModulContentWrap").css("background-position","bottom left");jq("DIV.contModulContentWrap").css("background-repeat","no-repeat");}}}jq("DIV.advForm BUTTON.formBtnImage").click(function(){jq("DIV.advForm").css("display","none");jq("DIV.advResult").css("display","block");return false;});if(jq("DIV.moduleSeachResultFilter").length>0){cutSearchModulString();}jq("DIV.moduleSeachResultFilter SELECT[name=feldname]").change(function(){cutSearchModulString();});jq("DIV.jp-video").mouseenter(function(){if(jq(this).children().children().next().children("DIV.jp-interface").attr("style")){jq(this).children().children().next().children("DIV.jp-interface").stop().hide().fadeIn(500);}}).mouseleave(function(){jq(this).children().children().next().children("DIV.jp-interface").stop().show().fadeOut(500);});jq("DIV.volume").mouseenter(function(){jq(this).children(".jp-volume-bar-wrap").show();}).mouseleave(function(){jq(this).children(".jp-volume-bar-wrap").hide();});var Ac;var AP;jq(".row").each(function(){Ac=jq(this);if(Ac.children().length>1){AP=Ac.children();if(AP.first().hasClass("wrapOneCol")&&AP.last().hasClass("wrapTwoCol")){Ac.addClass("one-third-two-thirds");}else{if(AP.first().hasClass("wrapTwoCol")&&AP.last().hasClass("wrapOneCol")){Ac.addClass("two-thirds-one-third");}else{if(AP.first().hasClass("wrapOneCol")&&AP.last().hasClass("wrapOneCol")){Ac.addClass("three-thirds");}}}jq("DIV.row").last().addClass("noBorder");}});var AG;jq(".col").each(function(){AG=jq(this).children().length;if(AG>1){jq(this).children().addClass("innerColModul");jq(this).children().last().removeClass("innerColModul");}});jq(".imageList").each(function(){if(jq(this).children().length>1){jq(this).bxSlider({mode:"horizontal",auto:false,stopAuto:false,autoControls:false,controls:true,speed:300,slideMargin:0,infiniteLoop:false,hideControlOnEnd:true,pagerType:"short",pagerShortSeparator:" | ",pagerCustom:jq(jq(this).prev("H2").children().children(".sus-bx-pager"))});}else{jq(this).prev("H2").children().remove();}});jq("SPAN.imageSlideControl.next").click(function(){var A=jq(this).parent().parent().next().children().next().children().children(".bx-next");if(!jq(A).hasClass("disabled")){jq(A).click();}});jq("SPAN.imageSlideControl.prev").click(function(){var A=jq(this).parent().parent().next().children().next().children().children(".bx-prev");if(!jq(A).hasClass("disabled")){jq(A).click();}});jq("A.bx-prev").click(function(){jq(this).blur();if(jq(this).hasClass("disabled")){jq(this).parent().parent().parent().prev().children().children(".prev").addClass("disabled");}else{jq(this).parent().parent().parent().prev().children().children(".prev").removeClass("disabled");}if(!jq(this).next().hasClass("disabled")){jq(this).parent().parent().parent().prev().children().children(".next").removeClass("disabled");}});jq("A.bx-next").click(function(){jq(this).blur();if(jq(this).hasClass("disabled")){jq(this).parent().parent().parent().prev().children().children(".next").addClass("disabled");}else{jq(this).parent().parent().parent().prev().children().children(".next").removeClass("disabled");}if(!jq(this).prev().hasClass("disabled")){jq(this).parent().parent().parent().prev().children().children(".prev").removeClass("disabled");}});Ay();function A4(B){var A=jq(B).find(".newsconfigfile").val();return A;}function AK(D,G){var B=[];var C="";var E=1;var F=99;var A=Math.round(Math.random()*(F-E))+E;jq.ajax({url:D,dataType:"json",async:false,success:function(H){jq.each(H,function(J,I){if(H[J]["selected"]===true){C='selected="selected"';AQ(H[J]["xmlfile"],G,A);}else{C="";}B.push('<option value="'+H[J]["xmlfile"]+'" '+C+">"+H[J]["category"]+"</option>");});}});return B;}function Ay(){var B=[];var A;var D;var C=0;jq(".newsBox").each(function(){B[C]=jq(this);A=A4(B[C]);D=AK(A,B[C]);var E=B[C].find("[name=newsfilter]");if(D.length>1){if(E.length==0){jq(B[C]).find(".newsBoxFooter").append('<form name="form" method="get" action="">'+"<label>Newsfilter</label>"+'<div class="formularWrap">'+'    <div class="selectWrap">'+'    <select tabindex="10" name="newsfilter" class="select select_215">'+"    </select>"+"    </div>"+'    <div class="selectWrapEnd"></div>'+"</div>"+"</form>");}else{E.html("");}B[C].find("[name=newsfilter]").html(D);}else{if(E.length!=0){E.parent().parent().parent().remove();}}C++;});}function AQ(B,A,C,D){jq.ajax({async:false,type:"GET",url:B,dataType:"xml",success:function(G){var I=navigator.language||navigator.userLanguage;var H=jq("head").find("meta[http-equiv=content-language]");if(H.length>0){I=H.attr("content");}var F=jq(".more").find("a");var E="Get More";if(F.length>0){E=F[0].text==undefined?F[0].innerText:F[0].text;}else{if(I!=null&&I.indexOf("de")>-1){E="Get more";}}jq(A).find(".newsList").html("");jq(G).find("item").each(function(){title=jq(this).find("title").text();desc=jq(this).find("description").text();pubDate=jq(this).find("pubDate").text();category=jq(this).find("category").text();link=jq(this).find("link").text();enclosure=jq(this).find("enclosure").attr("url");date=new Date(pubDate);day=date.getDate();month=date.getMonth(pubDate);year=date.getFullYear(pubDate);var J=new Array("January","February","March","April","May","June","July","August","September","October","November","December");if(I!=null&&I.indexOf("de")>-1){J=new Array("Januar","Februar","M&auml;rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");}currPubDate=day+". "+J[month]+" "+year;if(typeof enclosure!=="undefined"){hasImage='<span class="image"><img src="'+enclosure+'" width="159" height="100" alt="" title="" /></span>';}else{hasImage="";}jq(A).find(".newsList").append('<li class="newsItem">'+hasImage+'<span class="text">'+'<span class="date">'+category+" | "+currPubDate+"</span>"+'<span class="newsHeadline">'+title+"</span>"+'<span class="teaserText">'+""+desc+""+"</span>"+'<span class="more"><a href="'+link+'">'+E+"</a></span>"+"</span>"+"</li>");});},complete:function(){var I=false;if(jq(A).find(".newsList").children().length>1){I=true;}else{I=false;}jq(A).addClass("newsBox_"+C);jq(A).find(".newsobject").val("newsSlider_"+C);var H=new Date().getTime();var G=Math.round(Math.random()*(H-1))+1;jq(A).find(".newsobjindex").attr("name",H+"_fieldname_"+G);jq(A).find(".newsobjindex").val(C);var F=1000;var E=6000;if(usrChangeNews===false){newsSliderInstances["newsSlider_"+C]=jq(A).find(".newsList").bxSlider({auto:I,controls:false,pager:false,speed:F,pause:E,tickerHover:true,autoHover:true,onSliderLoad:function(){var J=0;var K=jq(A).find(".newsList").find(".newsItem").length-2;if("newsSlider_"+C in newsSliderInstances){J=newsSliderInstances["newsSlider_"+C].getCurrentSlide();K=newsSliderInstances["newsSlider_"+C].getSlideCount();}AF(A,J,K);},onSlideNext:function(){var J=newsSliderInstances["newsSlider_"+C].getCurrentSlide();var K=newsSliderInstances["newsSlider_"+C].getSlideCount();AF(A,J,K);},onSlidePrev:function(){var J=newsSliderInstances["newsSlider_"+C].getCurrentSlide();var K=newsSliderInstances["newsSlider_"+C].getSlideCount();
AF(A,J,K);}});}else{if(usrChangeNews===true){newsSliderInstances[D].reloadSlider({auto:I,controls:false,pager:false,speed:F,pause:E,tickerHover:true,autoHover:true,onSliderLoad:function(){var J=newsSliderInstances[D].getCurrentSlide();var K=newsSliderInstances[D].getSlideCount();AF(A,J,K);},onSlideNext:function(){var J=newsSliderInstances[D].getCurrentSlide();var K=newsSliderInstances[D].getSlideCount();AF(A,J,K);},onSlidePrev:function(){var J=newsSliderInstances[D].getCurrentSlide();var K=newsSliderInstances[D].getSlideCount();AF(A,J,K);}});}}}});}function AF(A,B,C){jq(A).find(".sus-bx-pager").html("<span>"+(B+1)+"</span> | <span>"+C+"</span>");}var Ad;jq(".newsBox .imageSlideControl.next").click(function(A){A.preventDefault();Ad=jq(this).parents(":eq(3)").find(".newsobject").val();newsSliderInstances[Ad].goToNextSlide();});jq(".newsBox .imageSlideControl.prev").click(function(A){A.preventDefault();Ad=jq(this).parents(":eq(3)").find(".newsobject").val();newsSliderInstances[Ad].goToPrevSlide();});jq("A.buehnenmodulContentOpen").click(function(){jq(this).parents("DIV.buehnenmodulHeader").next("DIV.buehnenmodulContent").stop().slideDown(500);jq(this).hide();jq(this).next().show();});jq("A.buehnenmodulContentClose").click(function(){jq(this).parents("DIV.buehnenmodulHeader").next("DIV.buehnenmodulContent").stop().slideUp(500);jq(this).hide();jq(this).prev().show();});});function cutSearchModulString(){jq("DIV.moduleSeachResultFilter SELECT[name=feldname]").each(function(){if(jq(this).next().html().length>30){jq(this).next().html(jq(this).next().html().substring(0,30)+"...");}});}function insertTabMarginalvr(B){if(jq("DIV#navigationWrapper").css("display")==="none"){jq("DIV.tabModulContentWrapper").css("background","none");}if(jq("DIV#"+B).children().hasClass("tabContentLeft")){jq("DIV.tabModulContent").css("background-image","url(/media/layout/web/img/module/bg_modulcontent_710w_border_342907.png)");jq("DIV.tabModulContent").css("background-position","481px 22px");jq("DIV.tabModulContent").css("background-repeat","no-repeat");jq("DIV.tabModulContentWrapper").css("padding-bottom","22px");jq("DIV.tabContent").css("margin-bottom","0");}else{if(jq("DIV#"+B+" DIV:last-child").hasClass("contentAccModul")){jq("DIV.tabModulContent").css("background-image","none");jq("DIV.tabModulContentWrapper").css("padding-bottom","0");}else{jq("DIV.tabModulContent").css("background-image","none");jq("DIV.tabModulContentWrapper").css("padding-bottom","22px");}}}function hideDirectLinks(){var C=jq.browser.msie;var D=jq.browser.version;if(jq("#directLinksControl").val()==="0"){jq("#directLinks").slideUp(300);if(C===true&&D===6){jq("#directLinksStart").css("backgroundImage","url(/media/layout/web/img/mainnavigation/bg_directlinks_top_ie6_343006.gif)");}else{jq("#directLinksStart").css("backgroundImage","url(/media/layout/web/img/mainnavigation/bg_directlinks_top_343008.png)");}}}function topSearch(B){if(jq(B).val()==="Suche"){jq(B).val("");}}function startSearch(E){var D=jq.browser.msie;var F=jq.browser.version;if(D===true&&F===6){}else{if((jq(E).val().length)>2){jq(".topSearchResults").slideDown(300);jq(".topSearchResults").css("visibility","visible");jq("#scrollbarSearch").slideDown(300);}}}function setError(I,J){var L;var H;var G;var K;if(I!=="TEXTAREA.errorTextarea"){bg_image_error="url(/media/layout/web/img/formulare_1/bg_input_error_343125.png)";}else{bg_image_error="url(/media/layout/web/img/formulare_1/bg_textarea_error_343130.png)";}L=jq(I).parent();H=jq(I).parent().next();jq(L).css("background-image",bg_image_error);jq(H).css("background-image",bg_image_error);jq(I).val(J);jq(I).css("color","#ca0003");}function showLightbox(G,H,E,F){}function showLightboxGallery(G,H,E,F){}function showLightboxFormular(I,J,F,G){var H=jq(window).height();H=H*F/100;}function showLightboxDisclaimer(G,H,E,F){jq("#cboxLoadedContent").css("background","none");}pageNumber0=1;maxItems0=6;jq(document).ready(function(){jq('span[id^="accItem0_"]').hide();showItems0();jq(".formBtnCloseWindow").click(function(){window.parent.jQuery("#lightboxDiv").dialog("close");});});function setViewParams0(D,C){jq("#allItems0").removeClass("aktiv");jq("#pageLink0_"+pageNumber0).removeClass("aktiv");jq("#itemLink0_"+maxItems0).removeClass("aktiv");pageNumber0=D;maxItems0=C;jq("#pageLink0_"+pageNumber0).addClass("aktiv");jq("#itemLink0_"+maxItems0).addClass("aktiv");jq("#pageBrowser0").show();showItems0();}function showAllItems0(){jq('a[id^="itemLink0_"]').removeClass("aktiv");jq("#allItems0").addClass("aktiv");jq("#pageBrowser0").hide();pageNumber0=1;maxItems0=7;showItems0();}function showItems0(){jq(".visibleTeaserItem0").hide().removeClass("visibleTeaserItem0");for(i=(((pageNumber0*maxItems0)-maxItems0)+1);i<=(pageNumber0*maxItems0);i++){jq("#accItem0_"+i).show().addClass("visibleTeaserItem0");}renderPageBrowser0();}function renderPageBrowser0(){if(7%maxItems0===0){var B=7/maxItems0;}else{var B=(7-(7%maxItems0))/maxItems0+1;}jq("#pageBrowser0").empty();for(i=1;i<=B;i++){if(i!==pageNumber0){jq("#pageBrowser0").append('<a id="pageLink0_'+i+'" onclick="setViewParams0('+i+', maxItems0)" style="cursor:pointer;"> '+i+" </a>");}else{jq("#pageBrowser0").append('<a id="pageLink0_'+i+'" class="aktiv" onclick="setViewParams0('+i+', maxItems0)" style="cursor:pointer;"> '+i+" </a>");}if(i<B){jq("#pageBrowser0").append('<span class="pipe">|</span>');}}}var arrTimer=new Array();var hideSpeed=1000;var hideSpeedSlow=200;var mDirection;var hasSub;var currElem;var prevElem;var prevElemHasSub;var currSubElem;var first=false;var anzahlSubmenuBlocks;var elemPositionTop;var subElemTopPosition;var schattenpfeilPos;function hideSubLevel(){jq("DIV.subLevel_1").hide();flyoutWidth();flyoutCenter();jq(currElem).next("DIV.subLevel_1").show();}function clearAllTimeouts(){for(key in arrTimer){clearTimeout(arrTimer[key]);}}function flyoutWidth(){anzahlSubmenuBlocks=jq("#"+currSubElem+" .subNavBlock").length;switch(anzahlSubmenuBlocks){case 1:jq("DIV.subLevel_1").css("width",224);jq("DIV.subLevel_1").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_1_2_342945.png)");jq("DIV.shadowTop").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_1_2_342945.png)");break;case 2:jq("DIV.subLevel_1").css("width",384);jq("DIV.subLevel_1").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_2_2_342944.png)");jq("DIV.shadowTop").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_2_2_342944.png)");break;case 3:jq("DIV.subLevel_1").css("width",562);jq("DIV.subLevel_1").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_3_2_342943.png)");jq("DIV.shadowTop").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_3_2_342943.png)");break;case 4:jq("DIV.subLevel_1").css("width",740);jq("DIV.subLevel_1").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_4_2_342942.png)");jq("DIV.shadowTop").css("background-image","url(/media/layout/web/img/mainnavigation/flyout/hg_4_2_342942.png)");break;}}function flyoutCenter(){subElemHeigth=jq("#"+currSubElem).height();thisElemHeight=jq("#"+currSubElem).parent().height();elemPositionTop=jq("#"+currSubElem).parent().position();if(elemPositionTop===null){elemPositionTop=0;}if((jq("UL.navigation_reloaded").height()<eval((elemPositionTop.top)+(subElemHeigth/2)))&&(elemPositionTop.top<subElemHeigth)){subElemTopPosition=-elemPositionTop.top+41;schattenpfeilPos=elemPositionTop.top-56+thisElemHeight/2+"px";jq("DIV.submenuWrapper").css("background-position","0px "+schattenpfeilPos);}else{if((jq("UL.navigation_reloaded").height())<eval((elemPositionTop.top)+(subElemHeigth/2)-(thisElemHeight/2))){subElemTopPosition=(jq("UL.navigation_reloaded").height()-elemPositionTop.top)-subElemHeigth+75;schattenpfeilPos=subElemHeigth-(jq("UL.navigation_reloaded").height()-elemPositionTop.top)+thisElemHeight/2-90+"px";jq("DIV.submenuWrapper").css("background-position","0px "+schattenpfeilPos);}else{if(elemPositionTop.top<subElemHeigth/2){subElemTopPosition=-elemPositionTop.top+41;
schattenpfeilPos=elemPositionTop.top-56+thisElemHeight/2+"px";jq("DIV.submenuWrapper").css("background-position","0px "+schattenpfeilPos);}else{subElemTopPosition=-(subElemHeigth/2)+(thisElemHeight/2)+5;schattenpfeilPos=(subElemHeigth/2)-20+"px";jq("DIV.submenuWrapper").css("background-position","0px "+schattenpfeilPos);}}}jq("#"+currSubElem).css("top",subElemTopPosition);clearAllTimeouts();arrTimer[currSubElem]=window.setTimeout("jq('#'+currSubElem).show()",hideSpeedSlow);}jq(document).ready(function(){jq.mousedirection();jq("UL.navigation_reloaded").bind("mousedirection",function(B){mDirection=B.direction;});if(jq(".subLevel_1").length>0){jq("UL.navigation_reloaded DIV.subLevel_1").each(function(){subLevelID=jq(this).attr("id");arrTimer[subLevelID]=null;});}jq(".navigation_reloaded LI A.level_0").mouseenter(function(){currElem=jq(this);hasSub=jq(this).next("DIV.subLevel_1").length;currSubElem=jq(this).next("DIV").attr("id");if((mDirection!=="right"&&mDirection!=="top-right"&&mDirection!=="bottom-right")||prevElemHasSub===0||first===false){first=true;if(!jq(this).hasClass("active")){jq("A.level_0").removeClass("active");jq("DIV.subLevel_1").hide();flyoutWidth();flyoutCenter();}else{jq("A.level_0").removeClass("active");}}else{if(typeof (currSubElem!=="undefined")){clearAllTimeouts();arrTimer[currSubElem]=window.setTimeout("hideSubLevel(currSubElem)",hideSpeed);}}}).mouseleave(function(){prevElem=jq(this);prevElemHasSub=jq(prevElem).next("DIV.subLevel_1").length;});jq(".navigation_reloaded LI DIV.subLevel_1").mouseenter(function(){foo=jq(this).prev("A.level_0").addClass("active");jq(this).prev("A.level_0").addClass("active");clearAllTimeouts();});jq(".navigation_reloaded").mouseleave(function(){jq(".navigation_reloaded LI A").removeClass("active");jq(".subLevel_1").hide();jq("SPAN.itemWrapper").blur();clearAllTimeouts();first=false;});jq("UL.productFinder LI DIV SELECT").change(function(){window.location.href=jq(this).attr("value");});});(function(B){B.fn.bxSlider=function(AF){var As={mode:"horizontal",infiniteLoop:true,hideControlOnEnd:false,controls:true,speed:500,easing:"swing",pager:false,pagerSelector:null,pagerType:"full",pagerLocation:"bottom",pagerShortSeparator:"/",pagerActiveClass:"pager-active",nextText:"next",nextImage:"",nextSelector:null,prevText:"prev",prevImage:"",prevSelector:null,captions:false,captionsSelector:null,auto:false,autoDirection:"next",autoControls:false,autoControlsSelector:null,autoStart:true,autoHover:false,autoDelay:0,pause:3000,startText:"start",startImage:"",stopText:"stop",stopImage:"",ticker:false,tickerSpeed:5000,tickerDirection:"next",tickerHover:false,wrapperClass:"bx-wrapper",startingSlide:0,displaySlideQty:1,moveSlideQty:1,randomStart:false,onBeforeSlide:function(){},onAfterSlide:function(){},onLastSlide:function(){},onFirstSlide:function(){},onNextSlide:function(){},onPrevSlide:function(){},buildPager:null};var AF=B.extend(As,AF);var AL=this;var AP="";var AA="";var Ak="";var AB="";var Av="";var AX="";var Af="";var AN="";var Ab="";var Ar="";var AU="";var AY="";var Ao="";var Ag="";var Aa="";var Am=true;var A=false;var AE=0;var An=0;var AH=0;var AZ=0;var AC=0;var AJ=0;var AG=0;var Ai=0;var AS=0;var Ac=false;var Aj=0;var AD=Ak.length-1;this.goToSlide=function(D,C){if(!Ac){Ac=true;AH=D;AF.onBeforeSlide(AH,Ak.length,Ak.eq(AH));if(typeof (C)=="undefined"){var C=true;}if(C){if(AF.auto){AL.stopShow(true);}}slide=D;if(slide==Aj){AF.onFirstSlide(AH,Ak.length,Ak.eq(AH));}if(slide==AD){AF.onLastSlide(AH,Ak.length,Ak.eq(AH));}if(AF.mode=="horizontal"){AP.animate({"left":"-"+Aw(slide,"left")+"px"},AF.speed,AF.easing,function(){Ac=false;AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}else{if(AF.mode=="vertical"){AP.animate({"top":"-"+Aw(slide,"top")+"px"},AF.speed,AF.easing,function(){Ac=false;AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}else{if(AF.mode=="fade"){Ax();}}}AV();if(AF.moveSlideQty>1){D=Math.floor(D/AF.moveSlideQty);}Aq(D);Ae();}};this.goToNextSlide=function(C){if(typeof (C)=="undefined"){var C=true;}if(C){if(AF.auto){AL.stopShow(true);}}if(!AF.infiniteLoop){if(!Ac){var F=false;AH=(AH+(AF.moveSlideQty));if(AH<=AD){AV();AF.onNextSlide(AH,Ak.length,Ak.eq(AH));AL.goToSlide(AH);}else{AH-=AF.moveSlideQty;}}}else{if(!Ac){Ac=true;var F=false;AH=(AH+AF.moveSlideQty);if(AH>AD){AH=AH%Ak.length;F=true;}AF.onNextSlide(AH,Ak.length,Ak.eq(AH));AF.onBeforeSlide(AH,Ak.length,Ak.eq(AH));if(AF.mode=="horizontal"){var E=(AF.moveSlideQty*Af);AP.animate({"left":"-="+E+"px"},AF.speed,AF.easing,function(){Ac=false;if(F){AP.css("left","-"+Aw(AH,"left")+"px");}AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}else{if(AF.mode=="vertical"){var D=(AF.moveSlideQty*An);AP.animate({"top":"-="+D+"px"},AF.speed,AF.easing,function(){Ac=false;if(F){AP.css("top","-"+Aw(AH,"top")+"px");}AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}else{if(AF.mode=="fade"){Ax();}}}if(AF.moveSlideQty>1){Aq(Math.ceil(AH/AF.moveSlideQty));}else{Aq(AH);}Ae();}}};this.goToPreviousSlide=function(C){if(typeof (C)=="undefined"){var C=true;}if(C){if(AF.auto){AL.stopShow(true);}}if(!AF.infiniteLoop){if(!Ac){var F=false;AH=AH-AF.moveSlideQty;if(AH<0){AH=0;if(AF.hideControlOnEnd){B(".bx-prev",AB).hide();}}AV();AF.onPrevSlide(AH,Ak.length,Ak.eq(AH));AL.goToSlide(AH);}}else{if(!Ac){Ac=true;var F=false;AH=(AH-(AF.moveSlideQty));if(AH<0){negativeOffset=(AH%Ak.length);if(negativeOffset==0){AH=0;}else{AH=(Ak.length)+negativeOffset;}F=true;}AF.onPrevSlide(AH,Ak.length,Ak.eq(AH));AF.onBeforeSlide(AH,Ak.length,Ak.eq(AH));if(AF.mode=="horizontal"){var E=(AF.moveSlideQty*Af);AP.animate({"left":"+="+E+"px"},AF.speed,AF.easing,function(){Ac=false;if(F){AP.css("left","-"+Aw(AH,"left")+"px");}AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}else{if(AF.mode=="vertical"){var D=(AF.moveSlideQty*An);AP.animate({"top":"+="+D+"px"},AF.speed,AF.easing,function(){Ac=false;if(F){AP.css("top","-"+Aw(AH,"top")+"px");}AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}else{if(AF.mode=="fade"){Ax();}}}if(AF.moveSlideQty>1){Aq(Math.ceil(AH/AF.moveSlideQty));}else{Aq(AH);}Ae();}}};this.goToFirstSlide=function(C){if(typeof (C)=="undefined"){var C=true;}AL.goToSlide(Aj,C);};this.goToLastSlide=function(){if(typeof (C)=="undefined"){var C=true;}AL.goToSlide(AD,C);};this.getCurrentSlide=function(){return AH;};this.getSlideCount=function(){return Ak.length;};this.stopShow=function(C){clearInterval(AU);if(typeof (C)=="undefined"){var C=true;}if(C&&AF.autoControls){AY.html(Ag).removeClass("stop").addClass("start");Am=false;}};this.startShow=function(C){if(typeof (C)=="undefined"){var C=true;}AM();if(C&&AF.autoControls){AY.html(Aa).removeClass("start").addClass("stop");Am=true;}};this.stopTicker=function(C){AP.stop();if(typeof (C)=="undefined"){var C=true;}if(C&&AF.ticker){AY.html(Ag).removeClass("stop").addClass("start");Am=false;}};this.startTicker=function(G){if(AF.mode=="horizontal"){if(AF.tickerDirection=="next"){var E=parseInt(AP.css("left"));var C=(AJ+E)+Ak.eq(0).width();}else{if(AF.tickerDirection=="prev"){var E=-parseInt(AP.css("left"));var C=(E)-Ak.eq(0).width();}}var D=(C*AF.tickerSpeed)/AJ;At(Ai,C,D);}else{if(AF.mode=="vertical"){if(AF.tickerDirection=="next"){var F=parseInt(AP.css("top"));var C=(AG+F)+Ak.eq(0).height();}else{if(AF.tickerDirection=="prev"){var F=-parseInt(AP.css("top"));var C=(F)-Ak.eq(0).height();}}var D=(C*AF.tickerSpeed)/AG;At(AS,C,D);if(typeof (G)=="undefined"){var G=true;}if(G&&AF.ticker){AY.html(Aa).removeClass("start").addClass("stop");Am=true;}}}};this.initShow=function(){AP=B(this);AA=AP.clone();Ak=AP.children();AB="";Av=AP.children(":first");AX=Av.width();AE=0;Af=Av.outerWidth();An=0;AN=AT();Ab=Ad();Ac=false;Ar="";AH=0;AZ=0;AC=0;AU="";AY="";Ao="";Ag="";Aa="";Am=true;A=false;AJ=0;AG=0;Ai=0;AS=0;Aj=0;AD=Ak.length-1;Ak.each(function(D){if(B(this).outerHeight()>An){An=B(this).outerHeight();}if(B(this).outerWidth()>AE){AE=B(this).outerWidth();}});if(AF.randomStart){var C=Math.floor(Math.random()*Ak.length);AH=C;AZ=Af*(AF.moveSlideQty+C);AC=An*(AF.moveSlideQty+C);}else{AH=AF.startingSlide;AZ=Af*(AF.moveSlideQty+AF.startingSlide);
AC=An*(AF.moveSlideQty+AF.startingSlide);}AK();if(AF.pager&&!AF.ticker){if(AF.pagerType=="full"){Ap("full");}else{if(AF.pagerType=="short"){Ap("short");}}}if(AF.controls&&!AF.ticker){AQ();}if(AF.auto||AF.ticker){if(AF.autoControls){AI();}if(AF.autoStart){setTimeout(function(){AL.startShow(true);},AF.autoDelay);}else{AL.stopShow(true);}if(AF.autoHover&&!AF.ticker){Au();}}if(AF.moveSlideQty>1){Aq(Math.ceil(AH/AF.moveSlideQty));}else{Aq(AH);}AV();if(AF.captions){Ae();}AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));};this.destroyShow=function(){clearInterval(AU);B(".bx-next, .bx-prev, .bx-pager, .bx-auto",AB).remove();AP.unwrap().unwrap().removeAttr("style");AP.children().removeAttr("style").not(".pager").remove();Ak.removeClass("pager");};this.reloadShow=function(){AL.destroyShow();AL.initShow();};function AK(){Ah(AF.startingSlide);if(AF.mode=="horizontal"){AP.wrap('<div class="'+AF.wrapperClass+'" style="width:'+AN+'px; position:relative;"></div>').wrap('<div class="bx-window" style="position:relative; overflow:hidden; width:'+AN+'px;"></div>').css({width:"999999px",position:"relative",left:"-"+(AZ)+"px"});AP.children().css({width:AX,"float":"left",listStyle:"none"});AB=AP.parent().parent();Ak.addClass("pager");}else{if(AF.mode=="vertical"){AP.wrap('<div class="'+AF.wrapperClass+'" style="width:'+AE+'px; position:relative;"></div>').wrap('<div class="bx-window" style="width:'+AE+"px; height:"+Ab+'px; position:relative; overflow:hidden;"></div>').css({height:"999999px",position:"relative",top:"-"+(AC)+"px"});AP.children().css({listStyle:"none",height:An});AB=AP.parent().parent();Ak.addClass("pager");}else{if(AF.mode=="fade"){AP.wrap('<div class="'+AF.wrapperClass+'" style="width:'+AE+'px; position:relative;"></div>').wrap('<div class="bx-window" style="height:'+An+"px; width:"+AE+'px; position:relative; overflow:hidden;"></div>');AP.children().css({listStyle:"none",position:"absolute",top:0,left:0,zIndex:98});AB=AP.parent().parent();Ak.not(":eq("+AH+")").fadeTo(0,0);Ak.eq(AH).css("zIndex",99);}}}if(AF.captions&&AF.captionsSelector==null){AB.append('<div class="bx-captions"></div>');}}function Ah(){if(AF.mode=="horizontal"||AF.mode=="vertical"){var D=Al(Ak,0,AF.moveSlideQty,"backward");B.each(D,function(H){AP.prepend(B(this));});var E=(Ak.length+AF.moveSlideQty)-1;var F=Ak.length-AF.displaySlideQty;var G=E-F;var C=Al(Ak,0,G,"forward");if(AF.infiniteLoop){B.each(C,function(H){AP.append(B(this));});}}}function AQ(){if(AF.nextImage!=""){nextContent=AF.nextImage;nextType="image";}else{nextContent=AF.nextText;nextType="text";}if(AF.prevImage!=""){prevContent=AF.prevImage;prevType="image";}else{prevContent=AF.prevText;prevType="text";}AR(nextType,nextContent,prevType,prevContent);}function AM(){if(AF.auto){if(!AF.infiniteLoop){if(AF.autoDirection=="next"){AU=setInterval(function(){AH+=AF.moveSlideQty;if(AH>AD){AH=AH%Ak.length;}AL.goToSlide(AH,false);},AF.pause);}else{if(AF.autoDirection=="prev"){AU=setInterval(function(){AH-=AF.moveSlideQty;if(AH<0){negativeOffset=(AH%Ak.length);if(negativeOffset==0){AH=0;}else{AH=(Ak.length)+negativeOffset;}}AL.goToSlide(AH,false);},AF.pause);}}}else{if(AF.autoDirection=="next"){AU=setInterval(function(){AL.goToNextSlide(false);},AF.pause);}else{if(AF.autoDirection=="prev"){AU=setInterval(function(){AL.goToPreviousSlide(false);},AF.pause);}}}}else{if(AF.ticker){AF.tickerSpeed*=10;B(".pager",AB).each(function(C){AJ+=B(this).width();AG+=B(this).height();});if(AF.tickerDirection=="prev"&&AF.mode=="horizontal"){AP.css("left","-"+(AJ+AZ)+"px");}else{if(AF.tickerDirection=="prev"&&AF.mode=="vertical"){AP.css("top","-"+(AG+AC)+"px");}}if(AF.mode=="horizontal"){Ai=parseInt(AP.css("left"));At(Ai,AJ,AF.tickerSpeed);}else{if(AF.mode=="vertical"){AS=parseInt(AP.css("top"));At(AS,AG,AF.tickerSpeed);}}if(AF.tickerHover){AO();}}}}function At(D,C,E){if(AF.mode=="horizontal"){if(AF.tickerDirection=="next"){AP.animate({"left":"-="+C+"px"},E,"linear",function(){AP.css("left",D);At(D,AJ,AF.tickerSpeed);});}else{if(AF.tickerDirection=="prev"){AP.animate({"left":"+="+C+"px"},E,"linear",function(){AP.css("left",D);At(D,AJ,AF.tickerSpeed);});}}}else{if(AF.mode=="vertical"){if(AF.tickerDirection=="next"){AP.animate({"top":"-="+C+"px"},E,"linear",function(){AP.css("top",D);At(D,AG,AF.tickerSpeed);});}else{if(AF.tickerDirection=="prev"){AP.animate({"top":"+="+C+"px"},E,"linear",function(){AP.css("top",D);At(D,AG,AF.tickerSpeed);});}}}}}function AI(){if(AF.startImage!=""){startContent=AF.startImage;startType="image";}else{startContent=AF.startText;startType="text";}if(AF.stopImage!=""){stopContent=AF.stopImage;stopType="image";}else{stopContent=AF.stopText;stopType="text";}AW(startType,startContent,stopType,stopContent);}function Au(){AB.find(".bx-window").hover(function(){if(Am){AL.stopShow(false);}},function(){if(Am){AL.startShow(false);}});}function AO(){AP.hover(function(){if(Am){AL.stopTicker(false);}},function(){if(Am){AL.startTicker(false);}});}function Ax(){Ak.not(":eq("+AH+")").fadeTo(AF.speed,0).css("zIndex",98);Ak.eq(AH).css("zIndex",99).fadeTo(AF.speed,1,function(){Ac=false;if(jQuery.browser.msie){Ak.eq(AH).get(0).style.removeAttribute("filter");}AF.onAfterSlide(AH,Ak.length,Ak.eq(AH));});}function Aq(C){if(AF.pagerType=="full"&&AF.pager){B("a",Ar).removeClass(AF.pagerActiveClass);B("a",Ar).eq(C).addClass(AF.pagerActiveClass);}else{if(AF.pagerType=="short"&&AF.pager){B(".bx-pager-current",Ar).html(AH+1);}}}function AR(C,D,H,G){var F=B('<a href="" class="bx-next"></a>');var E=B('<a href="" class="bx-prev"></a>');if(C=="text"){F.html(D);}else{F.html('<img src="'+D+'" />');}if(H=="text"){E.html(G);}else{E.html('<img src="'+G+'" />');}if(AF.prevSelector){B(AF.prevSelector).append(E);}else{AB.append(E);}if(AF.nextSelector){B(AF.nextSelector).append(F);}else{AB.append(F);}F.click(function(){AL.goToNextSlide();return false;});E.click(function(){AL.goToPreviousSlide();return false;});}function Ap(D){var E=Ak.length;if(AF.moveSlideQty>1){if(Ak.length%AF.moveSlideQty!=0){E=Math.ceil(Ak.length/AF.moveSlideQty);}else{E=Ak.length/AF.moveSlideQty;}}var C="";if(AF.buildPager){for(var G=0;G<E;G++){C+=AF.buildPager(G,Ak.eq(G*AF.moveSlideQty));}}else{if(D=="full"){for(var G=1;G<=E;G++){C+='<a href="" class="pager-link pager-'+G+'">'+G+"</a>";}}else{if(D=="short"){C='<span class="bx-pager-current">'+(AF.startingSlide+1)+"</span> "+AF.pagerShortSeparator+' <span class="bx-pager-total">'+Ak.length+"</span>";}}}if(AF.pagerSelector){B(AF.pagerSelector).append(C);Ar=B(AF.pagerSelector);}else{var F=B('<div class="bx-pager"></div>');F.append(C);if(AF.pagerLocation=="top"){AB.prepend(F);}else{if(AF.pagerLocation=="bottom"){AB.append(F);}}Ar=B(".bx-pager",AB);}Ar.children().click(function(){if(AF.pagerType=="full"){var H=Ar.children().index(this);if(AF.moveSlideQty>1){H*=AF.moveSlideQty;}AL.goToSlide(H);}return false;});}function Ae(){var C=B("img",Ak.eq(AH)).attr("title");if(C!=""){if(AF.captionsSelector){B(AF.captionsSelector).html(C);}else{B(".bx-captions",AB).html(C);}}else{if(AF.captionsSelector){B(AF.captionsSelector).html("\xa0");}else{B(".bx-captions",AB).html("\xa0");}}}function AW(E,D,F,C){AY=B('<a href="" class="bx-start"></a>');if(E=="text"){Ag=D;}else{Ag='<img src="'+D+'" />';}if(F=="text"){Aa=C;}else{Aa='<img src="'+C+'" />';}if(AF.autoControlsSelector){B(AF.autoControlsSelector).append(AY);}else{AB.append('<div class="bx-auto"></div>');B(".bx-auto",AB).html(AY);}AY.click(function(){if(AF.ticker){if(B(this).hasClass("stop")){AL.stopTicker();}else{if(B(this).hasClass("start")){AL.startTicker();}}}else{if(B(this).hasClass("stop")){AL.stopShow(true);}else{if(B(this).hasClass("start")){AL.startShow(true);}}}return false;});}function AV(){if(!AF.infiniteLoop&&AF.hideControlOnEnd){if(AH==Aj){B(".bx-prev",AB).hide();}else{B(".bx-prev",AB).show();}if(AH==AD){B(".bx-next",AB).hide();}else{B(".bx-next",AB).show();}}}function Aw(C,D){if(D=="left"){var E=B(".pager",AB).eq(C).position().left;}else{if(D=="top"){var E=B(".pager",AB).eq(C).position().top;}}return E;}function AT(){var C=Av.outerWidth()*AF.displaySlideQty;
return C;}function Ad(){var C=Av.outerHeight()*AF.displaySlideQty;return C;}function Al(C,D,F,E){var G=[];var H=F;var I=false;if(E=="backward"){C=B.makeArray(C);C.reverse();}while(H>0){B.each(C,function(K,J){if(H>0){if(!I){if(K==D){I=true;G.push(B(this).clone());H--;}}else{G.push(B(this).clone());H--;}}else{return false;}});}return G;}this.each(function(){if(B(this).children().length>0){AL.initShow();}});return this;};jQuery.fx.prototype.cur=function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var A=parseFloat(jQuery.css(this.elem,this.prop));return A;};})(jQuery);(function(h,g){var j="2.9999.5";if(h.support===g){h.support={opacity:!(h.browser.msie)};}function d(A){if(h.fn.cycle.debug){e(A);}}function e(){if(window.console&&console.log){console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}h.expr[":"].paused=function(A){return A.cyclePause;};h.fn.cycle=function(B,C){var A={s:this.selector,c:this.context};if(this.length===0&&B!="stop"){if(!h.isReady&&A.s){e("DOM not ready, queuing slideshow");h(function(){h(A.s,A.c).cycle(B,C);});return this;}e("terminating; zero elements found by selector"+(h.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var H=Y(this,B,C);if(H===false){return ;}H.updateActivePagerLink=H.updateActivePagerLink||h.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;this.cycleStop=0;var G=h(this);var F=H.slideExpr?h(H.slideExpr,this):G.children();var D=F.get();if(D.length<2){e("terminating; too few slides: "+D.length);return ;}var E=T(G,F,D,H,A);if(E===false){return ;}var I=E.continuous?10:X(D[E.currSlide],D[E.nextSlide],E,!E.backwards);if(I){I+=(E.delay||0);if(I<10){I=10;}d("first timeout: "+I);this.cycleTimeout=setTimeout(function(){W(D,E,0,!H.backwards);},I);}});};function Z(E,B,C){var A=h(E).data("cycle.opts");var D=!!E.cyclePause;if(D&&A.paused){A.paused(E,A,B,C);}else{if(!D&&A.resumed){A.resumed(E,A,B,C);}}}function Y(E,B,D){if(E.cycleStop===g){E.cycleStop=0;}if(B===g||B===null){B={};}if(B.constructor==String){switch(B){case"destroy":case"stop":var F=h(E).data("cycle.opts");if(!F){return false;}E.cycleStop++;if(E.cycleTimeout){clearTimeout(E.cycleTimeout);}E.cycleTimeout=0;if(F.elements){h(F.elements).stop();}h(E).removeData("cycle.opts");if(B=="destroy"){S(E,F);}return false;case"toggle":E.cyclePause=(E.cyclePause===1)?0:1;A(E.cyclePause,D,E);Z(E);return false;case"pause":E.cyclePause=1;Z(E);return false;case"resume":E.cyclePause=0;A(false,D,E);Z(E);return false;case"prev":case"next":F=h(E).data("cycle.opts");if(!F){e('options not found, "prev/next" ignored');return false;}h.fn.cycle[B](F);return false;default:B={fx:B};}return B;}else{if(B.constructor==Number){var C=B;B=h(E).data("cycle.opts");if(!B){e("options not found, can not advance slide");return false;}if(C<0||C>=B.elements.length){e("invalid slide index: "+C);return false;}B.nextSlide=C;if(E.cycleTimeout){clearTimeout(E.cycleTimeout);E.cycleTimeout=0;}if(typeof D=="string"){B.oneTimeFx=D;}W(B.elements,B,1,C>=B.currSlide);return false;}}return B;function A(I,H,J){if(!I&&H===true){var G=h(J).data("cycle.opts");if(!G){e("options not found, can not resume");return false;}if(J.cycleTimeout){clearTimeout(J.cycleTimeout);J.cycleTimeout=0;}W(G.elements,G,1,!G.backwards);}}}function f(C,B){if(!h.support.opacity&&B.cleartype&&C.style.filter){try{C.style.removeAttribute("filter");}catch(A){}}}function S(B,A){if(A.next){h(A.next).unbind(A.prevNextEvent);}if(A.prev){h(A.prev).unbind(A.prevNextEvent);}if(A.pager||A.pagerAnchorBuilder){h.each(A.pagerAnchors||[],function(){this.unbind().remove();});}A.pagerAnchors=null;h(B).unbind("mouseenter.cycle mouseleave.cycle");if(A.destroy){A.destroy(A);}}function T(AA,J,B,C,Q){var H;var o=h.extend({},h.fn.cycle.defaults,C||{},h.metadata?AA.metadata():h.meta?AA.data():{});var x=h.isFunction(AA.data)?AA.data(o.metaAttr):null;if(x){o=h.extend(o,x);}if(o.autostop){o.countdown=o.autostopCount||B.length;}var F=AA[0];AA.data("cycle.opts",o);o.$cont=AA;o.stopCount=F.cycleStop;o.elements=B;o.before=o.before?[o.before]:[];o.after=o.after?[o.after]:[];if(!h.support.opacity&&o.cleartype){o.after.push(function(){f(this,o);});}if(o.continuous){o.after.push(function(){W(B,o,0,!o.backwards);});}b(o);if(!h.support.opacity&&o.cleartype&&!o.cleartypeNoBg){k(J);}if(AA.css("position")=="static"){AA.css("position","relative");}if(o.width){AA.width(o.width);}if(o.height&&o.height!="auto"){AA.height(o.height);}if(o.startingSlide!==g){o.startingSlide=parseInt(o.startingSlide,10);if(o.startingSlide>=B.length||o.startSlide<0){o.startingSlide=0;}else{H=true;}}else{if(o.backwards){o.startingSlide=B.length-1;}else{o.startingSlide=0;}}if(o.random){o.randomMap=[];for(var L=0;L<B.length;L++){o.randomMap.push(L);}o.randomMap.sort(function(l,m){return Math.random()-0.5;});if(H){for(var N=0;N<B.length;N++){if(o.startingSlide==o.randomMap[N]){o.randomIndex=N;}}}else{o.randomIndex=1;o.startingSlide=o.randomMap[1];}}else{if(o.startingSlide>=B.length){o.startingSlide=0;}}o.currSlide=o.startingSlide||0;var AB=o.startingSlide;J.css({position:"absolute",top:0,left:0}).hide().each(function(m){var l;if(o.backwards){l=AB?m<=AB?B.length+(m-AB):AB-m:B.length-m;}else{l=AB?m>=AB?B.length-(m-AB):AB-m:B.length-m;}h(this).css("z-index",l);});h(B[AB]).css("opacity",1).show();f(B[AB],o);if(o.fit){if(!o.aspect){if(o.width){J.width(o.width);}if(o.height&&o.height!="auto"){J.height(o.height);}}else{J.each(function(){var l=h(this);var m=(o.aspect===true)?l.width()/l.height():o.aspect;if(o.width&&l.width()!=o.width){l.width(o.width);l.height(o.width/m);}if(o.height&&l.height()<o.height){l.height(o.height);l.width(o.height*m);}});}}if(o.center&&((!o.fit)||o.aspect)){J.each(function(){var l=h(this);l.css({"margin-left":o.width?((o.width-l.width())/2)+"px":0,"margin-top":o.height?((o.height-l.height())/2)+"px":0});});}if(o.center&&!o.fit&&!o.slideResize){J.each(function(){var l=h(this);l.css({"margin-left":o.width?((o.width-l.width())/2)+"px":0,"margin-top":o.height?((o.height-l.height())/2)+"px":0});});}var R=o.containerResize&&!AA.innerHeight();if(R){var A=0,w=0;for(var O=0;O<B.length;O++){var G=h(B[O]),I=G[0],y=G.outerWidth(),K=G.outerHeight();if(!y){y=I.offsetWidth||I.width||G.attr("width");}if(!K){K=I.offsetHeight||I.height||G.attr("height");}A=y>A?y:A;w=K>w?K:w;}if(A>0&&w>0){AA.css({width:A+"px",height:w+"px"});}}var D=false;if(o.pause){AA.bind("mouseenter.cycle",function(){D=true;this.cyclePause++;Z(F,true);}).bind("mouseleave.cycle",function(){if(D){this.cyclePause--;}Z(F,true);});}if(V(o)===false){return false;}var E=false;C.requeueAttempts=C.requeueAttempts||0;J.each(function(){var l=h(this);this.cycleH=(o.fit&&o.height)?o.height:(l.height()||this.offsetHeight||this.height||l.attr("height")||0);this.cycleW=(o.fit&&o.width)?o.width:(l.width()||this.offsetWidth||this.width||l.attr("width")||0);if(l.is("img")){var n=(h.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var q=(h.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var m=(h.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var p=(this.cycleH===0&&this.cycleW===0&&!this.complete);if(n||q||m||p){if(Q.s&&o.requeueOnImageNotLoaded&&++C.requeueAttempts<100){e(C.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){h(Q.s,Q.c).cycle(C);},o.requeueTimeout);E=true;return false;}else{e("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(E){return false;}o.cssBefore=o.cssBefore||{};o.cssAfter=o.cssAfter||{};o.cssFirst=o.cssFirst||{};o.animIn=o.animIn||{};o.animOut=o.animOut||{};J.not(":eq("+AB+")").css(o.cssBefore);h(J[AB]).css(o.cssFirst);if(o.timeout){o.timeout=parseInt(o.timeout,10);if(o.speed.constructor==String){o.speed=h.fx.speeds[o.speed]||parseInt(o.speed,10);}if(!o.sync){o.speed=o.speed/2;
}var P=o.fx=="none"?0:o.fx=="shuffle"?500:250;while((o.timeout-o.speed)<P){o.timeout+=o.speed;}}if(o.easing){o.easeIn=o.easeOut=o.easing;}if(!o.speedIn){o.speedIn=o.speed;}if(!o.speedOut){o.speedOut=o.speed;}o.slideCount=B.length;o.currSlide=o.lastSlide=AB;if(o.random){if(++o.randomIndex==B.length){o.randomIndex=0;}o.nextSlide=o.randomMap[o.randomIndex];}else{if(o.backwards){o.nextSlide=o.startingSlide===0?(B.length-1):o.startingSlide-1;}else{o.nextSlide=o.startingSlide>=(B.length-1)?0:o.startingSlide+1;}}if(!o.multiFx){var M=h.fn.cycle.transitions[o.fx];if(h.isFunction(M)){M(AA,J,o);}else{if(o.fx!="custom"&&!o.multiFx){e("unknown transition: "+o.fx,"; slideshow terminating");return false;}}}var z=J[AB];if(!o.skipInitializationCallbacks){if(o.before.length){o.before[0].apply(z,[z,z,o,true]);}if(o.after.length){o.after[0].apply(z,[z,z,o,true]);}}if(o.next){h(o.next).bind(o.prevNextEvent,function(){return c(o,1);});}if(o.prev){h(o.prev).bind(o.prevNextEvent,function(){return c(o,0);});}if(o.pager||o.pagerAnchorBuilder){U(B,o);}a(o,B);return o;}function b(A){A.original={before:[],after:[]};A.original.cssBefore=h.extend({},A.cssBefore);A.original.cssAfter=h.extend({},A.cssAfter);A.original.animIn=h.extend({},A.animIn);A.original.animOut=h.extend({},A.animOut);h.each(A.before,function(){A.original.before.push(this);});h.each(A.after,function(){A.original.after.push(this);});}function V(G){var A,C,D=h.fn.cycle.transitions;if(G.fx.indexOf(",")>0){G.multiFx=true;G.fxs=G.fx.replace(/\s*/g,"").split(",");for(A=0;A<G.fxs.length;A++){var H=G.fxs[A];C=D[H];if(!C||!D.hasOwnProperty(H)||!h.isFunction(C)){e("discarding unknown transition: ",H);G.fxs.splice(A,1);A--;}}if(!G.fxs.length){e("No valid transitions named; slideshow terminating.");return false;}}else{if(G.fx=="all"){G.multiFx=true;G.fxs=[];for(var F in D){if(D.hasOwnProperty(F)){C=D[F];if(D.hasOwnProperty(F)&&h.isFunction(C)){G.fxs.push(F);}}}}}if(G.multiFx&&G.randomizeEffects){var B=Math.floor(Math.random()*20)+30;for(A=0;A<B;A++){var E=Math.floor(Math.random()*G.fxs.length);G.fxs.push(G.fxs.splice(E,1)[0]);}d("randomized fx sequence: ",G.fxs);}return true;}function a(A,B){A.addSlide=function(D,C){var E=h(D),F=E[0];if(!A.autostopCount){A.countdown++;}B[C?"unshift":"push"](F);if(A.els){A.els[C?"unshift":"push"](F);}A.slideCount=B.length;if(A.random){A.randomMap.push(A.slideCount-1);A.randomMap.sort(function(G,H){return Math.random()-0.5;});}E.css("position","absolute");E[C?"prependTo":"appendTo"](A.$cont);if(C){A.currSlide++;A.nextSlide++;}if(!h.support.opacity&&A.cleartype&&!A.cleartypeNoBg){k(E);}if(A.fit&&A.width){E.width(A.width);}if(A.fit&&A.height&&A.height!="auto"){E.height(A.height);}F.cycleH=(A.fit&&A.height)?A.height:E.height();F.cycleW=(A.fit&&A.width)?A.width:E.width();E.css(A.cssBefore);if(A.pager||A.pagerAnchorBuilder){h.fn.cycle.createPagerAnchor(B.length-1,F,h(A.pager),B,A);}if(h.isFunction(A.onAddSlide)){A.onAddSlide(E);}else{E.hide();}};}h.fn.cycle.resetState=function(B,C){C=C||B.fx;B.before=[];B.after=[];B.cssBefore=h.extend({},B.original.cssBefore);B.cssAfter=h.extend({},B.original.cssAfter);B.animIn=h.extend({},B.original.animIn);B.animOut=h.extend({},B.original.animOut);B.fxFn=null;h.each(B.original.before,function(){B.before.push(this);});h.each(B.original.after,function(){B.after.push(this);});var A=h.fn.cycle.transitions[C];if(h.isFunction(A)){A(B.$cont,h(B.elements),B);}};function W(B,H,C,L){var E=H.$cont[0],I=B[H.currSlide],K=B[H.nextSlide];if(C&&H.busy&&H.manualTrump){d("manualTrump in go(), stopping active transition");h(B).stop(true,true);H.busy=0;clearTimeout(E.cycleTimeout);}if(H.busy){d("transition active, ignoring new tx request");return ;}if(E.cycleStop!=H.stopCount||E.cycleTimeout===0&&!C){return ;}if(!C&&!E.cyclePause&&!H.bounce&&((H.autostop&&(--H.countdown<=0))||(H.nowrap&&!H.random&&H.nextSlide<H.currSlide))){if(H.end){H.end(H);}return ;}var A=false;if((C||!E.cyclePause)&&(H.nextSlide!=H.currSlide)){A=true;var D=H.fx;I.cycleH=I.cycleH||h(I).height();I.cycleW=I.cycleW||h(I).width();K.cycleH=K.cycleH||h(K).height();K.cycleW=K.cycleW||h(K).width();if(H.multiFx){if(L&&(H.lastFx===g||++H.lastFx>=H.fxs.length)){H.lastFx=0;}else{if(!L&&(H.lastFx===g||--H.lastFx<0)){H.lastFx=H.fxs.length-1;}}D=H.fxs[H.lastFx];}if(H.oneTimeFx){D=H.oneTimeFx;H.oneTimeFx=null;}h.fn.cycle.resetState(H,D);if(H.before.length){h.each(H.before,function(N,M){if(E.cycleStop!=H.stopCount){return ;}M.apply(K,[I,K,H,L]);});}var G=function(){H.busy=0;h.each(H.after,function(N,M){if(E.cycleStop!=H.stopCount){return ;}M.apply(K,[I,K,H,L]);});if(!E.cycleStop){J();}};d("tx firing("+D+"); currSlide: "+H.currSlide+"; nextSlide: "+H.nextSlide);H.busy=1;if(H.fxFn){H.fxFn(I,K,H,G,L,C&&H.fastOnEvent);}else{if(h.isFunction(h.fn.cycle[H.fx])){h.fn.cycle[H.fx](I,K,H,G,L,C&&H.fastOnEvent);}else{h.fn.cycle.custom(I,K,H,G,L,C&&H.fastOnEvent);}}}else{J();}if(A||H.nextSlide==H.currSlide){var F;H.lastSlide=H.currSlide;if(H.random){H.currSlide=H.nextSlide;if(++H.randomIndex==B.length){H.randomIndex=0;H.randomMap.sort(function(M,N){return Math.random()-0.5;});}H.nextSlide=H.randomMap[H.randomIndex];if(H.nextSlide==H.currSlide){H.nextSlide=(H.currSlide==H.slideCount-1)?0:H.currSlide+1;}}else{if(H.backwards){F=(H.nextSlide-1)<0;if(F&&H.bounce){H.backwards=!H.backwards;H.nextSlide=1;H.currSlide=0;}else{H.nextSlide=F?(B.length-1):H.nextSlide-1;H.currSlide=F?0:H.nextSlide+1;}}else{F=(H.nextSlide+1)==B.length;if(F&&H.bounce){H.backwards=!H.backwards;H.nextSlide=B.length-2;H.currSlide=B.length-1;}else{H.nextSlide=F?0:H.nextSlide+1;H.currSlide=F?B.length-1:H.nextSlide-1;}}}}if(A&&H.pager){H.updateActivePagerLink(H.pager,H.currSlide,H.activePagerClass);}function J(){var N=0,M=H.timeout;if(H.timeout&&!H.continuous){N=X(B[H.currSlide],B[H.nextSlide],H,L);if(H.fx=="shuffle"){N-=H.speedOut;}}else{if(H.continuous&&E.cyclePause){N=10;}}if(N>0){E.cycleTimeout=setTimeout(function(){W(B,H,0,!H.backwards);},N);}}}h.fn.cycle.updateActivePagerLink=function(C,A,B){h(C).each(function(){h(this).children().removeClass(B).eq(A).addClass(B);});};function X(A,C,B,D){if(B.timeoutFn){var E=B.timeoutFn.call(A,A,C,B,D);while(B.fx!="none"&&(E-B.speed)<250){E+=B.speed;}d("calculated timeout: "+E+"; speed: "+B.speed);if(E!==false){return E;}}return B.timeout;}h.fn.cycle.next=function(A){c(A,1);};h.fn.cycle.prev=function(A){c(A,0);};function c(B,C){var F=C?1:-1;var D=B.elements;var G=B.$cont[0],A=G.cycleTimeout;if(A){clearTimeout(A);G.cycleTimeout=0;}if(B.random&&F<0){B.randomIndex--;if(--B.randomIndex==-2){B.randomIndex=D.length-2;}else{if(B.randomIndex==-1){B.randomIndex=D.length-1;}}B.nextSlide=B.randomMap[B.randomIndex];}else{if(B.random){B.nextSlide=B.randomMap[B.randomIndex];}else{B.nextSlide=B.currSlide+F;if(B.nextSlide<0){if(B.nowrap){return false;}B.nextSlide=D.length-1;}else{if(B.nextSlide>=D.length){if(B.nowrap){return false;}B.nextSlide=0;}}}}var E=B.onPrevNextEvent||B.prevNextClick;if(h.isFunction(E)){E(F>0,B.nextSlide,D[B.nextSlide]);}W(D,B,1,C);return false;}function U(B,A){var C=h(A.pager);h.each(B,function(E,D){h.fn.cycle.createPagerAnchor(E,D,C,B,A);});A.updateActivePagerLink(A.pager,A.startingSlide,A.activePagerClass);}h.fn.cycle.createPagerAnchor=function(C,F,A,D,G){var K;if(h.isFunction(G.pagerAnchorBuilder)){K=G.pagerAnchorBuilder(C,F);d("pagerAnchorBuilder("+C+", el) returned: "+K);}else{K='<a href="#">'+(C+1)+"</a>";}if(!K){return ;}var E=h(K);if(E.parents("body").length===0){var B=[];if(A.length>1){A.each(function(){var L=E.clone(true);h(this).append(L);B.push(L[0]);});E=h(B);}else{E.appendTo(A);}}G.pagerAnchors=G.pagerAnchors||[];G.pagerAnchors.push(E);var J=function(M){M.preventDefault();G.nextSlide=C;var N=G.$cont[0],O=N.cycleTimeout;if(O){clearTimeout(O);N.cycleTimeout=0;}var L=G.onPagerEvent||G.pagerClick;if(h.isFunction(L)){L(G.nextSlide,D[G.nextSlide]);}W(D,G,1,G.currSlide<C);};if(/mouseenter|mouseover/i.test(G.pagerEvent)){E.hover(J,function(){});}else{E.bind(G.pagerEvent,J);}if(!/^click/.test(G.pagerEvent)&&!G.allowPagerClickBubble){E.bind("click.cycle",function(){return false;
});}var I=G.$cont[0];var H=false;if(G.pauseOnPagerHover){E.hover(function(){H=true;I.cyclePause++;Z(I,true,true);},function(){if(H){I.cyclePause--;}Z(I,true,true);});}};h.fn.cycle.hopsFromLast=function(B,C){var D,E=B.lastSlide,A=B.currSlide;if(C){D=A>E?A-E:B.slideCount-E;}else{D=A<E?E-A:E+B.slideCount-A;}return D;};function k(A){d("applying clearType background-color hack");function B(D){D=parseInt(D,10).toString(16);return D.length<2?"0"+D:D;}function C(F){for(;F&&F.nodeName.toLowerCase()!="html";F=F.parentNode){var E=h.css(F,"background-color");if(E&&E.indexOf("rgb")>=0){var D=E.match(/\d+/g);return"#"+B(D[0])+B(D[1])+B(D[2]);}if(E&&E!="transparent"){return E;}}return"#ffffff";}A.each(function(){h(this).css("background-color",C(this));});}h.fn.cycle.commonReset=function(F,B,A,D,C,E){h(A.elements).not(F).hide();if(typeof A.cssBefore.opacity=="undefined"){A.cssBefore.opacity=1;}A.cssBefore.display="block";if(A.slideResize&&D!==false&&B.cycleW>0){A.cssBefore.width=B.cycleW;}if(A.slideResize&&C!==false&&B.cycleH>0){A.cssBefore.height=B.cycleH;}A.cssAfter=A.cssAfter||{};A.cssAfter.display="none";h(F).css("zIndex",A.slideCount+(E===true?1:0));h(B).css("zIndex",A.slideCount+(E===true?0:1));};h.fn.cycle.custom=function(I,B,H,E,C,G){var J=h(I),A=h(B);var F=H.speedIn,K=H.speedOut,D=H.easeIn,L=H.easeOut;A.css(H.cssBefore);if(G){if(typeof G=="number"){F=K=G;}else{F=K=1;}D=L=null;}var M=function(){A.animate(H.animIn,F,D,function(){E();});};J.animate(H.animOut,K,L,function(){J.css(H.cssAfter);if(!H.sync){M();}});if(H.sync){M();}};h.fn.cycle.transitions={fade:function(B,A,C){A.not(":eq("+C.currSlide+")").css("opacity",0);C.before.push(function(F,E,D){h.fn.cycle.commonReset(F,E,D);D.cssBefore.opacity=0;});C.animIn={opacity:1};C.animOut={opacity:0};C.cssBefore={top:0,left:0};}};h.fn.cycle.ver=function(){return j;};h.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!h.support.opacity,cleartypeNoBg:false,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:true,metaAttr:"cycle",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:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:g,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null};})(jQuery);(function(B){B.fn.cycle.transitions.none=function(E,A,F){F.fxFn=function(D,J,I,C){B(J).show();B(D).hide();C();};};B.fn.cycle.transitions.fadeout=function(E,A,F){A.not(":eq("+F.currSlide+")").css({display:"block","opacity":1});F.before.push(function(C,K,D,M,L,N){B(C).css("zIndex",D.slideCount+(N!==true?1:0));B(K).css("zIndex",D.slideCount+(N!==true?0:1));});F.animIn.opacity=1;F.animOut.opacity=0;F.cssBefore.opacity=1;F.cssBefore.display="block";F.cssAfter.zIndex=0;};B.fn.cycle.transitions.scrollUp=function(F,A,G){F.css("overflow","hidden");G.before.push(B.fn.cycle.commonReset);var H=F.height();G.cssBefore.top=H;G.cssBefore.left=0;G.cssFirst.top=0;G.animIn.top=0;G.animOut.top=-H;};B.fn.cycle.transitions.scrollDown=function(F,A,G){F.css("overflow","hidden");G.before.push(B.fn.cycle.commonReset);var H=F.height();G.cssFirst.top=0;G.cssBefore.top=-H;G.cssBefore.left=0;G.animIn.top=0;G.animOut.top=H;};B.fn.cycle.transitions.scrollLeft=function(F,A,G){F.css("overflow","hidden");G.before.push(B.fn.cycle.commonReset);var H=F.width();G.cssFirst.left=0;G.cssBefore.left=H;G.cssBefore.top=0;G.animIn.left=0;G.animOut.left=0-H;};B.fn.cycle.transitions.scrollRight=function(F,A,G){F.css("overflow","hidden");G.before.push(B.fn.cycle.commonReset);var H=F.width();G.cssFirst.left=0;G.cssBefore.left=-H;G.cssBefore.top=0;G.animIn.left=0;G.animOut.left=H;};B.fn.cycle.transitions.scrollHorz=function(E,A,F){E.css("overflow","hidden").width();F.before.push(function(C,I,D,J){if(D.rev){J=!J;}B.fn.cycle.commonReset(C,I,D);D.cssBefore.left=J?(I.cycleW-1):(1-I.cycleW);D.animOut.left=J?-C.cycleW:C.cycleW;});F.cssFirst.left=0;F.cssBefore.top=0;F.animIn.left=0;F.animOut.top=0;};B.fn.cycle.transitions.scrollVert=function(E,A,F){E.css("overflow","hidden");F.before.push(function(C,I,D,J){if(D.rev){J=!J;}B.fn.cycle.commonReset(C,I,D);D.cssBefore.top=J?(1-I.cycleH):(I.cycleH-1);D.animOut.top=J?C.cycleH:-C.cycleH;});F.cssFirst.top=0;F.cssBefore.left=0;F.animIn.top=0;F.animOut.left=0;};B.fn.cycle.transitions.slideX=function(E,A,F){F.before.push(function(C,H,D){B(D.elements).not(C).hide();B.fn.cycle.commonReset(C,H,D,false,true);D.animIn.width=H.cycleW;});F.cssBefore.left=0;F.cssBefore.top=0;F.cssBefore.width=0;F.animIn.width="show";F.animOut.width=0;};B.fn.cycle.transitions.slideY=function(E,A,F){F.before.push(function(C,H,D){B(D.elements).not(C).hide();B.fn.cycle.commonReset(C,H,D,true,false);D.animIn.height=H.cycleH;});F.cssBefore.left=0;F.cssBefore.top=0;F.cssBefore.height=0;F.animIn.height="show";F.animOut.height=0;};B.fn.cycle.transitions.shuffle=function(G,A,H){var I,J=G.css("overflow","visible").width();A.css({left:0,top:0});H.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D,true,true,true);});if(!H.speedAdjusted){H.speed=H.speed/2;H.speedAdjusted=true;}H.random=0;H.shuffle=H.shuffle||{left:-J,top:15};H.els=[];for(I=0;I<A.length;I++){H.els.push(A[I]);}for(I=0;I<H.currSlide;I++){H.els.push(H.els.shift());}H.fxFn=function(P,E,C,O,F){if(C.rev){F=!F;}var N=F?B(P):B(E);B(E).css(C.cssBefore);var D=C.slideCount;N.animate(C.shuffle,C.speedIn,C.easeIn,function(){var S=B.fn.cycle.hopsFromLast(C,F);for(var M=0;M<S;M++){if(F){C.els.push(C.els.shift());}else{C.els.unshift(C.els.pop());}}if(F){for(var L=0,T=C.els.length;L<T;L++){B(C.els[L]).css("z-index",T-L+D);}}else{var K=B(P).css("z-index");N.css("z-index",parseInt(K,10)+1+D);}N.animate({left:0,top:0},C.speedOut,C.easeOut,function(){B(F?this:P).hide();if(O){O();}});});};B.extend(H.cssBefore,{display:"block",opacity:1,top:0,left:0});};B.fn.cycle.transitions.turnUp=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,true,false);D.cssBefore.top=H.cycleH;D.animIn.height=H.cycleH;D.animOut.width=H.cycleW;});F.cssFirst.top=0;F.cssBefore.left=0;F.cssBefore.height=0;F.animIn.top=0;F.animOut.height=0;};B.fn.cycle.transitions.turnDown=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,true,false);D.animIn.height=H.cycleH;D.animOut.top=C.cycleH;});F.cssFirst.top=0;F.cssBefore.left=0;F.cssBefore.top=0;F.cssBefore.height=0;F.animOut.height=0;};B.fn.cycle.transitions.turnLeft=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,false,true);D.cssBefore.left=H.cycleW;D.animIn.width=H.cycleW;});F.cssBefore.top=0;F.cssBefore.width=0;F.animIn.left=0;F.animOut.width=0;};B.fn.cycle.transitions.turnRight=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,false,true);D.animIn.width=H.cycleW;D.animOut.left=C.cycleW;});B.extend(F.cssBefore,{top:0,left:0,width:0});F.animIn.left=0;F.animOut.width=0;};B.fn.cycle.transitions.zoom=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,false,false,true);D.cssBefore.top=H.cycleH/2;D.cssBefore.left=H.cycleW/2;B.extend(D.animIn,{top:0,left:0,width:H.cycleW,height:H.cycleH});B.extend(D.animOut,{width:0,height:0,top:C.cycleH/2,left:C.cycleW/2});});F.cssFirst.top=0;F.cssFirst.left=0;F.cssBefore.width=0;F.cssBefore.height=0;};B.fn.cycle.transitions.fadeZoom=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,false,false);D.cssBefore.left=H.cycleW/2;D.cssBefore.top=H.cycleH/2;B.extend(D.animIn,{top:0,left:0,width:H.cycleW,height:H.cycleH});});F.cssBefore.width=0;F.cssBefore.height=0;F.animOut.opacity=0;
};B.fn.cycle.transitions.blindX=function(F,A,G){var H=F.css("overflow","hidden").width();G.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D);D.animIn.width=E.cycleW;D.animOut.left=C.cycleW;});G.cssBefore.left=H;G.cssBefore.top=0;G.animIn.left=0;G.animOut.left=H;};B.fn.cycle.transitions.blindY=function(F,A,G){var H=F.css("overflow","hidden").height();G.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D);D.animIn.height=E.cycleH;D.animOut.top=C.cycleH;});G.cssBefore.top=H;G.cssBefore.left=0;G.animIn.top=0;G.animOut.top=H;};B.fn.cycle.transitions.blindZ=function(G,A,H){var I=G.css("overflow","hidden").height();var J=G.width();H.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D);D.animIn.height=E.cycleH;D.animOut.top=C.cycleH;});H.cssBefore.top=I;H.cssBefore.left=J;H.animIn.top=0;H.animIn.left=0;H.animOut.top=I;H.animOut.left=J;};B.fn.cycle.transitions.growX=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,false,true);D.cssBefore.left=this.cycleW/2;D.animIn.left=0;D.animIn.width=this.cycleW;D.animOut.left=0;});F.cssBefore.top=0;F.cssBefore.width=0;};B.fn.cycle.transitions.growY=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,true,false);D.cssBefore.top=this.cycleH/2;D.animIn.top=0;D.animIn.height=this.cycleH;D.animOut.top=0;});F.cssBefore.height=0;F.cssBefore.left=0;};B.fn.cycle.transitions.curtainX=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,false,true,true);D.cssBefore.left=H.cycleW/2;D.animIn.left=0;D.animIn.width=this.cycleW;D.animOut.left=C.cycleW/2;D.animOut.width=0;});F.cssBefore.top=0;F.cssBefore.width=0;};B.fn.cycle.transitions.curtainY=function(E,A,F){F.before.push(function(C,H,D){B.fn.cycle.commonReset(C,H,D,true,false,true);D.cssBefore.top=H.cycleH/2;D.animIn.top=0;D.animIn.height=H.cycleH;D.animOut.top=C.cycleH/2;D.animOut.height=0;});F.cssBefore.height=0;F.cssBefore.left=0;};B.fn.cycle.transitions.cover=function(I,H,J){var A=J.direction||"left";var L=I.css("overflow","hidden").width();var K=I.height();J.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D);if(A=="right"){D.cssBefore.left=-L;}else{if(A=="up"){D.cssBefore.top=K;}else{if(A=="down"){D.cssBefore.top=-K;}else{D.cssBefore.left=L;}}}});J.animIn.left=0;J.animIn.top=0;J.cssBefore.top=0;J.cssBefore.left=0;};B.fn.cycle.transitions.uncover=function(I,H,J){var A=J.direction||"left";var L=I.css("overflow","hidden").width();var K=I.height();J.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D,true,true,true);if(A=="right"){D.animOut.left=L;}else{if(A=="up"){D.animOut.top=-K;}else{if(A=="down"){D.animOut.top=K;}else{D.animOut.left=-L;}}}});J.animIn.left=0;J.animIn.top=0;J.cssBefore.top=0;J.cssBefore.left=0;};B.fn.cycle.transitions.toss=function(G,A,H){var J=G.css("overflow","visible").width();var I=G.height();H.before.push(function(C,E,D){B.fn.cycle.commonReset(C,E,D,true,true,true);if(!D.animOut.left&&!D.animOut.top){B.extend(D.animOut,{left:J*2,top:-I/2,opacity:0});}else{D.animOut.opacity=0;}});H.cssBefore.left=0;H.cssBefore.top=0;H.animIn.left=0;};B.fn.cycle.transitions.wipe=function(R,V,O){var S=R.css("overflow","hidden").width();var X=R.height();O.cssBefore=O.cssBefore||{};var Z;if(O.clip){if(/l2r/.test(O.clip)){Z="rect(0px 0px "+X+"px 0px)";}else{if(/r2l/.test(O.clip)){Z="rect(0px "+S+"px "+X+"px "+S+"px)";}else{if(/t2b/.test(O.clip)){Z="rect(0px "+S+"px 0px 0px)";}else{if(/b2t/.test(O.clip)){Z="rect("+X+"px "+S+"px "+X+"px 0px)";}else{if(/zoom/.test(O.clip)){var T=parseInt(X/2,10);var A=parseInt(S/2,10);Z="rect("+T+"px "+A+"px "+T+"px "+A+"px)";}}}}}}O.cssBefore.clip=O.cssBefore.clip||Z||"rect(0px 0px 0px 0px)";var W=O.cssBefore.clip.match(/(\d+)/g);var Q=parseInt(W[0],10),P=parseInt(W[1],10),U=parseInt(W[2],10),Y=parseInt(W[3],10);O.before.push(function(C,H,E){if(C==H){return ;}var I=B(C),J=B(H);B.fn.cycle.commonReset(C,H,E,true,true,false);E.cssAfter.display="block";var F=1,G=parseInt((E.speedIn/13),10)-1;(function D(){var N=Q?Q-parseInt(F*(Q/G),10):0;var M=Y?Y-parseInt(F*(Y/G),10):0;var L=U<X?U+parseInt(F*((X-U)/G||1),10):X;var K=P<S?P+parseInt(F*((S-P)/G||1),10):S;J.css({clip:"rect("+N+"px "+K+"px "+L+"px "+M+"px)"});(F++<=G)?setTimeout(D,13):I.css("display","none");})();});B.extend(O.cssBefore,{display:"block",opacity:1,top:0,left:0});O.animIn={left:0};O.animOut={left:0};};})(jQuery);(function(H){var F={};var I=0;var J=0;var G="";H.mousedirection=function(B){var A={};F=H.extend(A,B);H(document).bind("mousemove",function(C){var D=C.target||C.srcElement;if(C.pageX>I&&C.pageY>J){G="bottom-right";}else{if(C.pageX>I&&C.pageY<J){G="top-right";}else{if(C.pageX<I&&C.pageY<J){G="top-left";}else{if(C.pageX<I&&C.pageY>J){G="bottom-left";}else{if(C.pageX>I&&C.pageY==J){G="right";}else{if(C.pageX==I&&C.pageY>J){G="down";}else{if(C.pageX==I&&C.pageY<J){G="up";}else{if(C.pageX<I&&C.pageY==J){G="left";}}}}}}}}H(D).trigger(G);H(D).trigger({type:"mousedirection",direction:G});I=C.pageX;J=C.pageY;});};})(jQuery);