/**** break out of containing windows ****/
$(function() { if (parent != self) {top.location.href = document.location.href;}; }); 

/**** hide email addresses ****/
$(function() { $('.ema').each(function() { var address = $(this).text().replace(/\s*\[ta\]\s*/, '@').replace(/\s*\[tod\]\s*/g, '.'); $(this).html('<a href="mailto:' + address + '">'+ address +'</a>'); }); });

/**** open external links externally with activator: (rel="external") ****/
$(function() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if ((anchor.getAttribute("href")) && (anchor.getAttribute("rel") == "external")) { anchor.target = "_blank"; }};}); 

/**** mark current menu item ****/
$(function() { var pcspath = window.location.pathname.substring(1); if (pcspath) { $('a[href$="' + pcspath + '"]').parents("li").each(function() { $(this).addClass("current"); }); }; if($("#pcsmenu li").hasClass("current") == false) { $("#pcsmenu li:first").addClass("current"); }; });

$(function() {
$("#pcsmenu li a").mouseover(function(){ $(this).stop().animate({backgroundColor: '#45671b'},333); });  
$("#pcsmenu li a").mouseout(function(){ $(this).stop().animate({backgroundColor: '#000'},777); });
$("#pcsmenu li.current a").mouseout(function(){ $(this).stop().animate({backgroundColor: '#fbe6a3'},777); });
}); 

/********* jQuery Cycle Lite Plugin 1.3 (jquery.cycle.lite.js) (http://malsup.com/jquery/cycle/lite) **********/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){8 Y=\'1J-1.3\';$.j.u=6(C){x 9.H(6(){C=C||{};5(9.y)1f(9.y);9.y=0;9.K=0;8 $b=$(9);8 $c=C.Z?$(C.Z,9):$b.1K();8 7=$c.1L();5(7.k<2){1M.1g&&1g.1N(\'1O; 1P 1Q c: \'+7.k);x}8 4=$.1h({},$.j.u.1i,C||{},$.1j?$b.1j():$.L?$b.10():{});8 L=$.1R($b.10)?$b.10(4.1k):D;5(L)4=$.1h(4,L);4.v=4.v?[4.v]:[];4.q=4.q?[4.q]:[];4.q.1S(6(){4.11=0});8 M=9.1T;4.m=12((M.13(/w:(\\d+)/)||[])[1])||4.m;4.e=12((M.13(/h:(\\d+)/)||[])[1])||4.e;4.f=12((M.13(/t:(\\d+)/)||[])[1])||4.f;5($b.r(\'14\')==\'1U\')$b.r(\'14\',\'1V\');5(4.m)$b.m(4.m);5(4.e&&4.e!=\'15\')$b.e(4.e);8 E=0;$c.r({14:\'1W\',1X:0,1Y:0}).H(6(i){$(9).r(\'z-1Z\',7.k-i)});$(7[E]).r(\'F\',1).20();5($.1l.1m)7[E].1n.1o(\'1p\');5(4.I&&4.m)$c.m(4.m);5(4.I&&4.e&&4.e!=\'15\')$c.e(4.e);5(4.1q)$b.21(6(){9.K=1},6(){9.K=0});8 16=$.j.u.1r[4.1s];16&&16($b,$c,4);$c.H(6(){8 $17=$(9);9.22=(4.I&&4.e)?4.e:$17.e();9.23=(4.I&&4.m)?4.m:$17.m()});5(4.1t)$($c[E]).r(4.1t);5(4.f){5(4.s.24==25)4.s={26:27,28:29}[4.s]||2a;5(!4.N)4.s=4.s/2;2b((4.f-4.s)<2c)4.f+=4.s}4.1u=4.s;4.1v=4.s;4.18=7.k;4.J=E;4.g=1;8 B=$c[E];5(4.v.k)4.v[0].O(B,[B,B,4,P]);5(4.q.k>1)4.q[1].O(B,[B,B,4,P]);5(4.Q&&!4.a)4.a=4.Q;5(4.a)$(4.a).1w(\'Q\',6(){x 19(7,4,4.R?-1:1)});5(4.1a)$(4.1a).1w(\'Q\',6(){x 19(7,4,4.R?1:-1)});5(4.f)9.y=1x(6(){S(7,4,0,!4.R)},4.f+(4.1y||0))})};6 S(7,4,1b,G){5(4.11)x;8 p=7[0].1z,A=7[4.J],a=7[4.g];5(p.y===0&&!1b)x;5(1b||!p.K){5(4.v.k)$.H(4.v,6(i,o){o.O(a,[A,a,4,G])});8 q=6(){5($.1l.1m)9.1n.1o(\'1p\');$.H(4.q,6(i,o){o.O(a,[A,a,4,G])})};5(4.g!=4.J){4.11=1;$.j.u.1A(A,a,4,q)}8 1c=(4.g+1)==7.k;4.g=1c?0:4.g+1;4.J=1c?7.k-1:4.g-1}5(4.f)p.y=1x(6(){S(7,4,0,!4.R)},4.f)};6 19(7,4,1d){8 p=7[0].1z,f=p.y;5(f){1f(f);p.y=0}4.g=4.J+1d;5(4.g<0){4.g=7.k-1}2d 5(4.g>=7.k){4.g=0}S(7,4,1,1d>=0);x 2e};$.j.u.1A=6(A,a,4,1B){8 $l=$(A),$n=$(a);$n.r(4.T);8 j=6(){$n.1C(4.1e,4.1u,4.2f,1B)};$l.1C(4.U,4.1v,4.2g,6(){$l.r(4.V);5(!4.N)j()});5(4.N)j()};$.j.u.1r={1D:6($b,$c,4){$c.1E(\':1F(0)\').1G();4.T={F:0,W:\'1H\'};4.V={W:\'1I\'};4.U={F:0};4.1e={F:1}},2h:6($b,$c,4){4.v.2i(6(A,a,4,G){$(A).r(\'X\',4.18+(G===P?1:0));$(a).r(\'X\',4.18+(G===P?0:1))});$c.1E(\':1F(0)\').1G();4.T={F:1,W:\'1H\',X:1};4.V={W:\'1I\',X:0};4.U={F:0}}};$.j.u.Y=6(){x Y};$.j.u.1i={1e:{},U:{},1s:\'1D\',q:D,v:D,T:{},V:{},1y:0,I:0,e:\'15\',1k:\'u\',a:D,1q:0,1a:D,s:2j,Z:D,N:1,f:2k,}})(2l);',62,146,'||||opts|if|function|els|var|this|next|cont|slides||height|timeout|nextSlide|||fn|length||width||||after|css|speed||cycle|before||return|cycleTimeout||curr|e0|options|null|first|opacity|fwd|each|fit|currSlide|cyclePause|meta|cls|sync|apply|true|click|rev|go|cssBefore|animOut|cssAfter|display|zIndex|ver|slideExpr|data|busy|parseInt|match|position|auto|txFn|el|slideCount|advance|prev|manual|roll|val|animIn|clearTimeout|console|extend|defaults|metadata|metaAttr|browser|msie|style|removeAttribute|filter|pause|transitions|fx|cssFirst|speedIn|speedOut|bind|setTimeout|delay|parentNode|custom|cb|animate|fade|not|eq|hide|block|none|Lite|children|get|window|log|terminating|too|few|isFunction|unshift|className|static|relative|absolute|top|left|index|show|hover|cycleH|cycleW|constructor|String|slow|600|fast|200|400|while|250|else|false|easeIn|easeOut|fadeout|push|1000|4000|jQuery'.split('|'),0,{}));

