function convertEntities(c){var f,e;f=function(b){if(/&[^;]+;/.test(b)){var a=document.createElement("div");a.innerHTML=b;return !a.firstChild?b:a.firstChild.nodeValue}return b};if(typeof c==="string"){return f(c)}else{if(typeof c==="object"){for(e in c){if(typeof c[e]==="string"){c[e]=f(c[e])}}}}return c}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}});(function(e){e.prettyPhoto={version:"3.1.3"};e.fn.prettyPhoto=function(g){g=jQuery.extend({animation_speed:"fast",slideshow:5000,autoplay_slideshow:false,opacity:0.8,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,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> 											<div class="pp_social">{pp_social}</div> 											<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:'<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="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},g);var o=this,m=false,u,s,t,v,y,z,i=e(window).height(),C=e(window).width(),j;doresize=true,scroll_pos=A();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){r();x()});if(g.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(D){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(D.keyCode){case 37:e.prettyPhoto.changePage("previous");D.preventDefault();break;case 39:e.prettyPhoto.changePage("next");D.preventDefault();break;case 27:if(!settings.modal){e.prettyPhoto.close()}D.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=g;if(settings.theme=="pp_default"){settings.horizontal_padding=16}if(settings.ie6_fallback&&e.browser.msie&&parseInt(e.browser.version)==6){settings.theme="light_square"}theRel=e(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(o,function(E,D){if(e(E).attr("rel").indexOf(theRel)!=-1){return e(E).attr("href")}}):e.makeArray(e(this).attr("href"));pp_titles=(isSet)?jQuery.map(o,function(E,D){if(e(E).attr("rel").indexOf(theRel)!=-1){return(e(E).find("img").attr("alt"))?e(E).find("img").attr("alt"):""}}):e.makeArray(e(this).find("img").attr("alt"));pp_descriptions=(isSet)?jQuery.map(o,function(E,D){if(e(E).attr("rel").indexOf(theRel)!=-1){return(e(E).attr("title"))?e(E).attr("title"):""}}):e.makeArray(e(this).attr("title"));if(pp_images.length>30){settings.overlay_gallery=false}set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=(isSet)?set_position:e("a[rel^='"+theRel+"']").index(e(this));h(this);if(settings.allow_resize){e(window).bind("scroll.prettyphoto",function(){r()})}e.prettyPhoto.open();return false};e.prettyPhoto.open=function(D){if(typeof settings=="undefined"){settings=g;if(e.browser.msie&&e.browser.version==6){settings.theme="light_square"}pp_images=e.makeArray(arguments[0]);pp_titles=(arguments[1])?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=(arguments[2])?e.makeArray(arguments[2]):e.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;h(D.target)}if(e.browser.msie&&e.browser.version==6){e("select").css("visibility","hidden")}if(settings.hideflash){e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden")}l(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking){b()}if(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)}if($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+e(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=(parseFloat(a("width",pp_images[set_position])))?a("width",pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(a("height",pp_images[set_position])))?a("height",pp_images[set_position]):settings.default_height.toString();m=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat((e(window).height()*parseFloat(movie_height)/100)-150);m=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat((e(window).width()*parseFloat(movie_width)/100)-150);m=true}$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("&nbsp;");imgPreloader="";skipInjection=false;switch(B(pp_images[set_position])){case"image":imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<e(pp_images).size()-1){nextImage.src=pp_images[set_position+1]}prevImage=new Image();if(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(){u=q(imgPreloader.width,imgPreloader.height);k()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");e.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":u=q(movie_width,movie_height);movie_id=a("v",pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split("youtu.be/");movie_id=movie_id[1];if(movie_id.indexOf("?")>0){movie_id=movie_id.substr(0,movie_id.indexOf("?"))}if(movie_id.indexOf("&")>0){movie_id=movie_id.substr(0,movie_id.indexOf("&"))}}movie="http://www.youtube.com/embed/"+movie_id;(a("rel",pp_images[set_position]))?movie+="?rel="+a("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay){movie+="&autoplay=1"}toInject=settings.iframe_markup.replace(/{width}/g,u.width).replace(/{height}/g,u.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":u=q(movie_width,movie_height);movie_id=pp_images[set_position];var F=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var E=movie_id.match(F);movie="http://player.vimeo.com/video/"+E[2]+"?title=0&amp;byline=0&amp;portrait=0";if(settings.autoplay){movie+="&autoplay=1;"}vimeo_width=u.width+"/embed/?moog_width="+u.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,u.height).replace(/{path}/g,movie);break;case"quicktime":u=q(movie_width,movie_height);u.height+=15;u.contentHeight+=15;u.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,u.width).replace(/{height}/g,u.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":u=q(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,u.width).replace(/{height}/g,u.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":u=q(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,u.width).replace(/{height}/g,u.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;u=q(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(G){toInject=settings.inline_markup.replace(/{content}/g,G);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;k()});break;case"custom":u=q(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(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(e("body")).show();doresize=false;u=q(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;k()}});return false};e.prettyPhoto.changePage=function(D){currentGalleryPage=0;if(D=="previous"){set_position--;if(set_position<0){set_position=e(pp_images).size()-1}}else{if(D=="next"){set_position++;if(set_position>e(pp_images).size()-1){set_position=0}}else{set_position=D}}rel_index=set_position;if(!doresize){doresize=true}e(".pp_contract").removeClass("pp_contract").addClass("pp_expand");p(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(D){if(D=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage){currentGalleryPage=0}}else{if(D=="previous"){currentGalleryPage--;if(currentGalleryPage<0){currentGalleryPage=totalPage}}else{currentGalleryPage=D}}slide_speed=(D=="next"||D=="previous")?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof j=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});j=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(j);j=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated")){return}e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(e.browser.msie&&e.browser.version==6){e("select").css("visibility","visible")}if(settings.hideflash){e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible")}e(this).remove();e(window).unbind("scroll.prettyphoto");c();settings.callback();doresize=true;s=false;delete settings})};function k(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos.scrollTop+((i/2)-(u.containerHeight/2));if(projectedTop<0){projectedTop=0}$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:u.contentHeight,width:u.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:(C/2)-(u.containerWidth/2),width:u.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(u.height).width(u.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&B(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(u.resized){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}if(settings.autoplay_slideshow&&!j&&!s){e.prettyPhoto.startSlideshow()}settings.changepicturecallback();s=true});f()}function p(D){$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(){e(".pp_loaderIcon").show();D()})}function l(D){(D>1)?e(".pp_nav").show():e(".pp_nav").hide()}function q(E,D){resized=false;w(E,D);imageWidth=E,imageHeight=D;if(((z>C)||(y>i))&&doresize&&settings.allow_resize&&!m){resized=true,fitting=false;while(!fitting){if((z>C)){imageWidth=(C-200);imageHeight=(D/E)*imageWidth}else{if((y>i)){imageHeight=(i-200);imageWidth=(E/D)*imageHeight}else{fitting=true}}y=imageHeight,z=imageWidth}w(imageWidth,imageHeight);if((z>C)||(y>i)){q(z,y)}}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(y),containerWidth:Math.floor(z)+(settings.horizontal_padding*2),contentHeight:Math.floor(t),contentWidth:Math.floor(v),resized:resized}}function w(E,D){E=parseFloat(E);D=parseFloat(D);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(E);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(E).appendTo(e("body")).css({position:"absolute",top:-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if(e.browser.msie&&e.browser.version==7){detailsHeight+=8}$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(E);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-10000});titleHeight+=$pp_title.height();$pp_title.remove();t=D+detailsHeight;v=E;y=t+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();z=E}function B(D){if(D.match(/youtube\.com\/watch/i)||D.match(/youtu\.be/i)){return"youtube"}else{if(D.match(/vimeo\.com/i)){return"vimeo"}else{if(D.match(/\b.mov\b/i)){return"quicktime"}else{if(D.match(/\b.swf\b/i)){return"flash"}else{if(D.match(/\biframe=true\b/i)){return"iframe"}else{if(D.match(/\bajax=true\b/i)){return"ajax"}else{if(D.match(/\bcustom=true\b/i)){return"custom"}else{if(D.substr(0,1)=="#"){return"inline"}else{return"image"}}}}}}}}}function r(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=A();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(i/2)+scroll_pos.scrollTop-(contentHeight/2);if(projectedTop<0){projectedTop=0}if(contentHeight>i){return}$pp_pic_holder.css({top:projectedTop,left:(C/2)+scroll_pos.scrollLeft-(contentwidth/2)})}}function A(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else{if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else{if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}}}function x(){i=e(window).height(),C=e(window).width();if(typeof $pp_overlay!="undefined"){$pp_overlay.height(e(document).height()).width(C)}}function f(){if(isSet&&settings.overlay_gallery&&B(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!(e.browser.msie&&parseInt(e.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((u.containerWidth-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()}else{$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;e.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}}function h(D){if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))}settings.markup=settings.markup.replace("{pp_social}",(settings.social_tools)?facebook_like_link:"");e("body").append(settings.markup);$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var E=0;E<pp_images.length;E++){if(!pp_images[E].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname="default";img_src=""}else{classname="";img_src=pp_images[E]}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=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.prettyPhoto.stopSlideshow();return false});$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=52+5;$pp_gallery_li.each(function(F){e(this).find("a").click(function(){e.prettyPhoto.changePage(F);e.prettyPhoto.stopSlideshow();return false})})}if(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(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal){e.prettyPhoto.close()}});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});e("a.pp_expand").bind("click",function(F){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}p(function(){e.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});r()}if(!pp_alreadyInitialized&&d()){pp_alreadyInitialized=true;hashIndex=d();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};function d(){url=location.href;hashtag=(url.indexOf("#!")!=-1)?decodeURI(url.substring(url.indexOf("#!")+2,url.length)):false;return hashtag}function b(){if(typeof theRel=="undefined"){return}location.hash="!"+theRel+"/"+rel_index+"/"}function c(){url=location.href;hashtag=(url.indexOf("#!prettyPhoto"))?true:false;if(hashtag){location.hash="!prettyPhoto"}}function a(h,g){h=h.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var f="[\\?&]"+h+"=([^&#]*)";var j=new RegExp(f);var i=j.exec(g);return(i==null)?"":i[1]}})(jQuery);var pp_alreadyInitialized=false;(function(a){a.fn.quovolver=function(g,f){if(!g){g=500}if(!f){f=6000}var e=(g*4);if(e>(f)){f=e}var d=a(this),c=a(this).filter(":first"),h=a(this).filter(":last"),b='<div id="quote_wrap"></div>';a(this).wrapAll(b);a(this).hide();a(c).show();a(this).parent().css({height:a(c).height()});setInterval(function(){if(a(h).is(":visible")){var i=a(c);var j=a(i).height()}else{var i=a(d).filter(":visible").next();var j=a(i).height()}a(d).filter(":visible").fadeOut(g);setTimeout(function(){a(d).parent().animate({height:j},g)},g);if(a(h).is(":visible")){setTimeout(function(){a(c).fadeIn(g*2)},g*2)}else{setTimeout(function(){a(i).fadeIn(g)},g*2)}},f)}})(jQuery);(function(a){a.plusSlider=function(d,c){var e=this;e.$el=a(d);e.el=d;e.$el.data("plusSlider",e);var b=a(window).height();if(b<680){a("#slideshow").addClass("small-res")}e.init=function(){e.options=a.extend({},a.plusSlider.defaults,c);e.$slides=e.$el.children();e.$totalSlides=e.$slides.length;var j=0;var h=false;e.$el.wrap('<div class="plusSlider" />');e.$slides.addClass("child");e.$slides.eq(0).addClass("current");if(e.options.sliderType=="slider"){e.$slideWidth=e.$el.find(":first").outerWidth(true);e.$sliderWidth=e.$slideWidth*e.$totalSlides;e.$stopPosition=e.$sliderWidth-e.$slideWidth;e.$el.width(e.$sliderWidth);e.$el.children().show();e.$el.find(":first").find(".titles h2.first-title").animate({bottom:80},700,"easeInOutExpo").parent().parent().siblings().find(".titles h2.first-title").animate({bottom:-80},200);e.$el.find(":first").find(".titles h2.second-title").animate({bottom:80},1000,"easeInOutExpo").parent().parent().siblings().find(".titles h2.second-title").animate({bottom:-80},200)}else{e.$el.parent().addClass("fader");e.$el.children(":first").show();e.$el.children(":first").find(".titles h2.first-title").animate({bottom:80},700,"easeInOutExpo").parent().parent().siblings().find(".titles h2.first-title").animate({bottom:-80},200);e.$el.children(":first").find(".titles h2.second-title").animate({bottom:80},1000,"easeInOutExpo").parent().parent().siblings().find(".titles h2.second-title").animate({bottom:-80},200)}if(e.$totalSlides===1){e.options.autoPlay=false;e.options.createArrows=false;e.options.createPagination=false}if(e.options.width){e.$el.parent().width(e.options.width);e.$el.parent().css("margin-left","-"+(e.options.width/2)+"px")}if(e.options.height){e.$el.parent().height(e.options.height)}if(e.options.createPagination){if(e.options.paginationBefore){e.$el.before('<div class="plusSlider-controls" />');e.$sliderControls=e.$el.prev(".plusSlider-controls")}else{e.$el.after('<div class="plusSlider-controls" />');e.$sliderControls=e.$el.next(".plusSlider-controls")}e.$sliderControls.wrap('<div class="plusSlider-controls-wrapper" />');for(var g=0;g<e.$totalSlides;g++){e.$sliderControls.append('<a href="#" rel="'+g+'">'+(g+1)+"</a>")}if(e.options.paginationWidth){e.$sliderControls.width(e.$sliderControls.find("a").outerWidth(true)*e.$totalSlides)}var f=a(window).height();if(f<680){e.$sliderControls.parent().css({bottom:"auto",top:(f-40)+"px"})}if(e.options.sliderType=="slider"){e.$sliderControls.find("a").click(function(){var i=a(this);if(!e.$slides.is(":animated")){e.$rel=i.attr("rel");e.$slides.eq(e.$rel).addClass("current").siblings().removeClass("current");i.addClass("current").siblings().removeClass("current");e.$el.animate({left:e.$slideWidth*e.$rel*-1+"px"},e.options.speed,e.options.sliderEasing);if(e.options.autoPlay){e.clearTimer();e.beginTimer()}e.$slides.eq(e.$rel).find(".titles h2.first-title").animate({bottom:80},700,"easeInOutExpo").parent().parent().siblings().find(".titles h2.first-title").animate({bottom:-80},200);e.$slides.eq(e.$rel).find(".titles h2.second-title").animate({bottom:80},1000,"easeInOutExpo").parent().parent().siblings().find(".titles h2.second-title").animate({bottom:-80},200)}return false})}else{e.$sliderControls.find("a").click(function(){var i=a(this);if(!e.$slides.is(":animated")){i.addClass("current").siblings().removeClass("current");e.$slides.eq(i.attr("rel")).siblings().css("zIndex",50).removeClass("current");e.$slides.eq(i.attr("rel")).css("zIndex",100).addClass("current").fadeIn(e.options.speed,function(){e.$slides.not(".current").hide()});if(e.options.autoPlay){e.clearTimer();e.beginTimer()}e.$el.children(".current").find(".titles h2.first-title").animate({bottom:80},{duration:700,queue:false}).parent().parent().siblings().find(".titles h2.first-title").animate({bottom:-80},{duration:700,queue:false});e.$el.children(".current").find(".titles h2.second-title").animate({bottom:80},{duration:1000,queue:false}).parent().parent().siblings().find(".titles h2.second-title").animate({bottom:-80},{duration:1000,queue:false})}return false})}e.$sliderControls.find("a").eq(0).addClass("current")}if(e.options.sliderType=="slider"){e.nextSlide=function(i){if(i!==false){i=true}if(i==true&&!e.$el.is(":animated")){if(e.$el.position().left>(e.$stopPosition-1)*-1){if(e.options.createPagination){e.$sliderControls.find("a.current").removeClass("current").next().addClass("current")}e.$el.animate({left:"-="+e.$slideWidth+"px"},e.options.speed,e.options.sliderEasing);e.$el.find(".current").removeClass("current").next().addClass("current")}else{if(e.options.createPagination){e.$sliderControls.find("a:last").removeClass("current").siblings("a:first").addClass("current")}e.$el.animate({left:0},e.options.speed,e.options.sliderEasing);e.$slides.removeClass("current").eq(0).addClass("current")}}else{if(i==false&&!e.$el.is(":animated")){if(e.$el.position().left<0&&!e.$slides.is(":animated")){if(e.options.createPagination){e.$sliderControls.find("a.current").removeClass("current").prev().addClass("current")}e.$el.animate({left:"+="+e.$slideWidth+"px"},e.options.speed,e.options.sliderEasing);e.$el.find(".current").removeClass("current").prev().addClass("current")}else{if(e.options.createPagination){e.$sliderControls.find("a:first").removeClass("current").siblings("a:last").addClass("current")}e.$el.animate({left:"-="+e.$stopPosition+"px"},e.options.speed,e.options.sliderEasing);e.$slides.removeClass("current");e.$el.children(":last").addClass("current")}}}e.$el.children(".current").find(".titles h2.first-title").animate({bottom:80},{duration:700,queue:false}).parent().parent().siblings().find(".titles h2.first-title").animate({bottom:-80},{duration:700,queue:false});e.$el.children(".current").find(".titles h2.second-title").animate({bottom:80},{duration:1000,queue:false}).parent().parent().siblings().find(".titles h2.second-title").animate({bottom:-80},{duration:1000,queue:false});if(e.options.autoPlay){e.clearTimer();e.beginTimer()}}}else{e.nextSlide=function(i){if(i!==false){i=true}if(i==true&&!e.$slides.is(":animated")){if(e.$el.children(":last").is(".current")){if(e.options.createPagination){e.$sliderControls.find("a:last").removeClass("current").siblings("a:first").addClass("current")}e.$el.children(".current").removeClass("current").css("zIndex",60).siblings().css("zIndex",50);e.$el.children(":first").css("zIndex",100).addClass("current").fadeIn(e.options.speed,function(){e.$slides.not(".current").hide()})}else{if(e.options.createPagination){e.$sliderControls.find("a.current").removeClass("current").next().addClass("current")}e.$el.children(".current").removeClass("current").css("zIndex",60).siblings().css("zIndex",50).end().next().css("zIndex",100).addClass("current").fadeIn(e.options.speed,function(){e.$slides.not(".current").hide()})}}else{if(i==false&&!e.$slides.is(":animated")){if(e.$el.children(":first").is(".current")){if(e.options.createPagination){e.$sliderControls.find("a:first").removeClass("current").siblings("a:last").addClass("current")}e.$el.children(".current").removeClass("current").css("zIndex",60).siblings().css("zIndex",50);e.$el.children(":last").css("zIndex",100).addClass("current").fadeIn(e.options.speed,function(){e.$slides.not(".current").hide()})}else{if(!e.$slides.is(":animated")){if(e.options.createPagination){e.$sliderControls.find("a.current").removeClass("current").prev().addClass("current")}e.$el.children(".current").removeClass("current").siblings().css("zIndex",50).end().css("zIndex",60).prev().css("zIndex",100).addClass("current").fadeIn(e.options.speed,function(){e.$slides.not(".current").hide()})}}}}e.$el.children(".current").find(".titles h2.first-title").animate({bottom:80},700,"easeInOutExpo").parent().parent().siblings().find(".titles h2.first-title").animate({bottom:-80},200);e.$el.children(".current").find(".titles h2.second-title").animate({bottom:80},1000,"easeInOutExpo").parent().parent().siblings().find(".titles h2.second-title").animate({bottom:-80},200);if(e.options.autoPlay){e.clearTimer();e.beginTimer()}}}if(e.options.autoPlay){e.clearTimer=function(){if(e.timer){window.clearInterval(e.timer)}};e.beginTimer=function(){e.timer=window.setInterval(function(){j++;if(j*1000>e.options.displayTime&&h==false){e.nextSlide();j=0}},1000)};e.beginTimer();if(e.options.pauseOnHover){e.$el.hover(function(){h=true},function(){h=false})}}if(e.options.createArrows){e.$el.parent().before('<a class="arrow prev" href="#">prev</a><a class="arrow next" href="#">next</a>').siblings(".next").click(function(){e.nextSlide();return false});e.$el.parent().siblings(".prev").click(function(){e.nextSlide(false);return false});var f=a(window).height();if(f<680){e.$el.parent().siblings(".prev").css({bottom:"auto",top:(f-60)+"px"})}}if(e.options.keyboardNavigation){e.$el.click(function(){a(".activePlusSlider").removeClass("activePlusSlider");a(this).addClass("activePlusSlider")});a(window).keyup(function(i){if(e.$el.is(".activePlusSlider")){if(i.keyCode==39){e.nextSlide()}else{if(i.keyCode==37){e.nextSlide(false)}}}})}};e.init()};a.plusSlider.defaults={createArrows:true,createPagination:true,paginationBefore:false,paginationWidth:true,displayTime:4000,speed:500,autoPlay:true,keyboardNavigation:true,pauseOnHover:true,sliderEasing:"linear",sliderType:"slider",width:false,height:false};a.fn.plusSlider=function(b){return this.each(function(){(new a.plusSlider(this,b))})}})(jQuery);(function(b){var a=function(m,t){var j=b.extend({},b.fn.nivoSlider.defaults,t);var q={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false};var d=b(m);d.data("nivo:vars",q);d.css("position","relative");d.addClass("nivoSlider");var e=d.children();e.each(function(){var w=b(this);var v="";if(!w.is("img")){if(w.is("a")){w.addClass("nivo-imageLink");v=w}w=w.find("img:first")}var u=w.width();if(u==0){u=w.attr("width")}var i=w.height();if(i==0){i=w.attr("height")}if(u>d.width()){d.width(u)}if(i>d.height()){d.height(i)}if(v!=""){v.css("display","none")}w.css("display","none");q.totalSlides++});if(j.startSlide>0){if(j.startSlide>=q.totalSlides){j.startSlide=q.totalSlides-1}q.currentSlide=j.startSlide}if(b(e[q.currentSlide]).is("img")){q.currentImage=b(e[q.currentSlide])}else{q.currentImage=b(e[q.currentSlide]).find("img:first")}if(b(e[q.currentSlide]).is("a")){b(e[q.currentSlide]).css("display","block")}d.css("background",'url("'+q.currentImage.attr("src")+'") no-repeat');d.append(b('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:j.captionOpacity}));var r=function(i){var v=b(".nivo-caption",d);if(q.currentImage.attr("title")!=""&&q.currentImage.attr("title")!=undefined){var u=q.currentImage.attr("title");if(u.substr(0,1)=="#"){u=b(u).html()}if(v.css("display")=="block"){v.find("p").fadeOut(i.animSpeed,function(){b(this).html(u);b(this).fadeIn(i.animSpeed)})}else{v.find("p").html(u)}v.fadeIn(i.animSpeed)}else{v.fadeOut(i.animSpeed)}};r(j);var c=0;if(!j.manualAdvance&&e.length>1){c=setInterval(function(){s(d,e,j,false)},j.pauseTime)}if(j.directionNav){d.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+j.prevText+'</a><a class="nivo-nextNav">'+j.nextText+"</a></div>");if(j.directionNavHide){b(".nivo-directionNav",d).hide();d.hover(function(){b(".nivo-directionNav",d).show()},function(){b(".nivo-directionNav",d).hide()})}b("a.nivo-prevNav",d).live("click",function(){if(q.running){return false}clearInterval(c);c="";q.currentSlide-=2;s(d,e,j,"prev")});b("a.nivo-nextNav",d).live("click",function(){if(q.running){return false}clearInterval(c);c="";s(d,e,j,"next")})}if(j.controlNav){var o=b('<div class="nivo-controlNav"></div>');d.append(o);for(var l=0;l<e.length;l++){if(j.controlNavThumbs){var f=e.eq(l);if(!f.is("img")){f=f.find("img:first")}if(j.controlNavThumbsFromRel){o.append('<a class="nivo-control" rel="'+l+'"><img src="'+f.attr("rel")+'" alt="" /></a>')}else{o.append('<a class="nivo-control" rel="'+l+'"><img src="'+f.attr("src").replace(j.controlNavThumbsSearch,j.controlNavThumbsReplace)+'" alt="" /></a>')}}else{o.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>")}}b(".nivo-controlNav a:eq("+q.currentSlide+")",d).addClass("active");b(".nivo-controlNav a",d).live("click",function(){if(q.running){return false}if(b(this).hasClass("active")){return false}clearInterval(c);c="";d.css("background",'url("'+q.currentImage.attr("src")+'") no-repeat');q.currentSlide=b(this).attr("rel")-1;s(d,e,j,"control")})}if(j.keyboardNav){b(window).keypress(function(i){if(i.keyCode=="37"){if(q.running){return false}clearInterval(c);c="";q.currentSlide-=2;s(d,e,j,"prev")}if(i.keyCode=="39"){if(q.running){return false}clearInterval(c);c="";s(d,e,j,"next")}})}if(j.pauseOnHover){d.hover(function(){q.paused=true;clearInterval(c);c=""},function(){q.paused=false;if(c==""&&!j.manualAdvance){c=setInterval(function(){s(d,e,j,false)},j.pauseTime)}})}d.bind("nivo:animFinished",function(){q.running=false;b(e).each(function(){if(b(this).is("a")){b(this).css("display","none")}});if(b(e[q.currentSlide]).is("a")){b(e[q.currentSlide]).css("display","block")}if(c==""&&!q.paused&&!j.manualAdvance){c=setInterval(function(){s(d,e,j,false)},j.pauseTime)}j.afterChange.call(this)});var g=function(w,v,y){for(var u=0;u<v.slices;u++){var x=Math.round(w.width()/v.slices);if(u==v.slices-1){w.append(b('<div class="nivo-slice"></div>').css({left:(x*u)+"px",width:(w.width()-(x*u))+"px",height:"0px",opacity:"0",background:'url("'+y.currentImage.attr("src")+'") no-repeat -'+((x+(u*x))-x)+"px 0%"}))}else{w.append(b('<div class="nivo-slice"></div>').css({left:(x*u)+"px",width:x+"px",height:"0px",opacity:"0",background:'url("'+y.currentImage.attr("src")+'") no-repeat -'+((x+(u*x))-x)+"px 0%"}))}}};var h=function(v,i,y){var u=Math.round(v.width()/i.boxCols);var z=Math.round(v.height()/i.boxRows);for(var w=0;w<i.boxRows;w++){for(var x=0;x<i.boxCols;x++){if(x==i.boxCols-1){v.append(b('<div class="nivo-box"></div>').css({opacity:0,left:(u*x)+"px",top:(z*w)+"px",width:(v.width()-(u*x))+"px",height:z+"px",background:'url("'+y.currentImage.attr("src")+'") no-repeat -'+((u+(x*u))-u)+"px -"+((z+(w*z))-z)+"px"}))}else{v.append(b('<div class="nivo-box"></div>').css({opacity:0,left:(u*x)+"px",top:(z*w)+"px",width:u+"px",height:z+"px",background:'url("'+y.currentImage.attr("src")+'") no-repeat -'+((u+(x*u))-u)+"px -"+((z+(w*z))-z)+"px"}))}}}};var s=function(I,H,L,E){var G=I.data("nivo:vars");if(G&&(G.currentSlide==G.totalSlides-1)){L.lastSlide.call(this)}if((!G||G.stop)&&!E){return false}L.beforeChange.call(this);if(!E){I.css("background",'url("'+G.currentImage.attr("src")+'") no-repeat')}else{if(E=="prev"){I.css("background",'url("'+G.currentImage.attr("src")+'") no-repeat')}if(E=="next"){I.css("background",'url("'+G.currentImage.attr("src")+'") no-repeat')}}G.currentSlide++;if(G.currentSlide==G.totalSlides){G.currentSlide=0;L.slideshowEnd.call(this)}if(G.currentSlide<0){G.currentSlide=(G.totalSlides-1)}if(b(H[G.currentSlide]).is("img")){G.currentImage=b(H[G.currentSlide])}else{G.currentImage=b(H[G.currentSlide]).find("img:first")}if(L.controlNav){b(".nivo-controlNav a",I).removeClass("active");b(".nivo-controlNav a:eq("+G.currentSlide+")",I).addClass("active")}r(L);b(".nivo-slice",I).remove();b(".nivo-box",I).remove();if(L.effect=="random"){var N=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");G.randAnim=N[Math.floor(Math.random()*(N.length+1))];if(G.randAnim==undefined){G.randAnim="fade"}}if(L.effect.indexOf(",")!=-1){var N=L.effect.split(",");G.randAnim=N[Math.floor(Math.random()*(N.length))];if(G.randAnim==undefined){G.randAnim="fade"}}G.running=true;if(L.effect=="sliceDown"||L.effect=="sliceDownRight"||G.randAnim=="sliceDownRight"||L.effect=="sliceDownLeft"||G.randAnim=="sliceDownLeft"){g(I,L,G);var M=0;var J=0;var u=b(".nivo-slice",I);if(L.effect=="sliceDownLeft"||G.randAnim=="sliceDownLeft"){u=b(".nivo-slice",I)._reverse()}u.each(function(){var i=b(this);i.css({top:"0px"});if(J==L.slices-1){setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},L.animSpeed,"",function(){I.trigger("nivo:animFinished")})},(100+M))}else{setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},L.animSpeed)},(100+M))}M+=50;J++})}else{if(L.effect=="sliceUp"||L.effect=="sliceUpRight"||G.randAnim=="sliceUpRight"||L.effect=="sliceUpLeft"||G.randAnim=="sliceUpLeft"){g(I,L,G);var M=0;var J=0;var u=b(".nivo-slice",I);if(L.effect=="sliceUpLeft"||G.randAnim=="sliceUpLeft"){u=b(".nivo-slice",I)._reverse()}u.each(function(){var i=b(this);i.css({bottom:"0px"});if(J==L.slices-1){setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},L.animSpeed,"",function(){I.trigger("nivo:animFinished")})},(100+M))}else{setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},L.animSpeed)},(100+M))}M+=50;J++})}else{if(L.effect=="sliceUpDown"||L.effect=="sliceUpDownRight"||G.randAnim=="sliceUpDown"||L.effect=="sliceUpDownLeft"||G.randAnim=="sliceUpDownLeft"){g(I,L,G);var M=0;var J=0;var C=0;var u=b(".nivo-slice",I);if(L.effect=="sliceUpDownLeft"||G.randAnim=="sliceUpDownLeft"){u=b(".nivo-slice",I)._reverse()}u.each(function(){var i=b(this);if(J==0){i.css("top","0px");J++}else{i.css("bottom","0px");J=0}if(C==L.slices-1){setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},L.animSpeed,"",function(){I.trigger("nivo:animFinished")})},(100+M))}else{setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},L.animSpeed)},(100+M))}M+=50;C++})}else{if(L.effect=="fold"||G.randAnim=="fold"){g(I,L,G);var M=0;var J=0;b(".nivo-slice",I).each(function(){var i=b(this);var v=i.width();i.css({top:"0px",height:"100%",width:"0px"});if(J==L.slices-1){setTimeout(function(){i.animate({width:v,opacity:"1.0"},L.animSpeed,"",function(){I.trigger("nivo:animFinished")})},(100+M))}else{setTimeout(function(){i.animate({width:v,opacity:"1.0"},L.animSpeed)},(100+M))}M+=50;J++})}else{if(L.effect=="fade"||G.randAnim=="fade"){g(I,L,G);var A=b(".nivo-slice:first",I);A.css({height:"100%",width:I.width()+"px"});A.animate({opacity:"1.0"},(L.animSpeed*2),"",function(){I.trigger("nivo:animFinished")})}else{if(L.effect=="slideInRight"||G.randAnim=="slideInRight"){g(I,L,G);var A=b(".nivo-slice:first",I);A.css({height:"100%",width:"0px",opacity:"1"});A.animate({width:I.width()+"px"},(L.animSpeed*2),"",function(){I.trigger("nivo:animFinished")})}else{if(L.effect=="slideInLeft"||G.randAnim=="slideInLeft"){g(I,L,G);var A=b(".nivo-slice:first",I);A.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});A.animate({width:I.width()+"px"},(L.animSpeed*2),"",function(){A.css({left:"0px",right:""});I.trigger("nivo:animFinished")})}else{if(L.effect=="boxRandom"||G.randAnim=="boxRandom"){h(I,L,G);var K=L.boxCols*L.boxRows;var J=0;var M=0;var x=p(b(".nivo-box",I));x.each(function(){var i=b(this);if(J==K-1){setTimeout(function(){i.animate({opacity:"1"},L.animSpeed,"",function(){I.trigger("nivo:animFinished")})},(100+M))}else{setTimeout(function(){i.animate({opacity:"1"},L.animSpeed)},(100+M))}M+=20;J++})}else{if(L.effect=="boxRain"||G.randAnim=="boxRain"||L.effect=="boxRainReverse"||G.randAnim=="boxRainReverse"||L.effect=="boxRainGrow"||G.randAnim=="boxRainGrow"||L.effect=="boxRainGrowReverse"||G.randAnim=="boxRainGrowReverse"){h(I,L,G);var K=L.boxCols*L.boxRows;var J=0;var M=0;var z=0;var F=0;var D=new Array();D[z]=new Array();var x=b(".nivo-box",I);if(L.effect=="boxRainReverse"||G.randAnim=="boxRainReverse"||L.effect=="boxRainGrowReverse"||G.randAnim=="boxRainGrowReverse"){x=b(".nivo-box",I)._reverse()}x.each(function(){D[z][F]=b(this);F++;if(F==L.boxCols){z++;F=0;D[z]=new Array()}});for(var B=0;B<(L.boxCols*2);B++){var w=B;for(var y=0;y<L.boxRows;y++){if(w>=0&&w<L.boxCols){(function(T,O,S,P,U){var R=b(D[T][O]);var v=R.width();var Q=R.height();if(L.effect=="boxRainGrow"||G.randAnim=="boxRainGrow"||L.effect=="boxRainGrowReverse"||G.randAnim=="boxRainGrowReverse"){R.width(0).height(0)}if(P==U-1){setTimeout(function(){R.animate({opacity:"1",width:v,height:Q},L.animSpeed/1.3,"",function(){I.trigger("nivo:animFinished")})},(100+S))}else{setTimeout(function(){R.animate({opacity:"1",width:v,height:Q},L.animSpeed/1.3)},(100+S))}})(y,w,M,J,K);J++}w--}M+=100}}}}}}}}}}};var p=function(v){for(var w,u,y=v.length;y;w=parseInt(Math.random()*y),u=v[--y],v[y]=v[w],v[w]=u){}return v};var k=function(i){if(this.console&&typeof console.log!="undefined"){console.log(i)}};this.stop=function(){if(!b(m).data("nivo:vars").stop){b(m).data("nivo:vars").stop=true;k("Stop Slider")}};this.start=function(){if(b(m).data("nivo:vars").stop){b(m).data("nivo:vars").stop=false;k("Start Slider")}};j.afterLoad.call(this);return this};b.fn.nivoSlider=function(c){return this.each(function(e,g){var d=b(this);if(d.data("nivoslider")){return d.data("nivoslider")}var f=new a(this,c);d.data("nivoslider",f)})};b.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,prevText:"Prev",nextText:"Next",beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};b.fn._reverse=[].reverse})(jQuery);var $j=jQuery.noConflict();$j(function(){$j("a[href*=#]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$j(this.hash);a=a.length&&a||$j("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;$j("html,body").animate({scrollTop:b},600);return false}}})});$j(function(){$j("#go_top").css("display","none");$j(window).scroll(function(){if($j(this).scrollTop()<=200){$j("#go_top:visible").fadeOut()}else{$j("#go_top:hidden").fadeIn()}})});$j(function(){$j("#sidebar blockquote").quovolver();$j("#footer blockquote").quovolver()});$j(function(){$j("#accordion-slider li").hover(function(){$j(".title_accordion",this).stop().animate({opacity:0},{duration:500,easing:"easeOutCubic"});$j(".description",this).stop().animate({bottom:"30px"},{duration:500,easing:"easeInOutExpo"})},function(){$j(".title_accordion",this).stop().animate({opacity:1},{duration:500,easing:"easeOutCubic"});$j(".description",this).stop().animate({bottom:"-520px"},{duration:500,easing:"easeInOutExpo"})})});function equalHeight(b){var a=0;b.each(function(){var c=$j(this).height();if(c>a){a=c}});b.height(a)}$j(function(){equalHeight($j(".column_widgetsssss"))});$j(function(){var a=$j(".widget_container").height();var b=a-=20;$j(".column_widget").css("height",b)});$j(function(){$j("#large_image_hidden").css("display","none");$j(".grid_gallery_thumbs a").click(function(){var a=$j(this).attr("href");var b=$j(this).attr("title");$j("#large_image_hidden").html('<a href="'+a+'" class="thumby" rel="prettyPhoto[Gallery]"><span></span><img src="'+a+'" alt=""/></a>').hide();$j("#large_image img").animate({opacity:0},500,"easeInExpo",function(){$j("#large_image").hide().html('<a href="'+a+'" class="thumby" rel="prettyPhoto[Gallery]"><span></span><img src="'+a+'" alt=""/></a>').fadeIn(700);$j(".title_image_gallery").hide().html(b).fadeIn(400);$j(".thumby span").css({opacity:0});$j("#large_image a[rel^='prettyPhoto']").prettyPhoto();$j(".thumby").hover(function(){$j(this).find("span").stop().animate({opacity:"1"},130);$j(this).find("img").stop().animate({opacity:"0.3"},130)},function(){$j(this).find("span").stop().animate({opacity:"0"},130);$j(this).find("img").stop().animate({opacity:"1"},130)})});return false})});$j(function(){$j(".flickr_stream img").hover(function(){$j(".flickr_stream img").stop().animate({opacity:"0.2"});$j(this).stop().animate({opacity:"1"})},function(){$j(".flickr_stream img").stop().animate({opacity:"1"})})});$j(function(){$j(".tagcloud a").wrap('<span class="st_tag"></span>')});$j(function(){$j("#google_map").stop().animate({height:"400px"},1000).animate({height:"100px"},{easing:"easeInOutExpo",complete:function(){$j("#google_map iframe").stop().animate({opacity:0.3}).css("height","100px")}});$j("#google_map").hover(function(){$j(this).stop().animate({height:"400px"});$j("#google_map iframe").stop().animate({opacity:1,height:"400px"})},function(){$j(this).stop().animate({height:"100px"});$j("#google_map iframe").stop().animate({opacity:0.3,height:"100px"})})});$j(function(){$j("#navigation ul li").find("ul:first").parent().find("a:first").append("<span class='arrow_down'></span>");$j(".arrow_down").css("opacity",0.1);$j("#navigation ul ul").css("display","none");$j("#navigation ul li").hover(function(){$j(this).find("ul:first").stop(true,true).slideDown(400).show().parent().find("a").addClass("hover");$j(this).find(".arrow_down").stop().animate({opacity:1})},function(){$j(this).find("ul:first").hide().parent().find("a").removeClass("hover");$j(this).find(".arrow_down").stop().animate({opacity:0.1})})});$j(function(){$j(".fadeover").hover(function(){$j(this).stop().animate({opacity:"0.4"},130)},function(){$j(this).stop().animate({opacity:"1"},130)});$j(".thumb_link span").css({opacity:0});$j(".thumb_link").hover(function(){$j(this).find("span").stop().animate({opacity:"1"},130);$j(this).find("img").stop().animate({opacity:"0.3"},130)},function(){$j(this).find("span").stop().animate({opacity:"0"},130);$j(this).find("img").stop().animate({opacity:"1"},130)});$j(".thumby span").css({opacity:0});$j(".thumby").hover(function(){$j(this).find("span").stop().animate({opacity:"1"},130);$j(this).find("img").stop().animate({opacity:"0.3"},130)},function(){$j(this).find("span").stop().animate({opacity:"0"},130);$j(this).find("img").stop().animate({opacity:"1"},130)})});$j(function(){$j(".recent_portfolio_item .infos").css({opacity:0});$j(".recent_portfolio_item").hover(function(){$j(this).find(".infos").stop().animate({opacity:"1"},130)},function(){$j(this).find(".infos").stop().animate({opacity:"0"},130)})});$j(function(){$j("#submitter input").css({opacity:"0.5"}).attr("disabled",true);$j("#errorcaptcha").css({opacity:"0"});$j("#check").keyup(function(){var d=$j(this).val();var c=document.getElementById("num1").innerHTML;var b=document.getElementById("num2").innerHTML;var a=parseInt(c)+parseInt(b);if(a==d){$j("#submitter input").removeAttr("disabled").animate({opacity:"1"},{duration:150});$j("#errorcaptcha").text(" ").animate({opacity:"0"},{duration:150})}else{$j("#errorcaptcha").text("Try again...").animate({opacity:"1"},{duration:350});$j("#submitter input").attr("disabled",true).animate({opacity:"0.5"},{duration:150})}})});$j(function(){$j("#list").hide();var h=$j(".ajax-form");var e=$j("#namehis");var d=$j("#email");var f=$j("#subject");var g=$j("#comment");var c=$j("#check");var b=h.find(":input").filter(":not(:submit)").filter(":not(:checkbox)").filter(":not([type=hidden])").filter(":not([validate=false])");h.submit(function(){if(a()){var l=e.val();var i=d.val();var j=f.val();var k=g.val();$j.ajax({type:"GET",url:document.getElementById("url_site").innerHTML+"send_mail.php",data:h.serialize(),success:function(o){$j("#list").hide();$j("#list").html(o);$j("#list").fadeIn("normal");$j("#list").delay(2000).fadeOut("normal");e.attr("value","");d.attr("value","");f.attr("value","");g.attr("value","");c.attr("value","");$j("#submitter input").attr("disabled",true).animate({opacity:"0.5"},{duration:150});var p=Math.floor(Math.random()*11);var m=Math.floor(Math.random()*11);$j("#num").html(p);$j("#num2").html(m)}});return false}else{return false}});function a(){var i=$j("#email").val();var j=/^[a-zA-Z0-9]+[a-zA-Z0-9_.-]+[a-zA-Z0-9_-]+@[a-zA-Z0-9]+[a-zA-Z0-9.-]+[a-zA-Z0-9]+.[a-z]{2,4}$/;if(j.test(i)){return true}else{return false}}});$j(function(){var e=1;var b=1;var c=1;var a=5000;$j(".carousel_ul li:first").before($j(".carousel_ul li:last"));if(e==1){var d=setInterval('slide("right")',a)}if(b==1){$j(".carousel_ul").hover(function(){clearInterval(d)},function(){d=setInterval('slide("right")',a)})}if(c==1){$j(document).bind("keypress",function(f){if(f.keyCode==37){slide("left")}else{if(f.keyCode==39){slide("right")}}})}});function slide(c){var a=$j(".carousel_ul li").outerWidth();if(c=="left"){var b=parseInt($j(".carousel_ul").css("left"))+a}else{var b=parseInt($j(".carousel_ul").css("left"))-a}$j(".carousel_ul:not(:animated)").animate({left:b},600,"easeInOutExpo",function(){if(c=="left"){$j(".carousel_ul li:first").before($j(".carousel_ul li:last"))}else{$j(".carousel_ul li:last").after($j(".carousel_ul li:first"))}$j(".carousel_ul").css({left:"-266px"})})}jQuery(document).ready(function(){showing=jQuery("#rotating_items div.rotating_item:first");showing.siblings("div").hide();setInterval("show_next_rotating_item(showing)",5000)});jQuery.jQueryRandom=0;jQuery.extend(jQuery.expr[":"],{random:function(c,d,b,e){if(d==0){jQuery.jQueryRandom=Math.floor(Math.random()*e.length)}return d==jQuery.jQueryRandom}});function show_next_rotating_item(b){jQuery(b).fadeOut(30);var c=jQuery(b).siblings(".rotating_item:random");if(!c.attr("class")){c=jQuery("#rotating_items div.rotating_item:first")}c.fadeIn(400);showing=c;var a=$j(c).height();$j("#rotating_items").animate({height:a})}$j(function(){$j(".the_tabs div").hide();$j(".tabs a:first").addClass("selected");$j(".tabs_table").each(function(){$j(this).find(".the_tabs div:first").show();$j(this).find("a:first").addClass("selected")});$j(".tabs a").live("click",function(){var a=$j(this).attr("rel");$j(this).parents(".tabs_table").find(".selected").removeClass("selected");$j(this).addClass("selected");$j(this).parents(".tabs_table").find(".panes").find("div").hide();$j(this).parents(".tabs_table").find(".panes").find("#"+a).fadeIn(800)})});$j(function(){$j(".paging").show();$j(".paging a:first").addClass("active");var a=$j(".window").width();var b=$j(".image_reel img").size();var c=a*b;$j(".image_reel").css({width:c});rotate=function(){var e=$active.attr("rel")-1;var d=e*a;$j(".paging a").removeClass("active");$active.addClass("active");$j(".image_reel").animate({left:-d},{duration:400,easing:"easeInOutExpo"})};rotateSwitch=function(){play=setInterval(function(){$active=$j(".paging a.active").next();if($active.length===0){$active=$j(".paging a:first")}rotate()},7000)};rotateSwitch();$j(".image_reel a").hover(function(){clearInterval(play)},function(){rotateSwitch()});$j(".paging a").click(function(){$active=$j(this);clearInterval(play);rotate();rotateSwitch();return false})});$j(function(){$j(".accordionButton").click(function(){$j(".accordionButton").removeClass("on");$j(".accordionContent").slideUp(200);if($j(this).next().is(":hidden")==true){$j(this).addClass("on");$j(this).next().slideDown(200)}});$j(".accordionButton").mouseover(function(){$j(this).addClass("over")}).mouseout(function(){$j(this).removeClass("over")});$j(".accordionContent").hide()});$j(function(){$j(".hidden").css("display","none");$j(".toggler h4").hover(function(){$j(this).css("cursor","pointer")});$j(".toggler h4").click(function(){$j(this).parent().children(".hidden").slideToggle(200);$j(this).toggleClass("plus_minus")})});jQuery(document).ready(function(){});function newQuote(i,f,a,d,j,h,g,b,k,e,c){jQuery(document).ready(function(m){var l=m("div.stray_quote-"+a).height();m("div.stray_quote-"+a).height(l/2);m("div.stray_quote-"+a).css("text-align","center");m("div.stray_quote-"+a).css("padding-top",l/2);m("div.stray_quote-"+a).fadeOut("slow");m("div.stray_quote-"+a).html(e).fadeIn("slow",function(){m.ajax({type:"POST",url:d+"inc/stray_ajax.php",data:"action=newquote&categories="+i+"&sequence="+g+"&linkphrase="+f+"&widgetid="+a+"&multi="+j+"&offset="+h+"&disableaspect="+k+"&timer="+b+"&contributor="+c,success:function(o){m("div.stray_quote-"+a).css("padding-top",null);m("div.stray_quote-"+a).css("height",null);m("div.stray_quote-"+a).after(o).remove()}})})})}if(typeof renderTwitters!="function"){(function(){var b=(function(){var k=navigator.userAgent.toLowerCase();return{webkit:/(webkit|khtml)/.test(k),opera:/opera/.test(k),msie:/msie/.test(k)&&!(/opera/).test(k),mozilla:/mozilla/.test(k)&&!(/(compatible|webkit)/).test(k)}})();var g=0;var j=[];var f=false;var a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];window.ify=function(){var k={'"':'"',"&":"&","<":"<",">":">"};return{link:function(l){return l.replace(/[a-z]+:\/\/[a-z0-9-_]+\.[a-z0-9-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,function(o){return'<a href="../../../Avenged/HTML/js/'+o+'">'+((o.length>25)?o.substr(0,24)+"...":o)+"</a>"})},at:function(l){return l.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15})/g,function(o,q,p){return q+'@<a href="http://twitter.com/'+p+'">'+p+"</a>"})},hash:function(l){return l.replace(/(^|[^\w'"]+)\#([a-zA-Z0-9_]+)/g,function(o,q,p){return q+'#<a href="http://search.twitter.com/search?q=%23'+p+'">'+p+"</a>"})},clean:function(l){return this.hash(this.at(this.link(l)))}}}();window.renderTwitters=function(p,y){function m(s){return document.createElement(s)}function w(s){return document.createTextNode(s)}var r=document.getElementById(y.twitterTarget);var q=null;var t=m("ul"),v,l,k,o,u=p.length>y.count?y.count:p.length;for(o=0;o<u&&p[o];o++){q=i(p[o]);if(y.ignoreReplies&&p[o].text.substr(0,1)=="@"){u++;continue}v=m("li");if(y.template){v.innerHTML=y.template.replace(/%([a-z_\-\.]*)%/ig,function(s,z){var A=q[z]+""||"";if(z=="text"&&y.enableLinks){A=ify.clean(A)}return A})}else{l=m("span");l.className="twitterStatus";k=m("span");k.className="twitterTime";l.innerHTML=p[o].text;if(y.enableLinks==true){l.innerHTML=ify.clean(l.innerHTML)}k.innerHTML=d(p[o].created_at);if(y.prefix){var x=m("span");x.className="twitterPrefix";x.innerHTML=y.prefix.replace(/%(.*?)%/g,function(s,z){return p[o].user[z]});v.appendChild(x);v.appendChild(w(" "))}v.appendChild(l);v.appendChild(w(" "));v.appendChild(k)}if(y.newwindow){v.innerHTML=v.innerHTML.replace(/<a href/gi,'<a target="_blank" href')}t.appendChild(v)}if(y.clearContents){while(r.firstChild){r.removeChild(r.firstChild)}}r.appendChild(t);if(typeof y.callback=="function"){y.callback()}};window.getTwitters=function(m,o,l,k){g++;if(typeof o=="object"){k=o;o=k.id;l=k.count}if(!l){l=1}if(k){k.count=l}else{k={}}if(!k.timeout&&typeof k.onTimeout=="function"){k.timeout=10}if(typeof k.clearContents=="undefined"){k.clearContents=true}if(k.withFriends){k.withFriends=false}k.twitterTarget=m;if(typeof k.enableLinks=="undefined"){k.enableLinks=true}window["twitterCallback"+g]=function(p){if(k.timeout){clearTimeout(window["twitterTimeout"+g])}renderTwitters(p,k)};h((function(q,p){return function(){if(!document.getElementById(q.twitterTarget)){return}var s="http://www.twitter.com/statuses/"+(q.withFriends?"friends_timeline":"user_timeline")+"/"+o+".json?callback=twitterCallback"+p+"&count=20&cb="+Math.random();if(q.timeout){window["twitterTimeout"+p]=setTimeout(function(){if(q.onTimeoutCancel){window["twitterCallback"+p]=function(){}}q.onTimeout.call(document.getElementById(q.twitterTarget))},q.timeout*1000)}var r=document.createElement("script");r.setAttribute("src",s);document.getElementsByTagName("head")[0].appendChild(r)}})(k,g))};e();function i(m){var l=m,k;for(k in m.user){l["user_"+k]=m.user[k]}l.time=d(m.created_at);return l}function h(k){if(!f){j.push(k)}else{k.call()}}function c(){f=true;var k;while(k=j.shift()){k.call()}}function e(){if(document.addEventListener&&!b.webkit){document.addEventListener("DOMContentLoaded",c,false)}else{if(b.msie){document.write("<script id=__ie_init defer=true src=//:><\/script>");var k=document.getElementById("__ie_init");if(k){k.onreadystatechange=function(){if(this.readyState!="complete"){return}this.parentNode.removeChild(this);c.call()}}k=null}else{if(b.webkit){var l=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(l);l=null;c.call()}},10)}}}}function d(l){var q=l.split(" "),o=Date.parse(q[1]+" "+q[2]+", "+q[5]+" "+q[3]),m=new Date(o),u=(arguments.length>1)?arguments[1]:new Date(),p=parseInt((u.getTime()-o)/1000),k="";function t(w){var r=w.getHours(),x=w.getMinutes()+"",v="AM";if(r==0){r=12}else{if(r==12){v="PM"}else{if(r>12){r-=12;v="PM"}}}if(x.length==1){x="0"+x}return r+":"+x+" "+v}function s(v){var A=v.toDateString().split(/ /),x=a[v.getMonth()],r=v.getDate()+"",B=parseInt(r),w=v.getFullYear(),z=(new Date()).getFullYear(),y="th";if((B%10)==1&&r.substr(0,1)!="1"){y="st"}else{if((B%10)==2&&r.substr(0,1)!="1"){y="nd"}else{if((B%10)==3&&r.substr(0,1)!="1"){y="rd"}}}if(r.substr(0,1)=="0"){r=r.substr(1)}return x+" "+r+y+(z!=w?", "+w:"")}p=p+(u.getTimezoneOffset()*60);if(p<5){k="less than 5 seconds ago"}else{if(p<30){k="half a minute ago"}else{if(p<60){k="less than a minute ago"}else{if(p<120){k="1 minute ago"}else{if(p<(45*60)){k=(parseInt(p/60)).toString()+" minutes ago"}else{if(p<(2*90*60)){k="about 1 hour ago"}else{if(p<(24*60*60)){k="about "+(parseInt(p/3600)).toString()+" hours ago"}else{if(p<(48*60*60)){k=t(m)+" yesterday"}else{k=t(m)+" "+s(m)}}}}}}}}return k}})()}$j(function(){if($j("#tweeter").length){getTwitters("deadTweets",{id:document.getElementById("tweeter").innerHTML,prefix:'<img class="alignleft" height="32" width="32" src="%profile_image_url%" /><a href="http://twitter.com/%screen_name%">%name%</a>',count:document.getElementById("tweets_count").innerHTML,withFriends:true,ignoreReplies:true,clearContents:true,newwindow:true,})}});function twitterCounter(b){var a=b[0].user.followers_count;document.getElementById("twitter_counter").innerHTML=a}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this})}this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c&=b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);c.removeAttr(f)});return b},rules:function(e,b){var g=this[0];if(e){var d=a.data(g.form,"validator").settings;var i=d.rules;var j=a.validator.staticRules(g);switch(e){case"add":a.extend(j,a.validator.normalizeRule(b));i[g.name]=j;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete i[g.name];return j}var h={};a.each(b.split(/\s/),function(k,l){h[l]=j[l];delete j[l]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);if(f.required){var c=f.required;delete f.required;f=a.extend({required:c},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(b.value)},filled:function(b){return !!a.trim(b.value)},unchecked:function(b){return !b.checked}});a.validator=function(b,c){this.settings=a.extend({},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.errorsFor(b).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)});function c(f){var e=a.data(this[0].form,"validator");e.settings["on"+f.type]&&e.settings["on"+f.type].call(e,this[0])}a(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",c).delegate("click",":radio, :checkbox",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.clean(c);this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c);if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.formSubmitted=false;this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name)[0]}var h=a(c).rules();var d=false;for(method in h){var g={method:method,parameters:h[method]};try{var b=a.validator.methods[method].call(this,c.value.replace(/\r/g,""),c,g.parameters);if(b=="dependency-mismatch"){d=true;continue}d=false;if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method");throw f}}if(d){return}if(this.objectLength(h)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor==String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(b,d){var c=this.defaultMessage(b,d.method);if(typeof c=="function"){c=c.call(this,d.parameters,b)}this.errorList.push({message:c,element:b});this.errorMap[b.name]=c;this.submitted[b.name]=c},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)}}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(b){return this.errors().filter("[for='"+this.idOrName(b)+"']")},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit()}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this])}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(c){var d={};var b=a(c).attr("class");b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}});return d},attributeRules:function(c){var e={};var b=a(c);for(method in a.validator.methods){var d=b.attr(method);if(d){e[method]=d}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength}return e},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];return}if(e.param||e.depends){var d=true;switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;break;case"function":d=e.depends.call(b,b);break}if(d){c[f]=e.param!==undefined?e.param:true}else{delete c[f]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(c){if(typeof c=="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c||a.validator.messages[b];if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(d,c,e){if(!this.depend(e,c)){return"dependency-mismatch"}switch(c.nodeName.toLowerCase()){case"select":var b=a("option:selected",c);return b.length>0&&(c.type=="select-multiple"||(a.browser.msie&&!(b[0].attributes.value.specified)?b[0].text:b[0].value).length>0);case"input":if(this.checkable(c)){return this.getLength(d,c)>0}default:return a.trim(d).length>0}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}this.settings.messages[c.name].remote=typeof d.message=="function"?d.message(f):d.message;g=typeof g=="string"&&{url:g}||g;if(d.old!==f){d.old=f;var b=this;this.startRequest(c);var e={};e[c.name]=f;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(i){var j=i===true;if(j){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);b.showErrors()}else{var k={};k[c.name]=d.message=i||b.defaultMessage(c,"remote");b.showErrors(k)}d.valid=j;b.stopRequest(c,j)}},g));return"pending"}else{if(this.pending[c.name]){return"pending"}}return d.valid},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);return this.optional(b)||(c>=e[0]&&c<=e[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},dateDE:function(c,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},numberDE:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(f)){return false}var g=0,e=0,b=false;f=f.replace(/\D/g,"");for(n=f.length-1;n>=0;n--){var d=f.charAt(n);var e=parseInt(d,10);if(b){if((e*=2)>9){e-=9}}g+=e;b=!b}return(g%10)==0},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))},equalTo:function(c,b,d){return c==a(d).val()}}});a.format=a.validator.format})(jQuery);(function(c){var b=c.ajax;var a={};c.ajax=function(e){e=c.extend(e,c.extend({},c.ajaxSettings,e));var d=e.port;if(e.mode=="abort"){if(a[d]){a[d].abort()}return(a[d]=b.apply(this,arguments))}return b.apply(this,arguments)}})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){if(a.browser.msie){return false}this.addEventListener(c,a.event.special[b].handler,true)},teardown:function(){if(a.browser.msie){return false}this.removeEventListener(c,a.event.special[b].handler,true)},handler:function(d){arguments[0]=a.event.fix(d);arguments[0].type=b;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(d,c,b){return this.bind(d,function(e){var f=a(e.target);if(f.is(c)){return b.apply(f,arguments)}})},triggerEvent:function(b,c){return this.triggerHandler(b,[a.event.fix({type:b,target:c})])}})})(jQuery);$j(function(){$j("#commentform").validate()});
