(function(a){a.prettyPhoto={version:"2.5.3"};a.fn.prettyPhoto=function(d){d=jQuery.extend({animationSpeed:"normal",padding:40,opacity:.8,showTitle:true,allowresize:true,counter_separator_label:"/",theme:"light_rounded",hideflash:false,modal:false,changepicturecallback:function(){},callback:function(){}},d);if(a.browser.msie&&a.browser.version==6)d.theme="light_square";if(a(".pp_overlay").size()==0)v();else{c=a(".pp_pic_holder");h=a(".ppt")}var i=true,p=false,f,c,h,d,n,s,k,l,g="image",e=0,j=o();a(window).scroll(function(){j=o();m();u()});a(window).resize(function(){m();u()});a(document).keydown(function(b){if(c.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous");break;case 39:a.prettyPhoto.changePage("next");break;case 27:!d.modal&&a.prettyPhoto.close()}});a(this).each(function(){a(this).bind("click",function(){link=this;theRel=a(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);var c=[],b=[],d=[];if(theGallery)a("a[rel*="+theGallery+"]").each(function(f){if(a(this)[0]===a(link)[0])e=f;c.push(a(this).attr("href"));b.push(a(this).find("img").attr("alt"));d.push(a(this).attr("title"))});else{c=a(this).attr("href");b=a(this).find("img").attr("alt")?a(this).find("img").attr("alt"):"";d=a(this).attr("title")?a(this).attr("title"):""}a.prettyPhoto.open(c,b,d);return false})});a.prettyPhoto.open=function(i,k,j){a.browser.msie&&a.browser.version==6&&a("select").css("visibility","hidden");d.hideflash&&a("object,embed").css("visibility","hidden");images=a.makeArray(i);titles=a.makeArray(k);descriptions=a.makeArray(j);if(a(".pp_overlay").size()==0)v();else{c=a(".pp_pic_holder");h=a(".ppt")}c.attr("class","pp_pic_holder "+d.theme);isSet=a(images).size()>0?true:false;x(images[e]);m();w(a(images).size());a(".pp_loaderIcon").show();a("div.pp_overlay").show().fadeTo(d.animationSpeed,d.opacity,function(){c.fadeIn(d.animationSpeed,function(){c.find("p.currentTextHolder").text(e+1+d.counter_separator_label+a(images).size());if(descriptions[e])c.find(".pp_description").show().html(unescape(descriptions[e]));else c.find(".pp_description").hide().text("");if(titles[e]&&d.showTitle){hasTitle=true;h.html(unescape(titles[e]))}else hasTitle=false;if(g=="image"){imgPreloader=new Image;nextImage=new Image;if(isSet&&e>a(images).size())nextImage.src=images[e+1];prevImage=new Image;if(isSet&&images[e-1])prevImage.src=images[e-1];pp_typeMarkup='<img id="fullResImage" src="" />';c.find("#pp_full_res")[0].innerHTML=pp_typeMarkup;c.find(".pp_content").css("overflow","hidden");c.find("#fullResImage").attr("src",images[e]);imgPreloader.onload=function(){f=r(imgPreloader.width,imgPreloader.height);_showContent()};imgPreloader.src=images[e]}else{movie_width=parseFloat(b("width",images[e]))?b("width",images[e]):"425";movie_height=parseFloat(b("height",images[e]))?b("height",images[e]):"344";if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=-1){movie_height=a(window).height()*parseFloat(movie_height)/100-100;movie_width=a(window).width()*parseFloat(movie_width)/100-100;p=true}movie_height=parseFloat(movie_height);movie_width=parseFloat(movie_width);if(g=="quicktime")movie_height+=15;f=r(movie_width,movie_height);if(g=="youtube")pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+f.width+'" height="'+f.height+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/'+b("v",images[e])+'" /><embed src="http://www.youtube.com/v/'+b("v",images[e])+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+f.width+'" height="'+f.height+'"></embed></object>';else if(g=="quicktime")pp_typeMarkup='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+f.height+'" width="'+f.width+'"><param name="src" value="'+images[e]+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+images[e]+'" height="'+f.height+'" width="'+f.width+'" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>';else if(g=="flash"){flash_vars=images[e];flash_vars=flash_vars.substring(images[e].indexOf("flashvars")+10,images[e].length);filename=images[e];filename=filename.substring(0,filename.indexOf("?"));pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+f.width+'" height="'+f.height+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="'+filename+"?"+flash_vars+'" /><embed src="'+filename+"?"+flash_vars+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+f.width+'" height="'+f.height+'"></embed></object>'}else if(g=="iframe"){movie_url=images[e];movie_url=movie_url.substr(0,movie_url.indexOf("iframe")-1);pp_typeMarkup='<iframe src ="'+movie_url+'" width="'+(f.width-10)+'" height="'+(f.height-10)+'" frameborder="no"></iframe>'}_showContent()}})})};a.prettyPhoto.changePage=function(b){if(b=="previous"){e--;if(e<0){e=0;return}}else{if(a(".pp_arrow_next").is(".disabled"))return;e++}if(!i)i=true;q();a("a.pp_expand,a.pp_contract").fadeOut(d.animationSpeed,function(){a(this).removeClass("pp_contract").addClass("pp_expand");a.prettyPhoto.open(images,titles,descriptions)})};a.prettyPhoto.close=function(){c.find("object,embed").css("visibility","hidden");a("div.pp_pic_holder,div.ppt").fadeOut(d.animationSpeed);a("div.pp_overlay").fadeOut(d.animationSpeed,function(){a("div.pp_overlay,div.pp_pic_holder,div.ppt").remove();a.browser.msie&&a.browser.version==6&&a("select").css("visibility","visible");d.hideflash&&a("object,embed").css("visibility","visible");e=0;d.callback()});i=true};_showContent=function(){a(".pp_loaderIcon").hide();if(a.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=a(window).height();windowWidth=a(window).width()}projectedTop=j.scrollTop+(windowHeight/2-f.containerHeight/2);if(projectedTop<0)projectedTop=0+c.find(".ppt").height();c.find(".pp_content").animate({height:f.contentHeight},d.animationSpeed);c.animate({top:projectedTop,left:windowWidth/2-f.containerWidth/2,width:f.containerWidth},d.animationSpeed,function(){c.width(f.containerWidth);c.find(".pp_hoverContainer,#fullResImage").height(f.height).width(f.width);c.find("#pp_full_res").fadeIn(d.animationSpeed);if(isSet&&g=="image")c.find(".pp_hoverContainer").fadeIn(d.animationSpeed);else c.find(".pp_hoverContainer").hide();c.find(".pp_details").fadeIn(d.animationSpeed);if(d.showTitle&&hasTitle){h.css({top:c.offset().top-20,left:c.offset().left+d.padding/2,display:"none"});h.fadeIn(d.animationSpeed)}f.resized&&a("a.pp_expand,a.pp_contract").fadeIn(d.animationSpeed);if(g!="image")c.find("#pp_full_res")[0].innerHTML=pp_typeMarkup;d.changepicturecallback()})};function q(){c.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");c.find(".pp_hoverContainer,.pp_details").fadeOut(d.animationSpeed);c.find("#pp_full_res").fadeOut(d.animationSpeed,function(){a(".pp_loaderIcon").show()});h.fadeOut(d.animationSpeed)}function w(b){if(e==b-1){c.find("a.pp_next").css("visibility","hidden");c.find("a.pp_arrow_next").addClass("disabled").unbind("click")}else{c.find("a.pp_next").css("visibility","visible");c.find("a.pp_arrow_next.disabled").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("next");return false})}if(e==0){c.find("a.pp_previous").css("visibility","hidden");c.find("a.pp_arrow_previous").addClass("disabled").unbind("click")}else{c.find("a.pp_previous").css("visibility","visible");c.find("a.pp_arrow_previous.disabled").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("previous");return false})}if(b>1)a(".pp_nav").show();else a(".pp_nav").hide()}function r(c,b){hasBeenResized=false;t(c,b);imageWidth=c;imageHeight=b;windowHeight=a(window).height();windowWidth=a(window).width();if((l>windowWidth||k>windowHeight)&&i&&d.allowresize&&!p){hasBeenResized=true;notFitting=true;while(notFitting){if(l>windowWidth){imageWidth=windowWidth-200;imageHeight=b/c*imageWidth}else if(k>windowHeight){imageHeight=windowHeight-200;imageWidth=c/b*imageHeight}else notFitting=false;k=imageHeight;l=imageWidth}t(imageWidth,imageHeight)}return{width:imageWidth,height:imageHeight,containerHeight:k,containerWidth:l,contentHeight:n,contentWidth:s,resized:hasBeenResized}}function t(a,b){c.find(".pp_details").width(a).find(".pp_description").width(a-parseFloat(c.find("a.pp_close").css("width")));n=b+c.find(".pp_details").height()+parseFloat(c.find(".pp_details").css("marginTop"))+parseFloat(c.find(".pp_details").css("marginBottom"));s=a;k=n+c.find(".ppt").height()+c.find(".pp_top").height()+c.find(".pp_bottom").height();l=a+d.padding}function x(a){if(a.match(/youtube\.com\/watch/i))g="youtube";else if(a.indexOf(".mov")!=-1)g="quicktime";else if(a.indexOf(".swf")!=-1)g="flash";else if(a.indexOf("iframe")!=-1)g="iframe";else g="image"}function m(){if(a.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=a(window).height();windowWidth=a(window).width()}if(i){$pHeight=c.height();$pWidth=c.width();$tHeight=h.height();projectedTop=windowHeight/2+j.scrollTop-$pHeight/2;if(projectedTop<0)projectedTop=0+$tHeight;c.css({top:projectedTop,left:windowWidth/2+j.scrollLeft-$pWidth/2});h.css({top:projectedTop-$tHeight,left:windowWidth/2+j.scrollLeft-$pWidth/2+d.padding/2})}}function o(){if(self.pageYOffset){scrollTop=self.pageYOffset;scrollLeft=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft}else if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft}return{scrollTop:scrollTop,scrollLeft:scrollLeft}}function u(){a("div.pp_overlay").css({height:a(document).height(),width:a(window).width()})}function v(){toInject="";toInject+="<div class='pp_overlay'></div>";toInject+='<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><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 clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+d.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';toInject+='<div class="ppt"></div>';a("body").append(toInject);a("div.pp_overlay").css("opacity",0);c=a(".pp_pic_holder");h=a(".ppt");a("div.pp_overlay").css("height",a(document).height()).hide().bind("click",function(){!d.modal&&a.prettyPhoto.close()});a("a.pp_close").bind("click",function(){a.prettyPhoto.close();return false});a("a.pp_expand").bind("click",function(){$this=a(this);if($this.hasClass("pp_expand")){$this.removeClass("pp_expand").addClass("pp_contract");i=false}else{$this.removeClass("pp_contract").addClass("pp_expand");i=true}q();c.find(".pp_hoverContainer, .pp_details").fadeOut(d.animationSpeed);c.find("#pp_full_res").fadeOut(d.animationSpeed,function(){a.prettyPhoto.open(images,titles,descriptions)});return false});c.find(".pp_previous, .pp_arrow_previous").bind("click",function(){a.prettyPhoto.changePage("previous");return false});c.find(".pp_next, .pp_arrow_next").bind("click",function(){a.prettyPhoto.changePage("next");return false});c.find(".pp_hoverContainer").css({"margin-left":d.padding/2})}};function b(a,d){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",e=new RegExp(c),b=e.exec(d);return b==null?"":b[1]}})(jQuery);function mainmenu(){jQuery("#navigation a").removeAttr("title");jQuery("#navigation ul:first").css({display:"none"});jQuery("#navigation > li").hover(function(){jQuery(this).find("ul:first").css({visibility:"visible",display:"none"}).slideDown(400)},function(){jQuery(this).find("ul:first").css({visibility:"hidden"})})}$(document).ready(function(a){mainmenu();a("#expand-button").toggleClass("collapse").parent("nav").find("ul").slideToggle();a("#share-box a, .social-button-holder a").hover(function(){a(this).stop().animate({opacity:.5},200)},function(){a(this).stop().animate({opacity:1},200)});a(".expanding .expand-button").click(function(){a(this).toggleClass("close").parent("div").find(".expand").slideToggle("slow")});a(".gallery-item").hover(function(){a("img",this).stop().animate({opacity:.5},200)},function(){a("img",this).stop().animate({opacity:1},200)})});var ss={fixAllLinks:function(){for(var c=document.getElementsByTagName("a"),b=0;b<c.length;b++){var a=c[b];a.href&&a.href.indexOf("#")!=-1&&(a.pathname==location.pathname||"/"+a.pathname==location.pathname)&&a.search==location.search&&ss.addEvent(a,"click",ss.smoothScroll)}},smoothScroll:function(b){if(window.event)target=window.event.srcElement;else if(b)target=b.target;else return;if(target.nodeName.toLowerCase()!="a")target=target.parentNode;if(target.nodeName.toLowerCase()!="a")return;anchor=target.hash.substr(1);for(var g=document.getElementsByTagName("a"),a=null,f=0;f<g.length;f++){var e=g[f];if(e.name&&e.name==anchor){a=e;break}}if(!a)a=document.getElementById(anchor);if(!a)return true;var h=a.offsetLeft,d=a.offsetTop,c=a;while(c.offsetParent&&c.offsetParent!=document.body){c=c.offsetParent;h+=c.offsetLeft;d+=c.offsetTop}clearInterval(ss.INTERVAL);cypos=ss.getCurrentYPos();ss_stepsize=parseInt((d-cypos)/ss.STEPS);ss.INTERVAL=setInterval("ss.scrollWindow("+ss_stepsize+","+d+',"'+anchor+'")',10);if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(b&&b.preventDefault&&b.stopPropagation){b.preventDefault();b.stopPropagation()}},scrollWindow:function(b,a,c){wascypos=ss.getCurrentYPos();isAbove=wascypos<a;window.scrollTo(0,wascypos+b);iscypos=ss.getCurrentYPos();isAboveNow=iscypos<a;if(isAbove!=isAboveNow||wascypos==iscypos){window.scrollTo(0,a);clearInterval(ss.INTERVAL);location.hash=c}},getCurrentYPos:function(){return document.body&&document.body.scrollTop?document.body.scrollTop:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:window.pageYOffset?window.pageYOffset:0},addEvent:function(a,b,c,d){if(a.addEventListener){a.addEventListener(b,c,d);return true}else if(a.attachEvent)return a.attachEvent("on"+b,c);else alert("Handler could not be removed")}};ss.STEPS=25;ss.addEvent(window,"load",ss.fixAllLinks);(function(a){var b=a.event,c;b.special.smartresize={setup:function(){a(this).bind("resize",b.special.smartresize.handler)},teardown:function(){a(this).unbind("resize",b.special.smartresize.handler)},handler:function(d,e){var b=this,a=arguments;d.type="smartresize";c&&clearTimeout(c);c=setTimeout(function(){jQuery.event.handle.apply(b,a)},e==="execAsap"?0:100)}};a.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])};a.fn.masonry=function(d,c){var b={getBricks:function(c,d,a){var b=a.itemSelector===undefined;d.$bricks=a.appendedContent===undefined?b?c.children():c.find(a.itemSelector):b?a.appendedContent:a.appendedContent.filter(a.itemSelector)},placeBrick:function(g,c,e,d,h){c=Math.min.apply(Math,e);for(var i=c+g.outerHeight(true),b=e.length,f=b,j=d.colCount+1-b;b--;)if(e[b]==c)f=b;g.applyStyle({left:d.colW*f+d.posLeft,top:c},a.extend(true,{},h.animationOptions));for(b=0;b<j;b++)d.colY[f+b]=i},setup:function(d,c,a){b.getBricks(d,a,c);if(a.masoned)a.previousData=d.data("masonry");a.colW=c.columnWidth===undefined?a.masoned?a.previousData.colW:a.$bricks.outerWidth(true):c.columnWidth;a.colCount=Math.floor(d.width()/a.colW);a.colCount=Math.max(a.colCount,1)},arrange:function(g,f,d){var e;(!d.masoned||f.appendedContent!==undefined)&&d.$bricks.css("position","absolute");if(d.masoned){d.posTop=d.previousData.posTop;d.posLeft=d.previousData.posLeft}else{g.css("position","relative");var h=a(document.createElement("div"));g.prepend(h);d.posTop=Math.round(h.position().top);d.posLeft=Math.round(h.position().left);h.remove()}if(d.masoned&&f.appendedContent!==undefined){d.colY=d.previousData.colY;for(e=d.previousData.colCount;e<d.colCount;e++)d.colY[e]=d.posTop}else{d.colY=[];for(e=d.colCount;e--;)d.colY.push(d.posTop)}a.fn.applyStyle=d.masoned&&f.animate?a.fn.animate:a.fn.css;f.singleMode?d.$bricks.each(function(){var c=a(this);b.placeBrick(c,d.colCount,d.colY,d,f)}):d.$bricks.each(function(){var g=a(this),c=Math.ceil(g.outerWidth(true)/d.colW);c=Math.min(c,d.colCount);if(c===1)b.placeBrick(g,d.colCount,d.colY,d,f);else{var h=d.colCount+1-c,i=[];for(e=0;e<h;e++){var j=d.colY.slice(e,e+c);i[e]=Math.max.apply(Math,j)}b.placeBrick(g,h,i,d,f)}});d.wallH=Math.max.apply(Math,d.colY);g.applyStyle({height:d.wallH-d.posTop},a.extend(true,[],f.animationOptions));d.masoned||setTimeout(function(){g.addClass("masoned")},1);c.call(d.$bricks);g.data("masonry",d)},resize:function(c,d,a){a.masoned=!!c.data("masonry");var e=c.data("masonry").colCount;b.setup(c,d,a);a.colCount!=e&&b.arrange(c,d,a)}};return this.each(function(){var g=a(this),e={};e.masoned=!!g.data("masonry");var h=e.masoned?g.data("masonry").options:{},f=a.extend({},a.fn.masonry.defaults,h,d),i=h.resizeable;e.options=f.saveOptions?f:h;c=c||function(){};b.getBricks(g,e,f);if(!e.$bricks.length)return this;b.setup(g,f,e);b.arrange(g,f,e);!i&&f.resizeable&&a(window).bind("smartresize.masonry",function(){b.resize(g,f,e)});i&&!f.resizeable&&a(window).unbind("smartresize.masonry")})};a.fn.masonry.defaults={singleMode:false,columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true,animate:false,animationOptions:{}}})(jQuery);(function(a){a.timeago=function(c){return c instanceof Date?b(c):typeof c=="string"?b(a.timeago.parse(c)):b(a.timeago.datetime(c))};var c=a.timeago;a.extend(a.timeago,{settings:{refreshMillis:6e4,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",numbers:[]}},inWords:function(e){var b=this.settings.strings,i=b.prefixAgo,j=b.suffixAgo;if(this.settings.allowFuture){if(e<0){i=b.prefixFromNow;j=b.suffixFromNow}e=Math.abs(e)}var g=e/1e3,f=g/60,h=f/60,d=h/24,k=d/365;function c(c,d){var f=a.isFunction(c)?c(d,e):c,g=b.numbers&&b.numbers[d]||d;return f.replace(/%d/i,g)}var l=g<45&&c(b.seconds,Math.round(g))||g<90&&c(b.minute,1)||f<45&&c(b.minutes,Math.round(f))||f<90&&c(b.hour,1)||h<24&&c(b.hours,Math.round(h))||h<48&&c(b.day,1)||d<30&&c(b.days,Math.floor(d))||d<60&&c(b.month,1)||d<365&&c(b.months,Math.floor(d/30))||k<2&&c(b.year,1)||c(b.years,Math.floor(k));return a.trim([i,l,j].join(" "))},parse:function(c){var b=a.trim(c);b=b.replace(/\.\d\d\d+/,"");b=b.replace(/-/,"/").replace(/-/,"/");b=b.replace(/T/," ").replace(/Z/," UTC");b=b.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(b)},datetime:function(b){var e=a(b).get(0).tagName.toLowerCase()=="time",d=e?a(b).attr("datetime"):a(b).attr("title");return c.parse(d)}});a.fn.timeago=function(){var a=this;a.each(d);var b=c.settings;b.refreshMillis>0&&setInterval(function(){a.each(d)},b.refreshMillis);return a};function d(){var c=e(this);!isNaN(c.datetime)&&a(this).text(b(c.datetime));return this}function e(b){b=a(b);if(!b.data("timeago")){b.data("timeago",{datetime:c.datetime(b)});var d=a.trim(b.text());d.length>0&&b.attr("title",d)}return b.data("timeago")}function b(a){return c.inWords(f(a))}function f(a){return(new Date).getTime()-a.getTime()}document.createElement("abbr");document.createElement("time")})(jQuery);
/*
* jQuery Form Plugin
* version: 2.83 (11-JUL-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* 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.ajaxSubmit=function(c){if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}var i,l,e,d=this;if(typeof c=="function")c={success:c};i=this.attr("method");l=this.attr("action");e=typeof l==="string"?a.trim(l):"";e=e||window.location.href||"";if(e)e=(e.match(/^([^#]+)/)||[])[1];c=a.extend(true,{url:e,success:a.ajaxSettings.success,type:i||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c);var k={};this.trigger("form-pre-serialize",[this,c,k]);if(k.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g,j,f=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(g in c.data)if(c.data[g]instanceof Array)for(var t in c.data[g])f.push({name:g,value:c.data[g][t]});else{j=c.data[g];j=a.isFunction(j)?j():j;f.push({name:g,value:j})}}if(c.beforeSubmit&&c.beforeSubmit(f,this,c)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[f,this,c,k]);if(k.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var p=a.param(f);if(c.type.toUpperCase()=="GET"){c.url+=(c.url.indexOf("?")>=0?"&":"?")+p;c.data=null}else c.data=p;var h=[];c.resetForm&&h.push(function(){d.resetForm()});c.clearForm&&h.push(function(){d.clearForm()});if(!c.dataType&&c.target){var r=c.success||function(){};h.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(r,arguments)})}else c.success&&h.push(c.success);c.success=function(f,e,i){for(var b=c.context||c,a=0,g=h.length;a<g;a++)h[a].apply(b,[f,e,i||d,d])};var q=a("input:file",this).length>0,o="multipart/form-data",s=d.attr("enctype")==o||d.attr("encoding")==o;if(c.iframe!==false&&(q||c.iframe||s))if(c.closeKeepAlive)a.get(c.closeKeepAlive,function(){m(f)});else m(f);else{if(a.browser.msie&&i=="get"){var n=d[0].getAttribute("method");if(typeof n==="string")c.type=n}a.ajax(c)}this.trigger("form-submit-notify",[this,c]);return this;function m(u){var h=d[0],A,r,e,l,q,j,k,f,o,m,t,p,E=!!a.fn.prop;if(u)for(r=0;r<u.length;r++){A=a(h[u[r].name]);A[E?"prop":"attr"]("disabled",false)}if(a(":input[name=submit],:input[id=submit]",h).length){alert('Error: Form elements must not have name or id of "submit".');return}e=a.extend(true,{},a.ajaxSettings,c);e.context=e.context||e;q="jqFormIO"+(new Date).getTime();if(e.iframeTarget){j=a(e.iframeTarget);m=j.attr("name");if(m==null)j.attr("name",q);else q=m}else{j=a('<iframe name="'+q+'" src="'+e.iframeSrc+'" />');j.css({position:"absolute",top:"-1000px",left:"-1000px"})}k=j[0];f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(d){var c=d==="timeout"?"timeout":"aborted";b("aborting upload... "+c);this.aborted=1;j.attr("src",e.iframeSrc);f.error=c;e.error&&e.error.call(e.context,f,c,d);l&&a.event.trigger("ajaxError",[f,e,c]);e.complete&&e.complete.call(e.context,f,c)}};l=e.global;l&&!a.active++&&a.event.trigger("ajaxStart");l&&a.event.trigger("ajaxSend",[f,e]);if(e.beforeSend&&e.beforeSend.call(e.context,f,e)===false){if(e.global)a.active--;return}if(f.aborted)return;o=h.clk;if(o){m=o.name;if(m&&!o.disabled){e.extraData=e.extraData||{};e.extraData[m]=o.value;if(o.type=="image"){e.extraData[m+".x"]=h.clk_x;e.extraData[m+".y"]=h.clk_y}}}var v=1,s=2;function y(a){return a.contentWindow?a.contentWindow.document:a.contentDocument?a.contentDocument:a.document}function x(){var m=d.attr("target"),g=d.attr("action");h.setAttribute("target",q);!i&&h.setAttribute("method","POST");g!=e.url&&h.setAttribute("action",e.url);!e.skipEncodingOverride&&(!i||/post/i.test(i))&&d.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});if(e.timeout)p=setTimeout(function(){t=true;n(v)},e.timeout);function f(){try{var a=y(k).readyState;b("state = "+a);a.toLowerCase()=="uninitialized"&&setTimeout(f,50)}catch(c){b("Server abort: ",c," (",c.name,")");n(s);p&&clearTimeout(p);p=undefined}}var c=[];try{if(e.extraData)for(var l in e.extraData)c.push(a('<input type="hidden" name="'+l+'" />').attr("value",e.extraData[l]).appendTo(h)[0]);if(!e.iframeTarget){j.appendTo("body");k.attachEvent?k.attachEvent("onload",n):k.addEventListener("load",n,false)}setTimeout(f,15);h.submit()}finally{h.setAttribute("action",g);if(m)h.setAttribute("target",m);else d.removeAttr("target");a(c).remove()}}if(e.forceSync)x();else setTimeout(x,10);var z,g,B=50,w;function n(q){if(f.aborted||w)return;try{g=y(k)}catch(A){b("cannot access response document: ",A);q=s}if(q===v&&f){f.abort("timeout");return}else if(q==s&&f){f.abort("server abort");return}if(!g||g.location.href==e.iframeSrc)if(!t)return;k.detachEvent?k.detachEvent("onload",n):k.removeEventListener("load",n,false);var c="success",d;try{if(t)throw"timeout";var o=e.dataType=="xml"||g.XMLDocument||a.isXMLDoc(g);b("isXml="+o);if(!o&&window.opera&&(g.body==null||g.body.innerHTML==""))if(--B){b("requeing onLoad callback, DOM not available");setTimeout(n,250);return}var h=g.body?g.body:g.documentElement;f.responseText=h?h.innerHTML:null;f.responseXML=g.XMLDocument?g.XMLDocument:g;if(o)e.dataType="xml";f.getResponseHeader=function(b){var a={"content-type":e.dataType};return a[b]};if(h){f.status=Number(h.getAttribute("status"))||f.status;f.statusText=h.getAttribute("statusText")||f.statusText}var x=e.dataType||"",r=/(json|script|text)/.test(x.toLowerCase());if(r||e.textarea){var m=g.getElementsByTagName("textarea")[0];if(m){f.responseText=m.value;f.status=Number(m.getAttribute("status"))||f.status;f.statusText=m.getAttribute("statusText")||f.statusText}else if(r){var i=g.getElementsByTagName("pre")[0],u=g.getElementsByTagName("body")[0];if(i)f.responseText=i.textContent?i.textContent:i.innerHTML;else if(u)f.responseText=u.innerHTML}}else if(e.dataType=="xml"&&!f.responseXML&&f.responseText!=null)f.responseXML=F(f.responseText);try{z=D(f,e.dataType,e)}catch(q){c="parsererror";f.error=d=q||c}}catch(q){b("error caught: ",q);c="error";f.error=d=q||c}if(f.aborted){b("upload aborted");c=null}if(f.status)c=f.status>=200&&f.status<300||f.status===304?"success":"error";if(c==="success"){e.success&&e.success.call(e.context,z,"success",f);l&&a.event.trigger("ajaxSuccess",[f,e])}else if(c){if(d==undefined)d=f.statusText;e.error&&e.error.call(e.context,f,c,d);l&&a.event.trigger("ajaxError",[f,e,d])}l&&a.event.trigger("ajaxComplete",[f,e]);l&&!--a.active&&a.event.trigger("ajaxStop");e.complete&&e.complete.call(e.context,f,c);w=true;e.timeout&&clearTimeout(p);setTimeout(function(){!e.iframeTarget&&j.remove();f.responseXML=null},100)}var F=a.parseXML||function(b,a){if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLDOM");a.async="false";a.loadXML(b)}else a=(new DOMParser).parseFromString(b,"text/xml");return a&&a.documentElement&&a.documentElement.nodeName!="parsererror"?a:null},C=a.parseJSON||function(a){return window.eval("("+a+")")},D=function(d,c,f){var e=d.getResponseHeader("content-type")||"",g=c==="xml"||!c&&e.indexOf("xml")>=0,b=g?d.responseXML:d.responseText;if(g&&b.documentElement.nodeName==="parsererror")a.error&&a.error("parsererror");if(f&&f.dataFilter)b=f.dataFilter(b,c);if(typeof b==="string")if(c==="json"||!c&&e.indexOf("json")>=0)b=C(b);else(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(b);return b}}};a.fn.ajaxForm=function(d){if(this.length===0){var c={s:this.selector,c:this.context};if(!a.isReady&&c.s){b("DOM not ready, queuing ajaxForm");a(function(){a(c.s,c.c).ajaxForm(d)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){if(!b.isDefaultPrevented()){b.preventDefault();a(this).ajaxSubmit(d)}}).bind("click.form-plugin",function(c){var d=c.target,e=a(d);if(!e.is(":submit,input:image")){var g=e.closest(":submit");if(g.length==0)return;d=g[0]}var b=this;b.clk=d;if(d.type=="image")if(c.offsetX!=undefined){b.clk_x=c.offsetX;b.clk_y=c.offsetY}else if(typeof a.fn.offset=="function"){var f=e.offset();b.clk_x=c.pageX-f.left;b.clk_y=c.pageY-f.top}else{b.clk_x=c.pageX-d.offsetLeft;b.clk_y=c.pageY-d.offsetTop}setTimeout(function(){b.clk=b.clk_x=b.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(i){var d=[];if(this.length===0)return d;var c=this[0],k=i?c.getElementsByTagName("*"):c.elements;if(!k)return d;var g,h,b,e,f,n,m;for(g=0,n=k.length;g<n;g++){f=k[g];b=f.name;if(!b)continue;if(i&&c.clk&&f.type=="image"){if(!f.disabled&&c.clk==f){d.push({name:b,value:a(f).val()});d.push({name:b+".x",value:c.clk_x},{name:b+".y",value:c.clk_y})}continue}e=a.fieldValue(f,true);if(e&&e.constructor==Array)for(h=0,m=e.length;h<m;h++)d.push({name:b,value:e[h]});else e!==null&&typeof e!="undefined"&&d.push({name:b,value:e})}if(!i&&c.clk){var l=a(c.clk),j=l[0];b=j.name;if(b&&!j.disabled&&j.type=="image"){d.push({name:b,value:l.val()});d.push({name:b+".x",value:c.clk_x},{name:b+".y",value:c.clk_y})}}return d};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(c){var b=[];this.each(function(){var f=this.name;if(!f)return;var d=a.fieldValue(this,c);if(d&&d.constructor==Array)for(var e=0,g=d.length;e<g;e++)b.push({name:f,value:d[e]});else d!==null&&typeof d!="undefined"&&b.push({name:this.name,value:d})});return a.param(b)};a.fn.fieldValue=function(e){for(var c=[],d=0,f=this.length;d<f;d++){var g=this[d],b=a.fieldValue(g,e);if(b===null||typeof b=="undefined"||b.constructor==Array&&!b.length)continue;b.constructor==Array?a.merge(c,b):c.push(b)}return c};a.fieldValue=function(b,f){var n=b.name,d=b.type,k=b.tagName.toLowerCase();if(f===undefined)f=true;if(f&&(!n||b.disabled||d=="reset"||d=="button"||(d=="checkbox"||d=="radio")&&!b.checked||(d=="submit"||d=="image")&&b.form&&b.form.clk!=b||k=="select"&&b.selectedIndex==-1))return null;if(k=="select"){var g=b.selectedIndex;if(g<0)return null;for(var l=[],j=b.options,h=d=="select-one",m=h?g+1:j.length,i=h?g:0;i<m;i++){var c=j[i];if(c.selected){var e=c.value;if(!e)e=c.attributes&&c.attributes.value&&!c.attributes.value.specified?c.text:c.value;if(h)return e;l.push(e)}}return l}return a(b).val()};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){var a=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var b=this.type,c=this.tagName.toLowerCase();if(a.test(b)||c=="textarea")this.value="";else if(b=="checkbox"||b=="radio")this.checked=false;else if(c=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){if(a===undefined)a=true;return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){if(b===undefined)b=true;return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var c=a(this).parent("select");b&&c[0]&&c[0].type=="select-one"&&c.find("option").selected(false);this.selected=b}})};function b(){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log)window.console.log(a);else window.opera&&window.opera.postError&&window.opera.postError(a)}})(jQuery);(function(a){a.fn.extend({elastic:function(){var b=["paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","lineHeight","fontFamily","width","fontWeight","border-top-width","border-right-width","border-bottom-width","border-left-width","borderTopStyle","borderTopColor","borderRightStyle","borderRightColor","borderBottomStyle","borderBottomColor","borderLeftStyle","borderLeftColor"];return this.each(function(){if(this.type!=="textarea")return false;var c=a(this),d=a("<div />").css({position:"absolute",display:"none","word-wrap":"break-word"}),h=parseInt(c.css("line-height"),10)||parseInt(c.css("font-size"),"10"),i=parseInt(c.css("height"),10)||h*3,e=parseInt(c.css("max-height"),10)||Number.MAX_VALUE,l=0;if(e<0)e=Number.MAX_VALUE;d.appendTo(c.parent());var j=b.length;while(j--)d.css(b[j].toString(),c.css(b[j].toString()));function k(){curatedWidth=Math.floor(parseInt(c.width(),10));if(d.width()!==curatedWidth){d.css({width:curatedWidth+"px"});f(true)}}function g(d,b){var a=Math.floor(parseInt(d,10));if(c.height()!==a){c.css({height:a+"px",overflow:b});c.trigger("resize")}}function f(j){var b=c.val().replace(/&/g,"&amp;").replace(/ {2}/g,"&nbsp;").replace(/<|>/g,"&gt;").replace(/\n/g,"<br />"),f=d.html().replace(/<br>/ig,"<br />");if(j||b+"&nbsp;"!==f){d.html(b+"&nbsp;");if(Math.abs(d.height()+h-c.height())>3){var a=d.height()+h;if(a>=e)g(e,"auto");else if(a<=i)g(i,"hidden");else g(a,"hidden")}}}c.css({overflow:"hidden"});c.bind("keyup change cut paste",function(){f()});$(window).bind("resize",k);c.bind("resize",k);c.bind("update",f);c.bind("blur",function(){if(d.height()<e)d.height()>i});c.bind("input paste",function(){setTimeout(f,250)});f()})}})})(jQuery);var swfobject=function(){var c="undefined",g="object",I="Shockwave Flash",U="ShockwaveFlash.ShockwaveFlash",t="application/x-shockwave-flash",H="SWFObjectExprInst",M="onreadystatechange",d=window,b=document,j=navigator,K=false,u=[Q],i=[],r=[],n=[],o,s,w,D,k=false,p=false,f,y,G=true,a=function(){var l=typeof b.getElementById!=c&&typeof b.getElementsByTagName!=c&&typeof b.createElement!=c,f=j.userAgent.toLowerCase(),h=j.platform.toLowerCase(),n=h?/win/.test(h):/win/.test(f),m=h?/mac/.test(h):/mac/.test(f),o=/webkit/.test(f)?parseFloat(f.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=!+"\131",e=[0,0,0],a=null;if(typeof j.plugins!=c&&typeof j.plugins[I]==g){a=j.plugins[I].description;if(a&&!(typeof j.mimeTypes!=c&&j.mimeTypes[t]&&!j.mimeTypes[t].enabledPlugin)){K=true;i=false;a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");e[0]=parseInt(a.replace(/^(.*)\..*$/,"$1"),10);e[1]=parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10);e[2]=/[a-zA-Z]/.test(a)?parseInt(a.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof d.ActiveXObject!=c)try{var k=new ActiveXObject(U);if(k){a=k.GetVariable("$version");if(a){i=true;a=a.split(" ")[1].split(",");e=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]}}}catch(p){}return{w3:l,pv:e,wk:o,ie:i,win:n,mac:m}}(),W=function(){if(!a.w3)return;(typeof b.readyState!=c&&b.readyState=="complete"||typeof b.readyState==c&&(b.getElementsByTagName("body")[0]||b.body))&&m();if(!k){typeof b.addEventListener!=c&&b.addEventListener("DOMContentLoaded",m,false);if(a.ie&&a.win){b.attachEvent(M,function(){if(b.readyState=="complete"){b.detachEvent(M,arguments.callee);m()}});d==top&&(function(){if(k)return;try{b.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}m()})()}a.wk&&(function(){if(k)return;if(!/loaded|complete/.test(b.readyState)){setTimeout(arguments.callee,0);return}m()})();J(m)}}();function m(){if(k)return;try{var c=b.getElementsByTagName("body")[0].appendChild(h("span"));c.parentNode.removeChild(c)}catch(e){return}k=true;for(var d=u.length,a=0;a<d;a++)u[a]()}function E(a){if(k)a();else u[u.length]=a}function J(a){if(typeof d.addEventListener!=c)d.addEventListener("load",a,false);else if(typeof b.addEventListener!=c)b.addEventListener("load",a,false);else if(typeof d.attachEvent!=c)R(d,"onload",a);else if(typeof d.onload=="function"){var e=d.onload;d.onload=function(){e();a()}}else d.onload=a}function Q(){if(K)T();else z()}function T(){var f=b.getElementsByTagName("body")[0],e=h(g);e.setAttribute("type",t);var d=f.appendChild(e);if(d){var i=0;(function(){if(typeof d.GetVariable!=c){var b=d.GetVariable("$version");if(b){b=b.split(" ")[1].split(",");a.pv=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)]}}else if(i<10){i++;setTimeout(arguments.callee,10);return}f.removeChild(e);d=null;z()})()}else z()}function z(){var o=i.length;if(o>0)for(var g=0;g<o;g++){var h=i[g].id,f=i[g].callbackFn,d={success:false,id:h};if(a.pv[0]>0){var b=e(h);if(b)if(q(i[g].swfVersion)&&!(a.wk&&a.wk<312)){l(h,true);if(f){d.success=true;d.ref=C(h);f(d)}}else if(i[g].expressInstall&&v()){var j={};j.data=i[g].expressInstall;j.width=b.getAttribute("width")||"0";j.height=b.getAttribute("height")||"0";if(b.getAttribute("class"))j.styleclass=b.getAttribute("class");if(b.getAttribute("align"))j.align=b.getAttribute("align");for(var p={},m=b.getElementsByTagName("param"),r=m.length,k=0;k<r;k++)if(m[k].getAttribute("name").toLowerCase()!="movie")p[m[k].getAttribute("name")]=m[k].getAttribute("value");A(j,p,h,f)}else{S(b);f&&f(d)}}else{l(h,true);if(f){var n=C(h);if(n&&typeof n.SetVariable!=c){d.success=true;d.ref=n}f(d)}}}}function C(f){var b=null,a=e(f);if(a&&a.nodeName=="OBJECT")if(typeof a.SetVariable!=c)b=a;else{var d=a.getElementsByTagName(g)[0];if(d)b=d}return b}function v(){return!p&&q("6.0.65")&&(a.win||a.mac)&&!(a.wk&&a.wk<312)}function A(g,j,i,n){p=true;w=n||null;D={success:false,id:i};var f=e(i);if(f){if(f.nodeName=="OBJECT"){o=x(f);s=null}else{o=f;s=i}g.id=H;if(typeof g.width==c||!/%$/.test(g.width)&&parseInt(g.width,10)<310)g.width="310";if(typeof g.height==c||!/%$/.test(g.height)&&parseInt(g.height,10)<137)g.height="137";b.title=b.title.slice(0,47)+" - Flash Player Installation";var m=a.ie&&a.win?"ActiveX":"PlugIn",k="MMredirectURL="+d.location.toString().replace(/&/g,"%26")+"&MMplayerType="+m+"&MMdoctitle="+b.title;if(typeof j.flashvars!=c)j.flashvars+="&"+k;else j.flashvars=k;if(a.ie&&a.win&&f.readyState!=4){var l=h("div");i+="SWFObjectNew";l.setAttribute("id",i);f.parentNode.insertBefore(l,f);f.style.display="none";(function(){if(f.readyState==4)f.parentNode.removeChild(f);else setTimeout(arguments.callee,10)})()}B(g,j,i)}}function S(b){if(a.ie&&a.win&&b.readyState!=4){var c=h("div");b.parentNode.insertBefore(c,b);c.parentNode.replaceChild(x(b),c);b.style.display="none";(function(){if(b.readyState==4)b.parentNode.removeChild(b);else setTimeout(arguments.callee,10)})()}else b.parentNode.replaceChild(x(b),b)}function x(e){var d=h("div");if(a.win&&a.ie)d.innerHTML=e.innerHTML;else{var f=e.getElementsByTagName(g)[0];if(f){var b=f.childNodes;if(b)for(var i=b.length,c=0;c<i;c++)!(b[c].nodeType==1&&b[c].nodeName=="PARAM")&&!(b[c].nodeType==8)&&d.appendChild(b[c].cloneNode(true))}}return d}function B(b,i,q){var n,l=e(q);if(a.wk&&a.wk<312)return n;if(l){if(typeof b.id==c)b.id=q;if(a.ie&&a.win){var o="";for(var d in b)if(b[d]!=Object.prototype[d])if(d.toLowerCase()=="data")i.movie=b[d];else if(d.toLowerCase()=="styleclass")o+=' class="'+b[d]+'"';else if(d.toLowerCase()!="classid")o+=" "+d+'="'+b[d]+'"';var p="";for(var m in i)if(i[m]!=Object.prototype[m])p+='<param name="'+m+'" value="'+i[m]+'" />';l.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+o+">"+p+"</object>";r[r.length]=b.id;n=e(b.id)}else{var j=h(g);j.setAttribute("type",t);for(var f in b)if(b[f]!=Object.prototype[f])if(f.toLowerCase()=="styleclass")j.setAttribute("class",b[f]);else f.toLowerCase()!="classid"&&j.setAttribute(f,b[f]);for(var k in i)i[k]!=Object.prototype[k]&&k.toLowerCase()!="movie"&&P(j,k,i[k]);l.parentNode.replaceChild(j,l);n=j}}return n}function P(d,b,c){var a=h("param");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a)}function N(c){var b=e(c);if(b&&b.nodeName=="OBJECT")if(a.ie&&a.win){b.style.display="none";(function(){if(b.readyState==4)O(c);else setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)}function O(c){var a=e(c);if(a){for(var b in a)if(typeof a[b]=="function")a[b]=null;a.parentNode.removeChild(a)}}function e(c){var a=null;try{a=b.getElementById(c)}catch(d){}return a}function h(a){return b.createElement(a)}function R(c,a,b){c.attachEvent(a,b);n[n.length]=[c,a,b]}function q(d){var c=a.pv,b=d.split(".");b[0]=parseInt(b[0],10);b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return c[0]>b[0]||c[0]==b[0]&&c[1]>b[1]||c[0]==b[0]&&c[1]==b[1]&&c[2]>=b[2]?true:false}function L(k,l,d,m){if(a.ie&&a.mac)return;var j=b.getElementsByTagName("head")[0];if(!j)return;var e=d&&typeof d=="string"?d:"screen";if(m){f=null;y=null}if(!f||y!=e){var i=h("style");i.setAttribute("type","text/css");i.setAttribute("media",e);f=j.appendChild(i);if(a.ie&&a.win&&typeof b.styleSheets!=c&&b.styleSheets.length>0)f=b.styleSheets[b.styleSheets.length-1];y=e}if(a.ie&&a.win)f&&typeof f.addRule==g&&f.addRule(k,l);else f&&typeof b.createTextNode!=c&&f.appendChild(b.createTextNode(k+" {"+l+"}"))}function l(a,c){if(!G)return;var b=c?"visible":"hidden";if(k&&e(a))e(a).style.visibility=b;else L("#"+a,"visibility:"+b)}function F(a){var d=/[\\\"<>\.;]/,b=d.exec(a)!=null;return b&&typeof encodeURIComponent!=c?encodeURIComponent(a):a}var V=function(){a.ie&&a.win&&window.attachEvent("onunload",function(){for(var d=n.length,b=0;b<d;b++)n[b][0].detachEvent(n[b][1],n[b][2]);for(var g=r.length,c=0;c<g;c++)N(r[c]);for(var f in a)a[f]=null;a=null;for(var e in swfobject)swfobject[e]=null;swfobject=null})}();return{registerObject:function(c,e,f,d){if(a.w3&&c&&e){var b={};b.id=c;b.swfVersion=e;b.expressInstall=f;b.callbackFn=d;i[i.length]=b;l(c,false)}else d&&d({success:false,id:c})},getObjectById:function(b){if(a.w3)return C(b)},embedSWF:function(n,b,j,k,o,m,e,f,h,d){var i={success:false,id:b};if(a.w3&&!(a.wk&&a.wk<312)&&n&&b&&j&&k&&o){l(b,false);E(function(){j+="";k+="";var a={};if(h&&typeof h===g)for(var t in h)a[t]=h[t];a.data=n;a.width=j;a.height=k;var p={};if(f&&typeof f===g)for(var s in f)p[s]=f[s];if(e&&typeof e===g)for(var r in e)if(typeof p.flashvars!=c)p.flashvars+="&"+r+"="+e[r];else p.flashvars=r+"="+e[r];if(q(o)){var u=B(a,p,b);a.id==b&&l(b,true);i.success=true;i.ref=u}else if(m&&v()){a.data=m;A(a,p,b,d);return}else l(b,true);d&&d(i)})}else d&&d(i)},switchOffAutoHideShow:function(){G=false},ua:a,getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:q,createSWF:function(d,c,b){return a.w3?B(d,c,b):undefined},showExpressInstall:function(e,b,c,d){a.w3&&v()&&A(e,b,c,d)},removeSWF:function(b){a.w3&&N(b)},createCSS:function(b,e,d,c){a.w3&&L(b,e,d,c)},addDomLoadEvent:E,addLoadEvent:J,getQueryParamValue:function(e){var c=b.location.search||b.location.hash;if(c){if(/\?/.test(c))c=c.split("?")[1];if(e==null)return F(c);for(var d=c.split("&"),a=0;a<d.length;a++)if(d[a].substring(0,d[a].indexOf("="))==e)return F(d[a].substring(d[a].indexOf("=")+1))}return""},expressInstallCallback:function(){if(p){var b=e(H);if(b&&o){b.parentNode.replaceChild(o,b);if(s){l(s,true);if(a.ie&&a.win)o.style.display="block"}w&&w(D)}p=false}}}}();function open_win(a){window.open(a,"welcome","width=600,height=400,menubar=no,status=no, location=no,toolbar=no,scrollbars=yes")}$(document).ready(function(){$(".crm_window").colorbox({iframe:true,innerWidth:600,innerHeight:300});$(".crm_pass").colorbox({iframe:true,innerWidth:500,innerHeight:360});$("#home-content").masonry({singleMode:true})})