$(function(){ $('div#headerotate').cycle({ fx: 'fade', pause: false, speed: 3000, timeout: 9000, sync: true }); });

/********* jQuery Masonry v2.0.110526 (jquery.masonry.min.js) (http://masonry.desandro.com) **********/
(function(a,b,c){var d=b.event,e;d.special.smartresize={setup:function(){b(this).bind("resize",d.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",d.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",e&&clearTimeout(e),e=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Mason=function(a,c){this.element=b(c),this._create(a),this._init()};var f=["position","height"];b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1},b.Mason.prototype={_filterFindBricks:function(a){var b=this.options.itemSelector;return b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var b=this._filterFindBricks(a).css({position:"absolute"}).addClass("masonry-brick");return b},_create:function(c){this.options=b.extend(!0,{},b.Mason.settings,c),this.styleQueue=[],this.reloadItems();var d=this.element[0].style;this.originalStyle={};for(var e=0,g=f.length;e<g;e++){var h=f[e];this.originalStyle[h]=d[h]||null}this.element.css({position:"relative"}),this.horizontalDirection=this.options.isRTL?"right":"left",this.offset={};var i=b(document.createElement("div"));this.element.prepend(i),this.offset.y=Math.round(i.position().top),this.options.isRTL?(i.css({"float":"right",display:"inline-block"}),this.offset.x=Math.round(this.element.outerWidth()-i.position().left)):this.offset.x=Math.round(i.position().left),i.remove();var j=this;setTimeout(function(){j.element.addClass("masonry")},0),this.options.isResizable&&b(a).bind("smartresize.masonry",function(){j.resize()})},_init:function(a){this._getColumns("masonry"),this._reLayout(a)},option:function(a,c){b.isPlainObject(a)&&(this.options=b.extend(!0,this.options,a))},layout:function(a,c){var d,e,f,g,h,i;for(var j=0,k=a.length;j<k;j++){d=b(a[j]),e=Math.ceil(d.outerWidth(!0)/this.columnWidth),e=Math.min(e,this.cols);if(e===1)this._placeBrick(d,this.colYs);else{f=this.cols+1-e,g=[];for(i=0;i<f;i++)h=this.colYs.slice(i,i+e),g[i]=Math.max.apply(Math,h);this._placeBrick(d,g)}}var l={};l.height=Math.max.apply(Math,this.colYs)-this.offset.y,this.options.isFitWidth&&(l.width=this.cols*this.columnWidth-this.options.gutterWidth),this.styleQueue.push({$el:this.element,style:l});var m=this.isLaidOut?this.options.isAnimated?"animate":"css":"css",n=this.options.animationOptions,o;for(j=0,k=this.styleQueue.length;j<k;j++)o=this.styleQueue[j],o.$el[m](o.style,n);this.styleQueue=[],c&&c.call(a),this.isLaidOut=!0},_getColumns:function(){var a=this.options.isFitWidth?this.element.parent():this.element,b=a.width();this.columnWidth=this.options.columnWidth||this.$bricks.outerWidth(!0)||b,this.columnWidth+=this.options.gutterWidth,this.cols=Math.floor((b+this.options.gutterWidth)/this.columnWidth),this.cols=Math.max(this.cols,1)},_placeBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g={top:c};g[this.horizontalDirection]=this.columnWidth*d+this.offset.x,this.styleQueue.push({$el:a,style:g});var h=c+a.outerHeight(!0),i=this.cols+1-f;for(e=0;e<i;e++)this.colYs[d+e]=h},resize:function(){var a=this.cols;this._getColumns("masonry"),this.cols!==a&&this._reLayout()},_reLayout:function(a){var b=this.cols;this.colYs=[];while(b--)this.colYs.push(this.offset.y);this.layout(this.$bricks,a)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(a){this.reloadItems(),this._init(a)},appended:function(a,b,c){if(b){this._filterFindBricks(a).css({top:this.element.height()});var d=this;setTimeout(function(){d._appended(a,c)},1)}else this._appended(a,c)},_appended:function(a,b){var c=this._getBricks(a);this.$bricks=this.$bricks.add(c),this.layout(c,b)},remove:function(a){this.$bricks=this.$bricks.not(a),a.remove()},destroy:function(){this.$bricks.removeClass("masonry-brick").each(function(){this.style.position=null,this.style.top=null,this.style.left=null});var c=this.element[0].style;for(var d=0,e=f.length;d<e;d++){var g=f[d];c[g]=this.originalStyle[g]}this.element.unbind(".masonry").removeClass("masonry").removeData("masonry"),b(a).unbind(".masonry")}},b.fn.imagesLoaded=function(a){var b=this.find("img"),d=b.length,e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",f=this,g=function(){--d<=0&&this.src!==e&&(a.call(f),b.unbind("load",g))};if(!d){a.call(this);return this}b.bind("load",g).each(function(){if(this.complete||this.complete===c){var a=this.src;this.src=e,this.src=a}});return this},b.fn.masonry=function(a){if(typeof a=="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"masonry");if(!d)return b.error("cannot call methods on masonry prior to initialization; attempted to call method '"+a+"'");if(!b.isFunction(d[a])||a.charAt(0)==="_")return b.error("no such method '"+a+"' for masonry instance");d[a].apply(d,c)})}else this.each(function(){var c=b.data(this,"masonry");c?(c.option(a||{}),c._init()):b.data(this,"masonry",new b.Mason(a,this))});return this}})(window,jQuery);

$(function() { $('#masonrylist').masonry({ itemSelector: 'a' }); });




$(function() { $("#loggergallery").pwi({
    username: '103848253729786196565',
    showPhotoCaption: true,
    showPhotoCaptionDate: false,
    showPager: 'top',
    showCaptionLength: 333,
    thumbSize: 120,
    albumThumbSize: 190,
    thumbCss: {'margin': '0px', 'width': '130px', 'height': 'auto', 'max-height': '154px', 'padding': '0px', 'overflow': 'hidden', 'display': 'block', 'float': 'left', 'font': 'normal 10px/12px verdana,geneva,sans-serif'},
    photoSize: 600,
    albumCrop: 1,
    thumbCrop: 1,
    maxResults: 15,
    albums: ["Clothing","ButtonsAccessories","ArtMasks"],
    slimbox_config: { loop: true }
  }); });
