(function(){var eds_prettyPhoto=function($){$.prettyPhoto={version:'3.1.2'};$.fn.prettyPhoto=function(pp_settings){pp_settings=$.extend({},{animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.80,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:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,gallery_thumb_dimensions:{width:50,height:33},download_handler_url:'false',download_image_text:'Download image',allow_image_printing:false,print_image_text:'Print image',show_social_sharing:false,facebook_locale:'en_US',item_emailing_text:'Email the link',item_emailing_subject:'Look what I\'ve found...',enable_item_emailing:false,item_title_position:'top',gallery_ontop_item:true,gallery_autohide:true,markup:'
{pp_title_top}
Expand
{pp_title_bottom}

{pp_tools_and_sharing} Close
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:'',tools_and_sharing:'
',social_tools:' '},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow,download_url='',social_button_href='',edgpid,edgmid;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal) $.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";var $clicked=$(this);theRel=$clicked.attr('rel');galleryRegExp=/_(?:.*)/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?$.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($clicked.attr('href'));pp_titles=(isSet)?$.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($clicked.find('img').attr('alt'));pp_descriptions=(isSet)?$.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('pptitle'))?$(n).attr('pptitle'):"";}):$.makeArray($clicked.attr('pptitle'));set_position=$.inArray($clicked.attr('href'),pp_images);rel_index=(isSet)?set_position:$("a[rel^='"+theRel+"']").index($clicked);_build_overlay(this);if(settings.allow_resize) $(window).bind('scroll.prettyphoto',function(){_center_overlay();});$pp_pic_holder.delegate('#pp_print_image_link','click',function(){printWindow=window.open('','mywindow','location=1,status=1,scrollbars=1,width=600,height=600');printWindow.document.write('
');printWindow.document.close();printWindow.print();return false;});$pp_pic_holder.delegate('#pp_email_link','click',function(){window.location.href="mailto:" +"?subject="+escape(settings.item_emailing_subject) +'&body='+encodeURIComponent(social_button_href);return false;});$.prettyPhoto.open();return false;} $.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;_build_overlay(event.target);} var current_item=$('a[rel="'+theRel+'"][href="'+pp_images[set_position]+'"]');download_url=current_item.attr('downhref')?current_item.attr('downhref'):'';social_button_href=current_item.attr('lbnestedurl')?current_item.attr('lbnestedurl'):location.href;var url_has_hash=social_button_href.substring(0,social_button_href.indexOf('#')) url_rel=theRel.replace('_fullscreen','');if(url_has_hash){social_button_href=url_has_hash;} edgpid=current_item.attr('edgpid');edgmid=current_item.attr('edgmid');social_button_href=setParamInUri(social_button_href,'edgpid',edgpid)+'#!'+url_rel+'/id'+edgpid+'/';if(edgmid!=undefined){social_button_href=setParamInUri(social_button_href,'edgmid',edgmid);} if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();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+$(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(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;} if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=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(' ');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(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(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('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='//www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='//player.vimeo.com/video/'+match[2]+'?title=0&byline=0&portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,movie);break;case'wistia':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,frame_url);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(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,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(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,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(//DependencyHandler.axd/3f99a39528793e8596bb6fb70a64a370/761/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('
').css({'width':settings.default_width}).wrapInner('
').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};} $.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;} $.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;});};function _showContent(){$('.pp_loaderIcon').hide();var $image_download_link=$('#pp_image_download_link'),current_file_type=_getFileType(pp_images[set_position]);if(settings.download_handler_url!=='false'&&download_url&¤t_file_type=='image'){$image_download_link.attr('href',download_url);}else{$image_download_link.hide();} if(!settings.allow_image_printing||current_file_type!='image'){$pp_pic_holder.find('.pp_image_print_link').hide();} if(!settings.enable_item_emailing){$pp_pic_holder.find('.pp_send_email_link').hide();} projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();} if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();if(settings.deeplinking) setHashtag();if(settings.show_social_sharing){var $social_tools=$pp_pic_holder.find('div.pp_social_tools'),social_tools_html=settings.social_tools;social_tools_html=social_tools_html.replace("{facebook_locale}",settings.facebook_locale).replace(/{location_href_encoded}/g,strictEncodeUriComponent(social_button_href)).replace(/{location_href}/g,social_button_href).replace(/{image_location}/g,encodeURIComponent(window.location.protocol+"//"+window.location.host+pp_images[set_position])).replace(/{item_title_encoded}/g,encodeURIComponent(pp_titles[set_position]));$social_tools.html(social_tools_html);} settings.changepicturecallback();pp_open=true;if(isSet&&settings.overlay_gallery){$pp_gallery_li.find('img').each(function(){var $img=$(this),$parent=$img.parent();if($img.height()1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){var resized=false,imageRatio,windowRatio,imageWidth=width,imageHeight=height;_getDimensions(width,height);if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true;imageRation=width/height;windowRatio=(windowWidth-200)/(windowHeight-200);if(imageRation>windowRatio){imageWidth=windowWidth-200;imageHeight=(windowWidth-200)/imageRation;}else{imageWidth=(windowHeight-200)*imageRation;imageHeight=windowHeight-200;} pp_containerHeight=imageHeight;pp_containerWidth=imageWidth;_getDimensions(imageWidth,imageHeight);};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));if(width<395){$pp_details.find('.pp_tools_and_sharing').height(49);}else{$pp_details.find('.pp_tools_and_sharing').height('auto');} $pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height()+3;detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');if(settings.item_title_position=='top') $pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;} function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/wistia\./i)){return'wistia';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight) return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){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 _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){$pp_gallery.show();itemWidth=settings.gallery_thumb_dimensions.width+7;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage ':'').replace('{pp_title_bottom}',settings.item_title_position=='bottom'?'
 
':'');$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";$allItemsInGallery=$('a[rel="'+theRel+'"]');for(var i=0;i img').attr('src');}else{classname='';img_src=pp_images[i];} toInject+="
  • ";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});if(settings.gallery_autohide){$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').stop().fadeTo(400,1);},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').stop().fadeTo(400,0);});} $pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('Play') $pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});} $pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};var hashId,hashRel;if(location.search.indexOf('_escaped_fragment_=')==-1) hashId=getHashtag();else{hashId=location.search.substring(location.search.indexOf('_escaped_fragment_=')+19);hashId=decodeURIComponent(hashId.substring(0,hashId.indexOf('&')));} if(!pp_alreadyInitialized&&hashId){pp_alreadyInitialized=true;hashRel=hashId;hashId=hashId.substring(hashId.indexOf('/')+1,hashId.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));openDeepLinkedItem(0,hashRel,hashId);} return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function openDeepLinkedItem(trys,hashRel,hashId){if(trys>=100) return;var isId=hashId.indexOf('id')==-1?false:true;setTimeout(function(){var $deepLinkedItem;if(isId){$deepLinkedItem=$("a[rel='"+hashRel+"'][edgpid='"+hashId.substring(hashId.indexOf('id')+2,hashId.length)+"']");}else{$deepLinkedItem=$("a[rel='"+hashRel+"']").eq(hashId);} if($deepLinkedItem.length!==0) $deepLinkedItem.trigger('click');else openDeepLinkedItem(trys+1,hashRel,hashId);},100);};function getHashtag(){var url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;if(hashtag){hashtag=hashtag.replace(/<|>/g,'');} return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash='!'+theRel+'/'+edgpid+'/';};function clearHashtag(){if(location.href.indexOf('#!')!=-1) location.hash='';} function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];} function setParamInUri(uri,param){var uri_hash='',return_uri='',param_string=param+(arguments.length>2?'='+arguments[2]:'');uri=uri.split('#');if(uri.length==1){uri_hash=false;}else{uri_hash=uri[1];} uri=uri[0].split('?');if(uri.length==1||uri[1]==''){return_uri=uri[0]+'?'+param_string;}else{return_uri=uri[0]+'?';var params=uri[1].split('&'),segment=false,found=false;for(var i in params){if(typeof params[i]!='string') continue;segment=params[i].split('=');if(segment[0]==param){found=true;return_uri+=param_string+'&';}else{if(segment.length==1){return_uri+=segment[0]+'&';}else{return_uri+=segment[0]+'='+segment[1]+'&';}}} if(found) return_uri=return_uri.substring(0,return_uri.length-1);else return_uri+=param_string;} return return_uri+(uri_hash===false?'':'#'+uri_hash);} function strictEncodeUriComponent(s){return encodeURIComponent(s).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');}};if(typeof jQuery!=='undefined') eds_prettyPhoto(jQuery);if(typeof eds3_5_jq!=='undefined') eds_prettyPhoto(eds3_5_jq);})();var pp_alreadyInitialized=false; ;;;(function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("").addClass("nivo-main-image");u.attr("alt",i.currentImage.attr("alt")).attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('
    '));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("title")!=""&&i.currentImage.attr("title")!=undefined){var r=i.currentImage.attr("title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('
    ');s.after(i.controlNavEl);for(var l=0;l')}else{i.controlNavEl.append(''+(l+1)+"")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s'+r.currentImage.attr(').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('
    '+r.currentImage.attr(
    ').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o'+r.currentImage.attr(').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('
    '+r.currentImage.attr(
    ').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}u.attr('alt',s.currentImage.attr('alt'));if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x=0&&Ta.length||"object"===typeof a&&!a.jquery&&!a.then)};if(!b||"object"!==typeof b)return e;a(b.metadata)&&(b.metadata={type:b.metadata});if("content" in b){if(a(b.content)||b.content.jquery)b.content={text:b.content};if(g(b.content.text||e))b.content.text=e;if("title" in b.content&&(a(b.content.title)&&(b.content.title={text:b.content.title}),g(b.content.title.text||e)))b.content.title.text=e}"position" in b&&a(b.position)&&(b.position={my:b.position,at:b.position});"show" in b&&a(b.show)&&(b.show=b.show.jquery?{target:b.show}:b.show===r?{ready:r}:{event:b.show});"hide" in b&&a(b.hide)&&(b.hide=b.hide.jquery?{target:b.hide}:{event:b.hide});"style" in b&&a(b.style)&&(b.style={classes:b.style});d.each(v,function(){this.sanitize&&this.sanitize(b)});return b}function va(b,a,g,s){function m(c){var b=0,d,j=a;for(c=c.split(".");j=j[c[b++]];)b",{"class":"qtip-close "+(a.style.widget?"":L+"-icon"),title:b,"aria-label":b}).prepend(d("",{"class":"ui-icon ui-icon-close",html:"×"}));D.button.appendTo(D.titlebar||j).attr("role","button").click(function(a){j.hasClass(C)||c.hide(a);return e})}function k(){var c=w+"-title";D.titlebar&&f();D.titlebar=d("
    ",{"class":L+"-titlebar "+(a.style.widget?x("header"):"")}).append(D.title=d("
    ",{id:c,"class":L+"-title","aria-atomic":r})).insertBefore(D.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(c){d(this).toggleClass("ui-state-active ui-state-focus","down"===c.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(c){d(this).toggleClass("ui-state-hover","mouseover"===c.type)});a.content.title.button&&h()}function p(a,h){var ea=D.title;if(!c.rendered||!a)return e;d.isFunction(a)&&(a=a.call(b,A.event,c));if(a===e||!a&&""!==a)return f(e);a.jquery&&0c.rendered?j.queue("fx",f):(B=0,f.call(j[0],d.noop));return c}function y(){function q(b){if(j.hasClass(C))return e;clearTimeout(c.timers.show);clearTimeout(c.timers.hide);var q=function(){c.toggle(r,b)};0=d||j(b.pageY-q.pageY)>=d)&&c.hide(b)});"mouse"===s.target&&(k.show.bind("mousemove"+z,ba),s.adjust.mouse&&(a.hide.event&&(j.bind("mouseleave"+z,function(a){(a.relatedTarget||a.target)!==k.show[0]&&c.hide(a)}),D.target.bind("mouseenter"+z+" mouseleave"+z,function(c){A.onTarget="mouseenter"===c.type})),k.document.bind("mousemove"+z,function(a){c.rendered&&(A.onTarget&&!j.hasClass(C)&&0",{id:w,"class":[L,ra,a.style.classes,L+"-pos-"+a.position.my.abbrev()].join(" "),width:a.style.width||"",height:a.style.height||"",tracking:"mouse"===s.target&&s.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":w+"-content","aria-hidden":r}).toggleClass(C,A.disabled).data("qtip",c).appendTo(a.position.container).append(D.content=d("
    ",{"class":L+"-content",id:w+"-content","aria-atomic":r}));c.rendered=-1;J=1;g.text?(k(),d.isFunction(g.text)||p(g.text,e)):g.button&&h();(!d.isFunction(f)||f.then)&&t(f,e);c.rendered=r;l();d.each(a.events,function(c,a){d.isFunction(a)&&j.bind("toggle"===c?"tooltipshow tooltiphide":"tooltip"+c,a)});d.each(v,function(){"render"===this.initialize&&this(c)});y();j.queue("fx",function(b){c._triggerEvent("render");J=0;(a.show.ready||q)&&c.toggle(r,A.event,e);b()});return c},get:function(c){switch(c.toLowerCase()){case"dimensions":c={height:j.outerHeight(e),width:j.outerWidth(e)};break;case"offset":c=v.offset(j,a.position.container);break;default:c=m(c.toLowerCase()),c=c[0][c[1]],c=c.precedance?c.string():c}return c},set:function(b,h){var f=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,k=e,p=c.checks,g;"string"===typeof b?(g=b,b={},b[g]=h):b=d.extend(r,{},b);d.each(b,function(c,a){var j=m(c.toLowerCase()),h;h=j[0][j[1]];j[0][j[1]]="object"===typeof a&&a.nodeType?d(a):a;b[c]=[j[0],j[1],a,h];k=f.test(c)||k});ia(a);J=1;d.each(b,function(a,b){var d,q,j;for(d in p)for(q in p[d])if(j=RegExp(q,"i").exec(a))b.push(j),p[d][q].apply(c,b)});J=0;c.rendered&&(0w.target.length||A.target[0]===h.target;(typeof b).search("boolean|number")&&(b=!B);if(!j.is(":animated")&&B===b&&C||!c._triggerEvent(s,[90])&&!c.destroyed)return c;d.attr(j[0],"aria-hidden",!b);b?(A.origin=d.extend({},T),c.focus(h),d.isFunction(l.text)&&t(l.text,e),d.isFunction(l.title.text)&&p(l.title.text,e),!ja&&("mouse"===J.target&&J.adjust.mouse)&&(d(H).bind("mousemove.qtip",ba),ja=r),m||j.css("width",j.outerWidth()),c.reposition(h,f),m||j.css("width",""),w.solo&&("string"===typeof w.solo?d(w.solo):d(Y,w.solo)).not(j).not(w.target).qtip("hide",d.Event("tooltipsolo"))):(clearTimeout(c.timers.show),delete A.origin,ja&&!d(Y+'[tracking="true"]:visible',w.solo).not(j).length&&(d(H).unbind("mousemove.qtip"),ja=e),c.blur(h));w.effect===e||z===e?(j[s](),k.call(j)):d.isFunction(w.effect)?(j.stop(1,1),w.effect.call(j,c),j.queue("fx",function(c){k();c()})):j.fadeTo(90,b?1:0,k);b&&w.target.trigger("qtip-"+g+"-inactive");return c},show:function(a){return c.toggle(r,a)},hide:function(a){return c.toggle(e,a)},focus:function(a){if(!c.rendered)return c;var b=d(Y),h=parseInt(j[0].style.zIndex,10),f=F.zindex+b.length;a=d.extend({},a);!j.hasClass(ca)&&c._triggerEvent("focus",[f],a)&&(h!==f&&(b.each(function(){this.style.zIndex>h&&(this.style.zIndex-=1)}),b.filter("."+ca).qtip("blur",a)),j.addClass(ca)[0].style.zIndex=f);return c},blur:function(a){j.removeClass(ca);c._triggerEvent("blur",[j.css("zIndex")],a);return c},reposition:function(b,h){if(!c.rendered||J)return c;J=1;var f=a.position.target,k=a.position,p=k.my,g=k.at,w=k.adjust,s=w.method.split(" "),l=j.outerWidth(e),m=j.outerHeight(e),B=0,t=0,z=j.css("position"),C=k.viewport,n={left:0,top:0},r=k.container,u=0v.iOS||4.3<=v.iOS&&4.33>v.iOS||!v.iOS&&"fixed"===z)n.left-=y.scrollLeft(),n.top-=y.scrollTop();n.left+=g.x===P?B:g.x===I?B/2:0;n.top+=g.y===Q?t:g.y===I?t/2:0}n.left+=w.x+(p.x===P?-l:p.x===I?-l/2:0);n.top+=w.y+(p.y===Q?-m:p.y===I?-m/2:0);v.viewport?(n.adjusted=v.viewport(c,n,k,B,t,l,m),F&&n.adjusted.left&&(n.left+=F.left),F&&n.adjusted.top&&(n.top+=F.top)):n.adjusted={left:0,top:0};if(!c._triggerEvent("move",[n,C.elem||C],b))return c;delete n.adjusted;h===e||!u||isNaN(n.left)||isNaN(n.top)||"mouse"===f||!d.isFunction(k.effect)?j.css(n):d.isFunction(k.effect)&&(k.effect.call(j,c,d.extend({},n)),j.queue(function(c){d(this).css({opacity:"",height:""});v.ie&&this.style.removeAttribute("filter");c()}));J=0;return c},disable:function(a){"boolean"!==typeof a&&(a=!(j.hasClass(C)||A.disabled));c.rendered?(j.toggleClass(C,a),d.attr(j[0],"aria-disabled",a)):A.disabled=!!a;return c},enable:function(){return c.disable(e)},destroy:function(h){function f(){var h=d.attr(b[0],Z),k=b.data("qtip");c.rendered&&(d.each(c.plugins,function(a){this.destroy&&this.destroy();delete c.plugins[a]}),j.stop(1,0).find("*").remove().end().remove(),c.rendered=e);clearTimeout(c.timers.show);clearTimeout(c.timers.hide);u();if(!k||c===k)b.removeData("qtip").removeAttr(la),a.suppress&&h&&(b.attr("title",h),b.removeAttr(Z)),b.removeAttr("aria-describedby");b.unbind(".qtip-"+g);delete ma[c.id];delete c.options;delete c.elements;delete c.cache;delete c.timers;delete c.checks}if(!c.destroyed){c.destroyed=r;var k=e;h!==r&&(j.bind("tooltiphide",function(){k=r;j.bind("tooltiphidden",f)}),c.hide());k||f();return b}}})}function ya(b){var a=this,g=b.elements.tooltip,s=b.options.content.ajax,m=F.defaults.content.ajax,x=r,l=e,f;b.checks.ajax={"^content.ajax":function(b,d,f){"ajax"===d&&(s=f);"once"===d?a.init():s&&s.url?a.load():g.unbind(na)}};d.extend(a,{init:function(){if(s&&s.url)g.unbind(na)[s.once?"one":"bind"]("tooltipshow"+na,a.load);return a},load:function(h){function k(){var a;if(!b.destroyed&&(x=e,c&&(l=r,b.show(h.originalEvent)),(a=m.complete||s.complete)&&d.isFunction(a)))a.apply(s.context||b,arguments)}function g(c,a,h){var f;b.destroyed||(u&&"string"===typeof c&&(c=d("
    ").append(c.replace(za,"")).find(u)),(f=m.success||s.success)&&d.isFunction(f)?f.call(s.context||b,c,a,h):b.set("content.text",c))}function n(c,a,d){b.destroyed||0===c.status||b.set("content.text",a+": "+d)}if(l)l=e;else{var t=s.url.lastIndexOf(" "),y=s.url,u,c=!s.loading&&x;if(c)try{h.preventDefault()}catch(w){}else if(h&&h.isDefaultPrevented())return a;f&&f.abort&&f.abort();-1u[0])d.left-=a.left,g=e;y[q.right!==W?P:N]=m}if(n=k===V&&!!a.top)if(c.y===I)y["margin-top"]=t=q["margin-top"]-a.top;else{u=q.bottom!==W?[a.top,-q.top]:[-a.top,q.top];if((t=Math.max(u[0],u[1]))>u[0])d.top-=a.top,n=e;y[q.bottom!==W?Q:K]=t}h.tip.css(y).toggle(!(m&&t||c.x===I&&t||c.y===I&&m));d.left-=q.left.charAt?q.user:j!==V||n||!g&&!n?q.left:0;d.top-=q.top.charAt?q.user:k!==V||g||!g&&!n?q.top:0;p.left=a.left;p.top=a.top;p.corner=c.clone()}}function s(c,b,d){b=!b?c[c.precedance]:b;var f=h.titlebar&&c.y===K?h.titlebar:k,j="border-"+b+"-width",g;a(function(){g=(d?parseInt(d.css(j),10):parseInt(h.content.css(j),10)||parseInt(f.css(j),10)||parseInt(k.css(j),10))||0});return g}function m(a){var b=a.precedance===R,d=n[b?$:da],h=n[b?da:$],f=-1'}var l=this,f=b.options.style.tip,h=b.elements,k=h.tooltip,p={top:0,left:0},n={width:f.width,height:f.height},t,y,u=f.border||0;l.corner=E;l.mimic=E;l.border=u;l.offset=f.offset;l.size=n;b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){l.init()||l.destroy();b.reposition()},"^style.tip.(height|width)$":function(){n={width:f.width,height:f.height};l.create();l.update();b.reposition()},"^content.title.text|style.(classes|widget)$":function(){h.tip&&h.tip.length&&l.update()}};d.extend(l,{init:function(){var a;a=f.corner;var d=b.options.position,h=d.at,d=d.my.string?d.my.string():d.my;a===e||d===e&&h===e?a=e:(a===r?l.corner=new v.Corner(d):a.string||(l.corner=new v.Corner(a),l.corner.fixed=r),p.corner=new v.Corner(l.corner.string()),a="centercenter"!==l.corner.string());if(a=a&&(oa||v.ie))l.create(),l.update(),k.unbind(ga).bind("tooltipmove"+ga,g);return a},create:function(){var a=n.width,b=n.height;h.tip&&h.tip.remove();h.tip=d("
    ",{"class":"qtip-tip"}).css({width:a,height:b}).prependTo(k);oa?d("").appendTo(h.tip)[0].getContext("2d").save():(a=x("shape",'coordorigin="0,0"',"position:absolute;"),h.tip.html(a+a),d("*",h.tip).bind("click"+ga+" mousedown"+ga,function(a){a.stopPropagation()}))},update:function(b,g){var J=h.tip,B=J.children(),j=n.width,z=n.height,C=f.mimic,D=Math.round,A,q;b||(b=p.corner||l.corner);C===e?C=b:(C=new v.Corner(C),C.precedance=b.precedance,"inherit"===C.x?C.x=b.x:"inherit"===C.y?C.y=b.y:C.x===C.y&&(C[b.precedance]=b[b.precedance]));b.precedance===U?(n.width=f.height,n.height=f.width):(n.width=f.width,n.height=f.height);h.tip.css({width:j=n.width,height:z=n.height});q=b;var X=function(a,b,c){b=a.css(b)||sa;return c&&b===a.css(c)?e:H.test(b)?e:b},F=h.tip.css("cssText","");q=q||l.corner;var H=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,fa="border-"+q[q.precedance]+"-color",sa="transparent",G=h.titlebar,L=G&&(q.y===K||q.y===I&&F.position().top+n.height/2+f.offsetg?l:-g)}});p[b[j]]-=t[j===U?$:da];g.css({top:"",bottom:"",left:"",right:"",margin:""}).css(p);return p},destroy:function(){k.unbind(ga);h.tip&&h.tip.find("*").remove().end().remove();delete l.corner;delete l.mimic;delete l.size}});l.init()}function Ba(b){var a=this,g=b.options.show.modal,s=b.elements,m=s.tooltip,x=ha+b.id,l;b.checks.modal={"^show.modal.(on|blur)$":function(){a.destroy();a.init();l.toggle(m.is(":visible"))}};d.extend(a,{init:function(){if(!g.on)return a;l=s.overlay=aa.elem;m.attr(pa,r).css("z-index",v.modal.zindex+d(ka).length).bind("tooltipshow"+x+" tooltiphide"+x,function(b,h,k){h=b.originalEvent;if(b.target===m[0])if(h&&"tooltiphide"===b.type&&/mouse(leave|enter)/.test(h.type)&&d(h.relatedTarget).closest(l[0]).length)try{b.preventDefault()}catch(g){}else(!h||h&&!h.solo)&&a.toggle(b,"tooltipshow"===b.type,k)}).bind("tooltipfocus"+x,function(a,b){if(!(a.isDefaultPrevented()||a.target!==m[0])){var k=d(ka),g=v.modal.zindex+k.length,n=parseInt(m[0].style.zIndex,10);l[0].style.zIndex=g-1;k.each(function(){this.style.zIndex>n&&(this.style.zIndex-=1)});k.filter("."+ca).qtip("blur",a.originalEvent);m.addClass(ca)[0].style.zIndex=g;aa.update(b);try{a.preventDefault()}catch(e){}}}).bind("tooltiphide"+ x,function(a){a.target===m[0]&&d(ka).filter(":visible").not(m).last().qtip("focus",a)});return a},toggle:function(d,h,g){if(d&&d.isDefaultPrevented())return a;aa.toggle(b,!!h,g);return a},destroy:function(){d([H,m]).removeAttr(pa).unbind(x);aa.toggle(b,e);delete s.overlay}});a.init()}function Ca(b){var a=this,g=b.elements,s=b.options,m=g.tooltip,x=".ie6-"+b.id,l=1>d("select, object").length,f=0,h=e,k;b.checks.ie6={"^content|style$":function(){redraw()}};d.extend(a,{init:function(){var b=d(M),f;l&&(g.bgiframe=d(''),g.bgiframe.appendTo(m),m.bind("tooltipmove"+x,a.adjustBGIFrame));k=d("
    ",{id:"qtip-rcontainer"}).appendTo(H.body);a.redraw();g.overlay&&!h&&(f=function(){g.overlay[0].style.top=b.scrollTop()+"px"},b.bind("scroll.qtip-ie6, resize.qtip-ie6",f),f(),g.overlay.addClass("qtipmodal-ie6fix"),h=r)},adjustBGIFrame:function(){var a=b.get("dimensions"),d=b.plugins.tip,h=g.tip,f;f=parseInt(m.css("border-left-width"),10)||0;f={left:-f,top:-f};d&&h&&(d="x"===d.corner.precedance?["width","left"]:["height","top"],f[d[1]]-=h[d[0]]());g.bgiframe.css(f).css(a)},redraw:function(){if(1>b.rendered||f)return a;var d=s.style,h=s.position.container,g,e,l;f=1;d.height&&m.css(da,d.height);d.width?m.css($,d.width):(m.css($,"").appendTo(k),g=m.width(),1>g%2&&(g+=1),e=m.css("max-width")||"",l=m.css("min-width")||"",d=-1<(e+l).indexOf("%")?h.width()/100:0,e=(-1k.length||ma[k]?F.nextid++:ma[k]=k;f=".qtip-"+k+"-create";a:{g=d(this);var p,n,t,y,u=d(H.body),c=g[0]===H?u:g;n=g.metadata?g.metadata(b.metadata):E;t="html5"===b.metadata.type&&n?n[b.metadata.name]:E;var w=g.data(b.metadata.name||"qtipopts");try{w="string"===typeof w?d.parseJSON(w):w}catch(J){}t=d.extend(r,{},F.defaults,b,"object"===typeof w?ia(w):E,ia(t||n));n=t.position;t.id=k;if("boolean"===typeof t.content.text)if(p=g.attr(t.content.attr),t.content.attr!==e&&p)t.content.text=p;else{h=e;break a}n.container.length||(n.container=u);n.target===e&&(n.target=c);t.show.target===e&&(t.show.target=c);t.show.solo===r&&(t.show.solo=n.container.closest("body"));t.hide.target===e&&(t.hide.target=c);t.position.viewport===r&&(t.position.viewport=n.container);n.container=n.container.eq(0);n.at=new v.Corner(n.at);n.my=new v.Corner(n.my);if(g.data("qtip"))if(t.overwrite)g.qtip("destroy");else if(t.overwrite===e){h=e;break a}g.attr(la,!0);t.suppress&&(y=g.attr("title"))&&g.removeAttr("title").attr(Z,y).attr("title","");p=new va(g,t,k,!!p);g.data("qtip",p);g.one("remove.qtip-"+k+" removeqtip.qtip-"+k,function(){var a;(a=d(this).data("qtip"))&&a.destroy()});h=p}if(h===e)return r;m=h.options;d.each(v,function(){"initialize"===this.initialize&&this(h)});x={show:m.show.target,hide:m.hide.target};l={show:d.trim(""+m.show.event).replace(/ /g,f+" ")+f,hide:d.trim(""+m.hide.event).replace(/ /g,f+" ")+f};/mouse(over|enter)/i.test(l.show)&&!/mouse(out|leave)/i.test(l.hide)&&(l.hide+=" mouseleave"+f);x.show.bind("mousemove"+f,function(a){ba(a);h.cache.onTarget=r});x.show.bind(l.show,s);(m.show.ready||m.prerender)&&s(a)})};for(var O=F,qa=3,ua=H.createElement("div");(ua.innerHTML="\x3c!--[if gt IE "+ ++qa+"]>arguments.length)return d.attr(g,Z);e&&("title"===e.options.content.attr&&e.cache.attr)&&e.set("content.text",a);return this.attr(Z,a)}}return d.fn.attr_replacedByqTip.apply(this,arguments)},clone:function(b){d([]);var a=d.fn.clone_replacedByqTip.apply(this,arguments);b||a.filter("["+Z+"]").attr("title",function(){return d.attr(this,Z)}).removeAttr(Z);return a}}};d.each(v.fn,function(b,a){if(!a||d.fn[b+"_replacedByqTip"])return r;var g=d.fn[b+"_replacedByqTip"]=d.fn[b];d.fn[b]=function(){return a.apply(this,arguments)||g.apply(this,arguments)}});d.ui||(d.cleanData_replacedByqTip=d.cleanData,d.cleanData=function(b){for(var a=0,g;(g=d(b[a])).length&&g.attr(la);a++)try{g.triggerHandler("removeqtip")}catch(e){}d.cleanData_replacedByqTip(b)});F.version="2.0.1-35-";F.nextid=0;F.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");F.zindex=15E3;F.defaults={prerender:e,id:e,overwrite:r,suppress:r,content:{text:r,attr:"title",deferred:e,title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:r,scroll:r,resize:r,method:"flipinvert flipinvert"},effect:function(b,a){d(this).animate(a,{duration:200,queue:e})}},show:{target:e,event:"mouseenter",effect:r,delay:90,solo:e,ready:e,autofocus:e},hide:{target:e,event:"mouseleave",effect:r,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e,height:e,def:r},events:{render:E,move:E,show:E,hide:E,toggle:E,visible:E,hidden:E,focus:E,blur:E}};v.svg=function(b,a){for(var g=d(H),e=a[0],m={width:0,height:0,position:{top:1E10,left:1E10}},r,l,f;!e.getBBox;)e=e.parentNode;if(e.getBBox&&e.parentNode){r=e.getBBox();l=e.getScreenCTM();e=e.farthestViewportElement||e;if(!e.createSVGPoint)return m;e=e.createSVGPoint();e.x=r.x;e.y=r.y;f=e.matrixTransform(l);m.position.left=f.x;m.position.top=f.y;e.x+=r.width;e.y+=r.height;f=e.matrixTransform(l);m.width=f.x-m.position.left;m.height=f.y-m.position.top;m.position.left+=g.scrollLeft();m.position.top+=g.scrollTop()}return m};var na=".qtip-ajax",za=/)<[^<]*)*<\/script>/gi,O=v.ajax=function(b){var a=b.plugins.ajax;return"object"===typeof a?a:b.plugins.ajax=new ya(b)};O.initialize="render";O.sanitize=function(b){var a=b.content;a&&"ajax" in a&&(a=a.ajax,"object"!==typeof a&&(a=b.content.ajax={url:a}),"boolean"!==typeof a.once&&a.once&&(a.once=!!a.once))};d.extend(r,F.defaults,{content:{ajax:{loading:r,once:r}}});var ga=".qtip-tip",oa=!!H.createElement("canvas").getContext,O=v.tip=function(b){var a=b.plugins.tip;return"object"===typeof a?a:b.plugins.tip=new Aa(b)};O.initialize="render";O.sanitize=function(b){var a=b.style;a&&"tip" in a&&(a=b.style.tip,"object"!==typeof a&&(b.style.tip={corner:a}),/string|boolean/i.test(typeof a.corner)||(a.corner=r),"number"!==typeof a.width&&delete a.width,"number"!==typeof a.height&&delete a.height,"number"!==typeof a.border&&a.border!==r&&delete a.border,"number"!==typeof a.offset&&delete a.offset)};d.extend(r,F.defaults,{style:{tip:{corner:r,mimic:e,width:6,height:6,border:r,offset:0}}});var aa,pa="is-modal-qtip",ka=Y+"["+pa+"]",ha=".qtipmodal";aa=function(){function b(a){if(d.expr[":"].focusable)return d.expr[":"].focusable;var b=!isNaN(d.attr(a,"tabindex")),f=a.nodeName&&a.nodeName.toLowerCase();if("area"===f){b=a.parentNode;f=b.name;if(!a.href||!f||"map"!==b.nodeName.toLowerCase())return!1;a=d("img[usemap=#"+f+"]")[0];return!!a&&a.is(":visible")}return/input|select|textarea|button|object/.test(f)?!a.disabled:"a"===f?a.href||b:b}function a(a){1>m.length&&a.length?a.not("body").blur():m.first().focus()}function g(b){if(f.is(":visible")){b=d(b.target);var g=x.elements.tooltip,l=b.closest(Y);!(1>l.length?e:parseInt(l[0].style.zIndex,10)>parseInt(g[0].style.zIndex,10))&&b.closest(Y)[0]!==g[0]&&a(b)}}var s=this,m={},x,l,f;d.extend(s,{init:function(){function a(){var b=d(this);f.css({height:b.height(),width:b.width()})}f=s.elem=d("
    ",{id:"qtip-overlay",html:"
    ",mousedown:function(){return e}}).hide();d(M).bind("resize"+ha,a);a();d(H.body).bind("focusin"+ ha,g);d(H).bind("keydown"+ha,function(a){x&&(x.options.show.modal.escape&&27===a.keyCode)&&x.hide(a)});f.bind("click"+ha,function(a){x&&x.options.show.modal.blur&&x.hide(a)});return s},update:function(a){x=a;m=a.options.show.modal.stealfocus!==e?a.elements.tooltip.find("*").filter(function(){return b(this)}):[]},toggle:function(b,g,p){d(H.body);var n=b.elements.tooltip,m=b.options.show.modal,y=m.effect,u=g?"show":"hide",c=f.is(":visible"),w=d(ka).filter(":visible:not(:animated)").not(n);s.update(b);g&&m.stealfocus!==e&&a(d(":focus"));f.toggleClass("blurs",m.blur);g&&f.css({left:0,top:0}).appendTo(H.body);if(f.is(":animated")&&c===g&&l!==e||!g&&w.length)return s;f.stop(r,e);if(d.isFunction(y))y.call(f,g);else if(y===e)f[u]();else f.fadeTo(parseInt(p,10)||90,g?1:0,function(){g||f.hide()});g||f.queue(function(a){f.css({left:"",top:""});w.length||f.detach();a()});l=g;x.destroyed&&(x=E);return s}});s.init()};aa=new aa;O=v.modal=function(b){var a=b.plugins.modal;return"object"===typeof a?a:b.plugins.modal=new Ba(b)};O.sanitize=function(b){b.show&&("object"!==typeof b.show.modal?b.show.modal={on:!!b.show.modal}:"undefined"===typeof b.show.modal.on&&(b.show.modal.on=r))};O.zindex=F.zindex-200;O.initialize="render";d.extend(r,F.defaults,{show:{modal:{on:e,effect:r,blur:r,stealfocus:r,escape:r}}});v.viewport=function(b,a,d,e,m,r,l){function f(b,d,f,g,e,h,k,l,m){var r=a[e],s=p[b],t=n[b],u=f===V,y=-w.offset[e]+c.offset[e]+c["scroll"+e],x=s===e?m:s===h?-m:-m/2,B=v&&v.size?v.size[k]||0:0,z=v&&v.corner&&v.corner.precedance===b&&!u?B:0,E=y-r+z;m=r+m-c[k]-y+z;l=x-(p.precedance===b||s===p[d]?t===e?l:t===h?-l:-l/2:0)-(t===I?l/2:0);if(u)z=v&&v.corner&&v.corner.precedance===d?B:0,l=(s===e?1:-1)*x-z,a[e]+=0m&&(a[e]=r,j=p.clone())}return a[e]- r}var h=d.target,k=b.elements.tooltip,p=d.my,n=d.at,t=d.adjust,y=t.method.split(" "),u=y[0],y=y[1]||y[0],c=d.viewport,w=d.container;d=b.cache;var v=b.plugins.tip,B={left:0,top:0},j,z;if(!c.jquery||h[0]===M||h[0]===H.body||"none"===t.method)return B;h="fixed"===k.css("position");c={elem:c,height:c[(c[0]===M?"h":"outerH")+"eight"](),width:c[(c[0]===M?"w":"outerW")+"idth"](),scrollleft:h?0:c.scrollLeft(),scrolltop:h?0:c.scrollTop(),offset:c.offset()||{left:0,top:0}};w={elem:w,scrollLeft:w.scrollLeft(),scrollTop:w.scrollTop(),offset:w.offset()||{left:0,top:0}};if("shift"!==u||"shift"!==y)j=p.clone();B={left:"none"!==u?f(U,R,u,t.x,N,P,$,e,r):0,top:"none"!==y?f(R,U,y,t.y,K,Q,da,m,l):0};if(j&&d.lastClass!==(z=L+"-pos-"+j.abbrev()))k.removeClass(b.cache.lastClass).addClass(b.cache.lastClass=z);return B};v.imagemap=function(b,a,e,r){function m(a,b,c){for(var d=0,e=1,f=1,g=0,h=0,k=a.width,l=a.height;0b.length);)g=b[d][0]-a.position.left,h=b[d][1]-a.position.top,(c.x===N&&g>=e||c.x===P&&g<=e||c.x===I&&(ga.width-e)||c.y===K&&h>=f||c.y===Q&&h<=f||c.y===I&&(ha.height-f))&&b.splice(d,1)}return{left:b[0][0],top:b[0][1]}}a.jquery||(a=d(a));b=b.cache.areas={};var v=(a[0].shape||a.attr("shape")).toLowerCase(),l=a[0].coords||a.attr("coords"),f=l.split(","),h=[];a=d('img[usemap="#'+a.parent("map").attr("name")+'"]');var k=a.offset(),p={width:0,height:0,position:{top:1E10,right:0,bottom:0,left:1E10}},n=0,t=0;k.left+=Math.ceil((a.outerWidth()-a.width())/2);k.top+=Math.ceil((a.outerHeight()-a.height())/2);if("poly"===v)for(n=f.length;n--;)t=[parseInt(f[--n],10),parseInt(f[n+1],10)],t[0]>p.position.right&&(p.position.right=t[0]),t[0]p.position.bottom&&(p.position.bottom=t[1]),t[1]