/* 2012.01.23 @ 10:25PM */
$(document).on("onclosebody",function(){$(".megaMenu").megaMenu({showDropDownArrows:false,navLinkPadding:0});$(".articleColumns > ul").uniformHeights();$(".articleSectionColumns > ul").uniformHeights();$("#relatedSitesHeadlines .rshCols").uniformHeights()});$(document).ready(function(f){(function(k,j,l){k.pageUrl=window.location.href;k.bodyId=document.body.id.toString();k.articleTitle=j("#headline h1").text();k.userAgent=window.navigator.userAgent;var i={key:"ABQIAAAAXGsimsqdIvN_40BAbQpCrRTZbNeckA_S8ht_5qY_ThyyjL6jNBTEcOBoc78QME51AlA7BAMsu2ZVcA"};var g={script:"http://www.google.com/recaptcha/api/js/recaptcha_ajax.js",key:"6LcNOrsSAAAAAPSs0wMagHFG629ujt0JG24BJxfK"};var h={requestUrl:"http://api.bit.ly/v3/shorten",login:"uxtechtarget",key:"R_3711c9f9013670f25d70b047c8deb6f2"};k.getUrlVars=function(){var p=[],o="",m=window.location.search.substring(1).split("&");for(var n=0;n<m.length;n++){o=m[n].split("=");p.push(o[0]);p[o[0]]=o[1]}return p};k.displayNotice=function(p){var o=j("<div/>",{id:"notification"});var m=j("<div/>",{id:"notificationText",html:p});var n=j("<span/>",{id:"notificationClose",html:'<a title="Dismiss this notification">Ã—</a>'}).on("click",function(q){o.fadeOut()});j("body").prepend(o.append(m,n))};k.getRecaptcha=function(n,m){j.ajax({url:g.script,dataType:"script",success:function(){if(typeof Recaptcha!=="undefined"){Recaptcha.create(g.key,n,{theme:"white",tabindex:m})}}})};k.getClassName=function(o,n){var m="";j(o.attr("class").split(" ")).each(function(){if(this.indexOf(n)>-1){m=this}});return m};k.getReferrerKeywords=function(){var m=j.cookie("referrer");if(m!==null){m=decodeURIComponent(m);var q=decodeURIComponent(document.referrer);var p=/referrer(.*);key/g;var r=/keyword(.*);asrc/g;var o=p.exec(m)[1]||"";var n;if(q===o){n=decodeURIComponent(r.exec(m)[1]||"");n=n.replace(/\+/g," ");return n}}else{return null}};k.getShortUrl=function(n,o){if(typeof n==="undefined"){n=k.pageUrl}var m=j("body").data(n);if(typeof m==="undefined"){j.ajax({url:h.requestUrl,contentType:"application/x-www-form-urlencoded",dataType:"jsonp",data:({login:h.login,apiKey:h.key,longUrl:n}),error:function(){alert("error in mo.getBitlyUrl function")},success:function(p){if(p.status_txt==="OK"){j("body").data(n,p.data.url)}else{j("body").data(n,n)}o.apply(this)}})}else{o.apply(this)}};k.changeTextSize=function(q){var r=j("#articleBody"),n=r.data("originalTextSize"),m=parseFloat(n),p=n.slice(-2),o;if(typeof n==="undefined"){n="16px"}j(".activeSize").removeClass("activeSize");switch(q){case 0:j("#contentTools-textSizeSmall").addClass("activeSize");o=m;k.setUiCookie({textSize:0});break;case 1:j("#contentTools-textSizeMedium").addClass("activeSize");o=m*1.25;k.setUiCookie({textSize:1});break;case 2:j("#contentTools-textSizeLarge").addClass("activeSize");o=m*1.5;k.setUiCookie({textSize:2});break}r.css("font-size",o+p)};k.setUiCookie=function(p){var n={name:"tt_ui",domain:"techtarget.com",expires:365};var o={textSize:0};j.extend(o,p);var m=JSON.stringify(o,null,0);j.cookie(n.name,m,{expires:n.expires,path:"/",domain:n.domain,secure:false})};k.log=function(m){if(!window.console.log){alert(m)}else{console.log(m)}};k.test={pageInfo:function(m){var o={URL:window.location.href,Site:window.location.host,"Page Title":document.title,"User Agent":window.navigator.userAgent};if(m){console.group("Page information:");for(var n in o){console.log(n+" -> "+o[n])}console.groupEnd()}else{return JSON.stringify(o)}},pageLoad:function(o){if(typeof window.performance!=="undefined"){var q=performance.timing;var s=performance.navigation;var m=function(n){var t=["Clicked link or entered url in address bar","Page reload","Backward or forward in browser history"];return t[n]};var r={Timestamp:new Date(),"Navigation Type":m(s.type),"Redirect Count":s.redirectCount,"Redirecting Time":q.redirectEnd-q.redirectStart,"Network Latency":q.responseEnd-q.fetchStart,"Domain Lookup (DNS)":q.domainLookupEnd-q.domainLookupStart,"Establishing Connection (TCP)":q.connectEnd-q.connectStart,Requesting:q.responseEnd-q.requestStart,"DOM Processing":q.domComplete-q.domLoading,"User-Perceived Loading Time":q.loadEventEnd-q.navigationStart};if(o){console.group("Page load performance metrics:");for(var p in r){console.log(p+" -> "+r[p])}console.groupEnd()}else{return JSON.stringify(r)}}else{return"undefined"}},domElements:function(){k.log("This page has ~"+document.getElementsByTagName("*").length+" DOM nodes")}}}(window.mo=window.mo||{},jQuery));switch(mo.bodyId){case"sdef":f("#relatedContent").addClass("open");break;case"topicLeaf":f(".leadStory").prependTo("#articleBody");break;case"topics":f(".parentTopicHighlights").prependTo(".parentTopicSection").show();break;case"news":var d=f(".listTypeArchive");if(d.length>1){d.eq(0).hide().children("li").prependTo("#articleBody .listTypeArchive")}break}(function(){var k=f("#guideToc");if(k.length){var g="";var j;var h;var i=f(".articleSection").find("h2");i.each(function(l){j=f(this);h=j.closest(".articleSection");g+='<li><a href="#'+h.attr("id")+'">'+j.text()+"</a></li>";h.addClass("visibleSection")});if(g.length){k.show().children(".listTypeToc").empty().html(g)}}}());var a=f('<span id="headerTechtargetLogo" />');f("#headerLogoCompress").append(a);a.colorbox({iframe:true,opacity:"0.75",height:"830px",initialHeight:"830px",width:"830px",initialWidth:"830px",href:"http://search400.techtarget.com/?vgnextfmt=portfolio"});f("#relatedSites").append('<span id="footerTechtargetLogo" />');if(f("#disqus_thread").length){f("#adPsl, .pageNav").appendTo("#article")}f(".carousel").carousel({navigation:false,pagination:true,autoPlay:true,autoPlaySpeed:10000});f(".filmstrip").filmstrip();f(".sliderStory").glider({controls:true,storySummary:true});f(".sliderPhoto").glider({controls:true,itemsToShow:7,showCurrent:true});f(".sliderVideo").glider({controls:true,playIcon:true});f(".leadStoryTypeText").leadStory({type:"text",autoPlay:true,autoPlaySpeed:10000});f(".leadStoryTypeInteractive").leadStory({type:"interactive",autoPlay:true,autoPlaySpeed:10000,stageSpeed:500,mouseEvent:"click",tracer:true});f(".figResizeable").graphicResizer({showToggle:true,resizeSpeed:600,mouseEvent:"click"});f("#showMoreRelatedContent").showMore({hiddenContent:"#relatedContentHide",callback:function(){f("#relatedContentHide").find(".articleColumns > ul").uniformHeights()},iconHtml:"<span></span>"});f("#articleHeaderHiddenPanelButton").showMore({hiddenContent:"#articleHeaderHiddenPanel"});f("#showMoreBlogroll").showMore({hiddenContent:"#blogrollHidden",iconHtml:"<span></span>"});f("#relatedSitesNav").tabList({callback:function(){f("#relatedSitesHeadlines").find(".rshCols").uniformHeights()},tabContent:f("#relatedSitesHeadlines").children("li")});f("#rssFilter").tabList({tabContent:f("#rssList").children("div")});f("#contributorTabsNav").tabList({tabContent:f("#contributorTabsContent").children("li")});f(".tooltipText").toolTips();if(mo.bodyId==="topicLeaf"){f("#topicsFilter").tabList({tabContent:f("#topicsList").children("div")})}if(mo.bodyId==="topicListing"){f("#topicsFilterTab-"+mo.getUrlVars().bucketCode).addClass("selected").append("<span></span>")}var b=mo.getReferrerKeywords();if(b===null){b="SEARCH"}f("#headerNavigationSearchTextbox, #footerNavigationSearchTextbox").textboxValueizer(b);(function(){var i=f.cookie("tt_ui");if(i===null){mo.setUiCookie()}else{if(mo.bodyId==="home"){return}var g=f("#articleBody");g.data({originalTextSize:g.css("font-size")});var h=f.parseJSON(i).textSize;switch(h){case 0:break;case 1:mo.changeTextSize(1);break;case 2:mo.changeTextSize(2);break}}}());(function(){var k=f(".listTypeCollapsibleContent"),j=f(".listTypeCollapsibleClose"),h=f(".listTypeCollapsible > li"),g=f(".listTypeCollapsibleOpenAll"),i=f("h5 a",h);k.each(function(l){if(f(this).children().size()>1){f(this).parent("li").addClass("hasChildTopics");g.show()}});i.bind("click",function(l){if(f(this).parent("h5").parent("li").hasClass("hasChildTopics")){l.preventDefault()}});j.bind("click",function(l){l.stopPropagation();l.preventDefault();f(this).parent(".listTypeCollapsibleContent").slideUp({duration:250,easing:"easeInCubic"}).parent("li").removeClass("open")});h.bind("click",function(m){var l=f(m.currentTarget);if(!l.hasClass("open")&&l.hasClass("hasChildTopics")){f(this).children(".listTypeCollapsibleContent").slideDown({duration:250,easing:"easeInCubic"}).parent("li").addClass("open")}});g.bind("click",function(m){m.preventDefault();var l=f(this).attr("title");if(f(this).hasClass("allExpanded")){f(this).text(f(this).attr("title")).removeClass("allExpanded").next(".listTypeCollapsible").children("li").children(".listTypeCollapsibleContent").slideUp({duration:250,easing:"easeInCubic"}).parent("li").removeClass("open")}else{f(this).attr("title",f(this).text()).text("Close all").addClass("allExpanded").next(".listTypeCollapsible").children("li.hasChildTopics").children(".listTypeCollapsibleContent").stop().slideDown({duration:250,easing:"easeInCubic"}).parent("li").addClass("open")}})}());f("a").filter(function(){return(/\b(builder|cnet|zdnet|cnetchannel|techrepublic|itpapers|news\.com)\.\w{2,4}\b/i).test(this.href)}).addClass("openInNewWindow");f(".openInNewWindow").click(function(g){g.preventDefault();window.open(this.href)});f('a[rel="pop-up"]').click(function(h){h.preventDefault();var g="height=350,width=350,scrollTo,resizable=1,scrollbars=1,location=0,left=300,top=150";window.open(this.href,"Popup",g)});f("img.track").css("display","none");f(".threecol .col2:not(:has(div,p))").parents(".colmask").removeClass("threecol").addClass("twocol");f(".ciCLT .ciText").each(function(){var g=/^\s+|\s+$/g;f('table[width="200"]').each(function(){var i=f("tr.colorback td.body b",this);if(i.length>0){i=i.text().replace(g,"");var h=f("tr.colorSuperLite td.body, tr.colorsuperlite td.body",this).eq(0);f(this).parents("table").eq(0).each(function(){var j=f(this).attr("align");j=j||"left";j="align"+j.charAt(0).toUpperCase()+j.substring(1);f(this).replaceWith('<div class="sidebar '+j+'"><h5>'+i+"</h5><div>"+h.html().replace(g,"")+"</div></div>")})}});f('table[width="147"]').each(function(){if(String(f(this).html()).indexOf("callout_begin_quote.gif")!==-1){var h=f(".big > b",this).text().replace(g,"");var i=f(".small",this).text().replace(g,"");var j=f(this).attr("align");j=j||"left";j="align"+j.charAt(0).toUpperCase()+j.substring(1);f(this).replaceWith('<blockquote class="pullquote '+j+'"><div><div><div><span class="pullquoteContent">'+h+"</span><p>"+i+"</p></div></div></div></blockquote>")}})});(function(){var g=f("#commentForm");if(g.length){f(".commentBoxOpen").on("click",function(h){h.preventDefault()});f(".commentBoxOpen").colorbox({onOpen:function(){mo.getRecaptcha("commentRecaptcha",3);g.show()},onCleanup:function(){f(g,"#cboxClose").hide()},inline:true,href:"#commentForm",transition:"none",opacity:"0.75",width:function(){if(f("#commentPoll").length){return"700px"}else{return"500px"}}});f("#commentFormSubmit").on("click","a",function(h){h.preventDefault();f("#commentForm").submit()});f(".seePollResults").on("click",function(h){h.preventDefault();f.fn.colorbox({onOpen:function(){f("#pollResults").show()},onCleanup:function(){f("#pollResults").hide()},inline:true,href:"#pollResults",transition:"none",opacity:"0.75",width:"600px"})})}}());if(mo.userAgent.indexOf("MSIE 7.0")>-1){if(mo.userAgent.indexOf("Trident/6.0")>-1||mo.userAgent.indexOf("Trident/5.0")>-1||mo.userAgent.indexOf("Trident/4.0")>-1){mo.displayNotice('We noticed that you are using Internet Explorer in Compatibility View (<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie-9/features/compatibility-view" target="_new">?</a>). <strong>For the best experience, Compatibility View should be turned off.</strong>')}}if(f.browser.msie&&f.browser.version<9){f(".listTypeCollapsible").each(function(){f(this).find("> li:even").addClass("oddRow")})}if(f.browser.msie&&f.browser.version<8){f("#breadcrumbs ul li").not(":first-child").prepend("&gt;&nbsp;&nbsp;");f(".searchResultsSearch:first-child").css("margin","0 0 15px");f("#contentCompress").append('<div class="clear"></div>');var c=f("#headerNavigationSearchTextbox, #footerNavigationSearchTextbox");var e=f(c).css("background-image");c.focus(function(g){f(this).css("background-image","none")}).blur(function(g){f(this).css("background-image",e)});f(".listTypeTagCloud li").each(function(){if(f(this).is(":not(:last-child)")){f(this).css("margin-left","0").append(",&nbsp;&nbsp;")}})}});$(window).on("load",function(){(function(){var p=$("#contentTools");if(p.length){$("#contentTools-commentCount").children("span").text($("#comments").find("li").size());$("#contentTools-print a").on("click",function(w){w.preventDefault();window.open(this.href)});var n=$(".textSizer");n.on("click",function(y){y.preventDefault();var w=$(this).parent("li");var x=w.attr("id");if(w.hasClass("activeSize")){return}switch(x){case"contentTools-textSizeSmall":mo.changeTextSize(0);break;case"contentTools-textSizeMedium":mo.changeTextSize(1);break;case"contentTools-textSizeLarge":mo.changeTextSize(2);break}});$("#contentTools-email").on("click",function(y){y.preventDefault();var w="http://api.addthis.com/oexchange/0.8/forward/email/offer?";var x={pubid:"uxtechtarget",url:window.location.href,title:encodeURIComponent(document.title),email_template:"TechTargetSearchSites",ct:1};$.colorbox({iframe:true,opacity:"0.75",height:"775px",initialHeight:"775px",width:"550px",initialWidth:"550px",href:w+$.param(x)})});var b=$("#socialMedia-addThis");if(b.length){var r=b.find("addthis_button");var g="http://s7.addthis.com/js/250/addthis_widget.js";var q={};var v={pubid:"uxtechtarget",async:true,domready:true,data_track_clickback:true,data_ga_tracker:"UA-18475716-1"};var l=$.ajax({url:g,dataType:"script"}).done(function(){if(typeof addthis!=="undefined"){addthis.button(r,v,q);addthis.init()}})}var d=$("#socialMedia-plusoneButton");if(d.length){var h=document.getElementById("socialMedia-plusoneButton").childNodes[0];var u="https://apis.google.com/js/plusone.js";var s={size:"medium",annotation:"bubble",expandTo:"top"};var l=$.ajax({url:u,dataType:"script"}).done(function(){if(typeof gapi!=="undefined"){gapi.plusone.render(h,s)}})}var i=$("#socialMedia-tweetButton");if(i.length){var k="http://platform.twitter.com/widgets.js";var o=$.ajax({url:k,dataType:"script"})}var t=$("#socialMedia-facebookLike");if(t.length){var m={href:encodeURIComponent(window.location.href),layout:"button_count",show_faces:false,width:90,action:"like",font:"arial",colorscheme:"light",ref:""};var c=$("<iframe/>",{src:"http://www.facebook.com/plugins/like.php?"+$.param(m),scrolling:"no",frameborder:0,allowTransparency:true});t.append(c)}var j=$("#socialMedia-linkedInButton");if(j.length){var f=$("<script/>",{type:"IN/Share","data-url":window.location.href,"data-counter":"right"});var e="http://platform.linkedin.com/in.js";var a=$.ajax({url:e,dataType:"script"});j.append(f)}$("#socialMedia-linkedin a, #socialMedia-facebook a, #socialMedia-twitter a, #socialMedia-google a").on("click",function(x){x.preventDefault();var w=$(this).parent().attr("id");mo.getShortUrl(mo.pageUrl,function(){var D=encodeURIComponent($("body").data(mo.pageUrl));var C=encodeURIComponent(mo.articleTitle);var B="http://www.linkedin.com/shareArticle?mini=true&url="+D+"&title="+C;var z="http://www.facebook.com/share.php?u="+D+"&t="+C;var A="http://twitter.com/home?status=Currently reading "+D;var y="https://plus.google.com/share?url="+D;switch(w){case"socialMedia-linkedin":window.open(B);break;case"socialMedia-facebook":window.open(z);break;case"socialMedia-twitter":window.open(A);break;case"socialMedia-google":window.open(y);break}})})}}())});(function(a){a.fn.formHinter=function(){return this.each(function(){var c=a(this).children("li").children('input[type="text"]',"textarea");var f;var d;var e;var b;c.each(function(g){f=a(this);d=f.prev("label").text();f.attr("value",d).attr("title",d);f.focus(function(){e=a.trim(a(this).attr("value"));if(e===a(this).attr("title")){a(this).attr("value","")}});f.blur(function(){b=a.trim(a(this).attr("value"));if(b===""){a(this).attr("value",a(this).attr("title"))}})})})}})(jQuery);(function(a){a.fn.graphicResizer=function(b){var d={showToggle:true,resizeSpeed:500,mouseEvent:"click",callback:function(){}};var c=a.extend(d,b);return this.each(function(){var h=c;var i=a(this);var g=i.find(".toggleSize");var e=a('<span class="embiggen"><span class="icon"></span></span>');var f;if(h.showToggle){g.prepend(e)}g.on(h.mouseEvent,function(j){j.preventDefault();f=a(this);if(f.data("state")==="expanded"){i.removeClass("figureExpanded").animate({width:f.data("origWidth")+"px"},{duration:h.resizeSpeed,easing:"easeInCubic"},function(){b.callback.call(this)});e.toggleClass("embiggen smallify");f.data("state","closed")}else{i.addClass("figureExpanded").animate({width:"100%"},{duration:h.resizeSpeed,easing:"easeOutCubic"},function(){b.callback.call(this)});e.toggleClass("embiggen smallify");f.data("state","expanded");f.data("origWidth",f.width())}})})}})(jQuery);(function(a){a.fn.leadStory=function(b){var d={type:"static",mouseEvent:"mouseenter",tracer:false,stageSpeed:300,autoPlay:true,autoPlaySpeed:3000};var c=a.extend(d,b);return this.each(function(){var g=c;var l=a(this);var u=a(".leadStoryStage",l).empty();var n=a(".listTypeLeadStory",l);var e=a("li",n);var t=e.eq(0);var q=e.length;var i;var h;var m=l.attr("data-autoplay");var p=0;t.addClass("active");function k(){i=setTimeout(function(){j()},g.autoPlaySpeed)}function j(){var o;if(p<q-1){p++;o=a(".active",l).next("li")}else{p=0;o=a("li:first-child",l)}s(o);k()}function s(o){u.children().stop().animate({opacity:"0"},g.stageSpeed,function(){u.empty();a(".leadStoryInfo",o).clone().appendTo(u);u.children().animate({opacity:"1"},g.stageSpeed)});e.filter(".active").removeClass("active");a(o).addClass("active");if(g.tracer){f.getToActive()}}function r(o,v){if(q===1){return}if(g.mouseEvent==="click"){v.preventDefault()}if(h){clearTimeout(i);k()}p=e.index(o);s(o)}if(q===0){l.css("display","none");return false}if(m){if(m>0){g.autoPlay=true;g.autoPlaySpeed=m}else{g.autoPlay=false;g.autoPlaySpeed=0}}if(g.type==="static"){return}if(g.type==="text"){u.height(l.height());t.children(".leadStoryInfo").clone().appendTo(u);if(g.autoPlay){if(q>1){h=true;k()}}e.on(g.mouseEvent,function(o){r(this,o)})}if(g.type==="interactive"){t.children(".leadStoryInfo").clone().appendTo(u);if(g.autoPlay){if(q>1){h=true;k()}}e.on(g.mouseEvent,function(o){r(this,o)})}if(g.tracer){var f=function(){var w=a('<span class="tracer" />');var x=t.outerWidth();var o;var v;l.append(w);e.on("mouseenter",function(A){z(a(this))});n.on("mouseleave",function(A){z(e.filter(".active"))});var z=function(A){o=A.position();v=(o.left+((x/2)-4)).toString();w.stop().animate({left:v},{duration:200,easing:"easeInCubic"})};var y=function(){z(e.filter(".active"))};return{getToActive:y}}()}})}})(jQuery);(function(a){a.fn.megaMenu=function(b){var c={showDropDowns:true,showDropDownArrows:true,dropDownDelay:300,navLinkPadding:10};var e=a.extend(c,b);var d={container:this,navItems:a(".mmNavItem",this),navLinks:a(".mmNavLink",this),navLinkSpace:0,navLinkWidth:0,navLinkWidthTotal:0,navOffset:a("#headerNavigationCompress").offset(),navWidth:a("#headerNavigationCompress").outerWidth(true),dropDown:a(".mmContentCols",this),dropDownWidth:0,dropDownColWidth:0};d.navLinks.each(function(){if(a(this).parent("li").hasClass("mmNoDropdown")){d.navLinkSpace=Math.round(e.navLinkPadding*0.33)}else{if(a(this).parent("li").hasClass("mmNavItemVendor")){a(this).next(".mmContent").addClass("mmDropDownCentered")}else{d.navLinkSpace=e.navLinkPadding;if(e.showDropDownArrows){a(this).parent("li").append('<span class="mmDropDownArrow" />')}}}d.navLinkWidth=(a(this).outerWidth(true)+d.navLinkSpace);d.navLinkWidthTotal=d.navLinkWidthTotal+d.navLinkWidth;a(this).parent("li").width(d.navLinkWidth)});d.navLinks.focus(function(){a(this).parent("li").addClass("mmNavItemFocus")}).blur(function(){a(this).parent("li").removeClass("mmNavItemFocus")});if(e.showDropDowns){d.navItems.hoverIntent({over:function(){a("#headerNavigation .mmShow , #footerNavigation .mmShow").removeClass("mmShow");a(this).addClass("mmShow");a(".makeCols").uniformHeights()},timeout:e.dropDownDelay,out:function(){a(this).removeClass("mmShow")}});d.dropDown.each(function(){d.dropDownWidth=0;a(this).children("li").each(function(l){d.dropDownColWidth=parseInt(a(this).width(),10);if(!isNaN(d.dropDownColWidth)){d.dropDownWidth+=(d.dropDownColWidth+24)}});var i=a(this).parent("div");i.css("width",(d.dropDownWidth>0)?d.dropDownWidth+"px":"auto");if(i.hasClass("mmDropDownCentered")){var k=(d.navWidth-d.dropDownWidth)/2;var j=d.navOffset.left+k;i.offset({left:j})}var h=a(this).children(".mmColSubcol");if(h.length){var g=h.children("ul").children("li");var f;if(g.length===2){h.css("width","375px");f=a(this).width()-185;a(this).parent("div").width(f+"px")}else{if(g.length===1){h.css("width","180px");f=a(this).width()-375;a(this).parent("div").width(f+"px")}else{return}}}})}}})(jQuery);(function(a){a.fn.showMore=function(b){var d={toggleClass:"clickToClose",showSpeed:400,hideSpeed:400,mouseEvent:"click",hiddenContent:"",iconHtml:"",callback:function(){}};var c=a.extend(d,b);return this.each(function(){var k=c;var g=a(this).find("a");var e=g.attr("data-closeText");var h;var i=a(k.hiddenContent);var f=a.trim(i.text());function j(){h=g.data("openText");if(g.hasClass(k.toggleClass)){g.removeClass(k.toggleClass).html(h);i.slideUp({duration:k.hideSpeed,easing:"easeOutQuart"})}else{if(!h){g.data("openText",g.html())}if(k.iconHtml){e=k.iconHtml+e}g.addClass(k.toggleClass).html(e);i.slideDown({duration:k.showSpeed,easing:"easeOutSine"})}}if(f!==""){if(i.hasClass("open")||i.parent().hasClass("open")){return}if(g.hasClass("hide")){return}g.css("display","inline-block");g.css("width",g.width()+1);if(!e){e="Close"}g.on(k.mouseEvent,function(l){l.preventDefault();j();b.callback.call(this)})}})}})(jQuery);(function(a){a.fn.tabList=function(b){var c={tabContent:"",icon:true,callback:function(){},mouseEvent:"click"};var d=a.extend(c,b);return this.each(function(){var e=a(this).children("li");var i=e.children("a");var f=d.tabContent;function g(j){e.filter(".selected").removeClass("selected");a(j).parent("li").addClass("selected")}function h(j){if(j==="#all"){f.show()}else{f.hide().filter(j).fadeIn("fast")}}i.on(d.mouseEvent,function(j){j.preventDefault();g(j.target);h(String(this.hash));d.callback.call(this)});if(d.icon){i.append("<span></span>")}if(e.hasClass("selected")){h(e.filter(".selected").children("a").attr("href"))}else{e.first().addClass("selected")}})}})(jQuery);(function(a){a.fn.textboxValueizer=function(b){return this.each(function(){var c=a(this);if(b&&b.length){c.attr("value",b);c.focus(function(){var d=a.trim(c.attr("value"));if(d===b){c.attr("value","")}});c.blur(function(){var d=a.trim(c.attr("value"));if(d===""){c.attr("value",b)}})}})}})(jQuery);(function(a){a.fn.toolTips=function(){var c=a('<div id="tooltip"></div>').hide().prependTo("body");var f;var b;var e;var d={delay:500,title:"",hasTitle:true,element:null,position:{top:0,left:0}};var g;this.on({click:function(h){h.preventDefault()},mouseenter:function(h){g=a(this).offset();d.position.top=g.top-3;if(c.outerWidth()>h.pageX){d.position.left=g.left+16}else{d.position.left=g.left-(c.outerWidth()+5)}d.element=this;f=a(this).attr("data-tooltipId");if(a(this).attr("title")!==""||undefined){d.hasTitle=true;d.title=this.title;if(d.title==="<!-- No Summary Found -->"){d.title="Click to read more"}this.title=""}else{if(f!==undefined){d.hasTitle=false;d.title=a("#"+f).html()}else{d.hasTitle=false;return}}b=window.setTimeout(function(){c.css({top:d.position.top,left:d.position.left}).html(d.title).fadeIn("fast",function(){window.clearTimeout(e);e=window.setTimeout(function(){a(document).trigger("ontooltiphover",[d.element])},1000)})},d.delay)},mouseleave:function(h){c.fadeOut("fast");window.clearTimeout(b);window.clearTimeout(e);if(d.hasTitle===true){this.title=d.title}}},this)}})(jQuery);(function(a){a.fn.uniformHeights=function(){return this.each(function(){var b=a(this);var c;var d=0;b.children().each(function(e){c=a(this);if(c.height()>d){d=c.height()}});b.children().css({"min-height":d})})}})(jQuery);(function(a){a.fn.carousel=function(b){var c={navigation:false,pagination:false,animateHeight:true,autoPlay:true,autoPlaySpeed:3000};var b=a.extend(c,b);return this.each(function(){var e=b;var n=a(this);var f=n.children(".carouselWindow").children(".listTypeCarousel");var l=f.find("> li");var g=l.length;var p=l.outerWidth();var m;var d=0;function j(){m=setTimeout(function(){i()},e.autoPlaySpeed)}function i(){k.removeClass("current");k.eq(d).addClass("current");l.hide();l.eq(d).fadeIn();if(d+1<g){d=d+1}else{d=0}j()}if(g<2){e.navigation=false;e.pagination=false;e.autoPlay=false}if(e.navigation){}if(e.pagination){var k="";var h;l.each(function(o){k+='<a href="#">'+o+"</a>"});k=a(k);k.eq(0).addClass("current");k.on("click",function(o){o.preventDefault();h=k.index(this);k.removeClass("current");l.hide();l.eq(h).fadeIn();d=h;a(this).addClass("current")});k.insertAfter(f).wrapAll('<div class="carouselPagination" />');if(e.autoPlay){i()}}})}})(jQuery);(function(a){a.fn.filmstrip=function(b){var c={autoPlay:false,speed:800,itemClick:function(){}};var b=a.extend(c,b);return this.each(function(){var r=b;var d=a(this);var l=d.width();var h=d.children(".filmstripWindow").children(".listTypeFilmstrip");var q=h.find("> li");var i=q.outerWidth();var u=q.size();var f=i*u;var v=q[0];var m=q[u-1];var g=false;var p=Math.round(l/i);var s=p*i;var x=Math.ceil(u/p);var k=1;var e=(u<=p)?false:true;h.width(f);q.on("click",function(o){b.itemClick.call(this)});function t(){if(k===1){n.removeClass("disabled");j.addClass("disabled")}else{if(k===x){j.removeClass("disabled");n.addClass("disabled")}else{j.removeClass("disabled");n.removeClass("disabled")}}}function y(o){if(!g){if(o==="right"){g=true;k++;h.stop().animate({left:"-="+s},{duration:r.speed,easing:"easeOutExpo",complete:function(){g=false;t()}})}if(o==="left"){g=true;k--;h.stop().animate({left:"+="+s},{duration:r.speed,easing:"easeOutExpo",complete:function(){g=false;t()}})}}}if(e){var j=a("<a>",{"class":"filmstripPrevious disabled",href:"#",title:"Previous",text:"Previous"});var n=a("<a>",{"class":"filmstripNext",href:"#",title:"Next",text:"Next"});var w=a("<div/>",{"class":"filmstripNavigation"}).append(j,n).appendTo(d);w.delegate("a","click",function(o){o.preventDefault();if(a(this).hasClass("disabled")){return}else{if(a(this).hasClass("filmstripPrevious")){y("left")}else{if(a(this).hasClass("filmstripNext")){y("right")}}}})}})}})(jQuery);(function(a){a.fn.glider=function(b){var l={itemsToShow:4,controls:false,storySummary:false,showCurrent:false,playIcon:false};var s=a.extend(l,b);var p=this.children("ul");var r=p.children("li");var c=r.outerWidth(true);var v=r.length;var n=c*v;var h=15;var g={left:0,right:-((c*v)-p.outerWidth())};p.width(n);function q(){if(p.position().left<g.left){p.css({left:p.position().left+h})}}function j(){if(p.position().left>g.right){p.css({left:p.position().left-h})}}if(r.length<=s.itemsToShow){s.controls=false}if(s.playIcon){r.find(".sliderThumbnailImage").append("<span />")}if(s.controls){var e=a('<div class="sliderConrols"></div>');var x=a('<a href="#" class="sliderPrevious"></a>');var m=a('<a href="#" class="sliderNext"></a>');var w=a('<a href="#" class="sliderHandle"></a>');var i=30;var u;this.after(e.append(x,m));x.on({click:function(o){o.preventDefault()},mousedown:function(o){u=window.setInterval(q,i)},mouseup:function(o){window.clearInterval(u)}});m.on({click:function(o){o.preventDefault()},mousedown:function(o){u=window.setInterval(j,i)},mouseup:function(o){window.clearInterval(u)}})}if(s.storySummary){var k;var d=r.children("a").children(".sliderThumbnailText").css("top");var t="0";var f=400;r.on("mouseover mouseout",function(o){k=a(this).children("a").children(".sliderThumbnailText");if(o.type==="mouseover"){k.stop().animate({top:t},{duration:f,easing:"easeOutQuint"})}if(o.type==="mouseout"){k.stop().animate({top:d},{duration:f,easing:"easeInQuint"})}})}}})(jQuery);
/*!
 * JSON-js; 2011-02-23 Public Domain
 * https://github.com/douglascrockford/JSON-js (See http://www.JSON.org/js.html)
 */
