function init(){function o(){t!=""&&$(".dropdowns .dropdown."+t).show()}function f(n,t){text=$(t).find("img").attr("title");link=$(t).find("a").attr("href");$(t).parents(".tab-slider").siblings(".description").html("<div><a href='"+link+"'>"+text+"<\/a><\/div>")}function s(n){n+="";x=n.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2}var n,i,r,t,u,e;$.browser.msie&&(ie=parseInt($.browser.version.split(".")[0]));ie>=6&&ie<=8&&$(".box").each(function(){$this=$(this);$this.append('<span class="box-corner-top-right"><\/span><span class="box-corner-bottom-left"><\/span>')});$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist_7").live("change",function(){val=this.checked;console.log("prefer not answer 3"+val);val?($("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_3CAACB2FF230458F87732F32681BB10F").val(""),$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_3CAACB2FF230458F87732F32681BB10F").attr("disabled","disabled"),$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist :checkbox:not(#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist_7)").attr("disabled","disabled"),$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist :checkbox:not(#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist_7)").attr("checked",!1)):($("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_3CAACB2FF230458F87732F32681BB10F").removeAttr("disabled"),$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist :checkbox:not(#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_57AB5893D4E648F199014B0B966B15BAlist_7)").removeAttr("disabled"))});$('[name="content_0$form_C5EBC1CA0FC645AC82372E70E6DF8567$field_27E7AA07EF9A4086B087539F1FD1F4E1scope"]').live("change",function(){val=$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_27E7AA07EF9A4086B087539F1FD1F4E1scope_4").is(":checked");val?($("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_B9A33B9A820F44B7AAAA55C4DDED29F0").val(""),$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_B9A33B9A820F44B7AAAA55C4DDED29F0").attr("disabled","disabled")):$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_B9A33B9A820F44B7AAAA55C4DDED29F0").removeAttr("disabled")});$('[name="content_0$form_C5EBC1CA0FC645AC82372E70E6DF8567$field_01A1BB9748364AE29FC5447B6951BE3Bscope"]').live("change",function(){val=$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_01A1BB9748364AE29FC5447B6951BE3Bscope_7").is(":checked");val?($("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_74112E66FD424C09A32B5B6AC5271825").val(""),$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_74112E66FD424C09A32B5B6AC5271825").attr("disabled","disabled")):$("#content_0_form_C5EBC1CA0FC645AC82372E70E6DF8567_field_74112E66FD424C09A32B5B6AC5271825").removeAttr("disabled")});n=$(".scfForm#form_C5EBC1CA0FC645AC82372E70E6DF8567");n.length>0&&($bodytext=$(".inside-body h2 + div"),$bodytext.length>0&&($hr=$bodytext.find("hr"),$hr.length>0&&(textParts=$bodytext.html().split(/<hr(.*)>/i),textParts_visible=textParts[0],textParts_hidden=textParts[2],$bodytext.html('<div class="visible-part">'+textParts_visible+'<a href="#" class="expand-more-link">More...<\/a><\/div><div class="hidden-part">'+textParts_hidden+"<\/div>"),$("a.expand-more-link").live("click",function(){return $(this).hide().closest(".visible-part").next(".hidden-part").slideDown(),!1}))),n.find("table tr:last-child").each(function(){$tr=$(this);$tr.find("td").length==1?$tr.find("td").attr("colspan","2"):$.trim($tr.find("td:last-child").text())==""&&($tr.find("td:first-child").attr("colspan","2"),$tr.find("td:last-child").remove())}),r=n.find(".scfSingleLineTextUsefulInfo"),r.insertAfter(r.closest(".scfSingleLineTextBorder").prev().find(".scfCheckBoxListLabel")),i=n.find(".scfSectionBorderAsFieldSet").parent().filter(":nth-child(2)").find("input[type='checkbox'],input[type='radio']"),i.bind("change",function(){$this=$(this);var t=$this.attr("type");i.not($this).attr("checked",!1);t=="checkbox"&&$(this).is(":checked")?n.find(".scfSectionBorderAsFieldSet").parent().filter(":nth-child(2)").find("input[type='text']").attr("disabled",!0):n.find(".scfSectionBorderAsFieldSet").parent().filter(":nth-child(2)").find("input[type='text']").attr("disabled",!1)}));t="";$("#menu ul li").hover(function(){$this=$(this);$type=$this.attr("class").split(" ")[0];$dropdown=$(".dropdowns .dropdown."+$type);$dropdown.length>0?($dropdown.siblings().hide(),$this.addClass("fixed").siblings().removeClass("fixed"),t=$type,u=setTimeout(function(){o()},500)):($(".dropdowns .dropdown").hide(),$this.siblings().removeClass("fixed"))},function(){});$("#wrapper-menu").mouseleave(function(){$(".dropdowns .dropdown").hide();$("#menu ul li").removeClass("fixed");t="";clearTimeout(u)});jQuery("input[placeholder], textarea[placeholder]").placeholder();$(".slider:not(.green-top-block.interested .slider)").cycle({fx:"fade",timeout:5e3,pager:".pager"});$(".green-top-block.interested .slider").cycle({fx:"fade",timeout:0,pager:".pager",next:".green-top-block.interested .media .next",prev:".green-top-block.interested .media .prev"});$(".images-gallery .images-gallery-slider .slider-container").cycle({fx:"scrollHorz",timeout:0,pager:".pager",next:".images-gallery-slider .rarr",prev:".images-gallery-slider .larr"});$(".tabs").each(function(){$this=$(this);var n=0;$actTab=$this.siblings("input");$actTab!=null&&(n=$actTab.first().val(),(n==null||n=="undefined"||n.length==0)&&(n=0));$this.find("a").eq(n).addClass("selected").siblings().removeClass("selected");$this.parent().find(".tabs-boxes").first().find(".tabs-box").eq(n).show().siblings().hide()});$(".tabs a").bind("click",function(){$tabs=$(this).closest(".tabs");$a=$(this);$siblings=$a.siblings();$a.addClass("selected");$siblings.removeClass("selected");index=$a.index();$hiddenSelector=$tabs.siblings("input");$hiddenSelector.first().val(index);$boxes=$tabs.parent().find(".tabs-boxes").first();$target=$boxes.children(".tabs-box:eq("+index+")");$box=$boxes.children(".tabs-box").not($target);$box.each(function(){_box=$(this);_box.animate({marginTop:-1*_box.outerHeight()+"px",opacity:0},800,function(){$(this).hide()})});$target.css({opacity:.05}).show().css({marginTop:-1*$target.outerHeight()+"px"}).animate({marginTop:"0px",opacity:1},800)});$(".tab-slider").each(function(){$prev=$(this).siblings(".prev");$next=$(this).siblings(".next");$(this).cycle({fx:"scrollHorz",timeout:0,prev:$prev,next:$next,before:f})});$(".my-preferences-one .preferences-slider").each(function(){var n=$(this);n.parent().css("cursor","pointer").bind("click",function(){return n=$(this).parents(".my-preferences-one").first(),n.is(".selected")?n.find(".a-list,.slidebox-content").slideUp(400,function(){n.removeClass("selected")}):($(".my-preferences-one").find(".a-list,.slidebox-content").slideUp(400),$(".my-preferences-one").removeClass("selected"),n.find(".a-list,.slidebox-content").slideDown(400,function(){n.addClass("selected")})),!1})});$(".my-preferences-one .delete-one").click(function(){$(this).parent(".option-one").slideUp()});$(".basket-table tr td .delete-one").click(function(){$(this).closest("tr").fadeOut()});$(".order-history-table tr td.view-details a").click(function(){$(this).closest("tr").addClass("selected").next("tr").show()});$(".order-history-table tr td .hide-details").click(function(){$(this).closest("tr").removeClass("selected").next("tr").hide()});$(".book-finder,.event-finder,.job-finder").find(".slide-block").click(function(){var t=$(this),n=t.closest(".book-finder,.box.search-box");n.find(".slider-but").toggleClass("down");n.find(".adv-search").slideToggle(400,function(){n.toggleClass("act")})});$(".location-more .slider-but").click(function(){var t=$(this),n=t.closest(".location-more");n.find(".slider-but").toggleClass("down");n.find(".location-more-options").slideToggle(400,function(){n.toggleClass("act")})});$(".interested .slider-articles").cycle({fx:"scrollHorz",timeout:0,prev:$(".prev"),next:$(".next"),before:f});$(".top5-swapper").each(function(){$this=$(this);var n=$this.find("a"),t=$this.parent().find(".swapper-contents");n.bind("click",function(){return $a=$(this),$ap=$a.parent(),$ap.hide().siblings().show(),index=$ap.index(),t.find(".swapper-content:eq("+index+")").show().siblings().hide(),!1})});$("a[data-email-popup]").bind("click",function(){return $popup=$($(this).attr("data-email-popup")),$popup.fadeIn("fast"),!1});$(".email-popup .close").bind("click",function(){return $(this).closest(".email-popup").fadeOut("fast"),!1});e={collapseTimer:4e3};$.each(["beforeExpand","afterExpand","onCollapse"],function(n,t){e[t]=function(n){var i='<div class="success">'+t;t=="onCollapse"&&(i+=" ("+(n?"user":"timer")+")");i+="<\/div>";$(this).parent().parent().append(i)}});try{$("ul.expander li").expander({slicePoint:200,preserveWords:!0,widow:2,expandEffect:"slideDown",collapseEffect:"slideUp",expandText:"view details",userCollapseText:"hide details"})}catch(h){}$hints_wrapper=$("#hints-wrapper");$hints_wrapper.length==0&&($hints_wrapper=$("<div id='hints-wrapper'><\/div>").appendTo("body"));$(".q-ico .click").click(function(){$this=$(this).closest(".q-ico");$this.attr("data-processed")!="true"&&($small_help=$this.find(".small-help"),$small_help.length>0&&(id="help_popup_"+($hints_wrapper.find(".small-help").length+1),$this.attr("data-processed","true"),$this.attr("data-popup",id),$small_help.attr("data-id",id).appendTo($hints_wrapper)));_id=$this.attr("data-popup");_offset=$this.offset();$small_help=$("[data-id='"+_id+"']");$small_help.css("left",_offset.left-260+"px");$small_help.css("top",_offset.top-120+"px");$small_help.fadeIn();$small_help.find(".close").one("click",function(){$(this).closest(".small-help").fadeOut()});return!1});$(".show-edit-field").click(function(){$(this).parent().siblings(".edit-field").show()});$("textarea[maxlength]").keyup(function(){var n=parseInt($(this).attr("maxlength")),t=s(n-$(this).val().length);$(this).val().length>n&&$(this).val($(this).val().substr(0,$(this).attr("maxlength")));$(this).parent(".show-max-chars").find(".chars-left").text(t)});$(".cpd-summary-table input:checkbox").click(function(){$(".cpd-summary-table input:checkbox:checked").length>0?$(".cpd-summary-table-controls .del-ico").removeClass("disabled"):$(".cpd-summary-table-controls .del-ico").addClass("disabled")});$(".video-frame a").each(function(){var n=$(this).attr("id");flowplayer(n,"/flowplayer/flowplayer-3.2.12.swf")});try{$("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:"fast",slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"light_square",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!1,overlay_gallery:!1,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder">           <div class="ppt">&nbsp;<\/div>           <div class="pp_top">             <div class="pp_left"><\/div>             <div class="pp_middle"><\/div>             <div class="pp_right"><\/div>           <\/div>           <div class="pp_content_container">             <div class="pp_left">             <div class="pp_right">               <div class="pp_content">                 <div class="pp_loaderIcon"><\/div>                 <div class="pp_fade">                   <a href="#" class="pp_expand" title="Expand the image">Expand<\/a>                   <div class="pp_hoverContainer">                     <a class="pp_next" href="#">next<\/a>                     <a class="pp_previous" href="#">previous<\/a>                   <\/div>                   <div id="pp_full_res"><\/div>                   <div class="pp_details">                     <div class="pp_nav">                       <a href="#" class="pp_arrow_previous">Previous<\/a>                       <p class="currentTextHolder">0/0<\/p>                       <a href="#" class="pp_arrow_next">Next<\/a>                     <\/div>                     <p class="pp_description"><\/p>                     {pp_social}                     <a class="pp_close" href="#">Close<\/a>                   <\/div>                 <\/div>               <\/div>             <\/div>             <\/div>           <\/div>           <div class="pp_bottom">             <div class="pp_left"><\/div>             <div class="pp_middle"><\/div>             <div class="pp_right"><\/div>           <\/div>         <\/div>         <div class="pp_overlay"><\/div>',gallery_markup:'<div class="pp_gallery">               <a href="#" class="pp_arrow_previous">Previous<\/a>               <div>                 <ul>                   {gallery}                 <\/ul>               <\/div>               <a href="#" class="pp_arrow_next">Next<\/a>             <\/div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"><\/embed><\/object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"><\/embed><\/object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"><\/iframe>',inline_markup:'<div class="pp_inline">{content}<\/div>',custom_markup:"",social_tools:""})}catch(h){}assignTracker();$(".cookie-message .close").on("click",function(){SetCookiesBoxShown();$(this).closest(".cookie-message").fadeOut("fast")});$(".sitemap li:has(ul:has(li))").each(function(){$(this).prepend('<span class="expander">+<\/span>')});try{$(".sitemap").html($(".sitemap").html().split("<br>").join(" "))}catch(h){}$(".expander").on("click",function(){$(this).html($(this).html()=="+"?"&minus;":"+")});$(".sitemap .expander").on("click",function(n){n.preventDefault();$(this).closest("li").find(" > ul").slideToggle("fast")});if(AreCookiesEnabled()){if(GetCookiesBoxShown())return;$("#messageUsed").show()}else $("#messageDisabled").show();$(".cookie-message").fadeIn("slow");cookieMessagePlace();$(window).on("resize scroll",function(){cookieMessagePlace()});$(".scfDatePickerTextBox").addClass("hasDatepicker")}function assignTracker(){try{$("a[href$='.pdf']").on("click",function(){$this=$(this);title=$this.attr("title")||$this.text()||$this.attr("href");path=$this.attr("href");filename=path.split("/")[path.split("/").length-1];title!=path&&path.indexOf("/media/"+filename)==-1&&(title+=" - "+filename);__gaTracker("send","event","Track File","Download PDF",title)})}catch(n){}try{$("a[href$='.mp3']").on("click",function(){$this=$(this);title=$this.attr("title")||$this.text()||$this.attr("href");path=$this.attr("href");filename=path.split("/")[path.split("/").length-1];title!=path&&path.indexOf("/media/"+filename)==-1&&(title+=" - "+filename);__gaTracker("send","event","Track File","Download mp3",title)})}catch(n){}}function cookieMessagePlace(){$(".cookie-message .close").live("click",function(){$(this).parents(".cookie-message").fadeOut("fast")});$cm=$(".cookie-message");$footer=$("#wrapper-footer");offset=$footer.offset();var n=0;try{top=$(window).scrollTop();n=top.scrollY}catch(t){n=0}wh=$(window).height();n=n+wh-offset.top;n>0?$cm.css("bottom",n+"px"):$cm.css("bottom","0px")}function AreCookiesEnabled(){document.cookie="gsl__verify=1;expires=Thu, 13 Sep 3007 14:07:07 GMT; path=/";var n=document.cookie.length>1&&document.cookie.indexOf("gsl__verify=1")>-1,t=new Date(1976,8,16);return document.cookie="gsl__verify=1;expires="+t.toUTCString(),n}function GetCookiesBoxShown(){return document.cookie.length>1&&document.cookie.indexOf("gsl__c_shown=1")>-1}function SetCookiesBoxShown(){document.cookie="gsl__c_shown=1;expires=Thu, 13 Sep 3007 14:07:07 GMT; path=/"}function ShowCookiesPage(){this.SetCookiesBoxShown();window.location.href="/General-Information/Privacy and Cookies"}function makeUnselectable(n){n&&$(n).each(function(){$this=$(this);$this.onselectstart="return false;";$this.attr("unselectable","on").addClass("unselectable");makeUnselectable($this.children())})}function tGSLShopping(){}function tBookSearch(){}function tCommon(){}function LoadRendering(n,t){var i=$("#scID").attr("content");$.ajax({type:"POST",url:"/handlers/Shop.asmx/LoadRendering",data:"{rendering:'"+n+"', id : '"+i+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){t.html(n.d)}})}function LoadSublayout(n,t,i){var r=$("#scID").attr("content");$.ajax({type:"POST",url:"/handlers/Shop.asmx/Ls",cache:!1,data:"{p1:'"+n+"', p2:'"+r+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:i?i:function(n){t.html(n.d)}})}function LoadPopup(n,t,i,r){$.ajax({type:"POST",url:"/handlers/Shop.asmx/Ls",cache:!1,data:"{p1:'"+n+"', p2:'"+i+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:r?r:function(n){t.html(n.d)}})}function ExecuteAjaxMethod(n,t){$.ajax({type:"POST",url:"/handlers/Shop.asmx/"+n,cache:!1,data:"{"+t+"}",contentType:"application/json; charset=utf-8",dataType:"json"})}function SetCurrentTab(n){$.ajax({type:"POST",url:"/handlers/Shop.asmx/SetCurrentTab",data:"{tab:'"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json"})}function AddReview(n,t,i){var r=$("#scID").attr("content");$.ajax({type:"POST",url:"/handlers/Shop.asmx/AddReview",data:"{title:'"+n+"', text :'"+t+"', rate:'"+i+"', id : '"+r+"'}",contentType:"application/json; charset=utf-8",dataType:"json"})}function EmailMeOnceItemAvailable(n){emailMeOnceItemAvailableIsProcessing||(emailMeOnceItemAvailableIsProcessing=!0,setTimeout(function(){emailMeOnceItemAvailableIsProcessing=!1},500),$.ajax({type:"POST",url:"/handlers/Shop.asmx/EmailMeOnceItemAvailable",cache:!1,data:"{productCode:'"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){alert("Notifiction created.")}}))}function AddToShoppingCart(n,t){addToShoppingCartIsProcessing||(addToShoppingCartIsProcessing=!0,setTimeout(function(){addToShoppingCartIsProcessing=!1},500),$.ajax({type:"POST",url:"/handlers/Shop.asmx/AddToShoppingCart",cache:!1,data:"{productCode:'"+n+"', quantity:'"+t+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){LoadSublayout("GSL/Sublayouts/Shopping/ShoppingCartSpot",null,function(n){$("#small_ShoppingCart_container").animate({opacity:.3},200).replaceWith(n.d);$("#small_ShoppingCart_container").css({opacity:.3}).animate({opacity:1},600)});LoadSublayout("GSL/Functional/ShoppingCartSummury",null,function(n){$("#top_ShoppingCart_container").animate({opacity:.3},200).replaceWith(n.d);$("#top_ShoppingCart_container").css({opacity:.3}).animate({opacity:1},600)});$(".update-basket").slideDown(300).delay(1500).slideUp(400)}}))}function RefreshShoppingCart(){LoadSublayout("GSL/Sublayouts/Shopping/ShoppingCartSpot",null,function(n){$("#small_ShoppingCart_container").animate({opacity:.3},200).replaceWith(n.d);$("#small_ShoppingCart_container").css({opacity:.3}).animate({opacity:1},600)});LoadSublayout("GSL/Functional/ShoppingCartSummury",null,function(n){$("#top_ShoppingCart_container").animate({opacity:.3},200).replaceWith(n.d);$("#top_ShoppingCart_container").css({opacity:.3}).animate({opacity:1},600)});$(".update-basket").slideDown(300).delay(1500).slideUp(400)}function ShowBookLargeImage(){LoadSublayout("GSL/Sublayouts/Popups/BookLargeImage",null,function(n){$("#ph_popup").fadeOut().replaceWith(n.d);$("#ph_popup").fadeIn()})}function LoadOrderPrint(n){var t=$("#scID").attr("content");$.ajax({type:"POST",url:"/handlers/Shop.asmx/LoadOrderPrint",cache:!1,data:"{id:'"+t+"', ordernumber : '"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){$("#printOrderView").replaceWith(n.d);window.print()}})}function LoadCPDPrint(n){var t=$("#scID").attr("content");$.ajax({type:"POST",url:"/handlers/Shop.asmx/LoadCPDPrint",cache:!1,data:"{id:'"+t+"', yearid : '"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){$("#cpdPrint").replaceWith(n.d);window.print()}})}function UpdatyCPDSummary(){var n=$("#scID").attr("content");$.ajax({type:"POST",url:"/handlers/Shop.asmx/UpdatyCPDSummary",cache:!1,data:"{id:'"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){$("#cpdSummary").replaceWith(n.d)}})}function CPDPeriodClosingConfirmation(){return $("#cpdClosingCfm").fadeIn(),!1}function ShowLargePopup(n){LoadPopup("GSL/Sublayouts/Popups/LargePopup",null,n,function(n){$("#ph_popup").fadeOut().replaceWith(n.d);$("#ph_popup").fadeIn()})}function ShowGeoscientistIssuePopup(){var n=$("#scID").attr("content");LoadPopup("GSL/Sublayouts/Popups/GeoscientistIssuePopup",null,n,function(n){$("#ph_popup").fadeOut().replaceWith(n.d);$("#ph_popup").fadeIn()})}function ShowVenueImage(n){LoadPopup("GSL/Sublayouts/Events/VenueImage",null,n,function(n){$("#floorplan").fadeOut().replaceWith(n.d);$("#floorplan").fadeIn();$(".shadow").fadeIn();$(".floorplan-pop.pop1").fadeIn()})}function ShowVenueFloorplan(n){LoadPopup("GSL/Sublayouts/Events/VenueFloorplan",null,n,function(n){$("#floorplan").fadeOut().replaceWith(n.d);$("#floorplan").fadeIn();$(".shadow").fadeIn();$(".floorplan-pop.pop1").fadeIn()})}function ShowVenuePanorama(n){LoadPopup("GSL/Sublayouts/Events/VenuePanorama",null,n,function(n){$("#floorplan").fadeOut().replaceWith(n.d);$("#floorplan").fadeIn();$(".shadow").fadeIn();$(".floorplan-pop.pop1").fadeIn()})}function DeleteFromShoppingCart(n){$.ajax({type:"POST",url:"/handlers/Shop.asmx/DeleteFromShoppingCart",data:"{productCode:'"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){LoadSublayout("GSL/Sublayouts/Shopping/ShoppingCartSpot",null,function(n){$("#small_ShoppingCart_container").animate({opacity:.3},200).replaceWith(n.d);$("#small_ShoppingCart_container").css({opacity:.3}).animate({opacity:1},600)});LoadSublayout("GSL/Functional/ShoppingCartSummury",null,function(n){$("#top_ShoppingCart_container").animate({opacity:.3},200).replaceWith(n.d);$("#top_ShoppingCart_container").css({opacity:.3}).animate({opacity:1},600)})}})}function UpdateShoppingCart(n,t){$.ajax({type:"POST",url:"/handlers/Shop.asmx/UpdateShoppingCart",data:"{productCode:'"+n+"' quantity:'"+t+"'}",contentType:"application/json; charset=utf-8",dataType:"json"})}function CheckPaymentStatus(){$.ajax({type:"POST",url:"/handlers/Shop.asmx/CheckPaymentStatus",cache:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){n!="undefined"&&n!=null&&n.d!=null&&n.d!="undefined"&&n.d!=""&&n.d!="test"&&(window.location.href=n.d)}})}function SelectAllGeoCategories(){$(".checkbox-wrapper input:checkbox").attr("checked",$("#selectAllGeoCats").attr("checked"))}function PopupHelpExplicit(n){$hints_wrapper=$("#hints-wrapper");$hints_wrapper.length==0&&($hints_wrapper=$("<div id='hints-wrapper'><\/div>").appendTo("body"));$this=$(n).closest(".q-ico");$this.attr("data-processed")!="true"&&($small_help=$this.find(".small-help"),$small_help.length>0&&(id="help_popup_"+($hints_wrapper.find(".small-help").length+1),$this.attr("data-processed","true"),$this.attr("data-popup",id),$small_help.attr("data-id",id).appendTo($hints_wrapper)));var i=$this.attr("data-popup"),t=$this.offset();$small_help=$("[data-id='"+i+"']");$small_help.css("left",t.left-260+"px");$small_help.css("top",t.top-120+"px");$small_help.fadeIn();$small_help.find(".close").one("click",function(){$(this).closest(".small-help").fadeOut()});return!1}function CPDActivitiesExpandAll(n){$(n).text()=="Expand all"?($(".cpd-activity-table tbody tr").filter(":even").addClass("show-detail"),$(".cpd-activity-table tbody tr:even a").text("Hide details"),$(".cpd-activity-table tbody tr").filter(":odd").show(),$(".expand-all").text("Collapse all")):($(".cpd-activity-table tbody tr").filter(":even").removeClass("show-detail"),$(".cpd-activity-table tbody tr").filter(":odd").hide(),$(".cpd-activity-table tbody tr:even a").text("View details"),$(".expand-all").text("Expand all"))}function CPDActivitiesViewDetails(n){var t=$(n).closest("tr");$(t).toggleClass("show-detail");$(t).next("tr").toggle();$(n).text()=="View details"?$(n).text("Hide details"):$(n).text("View details")}var pp_alreadyInitialized,ie,GSLShopping,Common,emailMeOnceItemAvailableIsProcessing,addToShoppingCartIsProcessing,Coverflow;(function(n,t){function yt(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}function pt(n){if(!at[n]){var e=r.body,t=i("<"+n+">").appendTo(e),u=t.css("display");t.remove();(u==="none"||u==="")&&(f||(f=r.createElement("iframe"),f.frameBorder=f.width=f.height=0),e.appendChild(f),y&&f.createElement||(y=(f.contentWindow||f.contentDocument).document,y.write((i.support.boxModel?"<!doctype html>":"")+"<html><body>"),y.close()),t=y.createElement(n),y.body.appendChild(t),u=i.css(t,"display"),e.removeChild(f));at[n]=u}return at[n]}function c(n,t){var r={};return i.each(it.concat.apply([],it.slice(0,t)),function(){r[this]=n}),r}function dr(){rt=t}function wt(){return setTimeout(dr,0),rt=i.now()}function gr(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function bt(){try{return new n.XMLHttpRequest}catch(t){}}function nu(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,s={},l,p=v.length,a,u=v[0],h,y,f,e,o,c=1;c<p;c++){if(c===1)for(l in n.converters)typeof l=="string"&&(s[l.toLowerCase()]=n.converters[l]);if(h=u,u=v[c],u==="*")u=h;else if(h!=="*"&&h!==u){if(y=h+" "+u,f=s[y]||s["* "+u],!f){o=t;for(e in s)if(a=e.split(" "),(a[0]===h||a[0]==="*")&&(o=s[a[1]+" "+u],o)){e=s[e];e===!0?f=o:o===!0&&(f=e);break}}f||o||i.error("No conversion from "+y.replace(" "," to "));f!==!0&&(r=f?f(r):o(e(r)))}}return r}function tu(n,i,r){var s=n.contents,f=n.dataTypes,c=n.responseFields,o,u,e,h;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("content-type"));if(o)for(u in s)if(s[u]&&s[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}h||(h=u)}e=e||h}if(e)return e!==f[0]&&f.unshift(e),r[e]}function ut(n,t,r,u){if(i.isArray(t))i.each(t,function(t,i){r||wf.test(n)?u(n,i):ut(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(var f in t)ut(n+"["+f+"]",t[f],r,u)}function kt(n,r){var u,f,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);f&&i.extend(!0,n,f)}function w(n,i,r,u,f,e){f=f||i.dataTypes[0];e=e||{};e[f]=!0;for(var s=n[f],h=0,l=s?s.length:0,c=n===lt,o;h<l&&(c||!o);h++)o=s[h](i,r,u),typeof o=="string"&&(!c||e[o]?o=t:(i.dataTypes.unshift(o),o=w(n,i,r,u,o,e)));return!c&&o||e["*"]||(o=w(n,i,r,u,"*",e)),o}function dt(n){return function(t,r){if(typeof t!="string"&&(r=t,t="*"),i.isFunction(r))for(var o=t.toLowerCase().split(cr),f=0,h=o.length,u,s,e;f<h;f++)u=o[f],e=/^\+/.test(u),e&&(u=u.substr(1)||"*"),s=n[u]=n[u]||[],s[e?"unshift":"push"](r)}}function gt(n,t,r){var u=t==="width"?n.offsetWidth:n.offsetHeight,f=t==="width"?1:0,e=4;if(u>0){if(r!=="border")for(;f<e;f+=2)r||(u-=parseFloat(i.css(n,"padding"+o[f]))||0),r==="margin"?u+=parseFloat(i.css(n,r+o[f]))||0:u-=parseFloat(i.css(n,"border"+o[f]+"Width"))||0;return u+"px"}if(u=a(n,t),(u<0||u==null)&&(u=n.style[t]),ct.test(u))return u;if(u=parseFloat(u)||0,r)for(;f<e;f+=2)u+=parseFloat(i.css(n,"padding"+o[f]))||0,r!=="padding"&&(u+=parseFloat(i.css(n,"border"+o[f]+"Width"))||0),r==="margin"&&(u+=parseFloat(i.css(n,r+o[f]))||0);return u+"px"}function iu(n){var t=r.createElement("div");return st.appendChild(t),t.innerHTML=n.outerHTML,t.firstChild}function ni(n){var t=(n.nodeName||"").toLowerCase();t==="input"?ti(n):t!=="script"&&typeof n.getElementsByTagName!="undefined"&&i.grep(n.getElementsByTagName("input"),ti)}function ti(n){(n.type==="checkbox"||n.type==="radio")&&(n.defaultChecked=n.checked)}function b(n){return typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName("*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll("*"):[]}function ii(n,t){var r;t.nodeType===1&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(n),r=t.nodeName.toLowerCase(),r==="object"?t.outerHTML=n.outerHTML:r!=="input"||n.type!=="checkbox"&&n.type!=="radio"?r==="option"?t.selected=n.defaultSelected:r==="input"||r==="textarea"?t.defaultValue=n.defaultValue:r==="script"&&t.text!==n.text&&(t.text=n.text):(n.checked&&(t.defaultChecked=t.checked=n.checked),t.value!==n.value&&(t.value=n.value)),t.removeAttribute(i.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function ri(n,t){if(t.nodeType===1&&!!i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ru(n){return i.nodeName(n,"table")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ui(n){var i=nr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function fi(n,t,r){if(t=t||0,i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(gu.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function ei(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function k(){return!0}function l(){return!1}function oi(n,t,r){var u=t+"defer",f=t+"queue",e=t+"mark",o=i._data(n,u);!o||r!=="queue"&&i._data(n,f)||r!=="mark"&&i._data(n,e)||setTimeout(function(){i._data(n,f)||i._data(n,e)||(i.removeData(n,u,!0),o.fire())},0)}function ft(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function si(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(li,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNumeric(u)?+u:ci.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function uu(n){var i=hi[n]={},t,r;for(n=n.split(/\s+/),t=0,r=n.length;t<r;t++)i[n[t]]=!0;return i}var r=n.document,fu=n.navigator,eu=n.location,i=function(){function c(){if(!i.isReady){try{r.documentElement.doScroll("left")}catch(n){setTimeout(c,1);return}i.ready()}}var i=function(n,t){return new i.fn.init(n,t,l)},k=n.jQuery,d=n.$,l,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,a=/\S/,v=/^\s+/,y=/\s+$/,nt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,tt=/^[\],:{}\s]*$/,it=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rt=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ut=/(?:^|:|,)(?:\s*\[)+/g,ft=/(webkit)[ \/]([\w.]+)/,et=/(opera)(?:.*version)?[ \/]([\w.]+)/,ot=/(msie) ([\w.]+)/,st=/(mozilla)(?:.*? rv:([\w.]+))?/,ht=/-([a-z]|[0-9])/ig,ct=/^-ms-/,lt=function(n,t){return(t+"").toUpperCase()},at=fu.userAgent,e,o,u,vt=Object.prototype.toString,s=Object.prototype.hasOwnProperty,h=Array.prototype.push,f=Array.prototype.slice,p=String.prototype.trim,w=Array.prototype.indexOf,b={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector=n,this.length=1,this;if(typeof n=="string"){if(o=n.charAt(0)!=="<"||n.charAt(n.length-1)!==">"||n.length<3?g.exec(n):[null,n,null],o&&(o[1]||!u)){if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=nt.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);if(s=r.getElementById(o[2]),s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1;this[0]=s}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?h.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.add(n),this},eq:function(n){return n=+n,n===-1?this.slice(n):this.slice(n,n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var o,e,u,r,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n!="object"&&!i.isFunction(n)&&(n={}),l===f&&(n=this,--f);f<l;f++)if((o=arguments[f])!=null)for(e in o)(u=n[e],r=o[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(s=i.isArray(r)))?(s?(s=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n},i.extend({noConflict:function(t){return n.$===i&&(n.$=d),t&&n.jQuery===i&&(n.jQuery=k),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0&&!--i.readyWait||n!==!0&&!i.isReady){if(!r.body)return setTimeout(i.ready,1);if(i.isReady=!0,n!==!0&&--i.readyWait>0)return;o.fireWith(r,[i]);i.fn.trigger&&i(r).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=i.Callbacks("once memory"),r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u);n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&c()}}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):b[vt.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!s.call(n,"constructor")&&!s.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}for(var r in n);return r===t||s.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseJSON:function(t){if(typeof t!="string"||!t)return null;if(t=i.trim(t),n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(tt.test(t.replace(it,"@").replace(rt,"]").replace(ut,"")))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){if(typeof r!="string"||!r)return null;var u,f;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&a.test(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ct,"ms-").replace(ht,lt)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var f,e=0,o=n.length,s=o===t||i.isFunction(n);if(u){if(s){for(f in n)if(r.apply(n[f],u)===!1)break}else for(;e<o;)if(r.apply(n[e++],u)===!1)break}else if(s){for(f in n)if(r.call(n[f],f,n[f])===!1)break}else for(;e<o;)if(r.call(n[e],e,n[e++])===!1)break;return n},trim:p?function(n){return n==null?"":p.call(n)}:function(n){return n==null?"":(n+"").replace(v,"").replace(y,"")},makeArray:function(n,t){var u=t||[],r;return n!=null&&(r=i.type(n),n.length==null||r==="string"||r==="function"||r==="regexp"||i.isWindow(n)?h.call(u,n):i.merge(u,n)),u},inArray:function(n,t,i){var r;if(t){if(w)return w.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var u=n.length,r=0,f;if(typeof i.length=="number")for(f=i.length;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u=[],f,r,e;for(i=!!i,r=0,e=n.length;r<e;r++)f=!!t(n[r],r),i!==f&&u.push(n[r]);return u},map:function(n,r,u){var f,h,e=[],s=0,o=n.length,c=n instanceof i||o!==t&&typeof o=="number"&&(o>0&&n[0]&&n[o-1]||o===0||i.isArray(n));if(c)for(;s<o;s++)f=r(n[s],s,u),f!=null&&(e[e.length]=f);else for(h in n)f=r(n[h],h,u),f!=null&&(e[e.length]=f);return e.concat.apply([],e)},guid:1,proxy:function(n,r){var e,o,u;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(o=f.call(arguments,2),u=function(){return n.apply(r,o.concat(f.call(arguments)))},u.guid=n.guid=n.guid||u.guid||i.guid++,u)},access:function(n,r,u,f,e,o,s){var c,l=u==null,h=0,a=n.length;if(u&&typeof u=="object"){for(h in u)i.access(n,r,h,u[h],1,o,f);e=1}else if(f!==t){if(c=s===t&&i.isFunction(f),l&&(c?(c=r,r=function(n,t,r){return c.call(i(n),r)}):(r.call(n,f),r=null)),r)for(;h<a;h++)r(n[h],u,c?f.call(n[h],h,r(n[h],u)):f,s);e=1}return e?n:l?r.call(n):a?r(n[0],u):o},now:function(){return(new Date).getTime()},uaMatch:function(n){n=n.toLowerCase();var t=ft.exec(n)||et.exec(n)||ot.exec(n)||n.indexOf("compatible")<0&&st.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(t,i){return new n.fn.init(t,i)}i.extend(!0,n,this);n.superclass=this;n.fn=n.prototype=this();n.fn.constructor=n;n.sub=this.sub;n.fn.init=function(r,u){return u&&u instanceof i&&!(u instanceof n)&&(u=n(u)),i.fn.init.call(this,r,u,t)};n.fn.init.prototype=n.fn;var t=n(r);return n},browser:{}}),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(n,t){b["[object "+t+"]"]=t.toLowerCase()}),e=i.uaMatch(at),e.browser&&(i.browser[e.browser]=!0,i.browser.version=e.version),i.browser.webkit&&(i.browser.safari=!0),a.test(" ")&&(v=/^[\s\xA0]+/,y=/[\s\xA0]+$/),l=i(r),r.addEventListener?u=function(){r.removeEventListener("DOMContentLoaded",u,!1);i.ready()}:r.attachEvent&&(u=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",u),i.ready())}),i}(),hi={},d,ci,li,pr,p,nt,wr,v,br,kr,vt;i.Callbacks=function(n){n=n?hi[n]||uu(n):{};var r=[],f=[],u,l,s,c,h,e,a=function(t){for(var u,e,f=0,s=t.length;f<s;f++)u=t[f],e=i.type(u),e==="array"?a(u):e==="function"&&(!n.unique||!o.has(u))&&r.push(u)},v=function(t,i){for(i=i||[],u=!n.memory||[t,i],l=!0,s=!0,e=c||0,c=0,h=r.length;r&&e<h;e++)if(r[e].apply(t,i)===!1&&n.stopOnFalse){u=!0;break}s=!1;r&&(n.once?u===!0?o.disable():r=[]:f&&f.length&&(u=f.shift(),o.fireWith(u[0],u[1])))},o={add:function(){if(r){var n=r.length;a(arguments);s?h=r.length:u&&u!==!0&&(c=n,v(u[0],u[1]))}return this},remove:function(){var t;if(r)for(var u=arguments,i=0,f=u.length;i<f;i++)for(t=0;t<r.length;t++)if(u[i]===r[t]&&(s&&t<=h&&(h--,t<=e&&e--),r.splice(t--,1),n.unique))break;return this},has:function(n){if(r)for(var t=0,i=r.length;t<i;t++)if(n===r[t])return!0;return!1},empty:function(){return r=[],this},disable:function(){return r=f=u=t,this},disabled:function(){return!r},lock:function(){return f=t,u&&u!==!0||o.disable(),this},locked:function(){return!f},fireWith:function(t,i){return f&&(s?n.once||f.push([t,i]):(!n.once||!u)&&v(t,i)),this},fire:function(){return o.fireWith(this,arguments),this},fired:function(){return!!l}};return o};d=[].slice;i.extend({Deferred:function(n){var r=i.Callbacks("once memory"),u=i.Callbacks("once memory"),f=i.Callbacks("memory"),s="pending",h={resolve:r,reject:u,notify:f},e={done:r.add,fail:u.add,progress:f.add,state:function(){return s},isResolved:r.fired,isRejected:u.fired,then:function(n,i,r){return t.done(n).fail(i).progress(r),this},always:function(){return t.done.apply(t,arguments).fail.apply(t,arguments),this},pipe:function(n,r,u){return i.Deferred(function(f){i.each({done:[n,"resolve"],fail:[r,"reject"],progress:[u,"notify"]},function(n,r){var e=r[0],o=r[1],u;i.isFunction(e)?t[n](function(){u=e.apply(this,arguments);u&&i.isFunction(u.promise)?u.promise().then(f.resolve,f.reject,f.notify):f[o+"With"](this===t?f:this,[u])}):t[n](f[o])})}).promise()},promise:function(n){if(n==null)n=e;else for(var t in e)n[t]=e[t];return n}},t=e.promise({});for(var o in h)t[o]=h[o].fire,t[o+"With"]=h[o].fireWith;return t.done(function(){s="resolved"},u.disable,f.lock).fail(function(){s="rejected"},r.disable,f.lock),n&&n.call(t,t),t},when:function(n){function h(n){return function(i){o[n]=arguments.length>1?d.call(arguments,0):i;t.notifyWith(s,o)}}function c(n){return function(i){r[n]=arguments.length>1?d.call(arguments,0):i;--e||t.resolveWith(t,r)}}var r=d.call(arguments,0),u=0,f=r.length,o=Array(f),e=f,l=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred(),s=t.promise();if(f>1){for(;u<f;u++)r[u]&&r[u].promise&&i.isFunction(r[u].promise)?r[u].promise().then(c(u),t.reject,h(u)):--e;e||t.resolveWith(t,r)}else t!==n&&t.resolveWith(t,f?[n]:[]);return s}});i.support=function(){var u,v,o,c,l,f,e,h,a,y,s,t=r.createElement("div"),p=r.documentElement;if(t.setAttribute("className","t"),t.innerHTML="   <link/><table><\/table><a href='/a' style='top:1px;float:left;opacity:.55;'>a<\/a><input type='checkbox'/>",v=t.getElementsByTagName("*"),o=t.getElementsByTagName("a")[0],!v||!v.length||!o)return{};c=r.createElement("select");l=c.appendChild(r.createElement("option"));f=t.getElementsByTagName("input")[0];u={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:/^0.55/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:f.value==="on",optSelected:l.selected,getSetAttribute:t.className!=="t",enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0};i.boxModel=u.boxModel=r.compatMode==="CSS1Compat";f.checked=!0;u.noCloneChecked=f.cloneNode(!0).checked;c.disabled=!0;u.optDisabled=!l.disabled;try{delete t.test}catch(w){u.deleteExpando=!1}if(!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),f=r.createElement("input"),f.value="t",f.setAttribute("type","radio"),u.radioValue=f.value==="t",f.setAttribute("checked","checked"),f.setAttribute("name","t"),t.appendChild(f),e=r.createDocumentFragment(),e.appendChild(t.lastChild),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,u.appendChecked=f.checked,e.removeChild(f),e.appendChild(t),t.attachEvent)for(y in{submit:1,change:1,focusin:1})a="on"+y,s=a in t,s||(t.setAttribute(a,"return;"),s=typeof t[a]=="function"),u[y+"Bubbles"]=s;return e.removeChild(t),e=c=l=t=f=null,i(function(){var e,c,f,k,l,o,y,p,d,w,b,a,v=r.getElementsByTagName("body")[0];v&&(y=1,a="padding:0;margin:0;border:",w="position:absolute;top:0;left:0;width:1px;height:1px;",b=a+"0;visibility:hidden;",p="style='"+w+a+"5px solid #000;",d="<div "+p+"display:block;'><div style='"+a+"0;display:block;overflow:hidden;'><\/div><\/div><table "+p+"' cellpadding='0' cellspacing='0'><tr><td><\/td><\/tr><\/table>",e=r.createElement("div"),e.style.cssText=b+"width:0;height:0;position:static;top:0;margin-top:"+y+"px",v.insertBefore(e,v.firstChild),t=r.createElement("div"),e.appendChild(t),t.innerHTML="<table><tr><td style='"+a+"0;display:none'><\/td><td>t<\/td><\/tr><\/table>",h=t.getElementsByTagName("td"),s=h[0].offsetHeight===0,h[0].style.display="",h[1].style.display="none",u.reliableHiddenOffsets=s&&h[0].offsetHeight===0,n.getComputedStyle&&(t.innerHTML="",o=r.createElement("div"),o.style.width="0",o.style.marginRight="0",t.style.width="2px",t.appendChild(o),u.reliableMarginRight=(parseInt((n.getComputedStyle(o,null)||{marginRight:0}).marginRight,10)||0)===0),typeof t.style.zoom!="undefined"&&(t.innerHTML="",t.style.width=t.style.padding="1px",t.style.border=0,t.style.overflow="hidden",t.style.display="inline",t.style.zoom=1,u.inlineBlockNeedsLayout=t.offsetWidth===3,t.style.display="block",t.style.overflow="visible",t.innerHTML="<div style='width:5px;'><\/div>",u.shrinkWrapBlocks=t.offsetWidth!==3),t.style.cssText=w+b,t.innerHTML=d,c=t.firstChild,f=c.firstChild,k=c.nextSibling.firstChild.firstChild,l={doesNotAddBorder:f.offsetTop!==5,doesAddBorderForTableAndCells:k.offsetTop===5},f.style.position="fixed",f.style.top="20px",l.fixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",c.style.overflow="hidden",c.style.position="relative",l.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,l.doesNotIncludeMarginInBodyOffset=v.offsetTop!==y,n.getComputedStyle&&(t.style.marginTop="1%",u.pixelMargin=(n.getComputedStyle(t,null)||{marginTop:0}).marginTop!=="1%"),typeof e.style.zoom!="undefined"&&(e.style.zoom=1),v.removeChild(e),o=t=e=null,i.extend(u,l))}),u}();ci=/^(?:\{.*\}|\[.*\])$/;li=/([A-Z])/g;i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ft(n)},data:function(n,r,u,f){if(!!i.acceptData(n)){var a,o,h,c=i.expando,v=typeof r=="string",l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c,y=r==="events";return(!e||!s[e]||!y&&!f&&!s[e].data)&&v&&u===t?void 0:(e||(l?n[c]=e=++i.uuid:e=c),s[e]||(s[e]={},l||(s[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),a=o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),y&&!o[r])?a.events:(v?(h=o[r],h==null&&(h=o[i.camelCase(r)])):h=o,h)}},removeData:function(n,t,r){if(!!i.acceptData(n)){var e,s,c,o=i.expando,h=n.nodeType,u=h?i.cache:n,f=h?n[o]:o;if(!u[f])return;if(t&&(e=r?u[f]:u[f].data,e)){for(i.isArray(t)||((t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" "))),s=0,c=t.length;s<c;s++)delete e[t[s]];if(!(r?ft:i.isEmptyObject)(e))return}if(!r&&(delete u[f].data,!ft(u[f])))return;i.support.deleteExpando||!u.setInterval?delete u[f]:u[f]=null;h&&(i.support.deleteExpando?delete n[o]:n.removeAttribute?n.removeAttribute(o):n[o]=null)}},_data:function(n,t,r){return i.data(n,t,r,!0)},acceptData:function(n){if(n.nodeName){var t=i.noData[n.nodeName.toLowerCase()];if(t)return t!==!0&&n.getAttribute("classid")===t}return!0}});i.fn.extend({data:function(n,r){var u,s,h,o,l,e=this[0],c=0,f=null;if(n===t){if(this.length&&(f=i.data(e),e.nodeType===1&&!i._data(e,"parsedAttrs"))){for(h=e.attributes,l=h.length;c<l;c++)o=h[c].name,o.indexOf("data-")===0&&(o=i.camelCase(o.substring(5)),si(e,o,f[o]));i._data(e,"parsedAttrs",!0)}return f}return typeof n=="object"?this.each(function(){i.data(this,n)}):(u=n.split(".",2),u[1]=u[1]?"."+u[1]:"",s=u[1]+"!",i.access(this,function(r){if(r===t)return f=this.triggerHandler("getData"+s,[u[0]]),f===t&&e&&(f=i.data(e,n),f=si(e,n,f)),f===t&&u[1]?this.data(u[0]):f;u[1]=r;this.each(function(){var t=i(this);t.triggerHandler("setData"+s,u);i.data(this,n,r);t.triggerHandler("changeData"+s,u)})},null,r,arguments.length>1,null,!1))},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({_mark:function(n,t){n&&(t=(t||"fx")+"mark",i._data(n,t,(i._data(n,t)||0)+1))},_unmark:function(n,t,r){if(n!==!0&&(r=t,t=n,n=!1),t){r=r||"fx";var u=r+"mark",f=n?0:(i._data(t,u)||1)-1;f?i._data(t,u,f):(i.removeData(t,u,!0),oi(t,r,"mark"))}},queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),u=r.shift(),f={};u==="inprogress"&&(u=r.shift());u&&(t==="fx"&&r.unshift("inprogress"),i._data(n,t+".run",f),u.call(n,function(){i.dequeue(n,t)},f));r.length||(i.removeData(n,t+"queue "+t+".run",!0),oi(n,t,"queue"))}});i.fn.extend({queue:function(n,r){var u=2;return(typeof n!="string"&&(r=n,n="fx",u--),arguments.length<u)?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){function e(){--s||o.resolveWith(u,[u])}typeof n!="string"&&(r=n,n=t);n=n||"fx";for(var o=i.Deferred(),u=this,f=u.length,s=1,h=n+"defer",l=n+"queue",a=n+"mark",c;f--;)(c=i.data(u[f],h,t,!0)||(i.data(u[f],l,t,!0)||i.data(u[f],a,t,!0))&&i.data(u[f],h,i.Callbacks("once memory"),!0))&&(s++,c.add(e));return e(),o.promise(r)}});var ai=/[\n\t\r]/g,g=/\s+/,ou=/\r/g,su=/^(?:button|input)$/i,hu=/^(?:button|input|object|select|textarea)$/i,cu=/^a(?:rea)?$/i,vi=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,yi=i.support.getSetAttribute,e,pi,wi;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var r,f,o,t,e,u,s;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(n&&typeof n=="string")for(r=n.split(g),f=0,o=this.length;f<o;f++)if(t=this[f],t.nodeType===1)if(t.className||r.length!==1){for(e=" "+t.className+" ",u=0,s=r.length;u<s;u++)~e.indexOf(" "+r[u]+" ")||(e+=r[u]+" ");t.className=i.trim(e)}else t.className=n;return this},removeClass:function(n){var o,u,s,r,f,e,h;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(n&&typeof n=="string"||n===t)for(o=(n||"").split(g),u=0,s=this.length;u<s;u++)if(r=this[u],r.nodeType===1&&r.className)if(n){for(f=(" "+r.className+" ").replace(ai," "),e=0,h=o.length;e<h;e++)f=f.replace(" "+o[e]+" "," ");r.className=i.trim(f)}else r.className="";return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var f,s=0,o=i(this),e=t,h=n.split(g);f=h[s++];)e=u?e:!o.hasClass(f),o[e?"addClass":"removeClass"](f);else(r==="undefined"||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(ai," ").indexOf(i)>-1)return!0;return!1},val:function(n){var r,u,e,f=this[0];return!arguments.length?f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(ou,""):u==null?"":u):void 0:(e=i.isFunction(n),this.each(function(u){var o=i(this),f;this.nodeType===1&&(f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))}))}});i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){var o,r,h,t,u=n.selectedIndex,s=[],f=n.options,e=n.type==="select-one";if(u<0)return null;for(r=e?u:0,h=e?u+1:f.length;r<h;r++)if(t=f[r],t.selected&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),e)return o;s.push(o)}return e&&!s.length&&f.length?i(f[u]).val():s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var o,s,h,c=n.nodeType;if(!!n&&c!==3&&c!==8&&c!==2){if(f&&r in i.attrFn)return i(n)[r](u);if(typeof n.getAttribute=="undefined")return i.prop(n,r,u);if(h=c!==1||!i.isXMLDoc(n),h&&(r=r.toLowerCase(),s=i.attrHooks[r]||(vi.test(r)?pi:e)),u!==t){if(u===null){i.removeAttr(n,r);return}return s&&"set"in s&&h&&(o=s.set(n,u,r))!==t?o:(n.setAttribute(r,""+u),u)}return s&&"get"in s&&h&&(o=s.get(n,r))!==null?o:(o=n.getAttribute(r),o===null?t:o)}},removeAttr:function(n,t){var u,f,r,s,e,o=0;if(t&&n.nodeType===1)for(f=t.toLowerCase().split(g),s=f.length;o<s;o++)r=f[o],r&&(u=i.propFix[r]||r,e=vi.test(r),e||i.attr(n,r,""),n.removeAttribute(yi?r:u),e&&u in n&&(n[u]=!1))},attrHooks:{type:{set:function(n,t){if(su.test(n.nodeName)&&n.parentNode)i.error("type property can't be changed");else if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}},value:{get:function(n,t){return e&&i.nodeName(n,"button")?e.get(n,t):t in n?n.value:null},set:function(n,t,r){if(e&&i.nodeName(n,"button"))return e.set(n,t,r);n.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(!!n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):hu.test(n.nodeName)||cu.test(n.nodeName)&&n.href?0:t}}}});i.attrHooks.tabindex=i.propHooks.tabIndex;pi={get:function(n,r){var u,f=i.prop(n,r);return f===!0||typeof f!="boolean"&&(u=n.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():t},set:function(n,t,r){var u;return t===!1?i.removeAttr(n,r):(u=i.propFix[r]||r,u in n&&(n[u]=!0),n.setAttribute(r,r.toLowerCase())),r}};yi||(wi={name:!0,id:!0,coords:!0},e=i.valHooks.button={get:function(n,i){var r;return r=n.getAttributeNode(i),r&&(wi[i]?r.nodeValue!=="":r.specified)?r.nodeValue:t},set:function(n,t,i){var u=n.getAttributeNode(i);return u||(u=r.createAttribute(i),n.setAttributeNode(u)),u.nodeValue=t+""}},i.attrHooks.tabindex.set=e.set,i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}})}),i.attrHooks.contenteditable={get:e.get,set:function(n,t,i){t===""&&(t="false");e.set(n,t,i)}});i.support.hrefNormalized||i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return i===null?t:i}})});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText.toLowerCase()||t},set:function(n,t){return n.style.cssText=""+t}});i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}));i.support.enctype||(i.propFix.enctype="encoding");i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return n.getAttribute("value")===null?"on":n.value}}});i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var et=/^(?:textarea|input|select)$/i,bi=/^([^\.]*)?(?:\.(.+))?$/,lu=/(?:^|\s)hover(\.\S+)?\b/,au=/^key/,vu=/^(?:mouse|contextmenu)|click/,ki=/^(?:focusinfocus|focusoutblur)$/,yu=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,pu=function(n){var t=yu.exec(n);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},wu=function(n,t){var i=n.attributes||{};return(!t[1]||n.nodeName.toLowerCase()===t[1])&&(!t[2]||(i.id||{}).value===t[2])&&(!t[3]||t[3].test((i["class"]||{}).value))},di=function(n){return i.event.special.hover?n:n.replace(lu,"mouseenter$1 mouseleave$1")};i.event={add:function(n,r,u,f,e){var a,s,v,y,p,o,b,l,w,c,h;if(!(n.nodeType===3||n.nodeType===8||!r||!u||!(a=i._data(n)))){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),v=a.events,v||(a.events=v={}),s=a.handle,s||(a.handle=s=function(n){return typeof i!="undefined"&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(s.elem,arguments):t},s.elem=n),r=i.trim(di(r)).split(" "),y=0;y<r.length;y++)p=bi.exec(r[y])||[],o=p[1],b=(p[2]||"").split(".").sort(),h=i.event.special[o]||{},o=(e?h.delegateType:h.bindType)||o,h=i.event.special[o]||{},l=i.extend({type:o,origType:p[1],data:f,handler:u,guid:u.guid,selector:e,quick:e&&pu(e),namespace:b.join(".")},w),c=v[o],c||(c=v[o]=[],c.delegateCount=0,h.setup&&h.setup.call(n,f,b,s)!==!1||(n.addEventListener?n.addEventListener(o,s,!1):n.attachEvent&&n.attachEvent("on"+o,s))),h.add&&(h.add.call(n,l),l.handler.guid||(l.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,l):c.push(l),i.event.global[o]=!0;n=null}},global:{},remove:function(n,t,r,u,f){var y=i.hasData(n)&&i._data(n),l,p,e,b,h,k,a,v,c,w,o,s;if(!!y&&!!(v=y.events)){for(t=i.trim(di(t||"")).split(" "),l=0;l<t.length;l++){if(p=bi.exec(t[l])||[],e=b=p[1],h=p[2],!e){for(e in v)i.event.remove(n,e+t[l],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,o=v[e]||[],k=o.length,h=h?new RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a=0;a<o.length;a++)s=o[a],(f||b===s.origType)&&(!r||r.guid===s.guid)&&(!h||h.test(s.namespace))&&(!u||u===s.selector||u==="**"&&s.selector)&&(o.splice(a--,1),s.selector&&o.delegateCount--,c.remove&&c.remove.call(n,s));o.length===0&&k!==o.length&&((!c.teardown||c.teardown.call(n,h)===!1)&&i.removeEvent(n,e,y.handle),delete v[e])}i.isEmptyObject(v)&&(w=y.handle,w&&(w.elem=null),i.removeData(n,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(r,u,f,e){if(!f||f.nodeType!==3&&f.nodeType!==8){var o=r.type||r,p=[],w,k,c,s,h,a,l,v,y,b;if(ki.test(o+i.event.triggered))return;if(o.indexOf("!")>=0&&(o=o.slice(0,-1),k=!0),o.indexOf(".")>=0&&(p=o.split("."),o=p.shift(),p.sort()),(!f||i.event.customEvent[o])&&!i.event.global[o])return;if(r=typeof r=="object"?r[i.expando]?r:new i.Event(o,r):new i.Event(o),r.type=o,r.isTrigger=!0,r.exclusive=k,r.namespace=p.join("."),r.namespace_re=r.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a=o.indexOf(":")<0?"on"+o:"",!f){w=i.cache;for(c in w)w[c].events&&w[c].events[o]&&i.event.trigger(r,u,w[c].handle.elem,!0);return}if(r.result=t,r.target||(r.target=f),u=u!=null?i.makeArray(u):[],u.unshift(r),l=i.event.special[o]||{},l.trigger&&l.trigger.apply(f,u)===!1)return;if(y=[[f,l.bindType||o]],!e&&!l.noBubble&&!i.isWindow(f)){for(b=l.delegateType||o,s=ki.test(b+o)?f:f.parentNode,h=null;s;s=s.parentNode)y.push([s,b]),h=s;h&&h===f.ownerDocument&&y.push([h.defaultView||h.parentWindow||n,b])}for(c=0;c<y.length&&!r.isPropagationStopped();c++)s=y[c][0],r.type=y[c][1],v=(i._data(s,"events")||{})[r.type]&&i._data(s,"handle"),v&&v.apply(s,u),v=a&&s[a],v&&i.acceptData(s)&&v.apply(s,u)===!1&&r.preventDefault();return r.type=o,e||r.isDefaultPrevented()||l._default&&l._default.apply(f.ownerDocument,u)!==!1||o==="click"&&i.nodeName(f,"a")||!i.acceptData(f)||!a||!f[o]||(o==="focus"||o==="blur")&&r.target.offsetWidth===0||i.isWindow(f)||(h=f[a],h&&(f[a]=null),i.event.triggered=o,f[o](),i.event.triggered=t,h&&(f[a]=h)),r.result}},dispatch:function(r){r=i.event.fix(r||n.event);var h=(i._data(this,"events")||{})[r.type]||[],c=h.delegateCount,k=[].slice.call(arguments,0),d=!r.exclusive&&!r.namespace,l=i.event.special[r.type]||{},a=[],f,v,e,y,p,w,o,b,u,s;if(k[0]=r,r.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,r)!==!1){if(c&&(!r.button||r.type!=="click"))for(y=i(this),y.context=this.ownerDocument||this,e=r.target;e!=this;e=e.parentNode||this)if(e.disabled!==!0){for(w={},b=[],y[0]=e,f=0;f<c;f++)u=h[f],s=u.selector,w[s]===t&&(w[s]=u.quick?wu(e,u.quick):y.is(s)),w[s]&&b.push(u);b.length&&a.push({elem:e,matches:b})}for(h.length>c&&a.push({elem:this,matches:h.slice(c)}),f=0;f<a.length&&!r.isPropagationStopped();f++)for(o=a[f],r.currentTarget=o.elem,v=0;v<o.matches.length&&!r.isImmediatePropagationStopped();v++)u=o.matches[v],(d||!r.namespace&&!u.namespace||r.namespace_re&&r.namespace_re.test(u.namespace))&&(r.data=u.data,r.handleObj=u,p=((i.event.special[u.origType]||{}).handle||u.handler).apply(o.elem,k),p!==t&&(r.result=p,p===!1&&(r.preventDefault(),r.stopPropagation())));return l.postDispatch&&l.postDispatch.call(this,r),r.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var o,u,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,u=o.documentElement,f=o.body,n.pageX=i.clientX+(u&&u.scrollLeft||f&&f.scrollLeft||0)-(u&&u.clientLeft||f&&f.clientLeft||0),n.pageY=i.clientY+(u&&u.scrollTop||f&&f.scrollTop||0)-(u&&u.clientTop||f&&f.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),!n.which&&e!==t&&(n.which=e&1?1:e&2?3:e&4?2:0),n}},fix:function(n){if(n[i.expando])return n;var e,o,u=n,f=i.event.fixHooks[n.type]||{},s=f.props?this.props.concat(f.props):this.props;for(n=i.Event(u),e=s.length;e;)o=s[--e],n[o]=u[o];return n.target||(n.target=u.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey===t&&(n.metaKey=n.ctrlKey),f.filter?f.filter(n,u):n},special:{ready:{setup:i.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(n,t,r){i.isWindow(this)&&(this.onbeforeunload=r)},teardown:function(n,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.event.handle=i.event.dispatch;i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent&&n.detachEvent("on"+t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?k:l):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=k;var n=this.originalEvent;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=k;var n=this.originalEvent;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=k;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var f=this,r=n.relatedTarget,u=n.handleObj,o=u.selector,e;return r&&(r===f||i.contains(f,r))||(n.type=u.origType,e=u.handler.apply(this,arguments),n.type=t),e}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!r._submit_attached&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),r._submit_attached=!0)})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});i.support.changeBubbles||(i.event.special.change={setup:function(){if(et.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1,i.event.simulate("change",this,n,!0))})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;et.test(t.nodeName)&&!t._change_attached&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),t._change_attached=!0)})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),et.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var o,s;if(typeof n=="object"){typeof r!="string"&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=l;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=l),this.each(function(){i.event.remove(this,n,u,r)})},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},live:function(n,t,r){i(this.context).on(n,this.selector,t,r);return this},die:function(n,t){return i(this.context).off(n,this.selector||"**",t),this},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length==1?this.off(n,"**"):this.off(t,n,i)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){if(this[0])return i.event.trigger(n,t,this[0],!0)},toggle:function(n){var t=arguments,u=n.guid||i.guid++,r=0,f=function(u){var f=(i._data(this,"lastToggle"+n.guid)||0)%r;return i._data(this,"lastToggle"+n.guid,f+1),u.preventDefault(),t[f].apply(this,arguments)||!1};for(f.guid=u;r<t.length;)t[r++].guid=u;return this.click(f)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return i==null&&(i=n,n=null),arguments.length>0?this.on(t,null,n,i):this.trigger(t)};i.attrFn&&(i.attrFn[t]=!0);au.test(t)&&(i.event.fixHooks[t]=i.event.keyHooks);vu.test(t)&&(i.event.fixHooks[t]=i.event.mouseHooks)}),function(){function b(t,i,r,u,f,o){for(var s,c,h=0,l=u.length;h<l;h++)if(s=u[h],s){for(c=!1,s=s[t];s;){if(s[e]===r){c=u[s.sizset];break}if(s.nodeType===1)if(o||(s[e]=r,s.sizset=h),typeof i!="string"){if(s===i){c=!0;break}}else if(n.filter(i,[s]).length>0){c=s;break}s=s[t]}u[h]=c}}function k(n,t,i,r,u,f){for(var o,h,s=0,c=r.length;s<c;s++)if(o=r[s],o){for(h=!1,o=o[n];o;){if(o[e]===i){h=r[o.sizset];break}if(o.nodeType!==1||f||(o[e]=i,o.sizset=s),o.nodeName.toLowerCase()===t){h=o;break}o=o[n]}r[s]=h}}var v=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),y=0,d=Object.prototype.toString,c=!1,g=!0,o=/\\/g,tt=/\r\n/g,l=/\W/,n,s,f,a,h,w;[0,0].sort(function(){return g=!1,0});n=function(t,i,e,o){var tt;if(e=e||[],i=i||r,tt=i,i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var y,a,h,g,l,p,b,c,it=!0,k=n.isXML(i),s=[],rt=t;do if(v.exec(""),y=v.exec(rt),y&&(rt=y[3],s.push(y[1]),y[2])){g=y[3];break}while(y);if(s.length>1&&nt.exec(t))if(s.length===2&&u.relative[s[0]])a=w(s[0]+s[1],i,o);else for(a=u.relative[s[0]]?[i]:n(s.shift(),i);s.length;)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=w(t,a,o);else if(!o&&s.length>1&&i.nodeType===9&&!k&&u.match.ID.test(s[0])&&!u.match.ID.test(s[s.length-1])&&(l=n.find(s.shift(),i,k),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]),i)for(l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,k),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):it=!1;s.length;)p=s.pop(),b=p,u.relative[p]?b=s.pop():p="",b==null&&(b=i),u.relative[p](h,b,k);else h=s=[];if(h||(h=a),h||n.error(p||t),d.call(h)==="[object Array]")if(it)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return g&&(n(g,tt,e,o),n.uniqueSort(e)),e};n.uniqueSort=function(n){if(a&&(c=g,n.sort(a),c))for(var t=1;t<n.length;t++)n[t]===n[t-1]&&n.splice(t--,1);return n};n.matches=function(t,i){return n(t,null,null,i)};n.matchesSelector=function(t,i){return n(i,null,null,[t]).length>0};n.find=function(n,t,i){var f,e,c,r,s,h;if(!n)return[];for(e=0,c=u.order.length;e<c;e++)if(s=u.order[e],(r=u.leftMatch[s].exec(n))&&(h=r[1],r.splice(1,1),h.substr(h.length-1)!=="\\"&&(r[1]=(r[1]||"").replace(o,""),f=u.find[s](r,t,i),f!=null))){n=n.replace(u.match[s],"");break}return f||(f=typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName("*"):[]),{set:f,expr:n}};n.filter=function(i,r,f,e){for(var o,h,c,l,y,b,p,a,w,k=i,v=[],s=r,d=r&&r[0]&&n.isXML(r[0]);i&&r.length;){for(c in u.filter)if((o=u.leftMatch[c].exec(i))!=null&&o[2]){if(b=u.filter[c],p=o[1],h=!1,o.splice(1,1),p.substr(p.length-1)==="\\")continue;if(s===v&&(v=[]),u.preFilter[c])if(o=u.preFilter[c](o,s,f,v,e,d),o){if(o===!0)continue}else h=l=!0;if(o)for(a=0;(y=s[a])!=null;a++)y&&(l=b(y,o,a,s),w=e^l,f&&l!=null?w?h=!0:s[a]=!1:w&&(v.push(y),h=!0));if(l!==t){if(f||(s=v),i=i.replace(u.match[c],""),!h)return[];break}}if(i===k)if(h==null)n.error(i);else break;k=i}return s};n.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};var p=n.getText=function(n){var i,r,t=n.nodeType,u="";if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;if(typeof n.innerText=="string")return n.innerText.replace(tt,"");for(n=n.firstChild;n;n=n.nextSibling)u+=p(n)}else if(t===3||t===4)return n.nodeValue}else for(i=0;r=n[i];i++)r.nodeType!==8&&(u+=p(r));return u},u=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href")},type:function(n){return n.getAttribute("type")}},relative:{"+":function(t,i){var f=typeof i=="string",e=f&&!l.test(i),o=f&&!e,u,s,r;for(e&&(i=i.toLowerCase()),u=0,s=t.length;u<s;u++)if(r=t[u]){while((r=r.previousSibling)&&r.nodeType!==1);t[u]=o||r&&r.nodeName.toLowerCase()===i?r||!1:r===i}o&&n.filter(i,t,!0)},">":function(t,i){var u,f=typeof i=="string",r=0,o=t.length,e;if(f&&!l.test(i))for(i=i.toLowerCase();r<o;r++)u=t[r],u&&(e=u.parentNode,t[r]=e.nodeName.toLowerCase()===i?e:!1);else{for(;r<o;r++)u=t[r],u&&(t[r]=f?u.parentNode:u.parentNode===i);f&&n.filter(i,t,!0)}},"":function(n,t,i){var r,f=y++,u=b;typeof t!="string"||l.test(t)||(t=t.toLowerCase(),r=t,u=k);u("parentNode",t,f,n,r,i)},"~":function(n,t,i){var r,f=y++,u=b;typeof t!="string"||l.test(t)||(t=t.toLowerCase(),r=t,u=k);u("previousSibling",t,f,n,r,i)}},find:{ID:function(n,t,i){if(typeof t.getElementById!="undefined"&&!i){var r=t.getElementById(n[1]);return r&&r.parentNode?[r]:[]}},NAME:function(n,t){var r,u,i,f;if(typeof t.getElementsByName!="undefined"){for(r=[],u=t.getElementsByName(n[1]),i=0,f=u.length;i<f;i++)u[i].getAttribute("name")===n[1]&&r.push(u[i]);return r.length===0?null:r}},TAG:function(n,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(n[1])}},preFilter:{CLASS:function(n,t,i,r,u,f){if(n=" "+n[1].replace(o,"")+" ",f)return n;for(var s=0,e;(e=t[s])!=null;s++)e&&(u^(e.className&&(" "+e.className+" ").replace(/[\t\n\r]/g," ").indexOf(n)>=0)?i||r.push(e):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(o,"")},TAG:function(n){return n[1].replace(o,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]);t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0;t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=y++,t},ATTR:function(n,t,i,r,f,e){var s=n[1]=n[1].replace(o,"");return!e&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(o,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((v.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var t=n.getAttribute("type"),i=n.type;return n.nodeName.toLowerCase()==="input"&&"text"===i&&(t===i||t===null)},radio:function(n){return n.nodeName.toLowerCase()==="input"&&"radio"===n.type},checkbox:function(n){return n.nodeName.toLowerCase()==="input"&&"checkbox"===n.type},file:function(n){return n.nodeName.toLowerCase()==="input"&&"file"===n.type},password:function(n){return n.nodeName.toLowerCase()==="input"&&"password"===n.type},submit:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===n.type},image:function(n){return n.nodeName.toLowerCase()==="input"&&"image"===n.type},reset:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===n.type},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&"button"===n.type||t==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},focus:function(n){return n===n.ownerDocument.activeElement}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return t<i[3]-0},gt:function(n,t,i){return t>i[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var e=i[1],h=u.filters[e],s,o,c;if(h)return h(t,r,i,f);if(e==="contains")return(t.textContent||t.innerText||p([t])||"").indexOf(i[3])>=0;if(e==="not"){for(s=i[3],o=0,c=s.length;o<c;o++)if(s[o]===t)return!1;return!0}n.error(e)},CHILD:function(n,t){var r,o,s,u,h,f,c=t[1],i=n;switch(c){case"only":case"first":while(i=i.previousSibling)if(i.nodeType===1)return!1;if(c==="first")return!0;i=n;case"last":while(i=i.nextSibling)if(i.nodeType===1)return!1;return!0;case"nth":if(r=t[2],o=t[3],r===1&&o===0)return!0;if(s=t[0],u=n.parentNode,u&&(u[e]!==s||!n.nodeIndex)){for(h=0,i=u.firstChild;i;i=i.nextSibling)i.nodeType===1&&(i.nodeIndex=++h);u[e]=s}return f=n.nodeIndex-o,r===0?f===0:f%r==0&&f/r>=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||!!n.nodeName&&n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(t,i){var o=i[1],s=n.attr?n.attr(t,o):u.attrHandle[o]?u.attrHandle[o](t):t[o]!=null?t[o]:t.getAttribute(o),f=s+"",e=i[2],r=i[4];return s==null?e==="!=":!e&&n.attr?s!=null:e==="="?f===r:e==="*="?f.indexOf(r)>=0:e==="~="?(" "+f+" ").indexOf(r)>=0:r?e==="!="?f!==r:e==="^="?f.indexOf(r)===0:e==="$="?f.substr(f.length-r.length)===r:e==="|="?f===r||f.substr(0,r.length+1)===r+"-":!1:f&&s!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},nt=u.match.POS,it=function(n,t){return"\\"+(+t+1)};for(s in u.match)u.match[s]=new RegExp(u.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[s]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[s].source.replace(/\\(\d+)/g,it));u.match.globalPOS=nt;f=function(n,t){return(n=Array.prototype.slice.call(n,0),t)?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(rt){f=function(n,t){var i=0,r=t||[],u;if(d.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i<u;i++)r.push(n[i]);else for(;n[i];i++)r.push(n[i]);return r}}r.documentElement.compareDocumentPosition?a=function(n,t){return n===t?(c=!0,0):!n.compareDocumentPosition||!t.compareDocumentPosition?n.compareDocumentPosition?-1:1:n.compareDocumentPosition(t)&4?-1:1}:(a=function(n,t){var i;if(n===t)return c=!0,0;if(n.sourceIndex&&t.sourceIndex)return n.sourceIndex-t.sourceIndex;var e,l,u=[],f=[],o=n.parentNode,s=t.parentNode,r=o;if(o===s)return h(n,t);if(!o)return-1;if(!s)return 1;while(r)u.unshift(r),r=r.parentNode;for(r=s;r;)f.unshift(r),r=r.parentNode;for(e=u.length,l=f.length,i=0;i<e&&i<l;i++)if(u[i]!==f[i])return h(u[i],f[i]);return i===e?h(n,f[i],-1):h(u[i],t,1)},h=function(n,t,i){if(n===t)return i;for(var r=n.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var n=r.createElement("div"),f="script"+(new Date).getTime(),i=r.documentElement;n.innerHTML="<a name='"+f+"'/>";i.insertBefore(n,i.firstChild);r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t});i.removeChild(n);i=n=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment(""));n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var i=t.getElementsByTagName(n[1]),u,r;if(n[1]==="*"){for(u=[],r=0;i[r];r++)i[r].nodeType===1&&u.push(i[r]);i=u}return i});n.innerHTML="<a href='#'><\/a>";n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)});n=null}();r.querySelectorAll&&function(){var i=n,t=r.createElement("div"),o="__sizzle__",e;if(t.innerHTML="<p class='TEST'><\/p>",!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){n=function(t,e,s,h){var c,l;if(e=e||r,!h&&!n.isXML(e)){if(c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t),c&&(e.nodeType===1||e.nodeType===9)){if(c[1])return f(e.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&e.getElementsByClassName)return f(e.getElementsByClassName(c[2]),s)}if(e.nodeType===9){if(t==="body"&&e.body)return f([e.body],s);if(c&&c[3]){if(l=e.getElementById(c[3]),!l||!l.parentNode)return f([],s);if(l.id===c[3])return f([l],s)}try{return f(e.querySelectorAll(t),s)}catch(b){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var w=e,v=e.getAttribute("id"),a=v||o,y=e.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):e.setAttribute("id",a);p&&y&&(e=e.parentNode);try{if(!p||y)return f(e.querySelectorAll("[id='"+a+"'] "+t),s)}catch(k){}finally{v||w.removeAttribute("id")}}}return i(t,e,s,h)};for(e in i)n[e]=i[e];t=null}}(),function(){var t=r.documentElement,i=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector,e,f;if(i){e=!i.call(r.createElement("div"),"div");f=!1;try{i.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(t,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!n.isXML(t))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=i.call(t,r);if(o||!e||t.document&&t.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[t]).length>0}}}(),function(){var n=r.createElement("div");if(n.innerHTML="<div class='test e'><\/div><div class='test'><\/div>",!!n.getElementsByClassName&&n.getElementsByClassName("e").length!==0){if(n.lastChild.className="e",n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS");u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])};n=null}}();n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1};n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1};w=function(t,i,r){for(var e,o=[],s="",h=i.nodeType?[i]:i,f,c;e=u.match.PSEUDO.exec(t);)s+=e[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,f=0,c=h.length;f<c;f++)n(t,h[f],o,r);return n.filter(s,o)};n.attr=i.attr;n.selectors.attrMap={};i.find=n;i.expr=n.selectors;i.expr[":"]=i.expr.filters;i.unique=n.uniqueSort;i.text=n.getText;i.isXMLDoc=n.isXML;i.contains=n.contains}();var bu=/Until$/,ku=/^(?:parents|prevUntil|prevAll)/,du=/,/,gu=/^.[^:#\[\.,]*$/,nf=Array.prototype.slice,gi=i.expr.match.globalPOS,tf={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var s=this,t,f,r,o,u,e;if(typeof n!="string")return i(n).filter(function(){for(t=0,f=s.length;t<f;t++)if(i.contains(s[t],this))return!0});for(r=this.pushStack("","find",n),t=0,f=this.length;t<f;t++)if(o=r.length,i.find(n,this[t],r),t>0)for(u=o;u<r.length;u++)for(e=0;e<o;e++)if(r[e]===r[u]){r.splice(u--,1);break}return r},has:function(n){var t=i(n);return this.filter(function(){for(var n=0,r=t.length;n<r;n++)if(i.contains(this,t[n]))return!0})},not:function(n){return this.pushStack(fi(this,n,!1),"not",n)},filter:function(n){return this.pushStack(fi(this,n,!0),"filter",n)},is:function(n){return!!n&&(typeof n=="string"?gi.test(n)?i(n,this.context).index(this[0])>=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){var f=[],u,s,r=this[0],e,o;if(i.isArray(n)){for(e=1;r&&r.ownerDocument&&r!==t;){for(u=0;u<n.length;u++)i(r).is(n[u])&&f.push({selector:n[u],elem:r,level:e});r=r.parentNode;e++}return f}for(o=gi.test(n)||typeof n!="string"?i(n,t||this.context):0,u=0,s=this.length;u<s;u++)for(r=this[u];r;){if(o?o.index(r)>-1:i.find.matchesSelector(r,n)){f.push(r);break}if(r=r.parentNode,!r||!r.ownerDocument||r===t||r.nodeType===11)break}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),r=i.merge(this.get(),u);return this.pushStack(ei(u[0])||ei(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return bu.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!tf[n]?i.unique(f):f,(this.length>1||du.test(u))&&ku.test(n)&&(f=f.reverse()),this.pushStack(f,n,nf.call(arguments).join(","))}});i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var r=0;n;n=n[i])if(n.nodeType===1&&++r===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var nr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rf=/ jQuery\d+="(?:\d+|null)"/g,ot=/^\s+/,tr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ir=/<([\w:]+)/,uf=/<tbody/i,ff=/<|&#?\w+;/,ef=/<(?:script|style)/i,of=/<(?:script|object|embed|option|style)/i,rr=new RegExp("<(?:"+nr+")[\\s/>]","i"),ur=/checked\s*(?:[^=]|=\s*.checked.)/i,fr=/\/(java|ecma)script/i,sf=/^\s*<!(?:\[CDATA\[|\-\-)/,u={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],area:[1,"<map>","<\/map>"],_default:[0,"",""]},st=ui(r);u.optgroup=u.option;u.tbody=u.tfoot=u.colgroup=u.caption=u.thead;u.th=u.td;i.support.htmlSerialize||(u._default=[1,"div<div>","<\/div>"]);i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i.clean(arguments);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i.clean(arguments)),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(t||r.nodeType!==1||(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++)for(n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,e=this.length;if(n===t)return r.nodeType===1?r.innerHTML.replace(rf,""):null;if(typeof n=="string"&&!ef.test(n)&&(i.support.leadingWhitespace||!ot.test(n))&&!u[(ir.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(tr,"<$1><\/$2>");try{for(;f<e;f++)r=this[f]||{},r.nodeType===1&&(i.cleanData(r.getElementsByTagName("*")),r.innerHTML=n);r=0}catch(o){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(n){return this[0]&&this[0].parentNode?i.isFunction(n)?this.each(function(t){var r=i(this),u=r.html();r.replaceWith(n.call(this,t,u))}):(typeof n!="string"&&(n=i(n).detach()),this.each(function(){var t=this.nextSibling,r=this.parentNode;i(this).remove();t?i(t).before(n):i(r).append(n)})):this.length?this.pushStack(i(i.isFunction(n)?n():n),"replaceWith",n):this},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,u){var c,h,f,o,e=n[0],l=[];if(!i.support.checkClone&&arguments.length===3&&typeof e=="string"&&ur.test(e))return this.each(function(){i(this).domManip(n,r,u,!0)});if(i.isFunction(e))return this.each(function(f){var o=i(this);n[0]=e.call(this,f,r?o.html():t);o.domManip(n,r,u)});if(this[0]){if(o=e&&e.parentNode,c=i.support.parentNode&&o&&o.nodeType===11&&o.childNodes.length===this.length?{fragment:o}:i.buildFragment(n,this,l),f=c.fragment,h=f.childNodes.length===1?f=f.firstChild:f.firstChild,h){r=r&&i.nodeName(h,"tr");for(var s=0,a=this.length,v=a-1;s<a;s++)u.call(r?ru(this[s],h):this[s],c.cacheable||a>1&&s<v?i.clone(f,!0,!0):f)}l.length&&i.each(l,function(n,t){t.src?i.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):i.globalEval((t.text||t.textContent||t.innerHTML||"").replace(sf,"/*$0*/"));t.parentNode&&t.parentNode.removeChild(t)})}return this}});i.buildFragment=function(n,t,u){var e,h,s,o,f=n[0];return t&&t[0]&&(o=t[0].ownerDocument||t[0]),o.createDocumentFragment||(o=r),n.length===1&&typeof f=="string"&&f.length<512&&o===r&&f.charAt(0)==="<"&&!of.test(f)&&(i.support.checkClone||!ur.test(f))&&(i.support.html5Clone||!rr.test(f))&&(h=!0,s=i.fragments[f],s&&s!==1&&(e=s)),e||(e=o.createDocumentFragment(),i.clean(n,o,e,u)),h&&(i.fragments[f]=s?e:1),{fragment:e,cacheable:h}};i.fragments={};i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(r){var e=[],u=i(r),o=this.length===1&&this[0].parentNode,f,h,s;if(o&&o.nodeType===11&&o.childNodes.length===1&&u.length===1)return u[t](this[0]),this;for(f=0,h=u.length;f<h;f++)s=(f>0?this.clone(!0):this).get(),i(u[f])[t](s),e=e.concat(s);return this.pushStack(e,n,u.selector)}});i.extend({clone:function(n,t,r){var f,e,u,o=i.support.html5Clone||i.isXMLDoc(n)||!rr.test("<"+n.nodeName+">")?n.cloneNode(!0):iu(n);if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(ii(n,o),f=b(n),e=b(o),u=0;f[u];++u)e[u]&&ii(f[u],e[u]);if(t&&(ri(n,o),r))for(f=b(n),e=b(o),u=0;f[u];++u)ri(f[u],e[u]);return f=e=null,o},clean:function(n,t,f,e){var k,h,c,l=[],a,o,b,v,g,nt;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),a=0;(o=n[a])!=null;a++)if(typeof o=="number"&&(o+=""),o){if(typeof o=="string")if(ff.test(o)){o=o.replace(tr,"<$1><\/$2>");var d=(ir.exec(o)||["",""])[1].toLowerCase(),p=u[d]||u._default,tt=p[0],s=t.createElement("div"),w=st.childNodes,y;for(t===r?st.appendChild(s):ui(t).appendChild(s),s.innerHTML=p[1]+o+p[2];tt--;)s=s.lastChild;if(!i.support.tbody)for(b=uf.test(o),v=d==="table"&&!b?s.firstChild&&s.firstChild.childNodes:p[1]==="<table>"&&!b?s.childNodes:[],c=v.length-1;c>=0;--c)i.nodeName(v[c],"tbody")&&!v[c].childNodes.length&&v[c].parentNode.removeChild(v[c]);!i.support.leadingWhitespace&&ot.test(o)&&s.insertBefore(t.createTextNode(ot.exec(o)[0]),s.firstChild);o=s.childNodes;s&&(s.parentNode.removeChild(s),w.length>0&&(y=w[w.length-1],y&&y.parentNode&&y.parentNode.removeChild(y)))}else o=t.createTextNode(o);if(!i.support.appendChecked)if(o[0]&&typeof(g=o.length)=="number")for(c=0;c<g;c++)ni(o[c]);else ni(o);o.nodeType?l.push(o):l=i.merge(l,o)}if(f)for(k=function(n){return!n.type||fr.test(n.type)},a=0;l[a];a++)h=l[a],e&&i.nodeName(h,"script")&&(!h.type||fr.test(h.type))?e.push(h.parentNode?h.parentNode.removeChild(h):h):(h.nodeType===1&&(nt=i.grep(h.getElementsByTagName("script"),k),l.splice.apply(l,[a+1,0].concat(nt))),f.appendChild(h));return l},cleanData:function(n){for(var f,r,u,e=i.cache,s=i.event.special,h=i.support.deleteExpando,o=0,t;(t=n[o])!=null;o++)if((!t.nodeName||!i.noData[t.nodeName.toLowerCase()])&&(u=t[i.expando],u)){if(r=e[u],r&&r.events){for(f in r.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,r.handle);r.handle&&(r.handle.elem=null)}h?delete t[i.expando]:t.removeAttribute&&t.removeAttribute(i.expando);delete e[u]}}});var ht=/alpha\([^)]*\)/i,hf=/opacity=([^)]*)/,cf=/([A-Z]|^ms)/g,lf=/^[\-+]?(?:\d*\.)?\d+$/i,ct=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,af=/^([\-+])=([\-+.\de]+)/,vf=/^margin/,yf={position:"absolute",visibility:"hidden",display:"block"},o=["Top","Right","Bottom","Left"],a,er,or;i.fn.css=function(n,r){return i.access(this,function(n,r,u){return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=a(n,"opacity");return i===""?"1":i}return n.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(!!n&&n.nodeType!==3&&n.nodeType!==8&&!!n.style){var o,s,h=i.camelCase(r),c=n.style,e=i.cssHooks[h];if(r=i.cssProps[h]||h,u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,s==="string"&&(o=af.exec(u))&&(u=+(o[1]+1)*+o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),!e||!("set"in e)||(u=e.set(n,u))!==t)try{c[r]=u}catch(l){}}},css:function(n,r,u){var e,f;return(r=i.camelCase(r),f=i.cssHooks[r],r=i.cssProps[r]||r,r==="cssFloat"&&(r="float"),f&&"get"in f&&(e=f.get(n,!0,u))!==t)?e:a?a(n,r):void 0},swap:function(n,t,i){var u={},f;for(var r in t)u[r]=n.style[r],n.style[r]=t[r];f=i.call(n);for(r in t)n.style[r]=u[r];return f}});i.curCSS=i.css;r.defaultView&&r.defaultView.getComputedStyle&&(er=function(n,t){var r,e,u,o,f=n.style;return t=t.replace(cf,"-$1").toLowerCase(),(e=n.ownerDocument.defaultView)&&(u=e.getComputedStyle(n,null))&&(r=u.getPropertyValue(t),r===""&&!i.contains(n.ownerDocument.documentElement,n)&&(r=i.style(n,t))),!i.support.pixelMargin&&u&&vf.test(t)&&ct.test(r)&&(o=f.width,f.width=r,r=u.width,f.width=o),r});r.documentElement.currentStyle&&(or=function(n,t){var f,u,e,i=n.currentStyle&&n.currentStyle[t],r=n.style;return i==null&&r&&(e=r[t])&&(i=e),ct.test(i)&&(f=r.left,u=n.runtimeStyle&&n.runtimeStyle.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i,i=r.pixelLeft+"px",r.left=f,u&&(n.runtimeStyle.left=u)),i===""?"auto":i});a=er||or;i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth!==0?gt(n,t,u):i.swap(n,yf,function(){return gt(n,t,u)})},set:function(n,t){return lf.test(t)?t+"px":t}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return hf.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,t>=1&&i.trim(f.replace(ht,""))===""&&(r.removeAttribute("filter"),u&&!u.filter))||(r.filter=ht.test(f)?f.replace(ht,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){return i.swap(n,{display:"inline-block"},function(){return t?a(n,"margin-right"):n.style.marginRight})}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var t=n.offsetWidth,r=n.offsetHeight;return t===0&&r===0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var u=typeof i=="string"?i.split(" "):[i],f={},r=0;r<4;r++)f[n+o[r]+t]=u[r]||u[r-2]||u[0];return f}}});var pf=/%20/g,wf=/\[\]$/,sr=/\r?\n/g,bf=/#.*$/,kf=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,df=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,gf=/^(?:GET|HEAD)$/,ne=/^\/\//,hr=/\?/,te=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ie=/^(?:select|textarea)/i,cr=/\s+/,re=/([?&])_=[^&]*/,lr=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ar=i.fn.load,lt={},vr={},s,h,yr=["*/"]+["*"];try{s=eu.href}catch(ee){s=r.createElement("a");s.href="";s=s.href}h=lr.exec(s.toLowerCase())||[];i.fn.extend({load:function(n,r,u){var f,e,o,s;return typeof n!="string"&&ar?ar.apply(this,arguments):this.length?(f=n.indexOf(" "),f>=0&&(e=n.slice(f,n.length),n=n.slice(0,f)),o="GET",r&&(i.isFunction(r)?(u=r,r=t):typeof r=="object"&&(r=i.param(r,i.ajaxSettings.traditional),o="POST")),s=this,i.ajax({url:n,type:o,dataType:"html",data:r,complete:function(n,t,r){r=n.responseText;n.isResolved()&&(n.done(function(n){r=n}),s.html(e?i("<div>").append(r.replace(te,"")).find(e):r));u&&s.each(u,[r,t,n])}}),this):this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ie.test(this.nodeName)||df.test(this.type))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(sr,"\r\n")}}):{name:t.name,value:r.replace(sr,"\r\n")}}).get()}});i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({type:r,url:n,data:u,success:f,dataType:e})}});i.extend({getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")},ajaxSetup:function(n,t){return t?kt(n,i.ajaxSettings):(t=n,n=i.ajaxSettings),kt(n,t),n},ajaxSettings:{url:s,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(h[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":yr},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:dt(lt),ajaxTransport:dt(vr),ajax:function(n,r){function y(n,r,h,l){if(e!==2){e=2;nt&&clearTimeout(nt);c=t;g=l||"";f.readyState=n>0?4:0;var y,b,w,a=r,ut=h?tu(u,f,h):t,tt,it;if(n>=200&&n<300||n===304)if(u.ifModified&&((tt=f.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=tt),(it=f.getResponseHeader("Etag"))&&(i.etag[o]=it)),n===304)a="notmodified",y=!0;else try{b=nu(u,ut);a="success";y=!0}catch(ft){a="parsererror";w=ft}else w=a,(!a||n)&&(a="error",n<0&&(n=0));f.status=n;f.statusText=""+(r||a);y?d.resolveWith(s,[b,a,f]):d.rejectWith(s,[f,a,w]);f.statusCode(p);p=t;v&&k.trigger("ajax"+(y?"Success":"Error"),[f,u,y?b:w]);rt.fireWith(s,[f,a]);v&&(k.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop"))}}var tt,it;typeof n=="object"&&(r=n,n=t);r=r||{};var u=i.ajaxSetup({},r),s=u.context||u,k=s!==u&&(s.nodeType||s instanceof i)?i(s):i.event,d=i.Deferred(),rt=i.Callbacks("once memory"),p=u.statusCode||{},o,ut={},ft={},g,b,c,nt,l,e=0,v,a,f={readyState:0,setRequestHeader:function(n,t){if(!e){var i=n.toLowerCase();n=ft[i]=ft[i]||n;ut[n]=t}return this},getAllResponseHeaders:function(){return e===2?g:null},getResponseHeader:function(n){var i;if(e===2){if(!b)for(b={};i=kf.exec(g);)b[i[1].toLowerCase()]=i[2];i=b[n.toLowerCase()]}return i===t?null:i},overrideMimeType:function(n){return e||(u.mimeType=n),this},abort:function(n){return n=n||"abort",c&&c.abort(n),y(0,n),this}};if(d.promise(f),f.success=f.done,f.error=f.fail,f.complete=rt.add,f.statusCode=function(n){if(n){var t;if(e<2)for(t in n)p[t]=[p[t],n[t]];else t=n[f.status],f.then(t,t)}return this},u.url=((n||u.url)+"").replace(bf,"").replace(ne,h[1]+"//"),u.dataTypes=i.trim(u.dataType||"*").toLowerCase().split(cr),u.crossDomain==null&&(l=lr.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]==h[1]&&l[2]==h[2]&&(l[3]||(l[1]==="http:"?80:443))==(h[3]||(h[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),w(lt,u,r,f),e===2)return!1;v=u.global;u.type=u.type.toUpperCase();u.hasContent=!gf.test(u.type);v&&i.active++==0&&i.event.trigger("ajaxStart");u.hasContent||(u.data&&(u.url+=(hr.test(u.url)?"&":"?")+u.data,delete u.data),o=u.url,u.cache===!1&&(tt=i.now(),it=u.url.replace(re,"$1_="+tt),u.url=it+(it===u.url?(hr.test(u.url)?"&":"?")+"_="+tt:"")));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);u.ifModified&&(o=o||u.url,i.lastModified[o]&&f.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&f.setRequestHeader("If-None-Match",i.etag[o]));f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+yr+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(s,f,u)===!1||e===2))return f.abort(),!1;for(a in{success:1,error:1,complete:1})f[a](u[a]);if(c=w(vr,u,r,f),c){f.readyState=1;v&&k.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(nt=setTimeout(function(){f.abort("timeout")},u.timeout));try{e=1;c.send(ut,y)}catch(et){if(e<2)y(-1,et);else throw et;}}else y(-1,"No Transport");return f},param:function(n,r){var u=[],e=function(n,t){t=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)},f;if(r===t&&(r=i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(f in n)ut(f,n[f],r,e);return u.join("&").replace(pf,"+")}});i.extend({active:0,lastModified:{},etag:{}});pr=i.now();p=/(\=)\?(&|$)|\?\?/i;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+pr++}});i.ajaxPrefilter("json jsonp",function(t,r,u){var h=typeof t.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(t.contentType);if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(p.test(t.url)||h&&p.test(t.data))){var o,f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c=n[f],e=t.url,s=t.data,l="$1"+f+"$2";return t.jsonp!==!1&&(e=e.replace(p,l),t.url===e&&(h&&(s=s.replace(p,l)),t.data===s&&(e+=(/\?/.test(e)?"&":"?")+t.jsonp+"="+f))),t.url=e,t.data=s,n[f]=function(n){o=[n]},u.always(function(){n[f]=c;o&&i.isFunction(c)&&n[f](o[0])}),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json","script"}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,e){i=r.createElement("script");i.async="async";n.scriptCharset&&(i.charset=n.scriptCharset);i.src=n.url;i.onload=i.onreadystatechange=function(n,r){(r||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,u&&i.parentNode&&u.removeChild(i),i=t,r||e(200,"success"))};u.insertBefore(i,u.firstChild)},abort:function(){i&&i.onload(0,1)}}}});nt=n.ActiveXObject?function(){for(var n in v)v[n](0,1)}:!1;wr=0;i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&bt()||gr()}:bt,function(n){i.extend(i.support,{ajax:!!n,cors:!!n&&"withCredentials"in n})}(i.ajaxSettings.xhr());i.support.ajax&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var o=r.xhr(),h,s;if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,y,c,l;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,nt&&delete v[h]),f)o.readyState!==4&&o.abort();else{s=o.status;y=o.getAllResponseHeaders();c={};l=o.responseXML;l&&l.documentElement&&(c.xml=l);try{c.text=o.responseText}catch(n){}try{a=o.statusText}catch(w){a=""}!s&&r.isLocal&&!r.crossDomain?s=c.text?200:404:s===1223&&(s=204)}}catch(p){f||e(-1,p)}c&&e(s,a,c,y)};!r.async||o.readyState===4?u():(h=++wr,nt&&(v||(v={},i(n).unload(nt)),v[h]=u),o.onreadystatechange=u)},abort:function(){u&&u(0,1)}}}});var at={},f,y,ue=/^(?:toggle|show|hide)$/,fe=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,tt,it=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],rt;i.fn.extend({show:function(n,t,r){var u,e,f,o;if(n||n===0)return this.animate(c("show",3),n,t,r);for(f=0,o=this.length;f<o;f++)u=this[f],u.style&&(e=u.style.display,!i._data(u,"olddisplay")&&e==="none"&&(e=u.style.display=""),(e===""&&i.css(u,"display")==="none"||!i.contains(u.ownerDocument.documentElement,u))&&i._data(u,"olddisplay",pt(u.nodeName)));for(f=0;f<o;f++)u=this[f],u.style&&(e=u.style.display,(e===""||e==="none")&&(u.style.display=i._data(u,"olddisplay")||""));return this},hide:function(n,t,r){if(n||n===0)return this.animate(c("hide",3),n,t,r);for(var f,e,u=0,o=this.length;u<o;u++)f=this[u],f.style&&(e=i.css(f,"display"),e!=="none"&&!i._data(f,"olddisplay")&&i._data(f,"olddisplay",e));for(u=0;u<o;u++)this[u].style&&(this[u].style.display="none");return this},_toggle:i.fn.toggle,toggle:function(n,t,r){var u=typeof n=="boolean";return i.isFunction(n)&&i.isFunction(t)?this._toggle.apply(this,arguments):n==null||u?this.each(function(){var t=u?n:i(this).is(":hidden");i(this)[t?"show":"hide"]()}):this.animate(c("toggle",3),n,t,r),this},fadeTo:function(n,t,i,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){function e(){f.queue===!1&&i._mark(this);var e=i.extend({},f),w=this.nodeType===1,v=w&&i(this).is(":hidden"),r,u,t,o,y,p,h,s,c,l,a;e.animatedProperties={};for(t in n)if(r=i.camelCase(t),t!==r&&(n[r]=n[t],delete n[t]),(y=i.cssHooks[r])&&"expand"in y){p=y.expand(n[r]);delete n[r];for(t in p)t in n||(n[t]=p[t])}for(r in n){if(u=n[r],i.isArray(u)?(e.animatedProperties[r]=u[1],u=n[r]=u[0]):e.animatedProperties[r]=e.specialEasing&&e.specialEasing[r]||e.easing||"swing",u==="hide"&&v||u==="show"&&!v)return e.complete.call(this);w&&(r==="height"||r==="width")&&(e.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],i.css(this,"display")==="inline"&&i.css(this,"float")==="none"&&(!i.support.inlineBlockNeedsLayout||pt(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}e.overflow!=null&&(this.style.overflow="hidden");for(t in n)o=new i.fx(this,e,t),u=n[t],ue.test(u)?(a=i._data(this,"toggle"+t)||(u==="toggle"?v?"show":"hide":0),a?(i._data(this,"toggle"+t,a==="show"?"hide":"show"),o[a]()):o[u]()):(h=fe.exec(u),s=o.cur(),h?(c=parseFloat(h[2]),l=h[3]||(i.cssNumber[t]?"":"px"),l!=="px"&&(i.style(this,t,(c||1)+l),s=(c||1)/o.cur()*s,i.style(this,t,s+l)),h[1]&&(c=(h[1]==="-="?-1:1)*c+s),o.custom(s,c,l)):o.custom(s,u,""));return!0}var f=i.speed(t,r,u);return i.isEmptyObject(n)?this.each(f.complete,[!1]):(n=i.extend({},n),f.queue===!1?this.each(e):this.queue(f.queue,e))},stop:function(n,r,u){return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){function e(n,t,r){var f=t[r];i.removeData(n,r,!0);f.stop(u)}var t,o=!1,f=i.timers,r=i._data(this);if(u||i._unmark(!0,this),n==null)for(t in r)r[t]&&r[t].stop&&t.indexOf(".run")===t.length-4&&e(this,r,t);else r[t=n+".run"]&&r[t].stop&&e(this,r,t);for(t=f.length;t--;)f[t].elem===this&&(n==null||f[t].queue===n)&&(u?f[t](!0):f[t].saveState(),o=!0,f.splice(t,1));u&&o||i.dequeue(this,n)})}});i.each({slideDown:c("show",1),slideUp:c("hide",1),slideToggle:c("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.extend({speed:function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(n){i.isFunction(u.old)&&u.old.call(this);u.queue?i.dequeue(this,u.queue):n!==!1&&i._unmark(this)},u},easing:{linear:function(n){return n},swing:function(n){return-Math.cos(n*Math.PI)/2+.5}},timers:[],fx:function(n,t,i){this.options=t;this.elem=n;this.prop=i;t.orig=t.orig||{}}});i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(i.fx.step[this.prop]||i.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,n=i.css(this.elem,this.prop);return isNaN(t=parseFloat(n))?!n||n==="auto"?0:n:t},custom:function(n,r,u){function e(n){return f.step(n)}var f=this,o=i.fx;this.startTime=rt||wt();this.end=r;this.now=this.start=n;this.pos=this.state=0;this.unit=u||this.unit||(i.cssNumber[this.prop]?"":"px");e.queue=this.options.queue;e.elem=this.elem;e.saveState=function(){i._data(f.elem,"fxshow"+f.prop)===t&&(f.options.hide?i._data(f.elem,"fxshow"+f.prop,f.start):f.options.show&&i._data(f.elem,"fxshow"+f.prop,f.end))};e()&&i.timers.push(e)&&!tt&&(tt=setInterval(o.tick,o.interval))},show:function(){var n=i._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=n||i.style(this.elem,this.prop);this.options.show=!0;n!==t?this.custom(this.cur(),n):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());i(this.elem).show()},hide:function(){this.options.orig[this.prop]=i._data(this.elem,"fxshow"+this.prop)||i.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(n){var r,f,e,o=rt||wt(),s=!0,u=this.elem,t=this.options;if(n||o>=t.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();t.animatedProperties[this.prop]=!0;for(r in t.animatedProperties)t.animatedProperties[r]!==!0&&(s=!1);if(s){if(t.overflow==null||i.support.shrinkWrapBlocks||i.each(["","X","Y"],function(n,i){u.style["overflow"+i]=t.overflow[n]}),t.hide&&i(u).hide(),t.hide||t.show)for(r in t.animatedProperties)i.style(u,r,t.orig[r]),i.removeData(u,"fxshow"+r,!0),i.removeData(u,"toggle"+r,!0);e=t.complete;e&&(t.complete=!1,e.call(u))}return!1}return t.duration==Infinity?this.now=o:(f=o-this.startTime,this.state=f/t.duration,this.pos=i.easing[t.animatedProperties[this.prop]](this.state,f,0,1,t.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}};i.extend(i.fx,{tick:function(){for(var r,n=i.timers,t=0;t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop()},interval:13,stop:function(){clearInterval(tt);tt=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(n){i.style(n.elem,"opacity",n.now)},_default:function(n){n.elem.style&&n.elem.style[n.prop]!=null?n.elem.style[n.prop]=n.now+n.unit:n.elem[n.prop]=n.now}}});i.each(it.concat.apply([],it),function(n,t){t.indexOf("margin")&&(i.fx.step[t]=function(n){i.style(n.elem,t,Math.max(0,n.now)+n.unit)})});i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});kr=/^t(?:able|d|h)$/i;vt=/^(?:body|html)$/i;br="getBoundingClientRect"in r.documentElement?function(n,t,r,u){try{u=n.getBoundingClientRect()}catch(v){}if(!u||!i.contains(r,n))return u?{top:u.top,left:u.left}:{top:0,left:0};var f=t.body,e=yt(t),o=r.clientTop||f.clientTop||0,s=r.clientLeft||f.clientLeft||0,h=e.pageYOffset||i.support.boxModel&&r.scrollTop||f.scrollTop,c=e.pageXOffset||i.support.boxModel&&r.scrollLeft||f.scrollLeft,l=u.top+h-o,a=u.left+c-s;return{top:l,left:a}}:function(n,t,r){for(var u,c=n.offsetParent,l=n,o=t.body,h=t.defaultView,s=h?h.getComputedStyle(n,null):n.currentStyle,f=n.offsetTop,e=n.offsetLeft;(n=n.parentNode)&&n!==o&&n!==r;){if(i.support.fixedPosition&&s.position==="fixed")break;u=h?h.getComputedStyle(n,null):n.currentStyle;f-=n.scrollTop;e-=n.scrollLeft;n===c&&(f+=n.offsetTop,e+=n.offsetLeft,i.support.doesNotAddBorder&&(!i.support.doesAddBorderForTableAndCells||!kr.test(n.nodeName))&&(f+=parseFloat(u.borderTopWidth)||0,e+=parseFloat(u.borderLeftWidth)||0),l=c,c=n.offsetParent);i.support.subtractsBorderForOverflowNotVisible&&u.overflow!=="visible"&&(f+=parseFloat(u.borderTopWidth)||0,e+=parseFloat(u.borderLeftWidth)||0);s=u}return(s.position==="relative"||s.position==="static")&&(f+=o.offsetTop,e+=o.offsetLeft),i.support.fixedPosition&&s.position==="fixed"&&(f+=Math.max(r.scrollTop,o.scrollTop),e+=Math.max(r.scrollLeft,o.scrollLeft)),{top:f,left:e}};i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r=this[0],u=r&&r.ownerDocument;return u?r===u.body?i.offset.bodyOffset(r):br(r,u,u.documentElement):null};i.offset={bodyOffset:function(n){var t=n.offsetTop,r=n.offsetLeft;return i.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(i.css(n,"marginTop"))||0,r+=parseFloat(i.css(n,"marginLeft"))||0),{top:t,left:r}},setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));t.top!=null&&(u.top=t.top-o.top+h);t.left!=null&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(!this[0])return null;var u=this[0],n=this.offsetParent(),t=this.offset(),r=vt.test(n[0].nodeName)?{top:0,left:0}:n.offset();return t.top-=parseFloat(i.css(u,"marginTop"))||0,t.left-=parseFloat(i.css(u,"marginLeft"))||0,r.top+=parseFloat(i.css(n[0],"borderTopWidth"))||0,r.left+=parseFloat(i.css(n[0],"borderLeftWidth"))||0,{top:t.top-r.top,left:t.left-r.left}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.body;n&&!vt.test(n.nodeName)&&i.css(n,"position")==="static";)n=n.offsetParent;return n})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=yt(n);if(e===t)return o?r in o?o[r]:i.support.boxModel&&o.document.documentElement[f]||o.document.body[f]:n[f];o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){var u="client"+n,f="scroll"+n,e="offset"+n;i.fn["inner"+n]=function(){var n=this[0];return n?n.style?parseFloat(i.css(n,r,"padding")):this[r]():null};i.fn["outer"+n]=function(n){var t=this[0];return t?t.style?parseFloat(i.css(t,r,n?"margin":"border")):this[r]():null};i.fn[r]=function(n){return i.access(this,function(n,r,o){var s,h,c,l;if(i.isWindow(n))return s=n.document,h=s.documentElement[u],i.support.boxModel&&h||s.body&&s.body[u]||h;if(n.nodeType===9)return(s=n.documentElement,s[u]>=s[f])?s[u]:Math.max(n.body[f],s[f],n.body[e],s[e]);if(o===t)return c=i.css(n,r),l=parseFloat(c),i.isNumeric(l)?l:c;i(n).css(r,o)},r,n,arguments.length,null)}});n.jQuery=n.$=i;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return i})})(window),function(n){function t(t){this.input=t;t.attr("type")=="password"&&this.handlePassword();n(t[0].form).submit(function(){t.hasClass("placeholder")&&t[0].value==t.attr("placeholder")&&(t[0].value="")})}t.prototype={show:function(n){if(this.input[0].value===""||n&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(t){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(n){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var t=this.input,i;t.attr("realType","password");this.isPassword=!0;n.browser.msie&&t[0].outerHTML&&(i=n(t[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1")),this.fakePassword=i.val(t.attr("placeholder")).addClass("placeholder").focus(function(){t.trigger("focus");n(this).hide()}),n(t[0].form).submit(function(){i.remove();t.show()}))}};var i=!!("placeholder"in document.createElement("input"));n.fn.placeholder=function(){return i?this:this.each(function(){var i=n(this),r=new t(i);r.show(!0);i.focus(function(){r.hide()});i.blur(function(){r.show(!1)});n.browser.msie&&(n(window).load(function(){i.val()&&i.removeClass("placeholder");r.show(!0)}),i.focus(function(){if(this.value==""){var n=this.createTextRange();n.collapse(!0);n.moveStart("character",0);n.select()}}))})}}(jQuery),function(n,t){"use strict";function r(t){n.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function u(t,i,r){var u=n(t).data("cycle.opts"),f=!!t.cyclePause;f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r)}function l(r,e,o){function c(t,r,u){if(!t&&r===!0){var e=n(u).data("cycle.opts");if(!e)return i("options not found, can not resume"),!1;u.cycleTimeout&&(clearTimeout(u.cycleTimeout),u.cycleTimeout=0);f(e.elements,e,1,!e.backwards)}}var s,h;if(r.cycleStop===t&&(r.cycleStop=0),(e===t||e===null)&&(e={}),e.constructor==String){switch(e){case"destroy":case"stop":return(s=n(r).data("cycle.opts"),!s)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,s.elements&&n(s.elements).stop(),n(r).removeData("cycle.opts"),e=="destroy"&&a(r,s),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,c(r.cyclePause,o,r),u(r),!1;case"pause":return r.cyclePause=1,u(r),!1;case"resume":return r.cyclePause=0,c(!1,o,r),u(r),!1;case"prev":case"next":return(s=n(r).data("cycle.opts"),!s)?(i('options not found, "prev/next" ignored'),!1):(n.fn.cycle[e](s),!1);default:e={fx:e}}return e}return e.constructor==Number?(h=e,e=n(r).data("cycle.opts"),!e)?(i("options not found, can not advance slide"),!1):h<0||h>=e.elements.length?(i("invalid slide index: "+h),!1):(e.nextSlide=h,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof o=="string"&&(e.oneTimeFx=o),f(e.elements,e,1,h>=e.currSlide),!1):e}function o(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function a(t,i){i.next&&n(i.next).unbind(i.prevNextEvent);i.prev&&n(i.prev).unbind(i.prevNextEvent);(i.pager||i.pagerAnchorBuilder)&&n.each(i.pagerAnchors||[],function(){this.unbind().remove()});i.pagerAnchors=null;n(t).unbind("mouseenter.cycle mouseleave.cycle");i.destroy&&i.destroy(i)}function v(r,s,c,l,a){var at,v=n.extend({},n.fn.cycle.defaults,l||{},n.metadata?r.metadata():n.meta?r.data():{}),vt=n.isFunction(r.data)?r.data(v.metaAttr):null,rt,ut,tt,k,yt,g,nt,ft,ht,ct,pt,lt,d;if(vt&&(v=n.extend(v,vt)),v.autostop&&(v.countdown=v.autostopCount||c.length),rt=r[0],r.data("cycle.opts",v),v.$cont=r,v.stopCount=rt.cycleStop,v.elements=c,v.before=v.before?[v.before]:[],v.after=v.after?[v.after]:[],!n.support.opacity&&v.cleartype&&v.after.push(function(){o(this,v)}),v.continuous&&v.after.push(function(){f(c,v,0,!v.backwards)}),y(v),n.support.opacity||!v.cleartype||v.cleartypeNoBg||h(s),r.css("position")=="static"&&r.css("position","relative"),v.width&&r.width(v.width),v.height&&v.height!="auto"&&r.height(v.height),v.startingSlide!==t?(v.startingSlide=parseInt(v.startingSlide,10),v.startingSlide>=c.length||v.startSlide<0?v.startingSlide=0:at=!0):v.startingSlide=v.backwards?c.length-1:0,v.random){for(v.randomMap=[],ut=0;ut<c.length;ut++)v.randomMap.push(ut);if(v.randomMap.sort(function(){return Math.random()-.5}),at)for(tt=0;tt<c.length;tt++)v.startingSlide==v.randomMap[tt]&&(v.randomIndex=tt);else v.randomIndex=1,v.startingSlide=v.randomMap[1]}else v.startingSlide>=c.length&&(v.startingSlide=0);if(v.currSlide=v.startingSlide||0,k=v.startingSlide,s.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=v.backwards?k?t<=k?c.length+(t-k):k-t:c.length-t:k?t>=k?c.length-(t-k):k-t:c.length-t;n(this).css("z-index",i)}),n(c[k]).css("opacity",1).show(),o(c[k],v),v.fit&&(v.aspect?s.each(function(){var t=n(this),i=v.aspect===!0?t.width()/t.height():v.aspect;v.width&&t.width()!=v.width&&(t.width(v.width),t.height(v.width/i));v.height&&t.height()<v.height&&(t.height(v.height),t.width(v.height*i))}):(v.width&&s.width(v.width),v.height&&v.height!="auto"&&s.height(v.height))),v.center&&(!v.fit||v.aspect)&&s.each(function(){var t=n(this);t.css({"margin-left":v.width?(v.width-t.width())/2+"px":0,"margin-top":v.height?(v.height-t.height())/2+"px":0})}),!v.center||v.fit||v.slideResize||s.each(function(){var t=n(this);t.css({"margin-left":v.width?(v.width-t.width())/2+"px":0,"margin-top":v.height?(v.height-t.height())/2+"px":0})}),yt=v.containerResize&&!r.innerHeight(),yt){for(g=0,nt=0,ft=0;ft<c.length;ft++){var it=n(c[ft]),et=it[0],ot=it.outerWidth(),st=it.outerHeight();ot||(ot=et.offsetWidth||et.width||it.attr("width"));st||(st=et.offsetHeight||et.height||it.attr("height"));g=ot>g?ot:g;nt=st>nt?st:nt}g>0&&nt>0&&r.css({width:g+"px",height:nt+"px"})}if((ht=!1,v.pause&&r.bind("mouseenter.cycle",function(){ht=!0;this.cyclePause++;u(rt,!0)}).bind("mouseleave.cycle",function(){ht&&this.cyclePause--;u(rt,!0)}),p(v)===!1)||(ct=!1,l.requeueAttempts=l.requeueAttempts||0,s.each(function(){var t=n(this);if(this.cycleH=v.fit&&v.height?v.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=v.fit&&v.width?v.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")){var r=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,u=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,f=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,e=this.cycleH===0&&this.cycleW===0&&!this.complete;if(r||u||f||e){if(a.s&&v.requeueOnImageNotLoaded&&++l.requeueAttempts<100)return i(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(a.s,a.c).cycle(l)},v.requeueTimeout),ct=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),ct))return!1;if(v.cssBefore=v.cssBefore||{},v.cssAfter=v.cssAfter||{},v.cssFirst=v.cssFirst||{},v.animIn=v.animIn||{},v.animOut=v.animOut||{},s.not(":eq("+k+")").css(v.cssBefore),n(s[k]).css(v.cssFirst),v.timeout)for(v.timeout=parseInt(v.timeout,10),v.speed.constructor==String&&(v.speed=n.fx.speeds[v.speed]||parseInt(v.speed,10)),v.sync||(v.speed=v.speed/2),pt=v.fx=="none"?0:v.fx=="shuffle"?500:250;v.timeout-v.speed<pt;)v.timeout+=v.speed;if(v.easing&&(v.easeIn=v.easeOut=v.easing),v.speedIn||(v.speedIn=v.speed),v.speedOut||(v.speedOut=v.speed),v.slideCount=c.length,v.currSlide=v.lastSlide=k,v.random?(++v.randomIndex==c.length&&(v.randomIndex=0),v.nextSlide=v.randomMap[v.randomIndex]):v.nextSlide=v.backwards?v.startingSlide===0?c.length-1:v.startingSlide-1:v.startingSlide>=c.length-1?0:v.startingSlide+1,!v.multiFx)if(lt=n.fn.cycle.transitions[v.fx],n.isFunction(lt))lt(r,s,v);else if(v.fx!="custom"&&!v.multiFx)return i("unknown transition: "+v.fx,"; slideshow terminating"),!1;return d=s[k],v.skipInitializationCallbacks||(v.before.length&&v.before[0].apply(d,[d,d,v,!0]),v.after.length&&v.after[0].apply(d,[d,d,v,!0])),v.next&&n(v.next).bind(v.prevNextEvent,function(){return e(v,1)}),v.prev&&n(v.prev).bind(v.prevNextEvent,function(){return e(v,0)}),(v.pager||v.pagerAnchorBuilder)&&b(c,v),w(v,c),v}function y(t){t.original={before:[],after:[]};t.original.cssBefore=n.extend({},t.cssBefore);t.original.cssAfter=n.extend({},t.cssAfter);t.original.animIn=n.extend({},t.animIn);t.original.animOut=n.extend({},t.animOut);n.each(t.before,function(){t.original.before.push(this)});n.each(t.after,function(){t.original.after.push(this)})}function p(t){var u,e,f=n.fn.cycle.transitions,s,o,h,c;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)s=t.fxs[u],e=f[s],e&&f.hasOwnProperty(s)&&n.isFunction(e)||(i("discarding unknown transition: ",s),t.fxs.splice(u,1),u--);if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if(t.fx=="all"){t.multiFx=!0;t.fxs=[];for(o in f)f.hasOwnProperty(o)&&(e=f[o],f.hasOwnProperty(o)&&n.isFunction(e)&&t.fxs.push(o))}if(t.multiFx&&t.randomizeEffects){for(h=Math.floor(Math.random()*20)+30,u=0;u<h;u++)c=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(c,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function w(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(){return Math.random()-.5})),f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||h(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function f(i,u,e,o){function w(){var n=0,t=u.timeout;u.timeout&&!u.continuous?(n=s(i[u.currSlide],i[u.nextSlide],u,o),u.fx=="shuffle"&&(n-=u.speedOut)):u.continuous&&l.cyclePause&&(n=10);n>0&&(l.cycleTimeout=setTimeout(function(){f(i,u,0,!u.backwards)},n))}var l=u.$cont[0],c=i[u.currSlide],h=i[u.nextSlide],y,v,p,a;if(e&&u.busy&&u.manualTrump&&(r("manualTrump in go(), stopping active transition"),n(i).stop(!0,!0),u.busy=0,clearTimeout(l.cycleTimeout)),u.busy){r("transition active, ignoring new tx request");return}if(l.cycleStop==u.stopCount&&(l.cycleTimeout!==0||e)){if(!e&&!l.cyclePause&&!u.bounce&&(u.autostop&&--u.countdown<=0||u.nowrap&&!u.random&&u.nextSlide<u.currSlide)){u.end&&u.end(u);return}y=!1;(e||!l.cyclePause)&&u.nextSlide!=u.currSlide?(y=!0,v=u.fx,c.cycleH=c.cycleH||n(c).height(),c.cycleW=c.cycleW||n(c).width(),h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),u.multiFx&&(o&&(u.lastFx===t||++u.lastFx>=u.fxs.length)?u.lastFx=0:!o&&(u.lastFx===t||--u.lastFx<0)&&(u.lastFx=u.fxs.length-1),v=u.fxs[u.lastFx]),u.oneTimeFx&&(v=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,v),u.before.length&&n.each(u.before,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])}),p=function(){u.busy=0;n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])});l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(c,h,u,p,o,e&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](c,h,u,p,o,e&&u.fastOnEvent):n.fn.cycle.custom(c,h,u,p,o,e&&u.fastOnEvent)):w();(y||u.nextSlide==u.currSlide)&&(u.lastSlide=u.currSlide,u.random?(u.currSlide=u.nextSlide,++u.randomIndex==i.length&&(u.randomIndex=0,u.randomMap.sort(function(){return Math.random()-.5})),u.nextSlide=u.randomMap[u.randomIndex],u.nextSlide==u.currSlide&&(u.nextSlide=u.currSlide==u.slideCount-1?0:u.currSlide+1)):u.backwards?(a=u.nextSlide-1<0,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=1,u.currSlide=0):(u.nextSlide=a?i.length-1:u.nextSlide-1,u.currSlide=a?0:u.nextSlide+1)):(a=u.nextSlide+1==i.length,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=i.length-2,u.currSlide=i.length-1):(u.nextSlide=a?0:u.nextSlide+1,u.currSlide=a?i.length-1:u.nextSlide-1)));y&&u.pager&&u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass)}}function s(n,t,i,u){if(i.timeoutFn){for(var f=i.timeoutFn.call(n,n,t,i,u);i.fx!="none"&&f-i.speed<250;)f+=i.speed;if(r("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function e(t,i){var u=i?1:-1,r=t.elements,o=t.$cont[0],s=o.cycleTimeout,e;if(s&&(clearTimeout(s),o.cycleTimeout=0),t.random&&u<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=r.length-2:t.randomIndex==-1&&(t.randomIndex=r.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+u,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=r.length-1}else if(t.nextSlide>=r.length){if(t.nowrap)return!1;t.nextSlide=0}return e=t.onPrevNextEvent||t.prevNextClick,n.isFunction(e)&&e(u>0,t.nextSlide,r[t.nextSlide]),f(r,t,1,i),!1}function b(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)});i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function h(t){function i(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r&&r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}r("applying clearType background-color hack");t.each(function(){n(this).css("background-color",u(this))})}var c="2.9999.4";n.support===t&&(n.support={opacity:!n.browser.msie});n.expr[":"].paused=function(n){return n.cyclePause};n.fn.cycle=function(t,u){var e={s:this.selector,c:this.context};return this.length===0&&t!="stop"?!n.isReady&&e.s?(i("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(t,u)}),this):(i("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=l(this,t,u),o,c;if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||n.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var y=n(this),p=h.slideExpr?n(h.slideExpr,this):y.children(),a=p.get();if(a.length<2){i("terminating; too few slides: "+a.length);return}(o=v(y,p,a,h,e),o!==!1)&&(c=o.continuous?10:s(a[o.currSlide],a[o.nextSlide],o,!o.backwards),c&&(c+=o.delay||0,c<10&&(c=10),r("first timeout: "+c),this.cycleTimeout=setTimeout(function(){f(a,o,0,!h.backwards)},c)))}})};n.fn.cycle.resetState=function(t,i){i=i||t.fx;t.before=[];t.after=[];t.cssBefore=n.extend({},t.original.cssBefore);t.cssAfter=n.extend({},t.original.cssAfter);t.animIn=n.extend({},t.original.animIn);t.animOut=n.extend({},t.original.animOut);t.fxFn=null;n.each(t.original.before,function(){t.before.push(this)});n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)};n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})};n.fn.cycle.next=function(n){e(n,1)};n.fn.cycle.prev=function(n){e(n,0)};n.fn.cycle.createPagerAnchor=function(t,i,e,o,s){var c,h,a,v,l,y;(n.isFunction(s.pagerAnchorBuilder)?(c=s.pagerAnchorBuilder(t,i),r("pagerAnchorBuilder("+t+", el) returned: "+c)):c='<a href="#">'+(t+1)+"<\/a>",c)&&(h=n(c),h.parents("body").length===0&&(a=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t);a.push(t[0])}),h=n(a)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),v=function(i){var r,u,e;i.preventDefault();s.nextSlide=t;r=s.$cont[0];u=r.cycleTimeout;u&&(clearTimeout(u),r.cycleTimeout=0);e=s.onPagerEvent||s.pagerClick;n.isFunction(e)&&e(s.nextSlide,o[s.nextSlide]);f(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(v,function(){}):h.bind(s.pagerEvent,v),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),l=s.$cont[0],y=!1,s.pauseOnPagerHover&&h.hover(function(){y=!0;l.cyclePause++;u(l,!0,!0)},function(){y&&l.cyclePause--;u(l,!0,!0)}))};n.fn.cycle.hopsFromLast=function(n,t){var i=n.lastSlide,r=n.currSlide;return t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r};n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide();typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1);r.cssBefore.display="block";r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW);r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH);r.cssAfter=r.cssAfter||{};r.cssAfter.display="none";n(t).css("zIndex",r.slideCount+(e===!0?1:0));n(i).css("zIndex",r.slideCount+(e===!0?0:1))};n.fn.cycle.custom=function(t,i,r,u,f,e){var h=n(t),c=n(i),l=r.speedIn,o=r.speedOut,a=r.easeIn,v=r.easeOut,s;c.css(r.cssBefore);e&&(l=typeof e=="number"?o=e:o=1,a=v=null);s=function(){c.animate(r.animIn,l,a,function(){u()})};h.animate(r.animOut,o,v,function(){h.css(r.cssAfter);r.sync||s()});r.sync&&s()};n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0);r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssBefore.opacity=0});r.animIn={opacity:1};r.animOut={opacity:0};r.cssBefore={top:0,left:0}}};n.fn.cycle.ver=function(){return c};n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.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,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:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){"use strict";n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show();n(t).hide();u()}};n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1});r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(e!==!0?1:0));n(i).css("zIndex",r.slideCount+(e!==!0?0:1))});r.animIn.opacity=1;r.animOut.opacity=0;r.cssBefore.opacity=1;r.cssBefore.display="block";r.cssAfter.zIndex=0};n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u;r.cssBefore.left=0;r.cssFirst.top=0;r.animIn.top=0;r.animOut.top=-u};n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0;r.cssBefore.top=-u;r.cssBefore.left=0;r.animIn.top=0;r.animOut.top=u};n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0;r.cssBefore.left=u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=0-u};n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0;r.cssBefore.left=-u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=u};n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width();r.before.push(function(t,i,r,u){r.rev&&(u=!u);n.fn.cycle.commonReset(t,i,r);r.cssBefore.left=u?i.cycleW-1:1-i.cycleW;r.animOut.left=u?-t.cycleW:t.cycleW});r.cssFirst.left=0;r.cssBefore.top=0;r.animIn.left=0;r.animOut.top=0};n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden");r.before.push(function(t,i,r,u){r.rev&&(u=!u);n.fn.cycle.commonReset(t,i,r);r.cssBefore.top=u?1-i.cycleH:i.cycleH-1;r.animOut.top=u?t.cycleH:-t.cycleH});r.cssFirst.top=0;r.cssBefore.left=0;r.animIn.top=0;r.animOut.left=0};n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW});r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.width=0;r.animIn.width="show";r.animOut.width=0};n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH});r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.height=0;r.animIn.height="show";r.animOut.height=0};n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f);e=f?n(t):n(i);n(i).css(r.cssBefore);o=r.slideCount;e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var i,s,c,l=n.fn.cycle.hopsFromLast(r,f),h=0;h<l;h++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,s=r.els.length;i<s;i++)n(r.els[i]).css("z-index",s-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide();u&&u()})})};n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})};n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=i.cycleH;r.animIn.height=i.cycleH;r.animOut.width=i.cycleW});r.cssFirst.top=0;r.cssBefore.left=0;r.cssBefore.height=0;r.animIn.top=0;r.animOut.height=0};n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssFirst.top=0;r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.height=0;r.animOut.height=0};n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=i.cycleW;r.animIn.width=i.cycleW});r.cssBefore.top=0;r.cssBefore.width=0;r.animIn.left=0;r.animOut.width=0};n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});n.extend(r.cssBefore,{top:0,left:0,width:0});r.animIn.left=0;r.animOut.width=0};n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0);r.cssBefore.top=i.cycleH/2;r.cssBefore.left=i.cycleW/2;n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH});n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})});r.cssFirst.top=0;r.cssFirst.left=0;r.cssBefore.width=0;r.cssBefore.height=0};n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1);r.cssBefore.left=i.cycleW/2;r.cssBefore.top=i.cycleH/2;n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})});r.cssBefore.width=0;r.cssBefore.height=0;r.animOut.opacity=0};n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore.left=u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=u};n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore.top=u;r.cssBefore.left=0;r.animIn.top=0;r.animOut.top=u};n.fn.cycle.transitions.blindZ=function(t,i,r){var u=t.css("overflow","hidden").height(),f=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore.top=u;r.cssBefore.left=f;r.animIn.top=0;r.animIn.left=0;r.animOut.top=u;r.animOut.left=f};n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=this.cycleW/2;r.animIn.left=0;r.animIn.width=this.cycleW;r.animOut.left=0});r.cssBefore.top=0;r.cssBefore.width=0};n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=this.cycleH/2;r.animIn.top=0;r.animIn.height=this.cycleH;r.animOut.top=0});r.cssBefore.height=0;r.cssBefore.left=0};n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0);r.cssBefore.left=i.cycleW/2;r.animIn.left=0;r.animIn.width=this.cycleW;r.animOut.left=t.cycleW/2;r.animOut.width=0});r.cssBefore.top=0;r.cssBefore.width=0};n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0);r.cssBefore.top=i.cycleH/2;r.animIn.top=0;r.animIn.height=i.cycleH;r.animOut.top=t.cycleH/2;r.animOut.height=0});r.cssBefore.height=0;r.cssBefore.left=0};n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);u=="right"?r.cssBefore.left=-f:u=="up"?r.cssBefore.top=e:u=="down"?r.cssBefore.top=-e:r.cssBefore.left=f});r.animIn.left=0;r.animIn.top=0;r.cssBefore.top=0;r.cssBefore.left=0};n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);u=="right"?r.animOut.left=f:u=="up"?r.animOut.top=-e:u=="down"?r.animOut.top=e:r.animOut.left=-f});r.animIn.left=0;r.animIn.top=0;r.cssBefore.top=0;r.cssBefore.left=0};n.fn.cycle.transitions.toss=function(t,i,r){var u=t.css("overflow","visible").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:u*2,top:-f/2,opacity:0})});r.cssBefore.left=0;r.cssBefore.top=0;r.animIn.left=0};n.fn.cycle.transitions.wipe=function(t,i,r){var u=t.css("overflow","hidden").width(),f=t.height(),e,s,h;r.cssBefore=r.cssBefore||{};r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+f+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+u+"px "+f+"px "+u+"px)":/t2b/.test(r.clip)?e="rect(0px "+u+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+f+"px "+u+"px "+f+"px 0px)":/zoom/.test(r.clip)&&(s=parseInt(f/2,10),h=parseInt(u/2,10),e="rect("+s+"px "+h+"px "+s+"px "+h+"px)"));r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),c=parseInt(o[0],10),l=parseInt(o[1],10),a=parseInt(o[2],10),v=parseInt(o[3],10);r.before.push(function(t,i,r){var s,h,e,o;t!=i&&(s=n(t),h=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,function y(){var n=c?c-parseInt(e*(c/o),10):0,t=v?v-parseInt(e*(v/o),10):0,i=a<f?a+parseInt(e*((f-a)/o||1),10):f,r=l<u?l+parseInt(e*((u-l)/o||1),10):u;h.css({clip:"rect("+n+"px "+r+"px "+i+"px "+t+"px)"});e++<=o?setTimeout(y,13):s.css("display","none")}())});n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0});r.animIn={left:0};r.animOut={left:0}}}(jQuery),function(){function a(n){console.log("$f.fireEvent",[].slice.call(n))}function i(n){var r,t;if(!n||typeof n!="object")return n;r=new n.constructor;for(t in n)n.hasOwnProperty(t)&&(r[t]=i(n[t]));return r}function n(n,t){var i,r,f,u;if(n){if(r=0,f=n.length,f===undefined){for(i in n)if(t.call(n[i],i,n[i])===!1)break}else for(u=n[0];r<f&&t.call(u,r,u)!==!1;u=n[++r]);return n}}function h(n){return document.getElementById(n)}function t(t,i,r){return typeof i!="object"?t:(t&&i&&n(i,function(n,i){r&&typeof i=="function"||(t[n]=i)}),t)}function v(t){var i=t.indexOf(".");if(i!=-1){var u=t.slice(0,i)||"*",f=t.slice(i+1,t.length),r=[];return n(document.getElementsByTagName(u),function(){this.className&&this.className.indexOf(f)!=-1&&r.push(this)}),r}}function l(n){return n=n||window.event,n.preventDefault?(n.stopPropagation(),n.preventDefault()):(n.returnValue=!1,n.cancelBubble=!0),!1}function u(n,t,i){n[t]=n[t]||[];n[t].push(i)}function f(){return"_"+(""+Math.random()).slice(2,10)}function o(o,c,v){function st(){function i(n){return/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(w[0].url)&&!h()?!0:(y.isLoaded()||y._fireEvent("onBeforeClick")===!1||y.load(),l(n))}function h(){return y.hasiPadSupport&&y.hasiPadSupport()}function a(){d.replace(/\s/g,"")!==""?o.addEventListener?o.addEventListener("click",i,!1):o.attachEvent&&o.attachEvent("onclick",i):(o.addEventListener&&!h()&&o.addEventListener("click",l,!1),y.load())}$f(o)?($f(o).getParent().innerHTML="",it=$f(o).getIndex(),r[it]=y):(r.push(y),it=r.length-1);ot=parseInt(o.style.height,10)||o.clientHeight;tt=o.id||"fp"+f();rt=c.id||tt+"_api";c.id=rt;d=o.innerHTML;typeof v=="string"&&(v={clip:{url:v}});v.playerId=tt;v.clip=v.clip||{};o.getAttribute("href",2)&&!v.clip.url&&(v.clip.url=o.getAttribute("href",2));g=new s(v.clip,-1,y);v.playlist=v.playlist||[v.clip];var t=0;n(v.playlist,function(){var i=this;typeof i=="object"&&i.length&&(i={url:""+i});n(v.clip,function(n,t){t!==undefined&&i[n]===undefined&&typeof t!="function"&&(i[n]=t)});v.playlist[t]=i;i=new s(i,t,y);w.push(i);t++});n(v,function(n,t){typeof t=="function"&&(g[n]?g[n](t):u(k,n,t),delete v[n])});n(v.plugins,function(n,t){t&&(b[n]=new e(n,t,y))});v.plugins&&v.plugins.controls!==undefined||(b.controls=new e("controls",null,y));b.canvas=new e("canvas",null,y);d=o.innerHTML;setTimeout(a,0)}var y=this,p=null,nt=!1,d,g,w=[],b={},k={},tt,rt,it,ft,et,ot,ut;if(t(y,{id:function(){return tt},isLoaded:function(){return p!==null&&p.fp_play!==undefined&&!nt},getParent:function(){return o},hide:function(n){return n&&(o.style.height="0px"),y.isLoaded()&&(p.style.height="0px"),y},show:function(){return o.style.height=ot+"px",y.isLoaded()&&(p.style.height=et+"px"),y},isHidden:function(){return y.isLoaded()&&parseInt(p.style.height,10)===0},load:function(t){if(!y.isLoaded()&&y._fireEvent("onBeforeLoad")!==!1){var i=function(){d&&!flashembed.isSupported(c.version)&&(o.innerHTML="");t&&(t.cached=!0,u(k,"onLoad",t));flashembed(o,c,{config:v})},f=0;n(r,function(){this.unload(function(){++f==r.length&&i()})})}return y},unload:function(n){if(d.replace(/\s/g,"")!==""){if(y._fireEvent("onBeforeUnload")===!1)return n&&n(!1),y;nt=!0;try{p&&(p.fp_isFullscreen()&&p.fp_toggleFullscreen(),p.fp_close(),y._fireEvent("onUnload"))}catch(i){}var t=function(){p=null;o.innerHTML=d;nt=!1;n&&n(!0)};/WebKit/i.test(navigator.userAgent)&&!/Chrome/i.test(navigator.userAgent)?setTimeout(t,0):t()}else n&&n(!1);return y},getClip:function(n){return n===undefined&&(n=ft),w[n]},getCommonClip:function(){return g},getPlaylist:function(){return w},getPlugin:function(n){var t=b[n],i;return!t&&y.isLoaded()&&(i=y._api().fp_getPlugin(n),i&&(t=new e(n,i,y),b[n]=t)),t},getScreen:function(){return y.getPlugin("screen")},getControls:function(){return y.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return y.getPlugin("logo")._fireEvent("onUpdate")}catch(n){}},getPlay:function(){return y.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(n){return n?i(v):v},getFlashParams:function(){return c},loadPlugin:function(n,t,i,r){var u,o,s;return typeof i=="function"&&(r=i,i={}),u=r?f():"_",y._api().fp_loadPlugin(n,t,i,u),o={},o[u]=r,s=new e(n,null,y,o),b[n]=s,s},getState:function(){return y.isLoaded()?p.fp_getState():-1},play:function(n,t){var i=function(){n!==undefined?y._api().fp_play(n,t):y._api().fp_play()};return y.isLoaded()?i():nt?setTimeout(function(){y.play(n,t)},50):y.load(function(){i()}),y},getVersion:function(){var t="flowplayer.js 3.2.11",n;return y.isLoaded()?(n=p.fp_getVersion(),n.push(t),n):t},_api:function(){if(!y.isLoaded())throw"Flowplayer "+y.id()+" not loaded when calling an API method";return p},setClip:function(t){return n(t,function(n,i){if(typeof i=="function")u(k,n,i),delete t[n];else if(n=="onCuepoint")$f(o).getCommonClip().onCuepoint(t[n][0],t[n][1])}),y.setPlaylist([t]),y},getIndex:function(){return it},bufferAnimate:function(n){return p.fp_bufferAnimate(n===undefined||n),y},_swfHeight:function(){return p.clientHeight}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.slice(0,n.length-1),t="onBefore"+n.slice(2),y[t]=function(n){return u(k,t,n),y});y[n]=function(t){return u(k,n,t),y}}),n("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var n=this;y[n]=function(t,i){if(!y.isLoaded())return y;var r=null;return r=t!==undefined&&i!==undefined?p["fp_"+n](t,i):t===undefined?p["fp_"+n]():p["fp_"+n](t),r==="undefined"||r===undefined?y:r}}),y._fireEvent=function(t){var d,c,nt,f,o;typeof t=="string"&&(t=[t]);var r=t[0],i=t[1],u=t[2],l=t[3],e=0;if(v.debug&&a(t),y.isLoaded()||r!="onLoad"||i!="player"||(p=p||h(rt),et=y._swfHeight(),n(w,function(){this._fireEvent("onLoad")}),n(b,function(n,t){t._fireEvent("onUpdate")}),g._fireEvent("onLoad")),r!="onLoad"||i=="player"){if(r=="onError"&&(typeof i=="string"||typeof i=="number"&&typeof u=="number")&&(i=u,u=l),r=="onContextMenu"){n(v.contextMenu[i],function(n,t){t.call(y)});return}if(r=="onPluginEvent"||r=="onBeforePluginEvent")return(d=i.name||i,c=b[d],c)?(c._fireEvent("onUpdate",i),c._fireEvent(u,t.slice(3))):void 0;if(r=="onPlaylistReplace"&&(w=[],nt=0,n(i,function(){w.push(new s(this,nt++,y))})),r=="onClipAdd"){if(i.isInStream)return;for(i=new s(i,u,y),w.splice(u,0,i),e=u+1;e<w.length;e++)w[e].index++}return f=!0,typeof i=="number"&&i<w.length&&(ft=i,o=w[i],o&&(f=o._fireEvent(r,u,l)),o&&f===!1||(f=g._fireEvent(r,u,l,o))),n(k[r],function(){if(f=this.call(y,i,u),this.cached&&k[r].splice(e,1),f===!1)return!1;e++}),f}},typeof o=="string"){if(ut=h(o),!ut)throw"Flowplayer cannot access element: "+o;o=ut;st()}else st()}function c(t){this.length=t.length;this.each=function(i){n(t,i)};this.size=function(){return t.length};var i=this;for(name in o.prototype)i[name]=function(){var n=arguments;i.each(function(){this[name].apply(this,n)})}}var s=function(i,r,e){var o=this,s={},h={},c;o.index=r;typeof i=="string"&&(i={url:i});t(this,i,!0);n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.slice(0,n.length-1),t="onBefore"+n.slice(2),o[t]=function(n){return u(h,t,n),o});o[n]=function(t){return u(h,n,t),o};r==-1&&(o[t]&&(e[t]=o[t]),o[n]&&(e[n]=o[n]))});t(this,{onCuepoint:function(n,t){if(arguments.length==1)return s.embedded=[null,n],o;typeof n=="number"&&(n=[n]);var i=f();return s[i]=[n,t],e.isLoaded()&&e._api().fp_addCuepoints(n,r,i),o},update:function(n){t(o,n);e.isLoaded()&&e._api().fp_updateClip(n,r);var i=e.getConfig(),u=r==-1?i.clip:i.playlist[r];t(u,n,!0)},_fireEvent:function(i,u,f,c){var l,a;return i=="onLoad"?(n(s,function(n,t){t[0]&&e._api().fp_addCuepoints(t[0],r,n)}),!1):(c=c||o,i=="onCuepoint"&&(l=s[u],l))?l[1].call(e,c,f):(u&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(i)!=-1&&(t(c,u),u.metaData&&(c.duration?c.fullDuration=u.metaData.duration:c.duration=u.metaData.duration)),a=!0,n(h[i],function(){a=this.call(e,c,u,f)}),a)}});i.onCuepoint&&(c=i.onCuepoint,o.onCuepoint.apply(o,typeof c=="function"?[c]:c),delete i.onCuepoint);n(i,function(n,t){typeof t=="function"&&(u(h,n,t),delete i[n])});r==-1&&(e.onCuepoint=this.onCuepoint)},e=function(i,r,u,e){var o=this,s={},h=!1;e&&t(s,e);n(r,function(n,t){typeof t=="function"&&(s[n]=t,delete r[n])});t(this,{animate:function(n,t,e){var c,h;return n?(typeof t=="function"&&(e=t,t=500),typeof n=="string"&&(c=n,n={},n[c]=t,t=500),e&&(h=f(),s[h]=e),t===undefined&&(t=500),r=u._api().fp_animate(i,n,t,h),o):o},css:function(n,f){if(f!==undefined){var e={};e[n]=f;n=e}return r=u._api().fp_css(i,n),t(o,r),o},show:function(){return this.display="block",u._api().fp_showPlugin(i),o},hide:function(){return this.display="none",u._api().fp_hidePlugin(i),o},toggle:function(){return this.display=u._api().fp_togglePlugin(i),o},fadeTo:function(n,t,r){if(typeof t=="function"&&(r=t,t=500),r){var e=f();s[e]=r}return this.display=u._api().fp_fadeTo(i,n,t,e),this.opacity=n,o},fadeIn:function(n,t){return o.fadeTo(1,n,t)},fadeOut:function(n,t){return o.fadeTo(0,n,t)},getName:function(){return i},getPlayer:function(){return u},_fireEvent:function(r,f){var e,c,l;if(r=="onUpdate"){if(e=u._api().fp_getPlugin(i),!e)return;t(o,e);delete o.methods;h||(n(e.methods,function(){var n=""+this;o[n]=function(){var r=[].slice.call(arguments),t=u._api().fp_invoke(i,n,r);return t==="undefined"||t===undefined?o:t}}),h=!0)}return(c=s[r],c)?(l=c.apply(o,f),r.slice(0,1)=="_"&&delete s[r],l):o}})},r=[];window.flowplayer=window.$f=function(){var e=null,u=arguments[0],f,s,l,a;if(!arguments.length)return n(r,function(){if(this.isLoaded())return e=this,!1}),e||r[0];if(arguments.length==1)return typeof u=="number"?r[u]:u=="*"?new c(r):(n(r,function(){if(this.id()==u.id||this.id()==u||this.getParent()==u)return e=this,!1}),e);if(arguments.length>1){if(f=arguments[1],s=arguments.length==3?arguments[2]:{},typeof f=="string"&&(f={src:f}),f=t({bgcolor:"#000000",version:[10,1],expressInstall:"http://releases.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},f),typeof u=="string")return u.indexOf(".")!=-1?(l=[],n(v(u),function(){l.push(new o(this,i(f),i(s)))}),new c(l)):(a=h(u),new o(a!==null?a:i(u),i(f),i(s)));if(u)return new o(u,i(f),i(s))}return null};t(window.$f,{fireEvent:function(){var n=[].slice.call(arguments),t=$f(n[0]);return t?t._fireEvent(n.slice(1)):null},addPlugin:function(n,t){return o.prototype[n]=t,$f},each:n,extend:t});typeof jQuery=="function"&&(jQuery.fn.flowplayer=function(n,t){if(!arguments.length||typeof arguments[0]=="number"){var r=[];return this.each(function(){var n=$f(this);n&&r.push(n)}),arguments.length?r[arguments[0]]:new c(r)}return this.each(function(){$f(this,i(n),t?i(t):{})})})}(),function(){function t(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function s(n,t){var r=[];for(var i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i]));return r}function h(u,e,o){if(n.isSupported(e.version))u.innerHTML=n.getHTML(e,o);else if(e.expressInstall&&n.isSupported([6,65]))u.innerHTML=n.getHTML(t(e,{src:e.expressInstall}),{MMredirectURL:encodeURIComponent(location.href),MMplayerType:"PlugIn",MMdoctitle:document.title});else if(u.innerHTML.replace(/\s/g,"")||(u.innerHTML="<h2>Flash version "+e.version+" or greater is required<\/h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"<\/h3>"+(u.tagName=="A"?"<p>Click here to download latest version<\/p>":"<p>Download latest version from <a href='"+f+"'>here<\/a><\/p>"),(u.tagName=="A"||u.tagName=="DIV")&&(u.onclick=function(){location.href=f})),e.onFail){var s=e.onFail.call(this);typeof s=="string"&&(u.innerHTML=s)}r&&(window[e.id]=document.getElementById(e.id));t(this,{getRoot:function(){return u},getOptions:function(){return e},getConf:function(){return o},getApi:function(){return u.firstChild}})}var r=document.all,f="http://get.adobe.com/flashplayer",e=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,u={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1},n,i;window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(n,i,r){if(typeof n=="string"&&(n=document.getElementById(n.replace("#",""))),n)return typeof i=="string"&&(i={src:i}),new h(n,t(t({},u),i),r)};n=t(window.flashembed,{conf:u,getVersion:function(){var t,n;try{n=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(i){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");n=t&&t.GetVariable("$version")}catch(r){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");n=t&&t.GetVariable("$version")}catch(u){}}}return n=o.exec(n),n?[1*n[1],1*n[n[1]*1>9?2:3]]:[0,0]},asString:function(t){var i,u,r;if(t===null||t===undefined)return null;i=typeof t;i=="object"&&t.push&&(i="array");switch(i){case"string":return t=t.replace(new RegExp('(["\\\\])',"g"),"\\$1"),t=t.replace(/^\s?(\d+\.?\d*)%/,"$1pct"),'"'+t+'"';case"array":return"["+s(t,function(t){return n.asString(t)}).join(",")+"]";case"function":return'"function()"';case"object":u=[];for(r in t)t.hasOwnProperty(r)&&u.push('"'+r+'":'+n.asString(t[r]));return"{"+u.join(",")+"}"}return String(t).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(i,u){var f,o,e,s,h;i=t({},i);f='<object width="'+i.width+'" height="'+i.height+'" id="'+i.id+'" name="'+i.id+'"';i.cachebusting&&(i.src+=(i.src.indexOf("?")!=-1?"&":"?")+Math.random());f+=i.w3c||!r?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';f+=">";(i.w3c||r)&&(f+='<param name="movie" value="'+i.src+'" />');i.width=i.height=i.id=i.w3c=i.src=null;i.onFail=i.version=i.expressInstall=null;for(o in i)i[o]&&(f+='<param name="'+o+'" value="'+i[o]+'" />');if(e="",u){for(s in u)u[s]&&(h=u[s],e+=s+"="+(/function|object/.test(typeof h)?n.asString(h):h)+"&");e=e.slice(0,-1);f+='<param name="flashvars" value=\''+e+"' />"}return f+"<\/object>"},isSupported:function(n){return i[0]>n[0]||i[0]==n[0]&&i[1]>=n[1]}});i=n.getVersion();e&&(jQuery.tools=jQuery.tools||{version:"3.2.11"},jQuery.tools.flashembed={conf:u},jQuery.fn.flashembed=function(n,t){return this.each(function(){$(this).data("flashembed",flashembed(this,n,t))})})}(),function(n){function i(){var n=location.href;return hashtag=n.indexOf("#prettyPhoto")!==-1?decodeURI(n.substring(n.indexOf("#prettyPhoto")+1,n.length)):!1}function r(){typeof theRel!="undefined"&&(location.hash=theRel+"/"+rel_index+"/")}function u(){location.href.indexOf("#prettyPhoto")!==-1&&(location.hash="prettyPhoto")}function t(n,t){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r="[\\?&]"+n+"=([^&#]*)",u=new RegExp(r),i=u.exec(t);return i==null?"":i[1]}n.prettyPhoto={version:"3.1.5"};n.fn.prettyPhoto=function(f){function y(){n(".pp_loaderIcon").hide();projectedTop=scroll_pos.scrollTop+(h/2-e.containerHeight/2);projectedTop<0&&(projectedTop=0);$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:e.contentHeight,width:e.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:s/2-e.containerWidth/2<0?0:s/2-e.containerWidth/2,width:e.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(e.height).width(e.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&p(pp_images[set_position])=="image"?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide();settings.allow_expand&&(e.resized?n("a.pp_expand,a.pp_contract").show():n("a.pp_expand").hide());!settings.autoplay_slideshow||a||k||n.prettyPhoto.startSlideshow();settings.changepicturecallback();k=!0});et();f.ajaxcallback()}function g(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){n(".pp_loaderIcon").show();t()})}function ut(t){t>1?n(".pp_nav").show():n(".pp_nav").hide()}function o(n,t){if(resized=!1,nt(n,t),imageWidth=n,imageHeight=t,(l>s||c>h)&&doresize&&settings.allow_resize&&!v){for(resized=!0,fitting=!1;!fitting;)l>s?(imageWidth=s-200,imageHeight=t/n*imageWidth):c>h?(imageHeight=h-200,imageWidth=n/t*imageHeight):fitting=!0,c=imageHeight,l=imageWidth;(l>s||c>h)&&o(l,c);nt(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(c),containerWidth:Math.floor(l)+settings.horizontal_padding*2,contentHeight:Math.floor(d),contentWidth:Math.floor(rt),resized:resized}}function nt(t,i){t=parseFloat(t);i=parseFloat(i);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(n("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(n("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();d=i+detailsHeight;rt=t;c=d+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();l=t}function p(n){return n.match(/youtube\.com\/watch/i)||n.match(/youtu\.be/i)?"youtube":n.match(/vimeo\.com/i)?"vimeo":n.match(/\b.mov\b/i)?"quicktime":n.match(/\b.swf\b/i)?"flash":n.match(/\biframe=true\b/i)?"iframe":n.match(/\bajax=true\b/i)?"ajax":n.match(/\bcustom=true\b/i)?"custom":n.substr(0,1)=="#"?"inline":"image"}function w(){if(doresize&&typeof $pp_pic_holder!="undefined"){if(scroll_pos=tt(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=h/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>h)return;$pp_pic_holder.css({top:projectedTop,left:s/2+scroll_pos.scrollLeft-contentwidth/2})}}function tt(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function ft(){h=n(window).height();s=n(window).width();typeof $pp_overlay!="undefined"&&$pp_overlay.height(n(document).height()).width(s)}function et(){isSet&&settings.overlay_gallery&&p(pp_images[set_position])=="image"?(itemWidth=57,navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30,itemsPerPage=Math.floor((e.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,totalPage==0?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,n.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}function it(){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),n("body").append(settings.markup),$pp_pic_holder=n(".pp_pic_holder"),$ppt=n(".ppt"),$pp_overlay=n("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var t=0;t<pp_images.length;t++)pp_images[t].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[t]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /><\/a><\/li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=n(".pp_pic_holder .pp_gallery");$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){return n.prettyPhoto.changeGalleryPage("next"),n.prettyPhoto.stopSlideshow(),!1});$pp_gallery.find(".pp_arrow_previous").click(function(){return n.prettyPhoto.changeGalleryPage("previous"),n.prettyPhoto.stopSlideshow(),!1});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=57;$pp_gallery_li.each(function(t){n(this).find("a").click(function(){return n.prettyPhoto.changePage(t),n.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play<\/a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return n.prettyPhoto.startSlideshow(),!1}));$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:n(document).height(),width:n(window).width()}).bind("click",function(){settings.modal||n.prettyPhoto.close()});n("a.pp_close").bind("click",function(){return n.prettyPhoto.close(),!1});settings.allow_expand&&n("a.pp_expand").bind("click",function(){return n(this).hasClass("pp_expand")?(n(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(n(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),g(function(){n.prettyPhoto.open()}),!1});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return n.prettyPhoto.changePage("previous"),n.prettyPhoto.stopSlideshow(),!1});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return n.prettyPhoto.changePage("next"),n.prettyPhoto.stopSlideshow(),!1});w()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder"> \t\t\t\t\t\t<div class="ppt"> <\/div> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"><\/div> \t\t\t\t\t\t\t<div class="pp_middle"><\/div> \t\t\t\t\t\t\t<div class="pp_right"><\/div> \t\t\t\t\t\t<\/div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"><\/div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand<\/a> \t\t\t\t\t\t\t\t\t\t<div class="pp_hoverContainer"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next<\/a> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous<\/a> \t\t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"><\/div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details"> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous<\/a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0<\/p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next<\/a> \t\t\t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"><\/p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_social">{pp_social}<\/div> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_close" href="#">Close<\/a> \t\t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t<\/div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"><\/div> \t\t\t\t\t\t\t<div class="pp_middle"><\/div> \t\t\t\t\t\t\t<div class="pp_right"><\/div> \t\t\t\t\t\t<\/div> \t\t\t\t\t<\/div> \t\t\t\t\t<div class="pp_overlay"><\/div>',gallery_markup:'<div class="pp_gallery"> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous<\/a> \t\t\t\t\t\t\t\t<div> \t\t\t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t<\/ul> \t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next<\/a> \t\t\t\t\t\t\t<\/div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"><\/embed><\/object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"><\/embed><\/object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"><\/iframe>',inline_markup:'<div class="pp_inline">{content}<\/div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet<\/a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script><\/div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"><\/iframe><\/div>'},f);var b=this,v=!1,e,k,d,rt,c,l,h=n(window).height(),s=n(window).width(),a;return doresize=!0,scroll_pos=tt(),n(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){w();ft()}),f.keyboard_shortcuts&&n(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:n.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:n.prettyPhoto.changePage("next");t.preventDefault();break;case 27:settings.modal||n.prettyPhoto.close();t.preventDefault()}}),n.prettyPhoto.initialize=function(){return settings=f,settings.theme=="pp_default"&&(settings.horizontal_padding=16),theRel=n(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(b,function(t){if(n(t).attr(settings.hook).indexOf(theRel)!=-1)return n(t).attr("href")}):n.makeArray(n(this).attr("href")),pp_titles=isSet?jQuery.map(b,function(t){if(n(t).attr(settings.hook).indexOf(theRel)!=-1)return n(t).find("img").attr("alt")?n(t).find("img").attr("alt"):""}):n.makeArray(n(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(b,function(t){if(n(t).attr(settings.hook).indexOf(theRel)!=-1)return n(t).attr("title")?n(t).attr("title"):""}):n.makeArray(n(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(n(this).attr("href"),pp_images),rel_index=isSet?set_position:n("a["+settings.hook+"^='"+theRel+"']").index(n(this)),it(this),settings.allow_resize&&n(window).bind("scroll.prettyphoto",function(){w()}),n.prettyPhoto.open(),!1},n.prettyPhoto.open=function(i){return typeof settings=="undefined"&&(settings=f,pp_images=n.makeArray(arguments[0]),pp_titles=arguments[1]?n.makeArray(arguments[1]):n.makeArray(""),pp_descriptions=arguments[2]?n.makeArray(arguments[2]):n.makeArray(""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,it(i.target)),settings.hideflash&&n("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),ut(n(pp_images).size()),n(".pp_loaderIcon").show(),settings.deeplinking&&r(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+n(pp_images).size()),typeof pp_descriptions[set_position]!="undefined"&&pp_descriptions[set_position]!=""?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(t("width",pp_images[set_position]))?t("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(t("height",pp_images[set_position]))?t("height",pp_images[set_position]):settings.default_height.toString(),v=!1,movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(n(window).height()*parseFloat(movie_height)/100-150),v=!0),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(n(window).width()*parseFloat(movie_width)/100-150),v=!0),$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" ");imgPreloader="";skipInjection=!1;switch(p(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;isSet&&set_position<n(pp_images).size()-1&&(nextImage.src=pp_images[set_position+1]);prevImage=new Image;isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){e=o(imgPreloader.width,imgPreloader.height);y()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");n.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":e=o(movie_width,movie_height);movie_id=t("v",pp_images[set_position]);movie_id==""&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&"))));movie="http://www.youtube.com/embed/"+movie_id;movie+=t("rel",pp_images[set_position])?"?rel="+t("rel",pp_images[set_position]):"?rel=1";settings.autoplay&&(movie+="&autoplay=1");toInject=settings.iframe_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":e=o(movie_width,movie_height);movie_id=pp_images[set_position];var i=movie_id.match(/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/);movie="http://player.vimeo.com/video/"+i[3]+"?title=0&byline=0&portrait=0";settings.autoplay&&(movie+="&autoplay=1;");vimeo_width=e.width+"/embed/?moog_width="+e.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,e.height).replace(/{path}/g,movie);break;case"quicktime":e=o(movie_width,movie_height);e.height+=15;e.contentHeight+=15;e.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":e=o(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":e=o(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1;e=o(movie_width,movie_height);doresize=!0;skipInjection=!0;n.get(pp_images[set_position],function(n){toInject=settings.inline_markup.replace(/{content}/g,n);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;y()});break;case"custom":e=o(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=n(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"><\/div><\/div>').appendTo(n("body")).show();doresize=!1;e=o(n(myClone).width(),n(myClone).height());doresize=!0;n(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,n(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,y())}),!1},n.prettyPhoto.changePage=function(t){currentGalleryPage=0;t=="previous"?(set_position--,set_position<0&&(set_position=n(pp_images).size()-1)):t=="next"?(set_position++,set_position>n(pp_images).size()-1&&(set_position=0)):set_position=t;rel_index=set_position;doresize||(doresize=!0);settings.allow_expand&&n(".pp_contract").removeClass("pp_contract").addClass("pp_expand");g(function(){n.prettyPhoto.open()})},n.prettyPhoto.changeGalleryPage=function(n){n=="next"?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):n=="previous"?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=n;slide_speed=n=="next"||n=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},n.prettyPhoto.startSlideshow=function(){typeof a=="undefined"?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return n.prettyPhoto.stopSlideshow(),!1}),a=setInterval(n.prettyPhoto.startSlideshow,settings.slideshow)):n.prettyPhoto.changePage("next")},n.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return n.prettyPhoto.startSlideshow(),!1});clearInterval(a);a=undefined},n.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(n.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),n("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){n(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&n("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");n(this).remove();n(window).unbind("scroll.prettyphoto");u();settings.callback();doresize=!0;k=!1;delete settings}))},!pp_alreadyInitialized&&i()&&(pp_alreadyInitialized=!0,hashIndex=i(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){n("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",n.prettyPhoto.initialize)}}(jQuery);pp_alreadyInitialized=!1;ie=0;$(document).ready(function(){init()});GSLShopping=new tGSLShopping;$.extend(tGSLShopping.prototype,{BookSearch:new tBookSearch,Test:!1,SubmitSearch:function(n){return document.getElementById(n).value=n,document.forms[0].submit(),!1},SubmitEventSearch:function(n){return document.getElementById(n).value=n,document.getElementById("hmatchByWeek").value=document.getElementsByName("matchByWeek").checked?"on":"off",document.getElementById("hdayList").value=document.getElementsByName("dayList").selectedIndex,document.getElementById("hmonthList").value=document.getElementsByName("monthList").selectedIndex,document.getElementById("hyearList").value=document.getElementsByName("yearList").selectedIndex,document.forms[0].submit(),!1}});Common=new tCommon;$.extend(tCommon.prototype,{AddBookMark:function(n){var t=window.location.href.indexOf("?")>0?window.location.href.substring(window.location.href.indexOf("?")):"";$.ajax({type:"POST",url:"/handlers/BookmarksHandler.ashx",data:{ID:n,querystring:t,method:"add"}}).done(function(){alert("Bookmark saved")})},RemoveBookmark:function(n,t){confirm("Remove bookmark?")&&$.ajax({type:"POST",url:"/handlers/BookmarksHandler.ashx",data:{ID:t,method:"delete"}}).done(function(){$(n).parent().slideUp("slow",function(){})})},BibliographyAdded:function(){this.BibliographyChanged();$(".add-bibliography").slideDown(300).delay(1500).slideUp(400)},LoginToAddBibliography:function(){$(".login-to-add-bibliography").slideDown(300).delay(2e3).slideUp(400)},BibliographyChanged:function(){LoadSublayout("GSL/Sublayouts/Catalogue/BibliographySidePanel",null,function(n){$("#biblioSide").animate({opacity:.3},200).replaceWith(n.d);$("#biblioSide").css({opacity:.3}).animate({opacity:1},600)})},EmailNotificationAdded:function(){$(".email-me-popup").slideDown(300).delay(2500).slideUp(400)},EmailNotificationLoginNeeded:function(){$(".login-to-use-notification").slideDown(300).delay(2500).slideUp(400)}});emailMeOnceItemAvailableIsProcessing=!1;addToShoppingCartIsProcessing=!1,function(n,t,r){var f=r(n),e=r(t),u=r.coverflow=function(){u.open.apply(this,arguments)};r.fn.coverflow=function(n){var h=r(this),c=!1,it=this.selector||"",f,u=0,t=0,y=parseInt(h.outerWidth()/2),w,l,g=n.reflection,a=n.angle||45,b=n.step||31,v=n.firstStep||85,o=n.perspective||400,k=n.speed||350,nt=r(n.description),e=r(n.list),p=e.parent().outerHeight(),s=function(s,h){if(c==!0)return!1;for(speed=k*Math.max(1,(Math.max(s,t)-Math.min(s,t))/2),old=t,t=s,currentImg=f.filter(":eq("+s+")"),s==0?(n.prev.addClass("disabled"),n.listPrev.addClass("disabled")):(n.prev.removeClass("disabled"),n.listPrev.removeClass("disabled")),s==u-1?(n.next.addClass("disabled"),n.listNext.addClass("disabled")):(n.next.removeClass("disabled"),n.listNext.removeClass("disabled")),_title=currentImg.attr("data-title"),_description=currentImg.attr("data-description"),_href=currentImg.attr("href"),html="",_title&&(html+="<h2>"+_title+"<\/h2>"),_description&&(html+=_description),_href&&(html+="<a class='jumpto' href='"+_href+"'>&nbsp;<\/a>"),nt.html(html),$c=e.find("li:eq("+s+")"),$c.addClass("selected").siblings().removeClass("selected"),ih=$c.outerHeight(),cOf=ih*$c.index(),scrollMT=p/2-ih/2,nm=-1*cOf+scrollMT,$hh=e.outerHeight()-p,nm>0&&(nm=0),nm<-1*$hh&&(nm=-1*$hh),e.animate({marginTop:nm+"px"},k),map={left:y+"px",top:"0px",height:l+"px",opacity:1,perspective:o+"px",zIndex:u*10},h?(c=!0,currentImg.children().transition({rotateY:"0deg"},speed),r.browser.msie?currentImg.css("z-index",u*10).animate(map,speed,function(){c=!1}).addClass("current"):currentImg.css("z-index",u*10).transition(map,speed,function(){c=!1}).addClass("current")):currentImg.css(map).css({"-webkit-perspective":o+"px","-moz-perspective":o+"px","-ms-perspective":o+"px","-o-perspective":o+"px"}).children().css({rotateY:"0deg"}).addClass("current"),index=currentImg.index(),i=index-1;i>=0;i--)tmpImg=f.filter(":eq("+i+")"),dist=Math.abs(index-i),dist==1?(opacity=1,_step=v,persp=o,hMult=.88,nTop=10):(opacity=.5,_step=v+b*(dist-1),persp=o+dist*5,hMult=.88-dist/50,nTop=10+dist*2),dist==2&&(opacity=.75),opacity=1,map={left:y-_step+"px",top:nTop+"px",height:l*hMult+"px",zIndex:u*10-dist*10,opacity:opacity,perspective:persp},h?r.browser.msie?tmpImg.animate(map,speed).removeClass("current"):(tmpImg.children().transition({rotateY:a+"deg"},speed),tmpImg.transition(map,speed).removeClass("current")):tmpImg.css(map).css({"-webkit-perspective":persp,"-moz-perspective":persp,"-o-perspective":persp}).children().css({rotateY:a+"deg"}).removeClass("current");for(i=index+1;i<u;i++)tmpImg=f.filter(":eq("+i+")"),dist=Math.abs(i-index),dist==1?(opacity=1,_step=v,persp=o,hMult=.88,nTop=10):(opacity=.5,_step=v+b*(dist-1),persp=o+dist*5,hMult=.88-dist/50,nTop=10+dist*2),dist==2&&(opacity=.75),opacity=1,map={left:y+_step+"px",top:nTop+"px",height:l*hMult+"px",zIndex:u*10-dist*10,opacity:opacity,perspective:persp},h?r.browser.msie?tmpImg.animate(map,speed).removeClass("current"):(tmpImg.children().transition({rotateY:"-"+a+"deg"},speed),tmpImg.transition(map,speed).removeClass("current")):tmpImg.css(map).css({"-webkit-perspective":persp,"-moz-perspective":persp,"-o-perspective":persp}).children().css({rotateY:"-"+a+"deg"}).removeClass("current")},tt=function(){f=h.children();u=f.length;t=n.startItem=="first"?0:n.startItem=="last"?u-1:typeof n.startItem=="number"?n.startItem:parseInt(u/2);currentImg=f.filter(":eq("+t+")");w=currentImg.outerWidth();l=currentImg.outerHeight();f.css({position:"absolute","margin-left":"-"+parseInt(w/2)+"px"});!r.browser.msie&g==!0&&(h.addClass("reflect"),f.each(function(n){$i=r(this).find("img");$i.attr("id","rimg"+n);_html=$i.parent().html();$after=r("<div class='after'>"+_html+"<\/div>").appendTo($i.parent())}));try{makeUnselectable(h)}catch(e){}r.browser.mozilla&&f.find("img").addClass("no-shadow");f.on("click",function(){return $i=r(this),s($i.index(),!0),!1});n.prev.on("click",function(){return t>0&&s(t-1,!0),!1});n.next.on("click",function(){return t<u-1&&s(t+1,!0),!1});h.mousewheel(function(t,i){return d=i||t.originalEvent.wheelDelta||-1*t.originalEvent.detail,d>0?n.prev.trigger("click"):d<0&&n.next.trigger("click"),!1});f.each(function(n){$a=r(this);_title=$a.attr("data-title");$li=r("<li><table><tr><td>"+_title+"<\/td><\/tr><\/table><\/li>").appendTo(e);$li.on("click",function(){s(n,!0)})});e.mousewheel(function(n,t){return d=t||n.originalEvent.wheelDelta||-1*n.originalEvent.detail,cm=parseInt(e.css("margin-top").split("px").join("")),nm=cm,d>0?nm+=20:d<0&&(nm-=20),nm>0&&(nm=0),$hh=e.outerHeight()-p,nm<-1*$hh&&(nm=-1*$hh),e.css({marginTop:nm+"px"},0),!1});n.listPrev.on("click",function(){return t>0&&s(t-1,!0),!1});n.listNext.on("click",function(){return t<u-1&&s(t+1,!0),!1});s(t,!1)};return n=n||{},n.next=r(n.next)||null,n.prev=r(n.prev)||null,n.listNext=r(n.listNext)||null,n.listPrev=r(n.listPrev)||null,n.scrollPane=e.parent(),typeof n=="number"?s(n,!0):tt(),this};r(t).ready(function(){})}(window,document,jQuery);Coverflow={divs:10,init:function(n,t,i){var u,f,r,e,o,s,h;for(this.cv=n,this.items=[],u=0;u<t.length;u++)for(f=0;f<this.divs;f++)this.items.push(t[u]);this.opts=i;this.opts.width=i.width||600;this.opts.height=i.height||300;this.cv.width=this.opts.width;this.cv.height=this.opts.height;this.ctx=this.cv.getContext("2d");this.idx=0;r=this;this.draw(!0);r=this;this.cv.addEventListener("DOMMouseScroll",function(n){n.detail>0?r.next():r.prev();n.preventDefault()},!1);this.cv.addEventListener("mousewheel",function(n){n.wheelDelta<0?r.next():r.prev();n.preventDefault()},!1);this.cv.onmousemove=function(n){e=n.layerX;o=n.layerY;s=e>=r._center.poly[0][0]&&e<=r._center.poly[3][0];h=o>=r._center.poly[0][1]&&o<=r._center.poly[1][1];this.style.cursor=s&&h?"pointer":"default"};this.cv.onclick=function(){if(s&&h)r.opts.onSelectCenter(r.items[r._center.n])}},_anim:{to:0},prev:function(n){var t=this._anim.to-this.divs*(n||1);this.move(Math.max(0,t),"prev")},next:function(n){var t=this._anim.to+this.divs*(n||1);this.move(Math.min(t,this.items.length-this.divs),"next")},move:function(n,t){var r=t=="prev"?this.idx==0:this.idx>=this.items.length-this.divs,i;if(!r){if(this.lock){this._anim.to=n;return}this.lock=!0;i=this;this._anim={from:this.idx,to:n};i._anim.timer=setInterval(function(){var n=i._anim.to-i._anim.from>0?"next":"prev",r=(i._anim.to-i._anim.from)/6,t;i.idx+=Math[n=="next"?"floor":"ceil"](r);t=n=="prev"?i.idx<=i._anim.to:i.idx>=i._anim.to;t&&(i.idx=i._anim.to,clearInterval(i._anim.timer),i.lock=!1);i.draw()},1e3/30)}},linear:function(n,t,i,r,u){return n*(u-r)/(i-t||1)+(r*i-u*t)/(i-t)},draw:function(n){var f,i,u,h,c,r;this.ctx.clearRect(0,0,this.opts.width,this.opts.height);var t=this,a=112*.7,v=150*.7,y=50,l=function(n,i,r,u){var o,f,e;if(t._map=t._map||{},i in t._map||(t._map[i]={}),!(n in t._map[i])){for(o=t.items[n],f=[],e=0;e<4;e++){var s=[Math.floor(e/2%2)?-1:1,Math.floor((e+1)/2%2)?-1:1,0],h=t.linear(n,i,r,-5,5),c=t.linear(Math.abs(n-u),0,r-u,0,2.5);f.push(p(s,-t.linear(n,i,r,-80,80),-h,.5,-c))}t._map[i][n]={poly:f,type:"img",src:o.src,opacity:t.linear(Math.abs(n-u),0,r-u,1,0),fill:t.random(o.src),depth:f.map(function(n){return n[2]}).reduce(function(n,t){return n+t})/f.length,n:n}}return t._map[i][n]},p=function(n,i,r,u,f){var e,o,s;return i*=Math.PI/180,e=[n[0],n[1],n[2]],e[0]=n[0]*Math.cos(i)-n[2]*Math.sin(i),e[2]=n[0]*Math.sin(i)+n[2]*Math.cos(i),n=e,n[0]+=r,n[1]+=u,n[2]+=f,o=1/Math.atan(y*Math.PI/180),n[2]-=2,s=[o*n[0]/n[2],o*n[1]/n[2]],[Math.floor(s[0]*a)+t.opts.width/2,Math.floor(s[1]*v)+2*t.opts.height/3,n[2]]};if(this.store=[],f=Math.floor(11/2),n)for(i=0;i<this.items.length;i++){var e=-f*this.divs+i,o=f*this.divs+i,s=[];for(r=e;r<=o;r++)(u=Math.floor(r/this.divs),h=this.items[r],h&&!s[u])&&(s[u]=!0,c=l(r,e,o,i))}var e=-f*this.divs+this.idx,o=f*this.divs+this.idx,s=[];for(i=e;i<=o;i++)(u=Math.floor(i/this.divs),h=this.items[i],h&&!s[u])&&(s[u]=!0,c=l(i,e,o,t.idx),i-t.idx==0&&(this._center=c),this.store.push(c));for(this.store.sort(function(n,t){return n.depth>t.depth?1:-1}),r=0;r<t.store.length;r++)t.render(t.store[r])},random:function(n){this._rmap=this._rmap||{};var t=function(){return Math.floor(Math.random()*255)};return this._rmap[n]||(this._rmap[n]="rgb("+t()+", "+t()+", "+t()+")"),this._rmap[n]},render:function(n){var u=this,i,t;if(n.type=="dot")this.ctx.fillStyle="#fff",this.ctx.beginPath(),this.ctx.arc(n.x,n.y,2,0,Math.PI*2,!1),this.ctx.closePath(),this.ctx.fill();else if(n.type=="rect")this.ctx.globalAlpha=n.opacity,this.ctx.fillStyle=n.fill,this.ctx.beginPath(),this.ctx.moveTo(n.poly[0][0],n.poly[0][1]),this.ctx.lineTo(n.poly[1][0],n.poly[1][1]),this.ctx.lineTo(n.poly[2][0],n.poly[2][1]),this.ctx.lineTo(n.poly[0][0],n.poly[0][1]),this.ctx.lineTo(n.poly[3][0],n.poly[3][1]),this.ctx.lineTo(n.poly[2][0],n.poly[2][1]),this.ctx.fill(),this.ctx.stroke(),this.ctx.globalAlpha=1;else if(n.type=="img"){this.ctx.globalAlpha=n.opacity;i=new Image;i.src=n.src;var e=i.width,h=i.height,r=Math.min(e,n.poly[3][0]-n.poly[0][0]),o=e/r,f=n.poly[1][1]-n.poly[0][1],s=n.poly[2][1]-n.poly[3][1];if(f==s){u.ctx.drawImage(i,n.poly[0][0],n.poly[0][1],n.poly[3][0]-n.poly[0][0],f);return}for(t=0;t<r;t++){var c=t*o,l=o,a=h,v=u.linear(t,0,r,n.poly[0][0],n.poly[3][0]),y=u.linear(t,0,r,n.poly[0][1],n.poly[3][1]),p=(n.poly[3][0]-n.poly[0][0])/r,w=u.linear(t,0,r-1,f,s);u.ctx.drawImage(i,c,0,l,a,v,y,p,w)}this.ctx.globalAlpha=1}}},function(n){function o(n){var i,f,t,r;if(n in u.style||(i=["Moz","Webkit","O","ms"],f=n.charAt(0).toUpperCase()+n.substr(1),n in u.style))return n;for(t=0;t<i.length;++t)if(r=i[t]+f,r in u.style)return r}function y(){return u.style[t.transform]="",u.style[t.transform]="rotateY(90deg)",u.style[t.transform]!==""}function e(n){return typeof n=="string"&&this.parse(n),this}function a(n,t,i){t===!0?n.queue(i):t?n.queue(t,i):i()}function p(t){var i=[];return n.each(t,function(t){t=n.camelCase(t);t=n.transit.propertyMap[t]||n.cssProps[t]||t;t=w(t);n.inArray(t,i)===-1&&i.push(t)}),i}function v(t,i,r,u){var o=p(t),f,e;return n.cssEase[r]&&(r=n.cssEase[r]),f=""+h(i)+" "+r,parseInt(u,10)>0&&(f+=" "+h(u)),e=[],n.each(o,function(n,t){e.push(t+" "+f)}),e.join(", ")}function i(i,r){r||(n.cssNumber[i]=!0);n.transit.propertyMap[i]=t.transform;n.cssHooks[i]={get:function(t){var r=n(t).css("transit:transform");return r.get(i)},set:function(t,r){var u=n(t).css("transit:transform");u.setFromString(i,r);n(t).css({"transit:transform":u})}}}function w(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function r(n,t){return typeof n!="string"||n.match(/^[\-0-9\.]+$/)?""+n+t:n}function h(t){var i=t;return n.fx.speeds[i]&&(i=n.fx.speeds[i]),r(i,"ms")}var u,t,c,l,s,f;n.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};u=document.createElement("div");t={};c=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;t.transition=o("transition");t.transitionDelay=o("transitionDelay");t.transform=o("transform");t.transformOrigin=o("transformOrigin");t.transform3d=y();l={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};s=t.transitionEnd=l[t.transition]||null;for(f in t)t.hasOwnProperty(f)&&typeof n.support[f]=="undefined"&&(n.support[f]=t[f]);u=null;n.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};n.cssHooks["transit:transform"]={get:function(t){return n(t).data("transform")||new e},set:function(i,r){var u=r;u instanceof e||(u=new e(u));i.style[t.transform]=t.transform!=="WebkitTransform"||c?u.toString():u.toString(!0);n(i).data("transform",u)}};n.cssHooks.transform={set:n.cssHooks["transit:transform"].set};n.fn.jquery<"1.8"&&(n.cssHooks.transformOrigin={get:function(n){return n.style[t.transformOrigin]},set:function(n,i){n.style[t.transformOrigin]=i}},n.cssHooks.transition={get:function(n){return n.style[t.transition]},set:function(n,i){n.style[t.transition]=i}});i("scale");i("translate");i("rotate");i("rotateX");i("rotateY");i("rotate3d");i("perspective");i("skewX");i("skewY");i("x",!0);i("y",!0);e.prototype={setFromString:function(n,t){var i=typeof t=="string"?t.split(","):t.constructor===Array?t:[t];i.unshift(n);e.prototype.set.apply(this,i)},set:function(n){var t=Array.prototype.slice.apply(arguments,[1]);this.setter[n]?this.setter[n].apply(this,t):this[n]=t.join(",")},get:function(n){return this.getter[n]?this.getter[n].apply(this):this[n]||0},setter:{rotate:function(n){this.rotate=r(n,"deg")},rotateX:function(n){this.rotateX=r(n,"deg")},rotateY:function(n){this.rotateY=r(n,"deg")},scale:function(n,t){t===undefined&&(t=n);this.scale=n+","+t},skewX:function(n){this.skewX=r(n,"deg")},skewY:function(n){this.skewY=r(n,"deg")},perspective:function(n){this.perspective=r(n,"px")},x:function(n){this.set("translate",n,null)},y:function(n){this.set("translate",null,n)},translate:function(n,t){this._translateX===undefined&&(this._translateX=0);this._translateY===undefined&&(this._translateY=0);n!==null&&n!==undefined&&(this._translateX=r(n,"px"));t!==null&&t!==undefined&&(this._translateY=r(t,"px"));this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var n=(this.scale||"1,1").split(",");return n[0]&&(n[0]=parseFloat(n[0])),n[1]&&(n[1]=parseFloat(n[1])),n[0]===n[1]?n[0]:n},rotate3d:function(){for(var n=(this.rotate3d||"0,0,0,0deg").split(","),t=0;t<=3;++t)n[t]&&(n[t]=parseFloat(n[t]));return n[3]&&(n[3]=r(n[3],"deg")),n}},parse:function(n){var t=this;n.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(n,i,r){t.setFromString(i,r)})},toString:function(n){var r=[];for(var i in this)if(this.hasOwnProperty(i)){if(!t.transform3d&&(i==="rotateX"||i==="rotateY"||i==="perspective"||i==="transformOrigin"))continue;i[0]!=="_"&&(n&&i==="scale"?r.push(i+"3d("+this[i]+",1)"):n&&i==="translate"?r.push(i+"3d("+this[i]+",0)"):r.push(i+"("+this[i]+")"))}return r.join(" ")}};n.fn.transition=n.fn.transit=function(i,r,u,f){var e=this,c=0,l=!0,y;typeof r=="function"&&(f=r,r=undefined);typeof u=="function"&&(f=u,u=undefined);typeof i.easing!="undefined"&&(u=i.easing,delete i.easing);typeof i.duration!="undefined"&&(r=i.duration,delete i.duration);typeof i.complete!="undefined"&&(f=i.complete,delete i.complete);typeof i.queue!="undefined"&&(l=i.queue,delete i.queue);typeof i.delay!="undefined"&&(c=i.delay,delete i.delay);typeof r=="undefined"&&(r=n.fx.speeds._default);typeof u=="undefined"&&(u=n.cssEase._default);r=h(r);var p=v(i,r,u,c),w=n.transit.enabled&&t.transition,o=w?parseInt(r,10)+parseInt(c,10):0;if(o===0)return y=function(n){e.css(i);f&&f.apply(e);n&&n()},a(e,l,y),e;var b={},k=function(r){var h=!1,u=function(){h&&e.unbind(s,u);o>0&&e.each(function(){this.style[t.transition]=b[this]||null});typeof f=="function"&&f.apply(e);typeof r=="function"&&r()};o>0&&s&&n.transit.useTransitionEnd?(h=!0,e.bind(s,u)):window.setTimeout(u,o);e.each(function(){o>0&&(this.style[t.transition]=p);n(this).css(i)})},d=function(n){this.offsetWidth;k(n)};return a(e,l,d),this};n.transit.getTransitionValue=v}(jQuery),function(n){function i(t){var i=t||window.event,e=[].slice.call(arguments,1),r=0,f=0,u=0;return t=n.event.fix(i),t.type="mousewheel",t.wheelDelta&&(r=t.wheelDelta/120),t.detail&&(r=-t.detail/3),u=r,i.axis!==undefined&&i.axis===i.HORIZONTAL_AXIS&&(u=0,f=-1*r),i.wheelDeltaY!==undefined&&(u=i.wheelDeltaY/120),i.wheelDeltaX!==undefined&&(f=i.wheelDeltaX/-120),e.unshift(t,r,f,u),n.event.handle.apply(this,e)}var t=["DOMMouseScroll","mousewheel"];n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=t.length;n;)this.addEventListener(t[--n],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var n=t.length;n;)this.removeEventListener(t[--n],i,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}(jQuery);$(document).ready(function(){$(".warning-block:visible").length>0&&$("body").scrollTop($(".warning-block:visible").offset().top);mobileMenuLabel=$("#wrapper-menu #menu").attr("data-menu-opener-title")||"Open menu";mobileMenuLabelClose=$("#wrapper-menu #menu").attr("data-menu-close-title")||"Close";$("#wrapper-menu").prepend('<a href="#" class="menu-opener"><span class="open">'+mobileMenuLabel+'<\/span><span class="close"><i>&times;<\/i> '+mobileMenuLabelClose+"<\/span><\/a>");$("#wrapper-menu .menu-opener").on("click",function(){$("#menu").toggleClass("show");$(this).toggleClass("open")});if($("ul.steps li").length&&$("ul.steps li").each(function(){$(this).html($(this).html().replace("Step",'<span class="step-text">Step<\/span>'))}),$(".login:has(.loggedin)").length<1){$("#header").append('<a type="button" class="button login-opener">Login<\/a>');$("#header .login-opener").on("click",function(){$("#header .login").toggleClass("show")})}else $("#header .login").addClass("hasloggedin");$(".dropdowns .dropdown").each(function(){$currentClass=$(this).attr("class").replace("dropdown ","");$currentSubmenu=[];$ul=$('<ul class="mobile"><\/ul>');$(this).find(".links > ul > li ").each(function(){$currentSubmenu.push($(this));$("<li>"+$(this).html()+"<\/li>").appendTo($ul);$($ul).appendTo("#menu > ul > li."+$currentClass)})});$("#menu > ul > li > a").on("click",function(n){$(".menu-opener:visible").length>0&&n.preventDefault();$(this).parent().hasClass("selected")&&(location.href=$(this).attr("href"));$(this).closest("#menu").hasClass("show")&&($("#menu.show > ul > li").each(function(){$(this).removeClass("selected")}),$(this).parent("li").addClass("selected"))});$("#menu > ul > li > ul.mobile > li > a").on("click",function(n){$(this).parent().hasClass("show-submenu")||(n.preventDefault(),$("#menu > ul > li > ul.mobile > li").each(function(){$(this).removeClass("show-submenu")}),$(this).parent().addClass("show-submenu"))});$(".inside-left").length>0&&($(".inside-left .services-menu").clone().addClass("mobile").addClass("appended").appendTo("#menu > ul > li.selected"),$("#menu > ul > li.selected > .appended > li").each(function(){lbl=$(this).text().trim();console.log(lbl);$(this).parent().parent().find("ul:first li:contains("+lbl+")").length&&$(this).remove()}),$("#menu > ul > li.selected > .appended > li").length<1&&$("#menu > ul > li.selected > .appended").remove());$(".box:has(#submitEventSearch)").length&&($(".box:has(#submitEventSearch)").closest(".inside-right").show(),ir=$(".box:has(#submitEventSearch)").closest(".inside-right"),$(".box:has(#submitEventSearch)").closest(".inside-right").insertBefore(ir.prev()),ir.find(".highlighted-content:first").prev().addClass("desktop"),ir.find(".highlighted-content").addClass("desktop"));$(".membership #mainForm .inside-right").clone().addClass("mobile").prependTo(".my-preferences");$("#content_0_right_0_btnRegister").addClass("desktop").clone().addClass("mobile").prependTo(".event-data:first");$("#content_0_right_0_btnRegister").addClass("desktop").clone().addClass("mobile").appendTo(".event-details:first");$("#content_0_right_0_pRegistrationRates").addClass("desktop").clone().addClass("mobile").appendTo(".event-details:first");$("#content_0_right_0_pDownloads").addClass("desktop").clone().addClass("mobile").appendTo(".event-details:first");$(".basket-table tr:first").addClass("desktop")});!function(){"use strict";function t(){function i(){function u(n){function i(n){return n*f[1==(t=1-t)?"width":"height"]}var t=0;return n.split(",").map(Number).map(i).map(Math.floor).join(",")}for(var f={width:n.width/t.width,height:n.height/t.height},i=0;h>i;i++)r[i].coords=u(c[i])}function e(){var r=null,u=null;t.onload=function(){r=n.width;u=n.height;(r!==t.width||u!==t.height)&&i()};n.onload=function(){null!==r&&n.width!==r&&i()};t.src=n.src}function o(){function n(){clearTimeout(f);f=setTimeout(i,250)}window.addEventListener?window.addEventListener("resize",n,!1):window.attachEvent&&window.attachEvent("onresize",n)}function s(n){return n.coords.replace(/ *, */g,",").replace(/ +/g,",")}var u=this,r=u.getElementsByTagName("area"),h=r.length,c=Array.prototype.map.call(r,s),n=document.querySelector('img[usemap="#'+u.name+'"]'),t=new Image,f=null;e();o()}function n(){function n(n){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("MAP"!==n.tagName.toUpperCase())throw new TypeError("Expected <MAP> tag, found <"+n.tagName+">.");t.call(n)}return function(t){switch(typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"map"),n);break;case"object":n(t);break;default:throw new TypeError("Unexpected data type ("+typeof t+").");}}}"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():window.imageMapResize=n();"jQuery"in window&&(jQuery.fn.imageMapResize=function(){return this.filter("map").each(t).end()})}()