
(function(){var photoSwipeOptions={history:false,index:0},galleryCookie='open-gallery';var $gallery=$('#fgallery_1');var galleryPhotos=$gallery.data('photos');if(galleryPhotos&&galleryPhotos.length>0){var $galleryLink=$('.action-gallery');var registerUrl=$galleryLink.data('register')||false;$galleryLink.on('click',function(e){e.preventDefault();if(registerUrl&&registerUrl.length>0){$.Window({iframe:registerUrl});BREW.Cookie(galleryCookie,1);return false;}
var loadGalleryItem=function(item){if(item.done)return;var img=new Image();$(img).on('load',function(){item.w=img.naturalWidth;item.h=img.naturalHeight;gallery.invalidateCurrItems();gallery.updateSize(true);item.done=true;});$(img).on('error',function(){item.done=true;});img.src=item.src;};var gallery=new PhotoSwipe($gallery.find('.pswp').get(0),PhotoSwipeUI_Default,galleryPhotos,photoSwipeOptions);gallery.listen('gettingData',function(index,item){if(item.done)return;setTimeout(function(){loadGalleryItem(item);},100)});gallery.listen('imageLoadComplete',function(index,item){if(item.done)return;loadGalleryItem(item);});gallery.init();});if(!registerUrl&&BREW.Cookie(galleryCookie)>0){$galleryLink.trigger('click');BREW.Cookie(galleryCookie,0);}}})();(function(){'use strict';var $slides=$('#slideshow_1 .slide'),delay=8000,slideInterval=null;if($slides.length>1){$slides.not('.active').css('opacity',0);var fnSlide=function(fw){var $actual=$slides.filter('.actual').eq(0);$slides.each(function(i,elem){$(elem).removeClass('next').removeClass('prev');});if(!$actual.size())
$actual=$slides.filter('.active').eq(0);var $next=fw?$actual.next().eq(0):$actual.prev().eq(0);if(!$next.length){$next=(fw?$slides.first().eq(0):$slides.last().eq(0));}
$next.stop(true).animate({'opacity':1},0,function(){var $this=$(this);if($this.hasClass('360')){$this.find(".pnlm-grab").show();clearInterval(slideInterval);}}).addClass('active').addClass('actual');$slides.not($next).each(function(i,v){if($(v).css('opacity')>0){$(v).stop(true).animate({'opacity':0},0,function(){$slides.not($next).removeClass('active');$(v).find(".pnlm-grab").hide();}).removeClass('actual');}});$actual=$slides.filter('.active').eq(0);($actual.next().length!==0)?$actual.next().addClass('next'):$slides.first().addClass('next');($actual.prev().length!==0)?$actual.prev().addClass('prev'):$slides.last().addClass('prev');$('.slide.prev, .slide.active, .slide.next').each(function(){var image=$(this).data('background');$(this).css('background-image','url(\''+image+'\')');$(this).css('filter','progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+image+'\', sizingMethod="scale")');});};$('.slider-controls .button').on('click',function(){clearInterval(slideInterval);slideInterval=setInterval(fnSlide,delay,true);fnSlide(!$(this).hasClass('-left'));});if(!$slides.filter('[data-vr-src]').length){slideInterval=setInterval(fnSlide,delay,true);}}})();window.MAP_OPTIONS={"streetview":true,"center":{"lat":"40.683666230000","lng":"-76.194595340000"},"manager":{"icon":"\/inc\/skins\/ce\/img\/map-flag.png","iconWidth":22,"iconHeight":25,"bounds":false,"markers":[{"tooltip":"<div class=\"popover\">    <div class=\"-text-right\">        <a class=\"action-close\" tabindex=\"0\">            <svg id=\"icon--close\" viewBox=\"0 0 11.1 11.1\" width=\"12\" height=\"12\">                <polygon points=\"11.1 1.41 9.68 0 5.55 4.13 1.41 0 0 1.41 4.13 5.55 0 9.68 1.41 11.1 5.55 6.96 9.68 11.1 11.1 9.68 6.96 5.55 11.1 1.41\"\/>            <\/svg>        <\/a>    <\/div><div class=\"article\"><a class=\"article__photo hero hero--landscape\" href=\"http:\/\/www.theverdantcompanies.com\/listing\/pask2019568-118-s-2nd-st-103-pottsville-pa-17901\/\" target=\"_parent\"><div class=\"hero__bg\"><img class=\"hero__bg-content\" src=\"https:\/\/feed-images.rewhosting.com\/bright\/_cloud_media\/all\/commerciallease\/pask2019568-1-e5a5e9cc4448e52629adfd6435933eff-o.jpg\" alt=\"Photo of Listing #PASK2019568\" \/><\/div><\/a><div class=\"article__body -pad-horizontal-sm -pad-bottom\">            <h4 class=\"-mar-0\">$700<small class=\"-text-xs -mar-left-xs\">730 Sqft<\/small><\/h4><div class=\"-text-xs\">118 S 2nd St #103, POTTSVILLE<\/div><a href=\"http:\/\/www.theverdantcompanies.com\/listing\/pask2019568-118-s-2nd-st-103-pottsville-pa-17901\/\"target=\"_parent\"><\/a><\/div><footer><\/footer><div class=\"tail\"><\/div><\/div>","lat":"40.683666230000","lng":"-76.194595340000"}]},"open":"auto"};