var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==="string"){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());
/*!
 * Cookie plugin; Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html
 */
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};
/*!
 * ColorBox v1.3.19 - jQuery lightbox plugin; (c) 2011 Jack Moore - jacklmoore.com
 * License: http://www.opensource.org/licenses/mit-license.php
 */
(function(J,l,W){var K={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,reposition:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:undefined},x="colorbox",S="cbox",r=S+"Element",V=S+"_open",e=S+"_load",U=S+"_complete",u=S+"_cleanup",ac=S+"_closed",i=S+"_purge",v=!J.support.opacity&&!J.support.style,af=v&&!W.XMLHttpRequest,aa=S+"_IE6",Q,ag,ah,d,H,p,b,P,c,Z,N,k,h,o,t,X,s,R,z,B,ae,ai,m,g,a,w,I,n,D,Y,M,A,L,ad="div",ab;function G(aj,am,al){var ak=l.createElement(aj);if(am){ak.id=S+am}if(al){ak.style.cssText=al}return J(ak)}function E(ak){var aj=c.length,al=(I+ak)%aj;return(al<0)?aj+al:al}function O(aj,ak){return Math.round((/%/.test(aj)?((ak==="x"?Z.width():Z.height())/100):1)*parseInt(aj,10))}function C(aj){return ae.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(aj)}function T(){var aj;ae=J.extend({},J.data(w,x));for(aj in ae){if(J.isFunction(ae[aj])&&aj.slice(0,2)!=="on"){ae[aj]=ae[aj].call(w)}}ae.rel=ae.rel||w.rel||"nofollow";ae.href=ae.href||J(w).attr("href");ae.title=ae.title||w.title;if(typeof ae.href==="string"){ae.href=J.trim(ae.href)}}function F(aj,ak){J.event.trigger(aj);if(ak){ak.call(w)}}function y(){var ak,am=S+"Slideshow_",an="click."+S,ao,al,aj;if(ae.slideshow&&c[1]){ao=function(){X.text(ae.slideshowStop).unbind(an).bind(U,function(){if(ae.loop||c[I+1]){ak=setTimeout(L.next,ae.slideshowSpeed)}}).bind(e,function(){clearTimeout(ak)}).one(an+" "+u,al);ag.removeClass(am+"off").addClass(am+"on");ak=setTimeout(L.next,ae.slideshowSpeed)};al=function(){clearTimeout(ak);X.text(ae.slideshowStart).unbind([U,e,u,an].join(" ")).one(an,function(){L.next();ao()});ag.removeClass(am+"on").addClass(am+"off")};if(ae.slideshowAuto){ao()}else{al()}}else{ag.removeClass(am+"off "+am+"on")}}function f(aj){if(!M){w=aj;T();c=J(w);I=0;if(ae.rel!=="nofollow"){c=J("."+r).filter(function(){var ak=J.data(this,x).rel||this.rel;return(ak===ae.rel)});I=c.index(w);if(I===-1){c=c.add(w);I=c.length-1}}if(!D){D=Y=true;ag.show();if(ae.returnFocus){J(w).blur().one(ac,function(){J(this).focus()})}Q.css({opacity:+ae.opacity,cursor:ae.overlayClose?"pointer":"auto"}).show();ae.w=O(ae.initialWidth,"x");ae.h=O(ae.initialHeight,"y");L.position();if(af){Z.bind("resize."+aa+" scroll."+aa,function(){Q.css({width:Z.width(),height:Z.height(),top:Z.scrollTop(),left:Z.scrollLeft()})}).trigger("resize."+aa)}F(V,ae.onOpen);B.add(o).hide();z.html(ae.close).show()}L.load(true)}}function q(){if(!ag&&l.body){ab=false;Z=J(W);ag=G(ad).attr({id:x,"class":v?S+(af?"IE6":"IE"):""}).hide();Q=G(ad,"Overlay",af?"position:absolute":"").hide();ah=G(ad,"Wrapper");d=G(ad,"Content").append(N=G(ad,"LoadedContent","width:0; height:0; overflow:hidden"),h=G(ad,"LoadingOverlay").add(G(ad,"LoadingGraphic")),o=G(ad,"Title"),t=G(ad,"Current"),s=G(ad,"Next"),R=G(ad,"Previous"),X=G(ad,"Slideshow").bind(V,y),z=G(ad,"Close"));ah.append(G(ad).append(G(ad,"TopLeft"),H=G(ad,"TopCenter"),G(ad,"TopRight")),G(ad,false,"clear:left").append(p=G(ad,"MiddleLeft"),d,b=G(ad,"MiddleRight")),G(ad,false,"clear:left").append(G(ad,"BottomLeft"),P=G(ad,"BottomCenter"),G(ad,"BottomRight"))).find("div div").css({"float":"left"});k=G(ad,false,"position:absolute; width:9999px; visibility:hidden; display:none");B=s.add(R).add(t).add(X);J(l.body).append(Q,ag.append(ah,k))}}function j(){if(ag){if(!ab){ab=true;ai=H.height()+P.height()+d.outerHeight(true)-d.height();m=p.width()+b.width()+d.outerWidth(true)-d.width();g=N.outerHeight(true);a=N.outerWidth(true);ag.css({"padding-bottom":ai,"padding-right":m});s.click(function(){L.next()});R.click(function(){L.prev()});z.click(function(){L.close()});Q.click(function(){if(ae.overlayClose){L.close()}});J(l).bind("keydown."+S,function(ak){var aj=ak.keyCode;if(D&&ae.escKey&&aj===27){ak.preventDefault();L.close()}if(D&&ae.arrowKey&&c[1]){if(aj===37){ak.preventDefault();R.click()}else{if(aj===39){ak.preventDefault();s.click()}}}});J("."+r,l).live("click",function(aj){if(!(aj.which>1||aj.shiftKey||aj.altKey||aj.metaKey)){aj.preventDefault();f(this)}})}return true}return false}if(J.colorbox){return}J(q);L=J.fn[x]=J[x]=function(aj,al){var ak=this;aj=aj||{};q();if(j()){if(!ak[0]){if(ak.selector){return ak}ak=J("<a/>");aj.open=true}if(al){aj.onComplete=al}ak.each(function(){J.data(this,x,J.extend({},J.data(this,x)||K,aj))}).addClass(r);if((J.isFunction(aj.open)&&aj.open.call(ak))||aj.open){f(ak[0])}}return ak};L.position=function(ak,aj){var an=0,am=0,ap=ag.offset(),al=Z.scrollTop(),ao=Z.scrollLeft();Z.unbind("resize."+S);ag.css({top:-90000,left:-90000});if(ae.fixed&&!af){ap.top-=al;ap.left-=ao;ag.css({position:"fixed"})}else{an=al;am=ao;ag.css({position:"absolute"})}if(ae.right!==false){am+=Math.max(Z.width()-ae.w-a-m-O(ae.right,"x"),0)}else{if(ae.left!==false){am+=O(ae.left,"x")}else{am+=Math.round(Math.max(Z.width()-ae.w-a-m,0)/2)}}if(ae.bottom!==false){an+=Math.max(Z.height()-ae.h-g-ai-O(ae.bottom,"y"),0)}else{if(ae.top!==false){an+=O(ae.top,"y")}else{an+=Math.round(Math.max(Z.height()-ae.h-g-ai,0)/2)}}ag.css({top:ap.top,left:ap.left});ak=(ag.width()===ae.w+a&&ag.height()===ae.h+g)?0:ak||0;ah[0].style.width=ah[0].style.height="9999px";function aq(ar){H[0].style.width=P[0].style.width=d[0].style.width=ar.style.width;d[0].style.height=p[0].style.height=b[0].style.height=ar.style.height}ag.dequeue().animate({width:ae.w+a,height:ae.h+g,top:an,left:am},{duration:ak,complete:function(){aq(this);Y=false;ah[0].style.width=(ae.w+a+m)+"px";ah[0].style.height=(ae.h+g+ai)+"px";if(ae.reposition){setTimeout(function(){Z.bind("resize."+S,L.position)},1)}if(aj){aj()}},step:function(){aq(this)}})};L.resize=function(aj){if(D){aj=aj||{};if(aj.width){ae.w=O(aj.width,"x")-a-m}if(aj.innerWidth){ae.w=O(aj.innerWidth,"x")}N.css({width:ae.w});if(aj.height){ae.h=O(aj.height,"y")-g-ai}if(aj.innerHeight){ae.h=O(aj.innerHeight,"y")}if(!aj.innerHeight&&!aj.height){N.css({height:"auto"});ae.h=N.height()}N.css({height:ae.h});L.position(ae.transition==="none"?0:ae.speed)}};L.prep=function(ak){if(!D){return}var an,al=ae.transition==="none"?0:ae.speed;N.remove();N=G(ad,"LoadedContent").append(ak);function aj(){ae.w=ae.w||N.width();ae.w=ae.mw&&ae.mw<ae.w?ae.mw:ae.w;return ae.w}function am(){ae.h=ae.h||N.height();ae.h=ae.mh&&ae.mh<ae.h?ae.mh:ae.h;return ae.h}N.hide().appendTo(k.show()).css({width:aj(),overflow:ae.scrolling?"auto":"hidden"}).css({height:am()}).prependTo(d);k.hide();J(n).css({"float":"none"});if(af){J("select").not(ag.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(u,function(){this.style.visibility="inherit"})}an=function(){var ay,av,aw=c.length,at,ax="frameBorder",ar="allowTransparency",ap,ao,au;if(!D){return}function aq(){if(v){ag[0].style.removeAttribute("filter")}}ap=function(){clearTimeout(A);h.hide();F(U,ae.onComplete)};if(v){if(n){N.fadeIn(100)}}o.html(ae.title).add(N).show();if(aw>1){if(typeof ae.current==="string"){t.html(ae.current.replace("{current}",I+1).replace("{total}",aw)).show()}s[(ae.loop||I<aw-1)?"show":"hide"]().html(ae.next);R[(ae.loop||I)?"show":"hide"]().html(ae.previous);if(ae.slideshow){X.show()}if(ae.preloading){ay=[E(-1),E(1)];while(av=c[ay.pop()]){ao=J.data(av,x).href||av.href;if(J.isFunction(ao)){ao=ao.call(av)}if(C(ao)){au=new Image();au.src=ao}}}}else{B.hide()}if(ae.iframe){at=G("iframe")[0];if(ax in at){at[ax]=0}if(ar in at){at[ar]="true"}at.name=S+(+new Date());if(ae.fastIframe){ap()}else{J(at).one("load",ap)}at.src=ae.href;if(!ae.scrolling){at.scrolling="no"}J(at).addClass(S+"Iframe").appendTo(N).one(i,function(){at.src="//about:blank"})}else{ap()}if(ae.transition==="fade"){ag.fadeTo(al,1,aq)}else{aq()}};if(ae.transition==="fade"){ag.fadeTo(al,0,function(){L.position(0,an)})}else{L.position(al,an)}};L.load=function(al){var ak,am,aj=L.prep;Y=true;n=false;w=c[I];if(!al){T()}F(i);F(e,ae.onLoad);ae.h=ae.height?O(ae.height,"y")-g-ai:ae.innerHeight&&O(ae.innerHeight,"y");ae.w=ae.width?O(ae.width,"x")-a-m:ae.innerWidth&&O(ae.innerWidth,"x");ae.mw=ae.w;ae.mh=ae.h;if(ae.maxWidth){ae.mw=O(ae.maxWidth,"x")-a-m;ae.mw=ae.w&&ae.w<ae.mw?ae.w:ae.mw}if(ae.maxHeight){ae.mh=O(ae.maxHeight,"y")-g-ai;ae.mh=ae.h&&ae.h<ae.mh?ae.h:ae.mh}ak=ae.href;A=setTimeout(function(){h.show()},100);if(ae.inline){G(ad).hide().insertBefore(J(ak)[0]).one(i,function(){J(this).replaceWith(N.children())});aj(J(ak))}else{if(ae.iframe){aj(" ")}else{if(ae.html){aj(ae.html)}else{if(C(ak)){J(n=new Image()).addClass(S+"Photo").error(function(){ae.title=false;aj(G(ad,"Error").text("This image could not be loaded"))}).load(function(){var an;n.onload=null;if(ae.scalePhotos){am=function(){n.height-=n.height*an;n.width-=n.width*an};if(ae.mw&&n.width>ae.mw){an=(n.width-ae.mw)/n.width;am()}if(ae.mh&&n.height>ae.mh){an=(n.height-ae.mh)/n.height;am()}}if(ae.h){n.style.marginTop=Math.max(ae.h-n.height,0)/2+"px"}if(c[1]&&(ae.loop||c[I+1])){n.style.cursor="pointer";n.onclick=function(){L.next()}}if(v){n.style.msInterpolationMode="bicubic"}setTimeout(function(){aj(n)},1)});setTimeout(function(){n.src=ak},1)}else{if(ak){k.load(ak,ae.data,function(ao,an,ap){aj(an==="error"?G(ad,"Error").text("Request unsuccessful: "+ap.statusText):J(this).contents())})}}}}}};L.next=function(){if(!Y&&c[1]&&(ae.loop||c[I+1])){I=E(1);L.load()}};L.prev=function(){if(!Y&&c[1]&&(ae.loop||I)){I=E(-1);L.load()}};L.close=function(){if(D&&!M){M=true;D=false;F(u,ae.onCleanup);Z.unbind("."+S+" ."+aa);Q.fadeTo(200,0);ag.stop().fadeTo(300,0,function(){ag.add(Q).css({opacity:1,cursor:"auto"}).hide();F(i);N.remove();setTimeout(function(){M=false;F(ac,ae.onClosed)},1)})}};L.remove=function(){J([]).add(ag).add(Q).remove();ag=null;J("."+r).removeData(x).removeClass(r).die()};L.element=function(){return J(w)};L.settings=K}(jQuery,document,this));
/*!
 * hoverIntent r6 2011.02.26; Copyright (c) Brian Cherne brian(at)cherne(dot)net <http://cherne.net/brian/resources/jquery.hoverIntent.html>
 * Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(o){var g=jQuery.extend({},o);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(o.type=="mouseenter"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.bind("mouseenter",b).bind("mouseleave",b)}})(jQuery);
/*!
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/; Copyright Â© 2008 George McGinley Smith; Easing equations Copyright Â© 2001 Robert Penner
 * Open source under the BSD License:
 */
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
