
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_35_page12
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_35_page12 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_35_page12 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Styled Stack v1.3.0 by Joe Workman
$(document).ready(function() {	
	var custom_bg_src = $("#custom_bg_stacks_in_35_page12 img").attr("src");
	if (custom_bg_src) { 
	    $("#stacks_in_35_page12").css({'background-image':'url(' + custom_bg_src + ')'});	
	}
	else {
	    var bg_src = 'files/styled-stack-images/stack-bg3.png';
    	if (3 != 0) { $("#stacks_in_35_page12").css({'background-image':'url(' + bg_src + ')'}); }
	}
});
// End Styled Stack

	return stack;
})(stacks.stacks_in_35_page12);


// Javascript for stacks_in_40_page12
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_40_page12 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_40_page12 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/***
 * 
 * jbgallery 2.0 BETA - RC3
 * 
 * $Date: 2011-02-15 21:15:15 +0100 (mar, 15 feb 2011) $
 * $Revision: 52 $
 * $Author: massimiliano.balestrieri $
 * $HeadURL: https://jbgallery.googlecode.com/svn/trunk/jbgallery-3.0.min.js $
 * $Id: jbgallery-3.0.min.js 52 2011-02-15 20:15:15Z massimiliano.balestrieri $
 * @requires jQuery v1.3.2
 * 
 * Copyright (c) 2010 Massimiliano Balestrieri
 * Examples and docs at: http://maxb.net/blog/
 * Licensed GPL licenses:
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Carlo Denaro, Simone Parato, Aaron Hutten, Alain Bourgeoa, Steffen Wenzel
 * Inspired by http://www.ringvemedia.com/introduction
 */
//jQuery.noConflict();
;(function(b){jBGallery={};jBGallery.Settings=function(){return{style:"centered",menu:"slider",shortcuts:[37,39],slideshow:false,fade:true,popup:false,randomize:0,caption:true,autohide:false,clickable:false,current:1,webkit:navigator.userAgent.toLowerCase().search(/webkit/)!=-1,ie6:/MSIE 6/i.test(navigator.userAgent),ie7:/MSIE 7/i.test(navigator.userAgent),labels:{play:"play",next:"next",prev:"prev",stop:"stop",close:"close",info:"info"},timers:{fade:400,interval:7E3,autohide:7E3},delays:{mousemove:200,
resize:500,mouseover:800},close:function(){},before:function(){},after:function(){},load:function(){},ready:function(){},fullscreen:true,push:function(){},unshift:function(){},shift:function(){},pop:function(){},empty:function(){}}};jBGallery.Init=function(h,e){function a(g){if(!b(g).data("jbgallery")){var c=new jBGallery.Options(h,g),i=new jBGallery.Data(g,h);b(g).data("jbgallery",new jBGallery.Core(g,i,c));return b(g).data("jbgallery")}}if(typeof h=="string"){if(b(this).data("jbgallery"))return b(this).eq(0).data("jbgallery")[h](e)}else return typeof e==
"boolean"?a(b(this).get(0)):this.each(function(){a(this)})};jBGallery.Data=function(h){function e(c,i){if(b.isArray(c))b.each(c,function(m,o){c[m]=a(o);g[i](c[m])});else{c=a(c);g[i](c)}return c}function a(c){c=typeof c=="string"?a({href:c}):b.extend({href:"",title:"",caption:"",caption_css:"",thumb:"",rel:""},c);if(c.thumb.length==0||!c.thumb)c.thumb=c.href;return c}var g=[];(function(){g=b.map(b(h).find("ul > li"),function(c){var i=b("a",c).get(0);return e({href:i.href,title:i.title,rel:i.rel,caption:b("div.caption",
c).html(),caption_css:b("div.caption",c).clone().removeClass("caption").attr("class"),thumb:b("img",c).attr("src")},"push")})})();return{get:function(c){return g[c]?g[c]:a("")},items:function(){return g},push:function(c){return e(c,"push")},unshift:function(c){return e(c,"unshift")},shift:function(){g.shift()},pop:function(){g.pop()},empty:function(){g=[]},length:function(){return g.length}}};jBGallery.Core=function(h,e,a){function g(){b("html, body").removeClass("jbg").removeClass("ie6");i.target.unbind();
i.target.remove();b(c).removeData("jbgallery");b(c).unbind();b(".jbg-wrap",c).remove();b(".jbgs-thumb, .jbgs, .jbgs-opacity, .jbgs-top, .jbgs-top-opacity, .jbg-loading, .jbg-caption, .jbg-menu-opacity, .jbg-menu",h).unbind().find("a").unbind();b(".jbgs-thumb, .jbgs, .jbgs-opacity, .jbgs-top, .jbgs-top-opacity, .jbg-loading, .jbg-caption, .jbg-menu-opacity, .jbg-menu",h).remove();b(document).unbind("keydown.jbgallery").unbind("mousemove.jbgallery").unbind("click.jbgallery");b(window).unbind("resize.jbgallery")}
var c=h;new jBGallery.Interface(c,e,a);var i=new jBGallery.Engine(c,e,a),m=new jBGallery.Keys(i,a.shortcuts);i.register(m);new jBGallery.OnLoadImage(h,i,a);m=a.caption?new jBGallery.Caption(c,e,i,a):{};if(a.menu){m=a.menu=="slider"?new jBGallery.MenuSlider(c,e,i,m,a):new jBGallery.MenuSimple(c,e,i,m,a);i.register(m)}b(c).bind("destroy",g);b(window).bind("unload",g);b(c).fadeIn(a.timers.fade,function(){a.ready(c)});return{current:i.current,play:i.play,stop:i.stop,go:i.go,right:i.right,left:i.left,
destroy:g,length:e.length,push:i.push,shift:i.shift,pop:i.pop,unshift:i.unshift,empty:i.empty}};jBGallery.Loading=function(){document.getElementsByTagName("html")[0].className="loading"};jBGallery.Options=function(h,e){var a={};if(b.metadata)a=b(e).metadata();var g=new jBGallery.Settings;a=b.extend(true,g,a,h);if(a.current!==1)a.randomize=0;if(a.popup&&a.current===1)if(g=parseInt(location.hash.replace("#",""),10))a.current=g;a.current--;if(a.current<0)a.current=0;if(!a.fade)a.timers.fade=0;if(a.popup&&
a.style=="centered")a.style="centered modal";return a};jBGallery.EventTimer=function(h,e,a,g,c){b.each(e,function(i,m){var o=null;b(h).bind(m,function(q){o&&clearTimeout(o);o=setTimeout(function(){g(q)},a)});c&&b(h).bind(c,function(){o&&clearTimeout(o)})})};jBGallery.AutoToggle=function(h,e,a){function g(){m();i(a[0])}function c(){i(a[1])}function i(d){b(h).each(function(){b(this).css("visibility")!=="hidden"&&b(this)[d](e.timers.fade)})}function m(){if(o){clearInterval(o);o=false}o=setInterval(c,
e.timers.autohide)}var o=false,q=false;a||(a=["slideDown","slideUp"]);b(document).bind("click.jbgallery",g).bind("mousemove.jbgallery",function(){if(q){clearTimeout(q);q=false}q=setTimeout(g,e.delays.mousemove)});m()};jBGallery.Randomizer=function(h,e){h=Math.ceil(e*Math.random());if(h>e||h==0)h=1;return h};jBGallery.Interface=function(h,e,a){if(a.randomize>0)a.current=jBGallery.Randomizer(a.current,e.length());var g=a.style;if(a.webkit)g="";g='<img style="visibility:hidden" class="'+g+' jbgallery-target" alt="'+
e.get(a.current).title+'" src="'+e.get(a.current).href+'" />';g='<div class="jbg-wrap '+a.style+'"><table cellpadding="0" cellspacing="0"><tr><td>'+g+"</td></tr></table></div>";b(h).hide().find("ul").hide();a.fullscreen?b("html, body").addClass("jbg-body"):b(h).addClass("jbox");a.ie6&&b("html").addClass("ie6");b(h).prepend(g).prepend('<div class="jbg-caption" style="display:none"></div>').prepend('<div class="jbg-loading"><span class="jbg-loading"></span></div>');g=new Image;g.onload=function(){b(".jbgallery-target",
h).hide().css("visibility","").fadeIn(a.timers.fade)};g.src=e.get(a.current).href};jBGallery.Engine=function(h,e,a){function g(p){a.before();y.css("opacity",0.5).show();d=p;var j=e.get(d-1);p=new Image;p.onload=function(){u.fadeOut(a.timers.fade,function(){if(this.src==j.href)j.href+="#"+(new Date).getTime();b(this).hide().attr({src:j.href,alt:j.title})})};p.src=j.href}function c(p){if(!(p>e.length()||p===d&&!s)){g(p);s=false}}function i(p){if(a.randomize==2)d=jBGallery.Randomizer(d,e.length());var j=
d<e.length()?d+1:1;c(j,p)}function m(p,j){var t=e[p](j);e.length()==1&&c(1);q(p,t);a[p](t)}function o(){s=true;e.empty();q("empty");a.empty()}function q(p,j){b.each(x,function(t){x[t].notify(p,j)})}var d=a.current?a.current+1:1,l=a.slideshow,r=a.timers.interval,A=false,x=[],s=false,u=b(".jbgallery-target",h),y=b(".jbg-loading",h);return{current:function(){return d},slideshow:function(){return l},length:function(){return e.length()},play:function(){if(!l){l=true;i(r)}},stop:function(){l=false;clearTimeout(A)},
go:c,right:i,left:function(){if(a.randomize==2)d=jBGallery.Randomizer(d,e.length());var p=d>1?d-1:e.length();c(p)},target:u,loading:y,timeout:function(p){clearTimeout(A);A=setTimeout(function(){i(p)},r)},register:function(p){x.push(p)},push:function(p){m("push",p)},shift:function(){e.shift();if(d==1&&e.length()>0){s=true;c(1)}else d--;q("shift");a.shift();e.length()==0&&o()},pop:function(){e.pop();if(d>e.length()&&e.length()>0){s=true;c(e.length())}q("pop");a.pop();e.length()==0&&o()},unshift:function(p){e.length()>
1&&d++;m("unshift",p)},empty:o}};jBGallery.OnLoadImage=function(h,e,a){(a.ie6||a.webkit||a.style!=="zoom")&&new jBGallery.Fix(h,e.target,a);a.clickable&&e.target.click(function(){e.right();return false}).css({cursor:"pointer"});e.target.one("load",function(){b("html").removeClass("loading")}).bind("load",function(g){e.loading.hide();e.target.hide().css("visibility","").fadeIn(a.timers.fade);a.load(g);a.after(g);e.slideshow()&&e.timeout(g)})};jBGallery.Fix=function(h,e,a){function g(d){var l=a.fullscreen?
"body":h,r=b(l).width();l=b(l).height();d={bw:r,bh:l,pm:r/l,p:d.width/d.height,h:d.height,w:d.width};_img=null;return d}function c(){var d=e.get(0),l=a.style=="zoom"?m:i;a.ie6||a.ie7?setTimeout(function(){l(d)},10):l(d)}function i(d){b(d).width("auto").height("auto");d=g(d);var l;if(a.style=="original"&&d.bw>=d.w&&d.bh>=d.h)return false;if(d.bw<d.bh){var r=d.h*d.bw/d.w;if(l=r>d.bh){r=d.w*d.bh/d.h;q(r,d,l)}else q(d.bw,d)}else{r=d.w*d.bh/d.h;if(l=r>d.bw){r=d.h*d.bw/d.w;o(r,d,l)}else o(d.bh,d)}}function m(d){b(d).width("auto").height("auto");
d=g(d);if(d.bh>d.bw){var l=d.w*d.bh/d.h;if(l<d.bw){l=d.h*d.bw/d.w;o(l,d,true)}else o(d.bh,d,true)}else{l=d.h*d.bw/d.w;if(l<d.bh){l=d.w*d.bh/d.h;q(l,d,true)}else q(d.bw,d,true)}}function o(d,l,r){if(r||a.style=="centered"||l.bh<l.h)e.height(d)}function q(d,l,r){if(r||a.style=="centered"||l.bw<l.w)e.width(d)}a.fullscreen&&jBGallery.EventTimer(window,["resize.jbgallery"],a.delays.resize,c);e.bind("load",function(){c()})};jBGallery.Keys=function(h,e){function a(i){switch(i.which||i.keyCode){case e[0]:h.left();
return false;case e[1]:h.right();return false;case 37:case 38:case 39:case 40:return false}}function g(){if(!c&&h.length()>1){b(document).bind("keydown.jbgallery",a);c=true}}var c=false;g();return{notify:function(){g()}}};jBGallery.Caption=function(h,e,a,g){function c(){var o,q=a.current(),d=o="";q=e.get(q-1);d=q.title;if(q.rel.length>0)d='<a href="'+q.rel+'" target="_blank">'+q.title+"</a>";if(q.title.length>0)o+="<h3>"+d+"</h3>";if(q.caption)o+="<div>"+q.caption+"</div>";m.removeAttr("class").addClass(q.caption_css).addClass("jbg-caption");
o=o+"";i=o.length;m.html(o);i==0&&m.hide()}var i=0,m=b(".jbg-caption",h);c();i>0&&m.fadeIn(g.timers.fade);g.autohide&&jBGallery.AutoToggle(m,g);a.target.bind("load",function(){c()});return{toggle:function(){i>0&&m.toggle()}}};jBGallery.MenuSimple=function(h,e,a,g,c){function i(){var j=a.current();s.find("a.selected").removeClass("selected");s.find("a:eq("+j+")").addClass("visited").addClass("selected")}function m(j,t,C){j=b('<a href="#" class="'+j+'">'+t+"</a>").click(function(){C();return false});
return b("<li></li>").append(j)}function o(){for(var j="",t=1;t<=a.length();t++)j+='<li class="jbg-n"><a href="#">'+t+"</a></li>";return j}function q(j){j=j.target||j.srcElement;if(j.tagName.toString().toLowerCase()==="a"){j=parseInt(b(j).text());a.go(j)}return false}function d(){if(!x&&a.length()>0){b('<div class="jbg-menu-opacity" /><ul class="jbg-menu" />').hide().appendTo(h);s=b(".jbg-menu",h);u=b(".jbg-menu-opacity , .jbg-menu",h);c.menu=="numbers"&&s.append(o()).click(q).find("a:eq("+(a.current()-
1)+")").addClass("selected").addClass("visited");s.append(m("jbg-next",c.labels.next,a.right)).prepend(m("jbg-prev",c.labels.prev,a.left));s.append(y).append(p);c.caption&&s.append(m("jbg-info",c.labels.info,function(){g.toggle();return false}));c.popup&&s.append(m("jbg-close",c.labels.close,function(){b(A).trigger("destroy");c.close();return false}));c.menu=="numbers"&&a.target.bind("load",i);c.autohide&&jBGallery.AutoToggle(b(u),c);b(u).fadeIn(c.timers.fade);x=true}}function l(j){b(".jbg-next",
s).parent().before(j)}function r(j){x||d();if(b.isArray(j)){var t="",C=a.length()-j.length;b.each(j,function(B){t+='<li class="jbg-n"><a href="#">'+(C+B+1)+"</a></li>"});l(t)}else l('<li class="jbg-n"><a href="#">'+a.length()+"</a></li>");i();a.length()}var A=h,x=false,s,u,y=m("jbg-play",c.labels.play,function(){a.play();y.hide();p.show()}).toggle(!c.slideshow),p=m("jbg-stop",c.labels.stop,function(){a.stop();y.show();p.hide()}).toggle(c.slideshow);a.length();d();return{notify:function(j,t){e.length()>
0&&!b(u).eq(0).is(":visible")&&b(u).fadeIn(c.timers.fade);if(c.menu=="numbers")switch(j){case "push":case "unshift":r(t);break;case "pop":case "shift":b("li.jbg-n:last",s).remove()}if(j=="empty"){c.menu=="numbers"&&b(".jbg-n",s).remove();b(u).fadeOut(c.timers.fade);a.length()}}}};jBGallery.MenuSlider=function(h,e,a,g,c){function i(f,k){b(f).click(function(){var n=this;if(!b(n).is(".lock")){b(n).addClass("lock");k(function(){b(n).removeClass("lock")});return false}})}function m(f){return f.height>=
f.width?"jbgs-thumb-portrait":"jbgs-thumb-landscape"}function o(f,k){v.animate({left:f},function(){k&&k()})}function q(f){var k=l(),n=r();k=k+60*n>0?0:k+60*n;o(k,f)}function d(f){var k=l(),n=a.length(),z=Math.abs(k)/60,w=r(),N=(n-w)*60;if(n<w||w+z>=n)return f();k=z+w+w>n?-N:k-60*w;o(k,f)}function l(){return parseInt(v.css("left"),10)}function r(){var f=b(B).width()-130;return(f-f%60)/60}function A(){b("a",v).css("margin-top","");b(".jbgs-thumb").fadeOut(c.timers.fade,function(){b(this).remove()})}
function x(f){f=f.target||f.srcElement;if(f.tagName.toString().toLowerCase()==="img"){b(f).parent().parent().css("margin-top","3px");var k=b(L).index(b(f).parent().parent());f=b(f).get(0);var n=new Image;n.src=f.src;k="jbgs-thumb-"+k;var z=b(f).parents("li:eq(0)").offset().left-b(h).offset().left,w=m(n);n=n.height>=n.width?25:(n.width*100/n.height-60)/2;n=z-n;if(b("#"+k).length==0)b('<div style="left:'+n+'px" class="jbgs-thumb" id="'+k+'"><img src="'+f.src+'" alt="" class="'+w+'" />'+(c.ie6||c.ie7?
"":'<div class="jbgs-thumb-btn"><div class="jbgs-thumb-tip" /></div>')+"</div>").hide().appendTo(B).fadeIn(c.timers.fade)}}function s(){var f=b(B).width()-130;I.width(f-f%60)}function u(f){b(f).addClass(m(f)).css(f.height>=f.width?{top:-(f.height*51/f.width-51)/2}:{left:-(f.width*51/f.height-51)/2})}function y(f){b(f).wrap("<div />");f.complete?u(f):b(f).one("load",function(){u(f)})}function p(f,k){var n=b('<li><a title="'+f.title+'" href="'+f.href+'"><img src="'+f.thumb+'" alt="" /></a></li>')[k](E);
n=b("img",n).css("opacity",0.7).get(0);y(n)}function j(f,k,n){!n&&!J&&t();b.isArray(f)?b.each(f,function(z,w){p(w,k)}):p(f,k);K==0&&!n&&F.fadeIn(c.timers.fade);K=a.length()}function t(){if(!J&&a.length()>0){b(B).append(O+P).addClass("jbgs-cnt");D=b(".jbgs-top-right",h);I=b(".jbgs-viewer",h);E=b('<div class="jbgs-inner"></div>').appendTo(I);v=b(".jbgs-inner",h);G=b(".jbgs-h-play",h);H=b(".jbgs-h-pause",h);L=b("a",v);F=b(".jbgs-opacity, .jbgs, .jbgs-top",h);j(e.items(),"appendTo",true);b(".jbgs-opacity, .jbgs-h").css("opacity",
0.8);a.slideshow()?G.hide():H.hide();c.caption&&b(Q).click(function(){g.toggle();return false}).appendTo(D);if(c.popup){b("a",D).length>0&&b(R).appendTo(D);b(S).click(function(){b(C).trigger("destroy");c.close();return false}).appendTo(D)}i(".jbgs-h-left",q);i(".jbgs-h-right",d);G.click(function(){b(this).hide();H.show();a.play();return false});H.click(function(){b(this).hide();G.show();a.stop();return false});b(".jbgs-h-prev",h).click(function(){a.left();return false});b(".jbgs-h-next",h).click(function(){a.right();
return false});b("a",v).live("click",function(){var f=b("a",v).index(this)+1;a.go(f);return false});jBGallery.EventTimer(v,["mouseover"],c.delays.mouseover,x,"mouseout");v.bind("mouseout",A);a.target.bind("load",function(){var f=a.current(),k=l();k=Math.abs(k)/60;var n=r();n=k+n;if(!(f>=k+1&&f<=n)){k=f;k-=1;k=k;n=a.length;var z=r();k=n-z<k?n-z:k;o(-(k*60)<=0?-(k*60):0)}b("a",v).find(".focus").removeClass("focus").css("opacity","0.7").end().eq(f-1).find("img").addClass("focus").css("opacity","1").parent().addClass("focus").css("opacity",
"1")});jBGallery.EventTimer(window,["resize.jbgallery"],c.delays.resize,s);if(c.autohide){jBGallery.AutoToggle(F,c);jBGallery.AutoToggle(".jbgs-thumb",c,["fadeIn","fadeOut"])}J=true}}var C=h,B=h,M=c.fullscreen?b("body").width()-130:b(B).width()-130,R="<span>&nbsp;|&nbsp;</span>",S='<a href="#" class="jbgs-h-close">'+c.labels.close+"</a>",Q='<a href="#" class="jbgs-h-info">'+c.labels.info+"</a>",O='<div class="jbgs-top"><div class="jbgs-top-center"><a href="#" class="jbgs-h jbgs-h-prev">&nbsp;</a><a href="#" class="jbgs-h jbgs-h-next">&nbsp;</a></div><div class="jbgs-top-right"></div></div>',
P='<div class="jbgs-opacity"></div><div class="jbgs"><div class="jbgs-wrapper"><div class="jbgs-left"><a href="#" class="jbgs-h-play jbgs-h">&nbsp;</a><a href="#" class="jbgs-h-pause jbgs-h">&nbsp;</a><a href="#" class="jbgs-h-left jbgs-h">&nbsp;</a></div><div class="jbgs-viewer" style="width:'+(M-M%60)+'px"></div><div class="jbgs-right"><a href="#" class="jbgs-h-right jbgs-h">&nbsp;</a></div></div></div>',E,D,I,v,G,H,L,F,J=false,K=a.length();t();return{notify:function(f,k){switch(f){case "empty":v.empty();
F.hide(c.timers.fade);K=a.length();break;case "push":j(k,"appendTo");break;case "unshift":j(k,"prependTo");break;case "shift":b("li:first",E).remove();break;case "pop":b("li:last",E).remove()}}}};jBGallery.Adapters={};b.fn.jbgallery=jBGallery.Init})(jQuery);


/***
 * 
 * MobileMe adapter written by SymfoniP.com 
 * 
 * $Date: 21-Feb-2011 Version 1.0.1
 * Push Images from Mobile Me Galleries 
 */
(function(a){jBGallery.Adapters.MobileMe=function(e){function b(){return("localStorage" in window)&&window.localStorage!==null}function c(n,m,j){var d="";var i=0;var l=n.query.results.json.length;var k=[];var o;a.each(n.query.results.json,function(r,t){if(r==0){return}var s=t.records.content;var q=l==(r+1);t.description="<h3>"+t.records.title+"</h3>"+t.records.content;if(r==1){a(m).append("<ul />");var p='<img src="'+t.records.squareDerivativeUrl+'" alt="" />';d+='<li><a href="'+t.records.largeImageUrl+'" title="">'+p+'</a><div class="caption">'+t.description+"</div></li>";a("ul",m).append(d);o=a(m).jbgallery(j,true);i++}else{k.push({href:t.records.largeImageUrl,caption:t.description,thumb:t.records.squareDerivativeUrl});if((r+1)==n.query.results.json.length){o.push(k)}}})}var g=null;var h=new Date();if(b()&&localStorage.getItem("maxAge")!=null&&JSON.parse(localStorage.getItem("maxAge"))>h.getTime()){if(typeof e.stackid=="undefined"){e.stackid="symJBGallery"}g=JSON.parse(localStorage.getItem(e.stackid))}if(g==null){var f="http://gallery.me.com/"+e.account+"/"+e.albums+"/?webdav-method=truthget&feedfmt=json";return this.each(function(){var d=this;a.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20records.squareDerivativeUrl%2Crecords.content%2C%20records.title%2C%20records.largeImageUrl%20from%20json%20where%20url%3D'"+encodeURIComponent(f)+"'%20limit%20150&format=json&diagnostics=false&_maxage=900&callback=?",function(i){var j=new Date();if(typeof e.stackid=="undefined"){e.stackid="symJBGallery"}if(typeof e.timeout=="undefined"){e.timeout=900}if(b()){localStorage.setItem(e.stackid,JSON.stringify(i));localStorage.setItem("maxAge",JSON.stringify(j.getTime()+(e.timeout*1000)))}c(i,d,e)})})}else{return this.each(function(){c(g,this,e)})}};a.fn.jbmobileme=jBGallery.Adapters.MobileMe})(jQuery);

/*Make it Go Go Go - Easy MobileME Gallery*/
/* Version 1.0.0 21-Feb-2011 */
jQuery(document).ready(function(){
	jQuery("#symmobileme_stacks_in_40_page12").jbmobileme({
		albums  : '101077', account : 'jason.lewis',
		filter  : false, fullscreen: false, caption: true, 
		autohide: true, slideshow: true, 
		menu    : 'slider', style:'centered',
		stackid: 'stacks_in_40_page12',
		timers   : {   
		    fade    : 450,           //fade duration  
		    interval: 6000,          //slideshow interval  
		    autohide: 3500           //autohide timeout  
		}
	});
});
// end of Easy MobileMe Gallery Code



	return stack;
})(stacks.stacks_in_40_page12);


// Javascript for stacks_in_47_page12
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_47_page12 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_47_page12 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/***
 * 
 * jbgallery 2.0 BETA - RC3
 * 
 * $Date: 2011-02-15 21:15:15 +0100 (mar, 15 feb 2011) $
 * $Revision: 52 $
 * $Author: massimiliano.balestrieri $
 * $HeadURL: https://jbgallery.googlecode.com/svn/trunk/jbgallery-3.0.min.js $
 * $Id: jbgallery-3.0.min.js 52 2011-02-15 20:15:15Z massimiliano.balestrieri $
 * @requires jQuery v1.3.2
 * 
 * Copyright (c) 2010 Massimiliano Balestrieri
 * Examples and docs at: http://maxb.net/blog/
 * Licensed GPL licenses:
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Carlo Denaro, Simone Parato, Aaron Hutten, Alain Bourgeoa, Steffen Wenzel
 * Inspired by http://www.ringvemedia.com/introduction
 */
//jQuery.noConflict();
;(function(b){jBGallery={};jBGallery.Settings=function(){return{style:"centered",menu:"slider",shortcuts:[37,39],slideshow:false,fade:true,popup:false,randomize:0,caption:true,autohide:false,clickable:false,current:1,webkit:navigator.userAgent.toLowerCase().search(/webkit/)!=-1,ie6:/MSIE 6/i.test(navigator.userAgent),ie7:/MSIE 7/i.test(navigator.userAgent),labels:{play:"play",next:"next",prev:"prev",stop:"stop",close:"close",info:"info"},timers:{fade:400,interval:7E3,autohide:7E3},delays:{mousemove:200,
resize:500,mouseover:800},close:function(){},before:function(){},after:function(){},load:function(){},ready:function(){},fullscreen:true,push:function(){},unshift:function(){},shift:function(){},pop:function(){},empty:function(){}}};jBGallery.Init=function(h,e){function a(g){if(!b(g).data("jbgallery")){var c=new jBGallery.Options(h,g),i=new jBGallery.Data(g,h);b(g).data("jbgallery",new jBGallery.Core(g,i,c));return b(g).data("jbgallery")}}if(typeof h=="string"){if(b(this).data("jbgallery"))return b(this).eq(0).data("jbgallery")[h](e)}else return typeof e==
"boolean"?a(b(this).get(0)):this.each(function(){a(this)})};jBGallery.Data=function(h){function e(c,i){if(b.isArray(c))b.each(c,function(m,o){c[m]=a(o);g[i](c[m])});else{c=a(c);g[i](c)}return c}function a(c){c=typeof c=="string"?a({href:c}):b.extend({href:"",title:"",caption:"",caption_css:"",thumb:"",rel:""},c);if(c.thumb.length==0||!c.thumb)c.thumb=c.href;return c}var g=[];(function(){g=b.map(b(h).find("ul > li"),function(c){var i=b("a",c).get(0);return e({href:i.href,title:i.title,rel:i.rel,caption:b("div.caption",
c).html(),caption_css:b("div.caption",c).clone().removeClass("caption").attr("class"),thumb:b("img",c).attr("src")},"push")})})();return{get:function(c){return g[c]?g[c]:a("")},items:function(){return g},push:function(c){return e(c,"push")},unshift:function(c){return e(c,"unshift")},shift:function(){g.shift()},pop:function(){g.pop()},empty:function(){g=[]},length:function(){return g.length}}};jBGallery.Core=function(h,e,a){function g(){b("html, body").removeClass("jbg").removeClass("ie6");i.target.unbind();
i.target.remove();b(c).removeData("jbgallery");b(c).unbind();b(".jbg-wrap",c).remove();b(".jbgs-thumb, .jbgs, .jbgs-opacity, .jbgs-top, .jbgs-top-opacity, .jbg-loading, .jbg-caption, .jbg-menu-opacity, .jbg-menu",h).unbind().find("a").unbind();b(".jbgs-thumb, .jbgs, .jbgs-opacity, .jbgs-top, .jbgs-top-opacity, .jbg-loading, .jbg-caption, .jbg-menu-opacity, .jbg-menu",h).remove();b(document).unbind("keydown.jbgallery").unbind("mousemove.jbgallery").unbind("click.jbgallery");b(window).unbind("resize.jbgallery")}
var c=h;new jBGallery.Interface(c,e,a);var i=new jBGallery.Engine(c,e,a),m=new jBGallery.Keys(i,a.shortcuts);i.register(m);new jBGallery.OnLoadImage(h,i,a);m=a.caption?new jBGallery.Caption(c,e,i,a):{};if(a.menu){m=a.menu=="slider"?new jBGallery.MenuSlider(c,e,i,m,a):new jBGallery.MenuSimple(c,e,i,m,a);i.register(m)}b(c).bind("destroy",g);b(window).bind("unload",g);b(c).fadeIn(a.timers.fade,function(){a.ready(c)});return{current:i.current,play:i.play,stop:i.stop,go:i.go,right:i.right,left:i.left,
destroy:g,length:e.length,push:i.push,shift:i.shift,pop:i.pop,unshift:i.unshift,empty:i.empty}};jBGallery.Loading=function(){document.getElementsByTagName("html")[0].className="loading"};jBGallery.Options=function(h,e){var a={};if(b.metadata)a=b(e).metadata();var g=new jBGallery.Settings;a=b.extend(true,g,a,h);if(a.current!==1)a.randomize=0;if(a.popup&&a.current===1)if(g=parseInt(location.hash.replace("#",""),10))a.current=g;a.current--;if(a.current<0)a.current=0;if(!a.fade)a.timers.fade=0;if(a.popup&&
a.style=="centered")a.style="centered modal";return a};jBGallery.EventTimer=function(h,e,a,g,c){b.each(e,function(i,m){var o=null;b(h).bind(m,function(q){o&&clearTimeout(o);o=setTimeout(function(){g(q)},a)});c&&b(h).bind(c,function(){o&&clearTimeout(o)})})};jBGallery.AutoToggle=function(h,e,a){function g(){m();i(a[0])}function c(){i(a[1])}function i(d){b(h).each(function(){b(this).css("visibility")!=="hidden"&&b(this)[d](e.timers.fade)})}function m(){if(o){clearInterval(o);o=false}o=setInterval(c,
e.timers.autohide)}var o=false,q=false;a||(a=["slideDown","slideUp"]);b(document).bind("click.jbgallery",g).bind("mousemove.jbgallery",function(){if(q){clearTimeout(q);q=false}q=setTimeout(g,e.delays.mousemove)});m()};jBGallery.Randomizer=function(h,e){h=Math.ceil(e*Math.random());if(h>e||h==0)h=1;return h};jBGallery.Interface=function(h,e,a){if(a.randomize>0)a.current=jBGallery.Randomizer(a.current,e.length());var g=a.style;if(a.webkit)g="";g='<img style="visibility:hidden" class="'+g+' jbgallery-target" alt="'+
e.get(a.current).title+'" src="'+e.get(a.current).href+'" />';g='<div class="jbg-wrap '+a.style+'"><table cellpadding="0" cellspacing="0"><tr><td>'+g+"</td></tr></table></div>";b(h).hide().find("ul").hide();a.fullscreen?b("html, body").addClass("jbg-body"):b(h).addClass("jbox");a.ie6&&b("html").addClass("ie6");b(h).prepend(g).prepend('<div class="jbg-caption" style="display:none"></div>').prepend('<div class="jbg-loading"><span class="jbg-loading"></span></div>');g=new Image;g.onload=function(){b(".jbgallery-target",
h).hide().css("visibility","").fadeIn(a.timers.fade)};g.src=e.get(a.current).href};jBGallery.Engine=function(h,e,a){function g(p){a.before();y.css("opacity",0.5).show();d=p;var j=e.get(d-1);p=new Image;p.onload=function(){u.fadeOut(a.timers.fade,function(){if(this.src==j.href)j.href+="#"+(new Date).getTime();b(this).hide().attr({src:j.href,alt:j.title})})};p.src=j.href}function c(p){if(!(p>e.length()||p===d&&!s)){g(p);s=false}}function i(p){if(a.randomize==2)d=jBGallery.Randomizer(d,e.length());var j=
d<e.length()?d+1:1;c(j,p)}function m(p,j){var t=e[p](j);e.length()==1&&c(1);q(p,t);a[p](t)}function o(){s=true;e.empty();q("empty");a.empty()}function q(p,j){b.each(x,function(t){x[t].notify(p,j)})}var d=a.current?a.current+1:1,l=a.slideshow,r=a.timers.interval,A=false,x=[],s=false,u=b(".jbgallery-target",h),y=b(".jbg-loading",h);return{current:function(){return d},slideshow:function(){return l},length:function(){return e.length()},play:function(){if(!l){l=true;i(r)}},stop:function(){l=false;clearTimeout(A)},
go:c,right:i,left:function(){if(a.randomize==2)d=jBGallery.Randomizer(d,e.length());var p=d>1?d-1:e.length();c(p)},target:u,loading:y,timeout:function(p){clearTimeout(A);A=setTimeout(function(){i(p)},r)},register:function(p){x.push(p)},push:function(p){m("push",p)},shift:function(){e.shift();if(d==1&&e.length()>0){s=true;c(1)}else d--;q("shift");a.shift();e.length()==0&&o()},pop:function(){e.pop();if(d>e.length()&&e.length()>0){s=true;c(e.length())}q("pop");a.pop();e.length()==0&&o()},unshift:function(p){e.length()>
1&&d++;m("unshift",p)},empty:o}};jBGallery.OnLoadImage=function(h,e,a){(a.ie6||a.webkit||a.style!=="zoom")&&new jBGallery.Fix(h,e.target,a);a.clickable&&e.target.click(function(){e.right();return false}).css({cursor:"pointer"});e.target.one("load",function(){b("html").removeClass("loading")}).bind("load",function(g){e.loading.hide();e.target.hide().css("visibility","").fadeIn(a.timers.fade);a.load(g);a.after(g);e.slideshow()&&e.timeout(g)})};jBGallery.Fix=function(h,e,a){function g(d){var l=a.fullscreen?
"body":h,r=b(l).width();l=b(l).height();d={bw:r,bh:l,pm:r/l,p:d.width/d.height,h:d.height,w:d.width};_img=null;return d}function c(){var d=e.get(0),l=a.style=="zoom"?m:i;a.ie6||a.ie7?setTimeout(function(){l(d)},10):l(d)}function i(d){b(d).width("auto").height("auto");d=g(d);var l;if(a.style=="original"&&d.bw>=d.w&&d.bh>=d.h)return false;if(d.bw<d.bh){var r=d.h*d.bw/d.w;if(l=r>d.bh){r=d.w*d.bh/d.h;q(r,d,l)}else q(d.bw,d)}else{r=d.w*d.bh/d.h;if(l=r>d.bw){r=d.h*d.bw/d.w;o(r,d,l)}else o(d.bh,d)}}function m(d){b(d).width("auto").height("auto");
d=g(d);if(d.bh>d.bw){var l=d.w*d.bh/d.h;if(l<d.bw){l=d.h*d.bw/d.w;o(l,d,true)}else o(d.bh,d,true)}else{l=d.h*d.bw/d.w;if(l<d.bh){l=d.w*d.bh/d.h;q(l,d,true)}else q(d.bw,d,true)}}function o(d,l,r){if(r||a.style=="centered"||l.bh<l.h)e.height(d)}function q(d,l,r){if(r||a.style=="centered"||l.bw<l.w)e.width(d)}a.fullscreen&&jBGallery.EventTimer(window,["resize.jbgallery"],a.delays.resize,c);e.bind("load",function(){c()})};jBGallery.Keys=function(h,e){function a(i){switch(i.which||i.keyCode){case e[0]:h.left();
return false;case e[1]:h.right();return false;case 37:case 38:case 39:case 40:return false}}function g(){if(!c&&h.length()>1){b(document).bind("keydown.jbgallery",a);c=true}}var c=false;g();return{notify:function(){g()}}};jBGallery.Caption=function(h,e,a,g){function c(){var o,q=a.current(),d=o="";q=e.get(q-1);d=q.title;if(q.rel.length>0)d='<a href="'+q.rel+'" target="_blank">'+q.title+"</a>";if(q.title.length>0)o+="<h3>"+d+"</h3>";if(q.caption)o+="<div>"+q.caption+"</div>";m.removeAttr("class").addClass(q.caption_css).addClass("jbg-caption");
o=o+"";i=o.length;m.html(o);i==0&&m.hide()}var i=0,m=b(".jbg-caption",h);c();i>0&&m.fadeIn(g.timers.fade);g.autohide&&jBGallery.AutoToggle(m,g);a.target.bind("load",function(){c()});return{toggle:function(){i>0&&m.toggle()}}};jBGallery.MenuSimple=function(h,e,a,g,c){function i(){var j=a.current();s.find("a.selected").removeClass("selected");s.find("a:eq("+j+")").addClass("visited").addClass("selected")}function m(j,t,C){j=b('<a href="#" class="'+j+'">'+t+"</a>").click(function(){C();return false});
return b("<li></li>").append(j)}function o(){for(var j="",t=1;t<=a.length();t++)j+='<li class="jbg-n"><a href="#">'+t+"</a></li>";return j}function q(j){j=j.target||j.srcElement;if(j.tagName.toString().toLowerCase()==="a"){j=parseInt(b(j).text());a.go(j)}return false}function d(){if(!x&&a.length()>0){b('<div class="jbg-menu-opacity" /><ul class="jbg-menu" />').hide().appendTo(h);s=b(".jbg-menu",h);u=b(".jbg-menu-opacity , .jbg-menu",h);c.menu=="numbers"&&s.append(o()).click(q).find("a:eq("+(a.current()-
1)+")").addClass("selected").addClass("visited");s.append(m("jbg-next",c.labels.next,a.right)).prepend(m("jbg-prev",c.labels.prev,a.left));s.append(y).append(p);c.caption&&s.append(m("jbg-info",c.labels.info,function(){g.toggle();return false}));c.popup&&s.append(m("jbg-close",c.labels.close,function(){b(A).trigger("destroy");c.close();return false}));c.menu=="numbers"&&a.target.bind("load",i);c.autohide&&jBGallery.AutoToggle(b(u),c);b(u).fadeIn(c.timers.fade);x=true}}function l(j){b(".jbg-next",
s).parent().before(j)}function r(j){x||d();if(b.isArray(j)){var t="",C=a.length()-j.length;b.each(j,function(B){t+='<li class="jbg-n"><a href="#">'+(C+B+1)+"</a></li>"});l(t)}else l('<li class="jbg-n"><a href="#">'+a.length()+"</a></li>");i();a.length()}var A=h,x=false,s,u,y=m("jbg-play",c.labels.play,function(){a.play();y.hide();p.show()}).toggle(!c.slideshow),p=m("jbg-stop",c.labels.stop,function(){a.stop();y.show();p.hide()}).toggle(c.slideshow);a.length();d();return{notify:function(j,t){e.length()>
0&&!b(u).eq(0).is(":visible")&&b(u).fadeIn(c.timers.fade);if(c.menu=="numbers")switch(j){case "push":case "unshift":r(t);break;case "pop":case "shift":b("li.jbg-n:last",s).remove()}if(j=="empty"){c.menu=="numbers"&&b(".jbg-n",s).remove();b(u).fadeOut(c.timers.fade);a.length()}}}};jBGallery.MenuSlider=function(h,e,a,g,c){function i(f,k){b(f).click(function(){var n=this;if(!b(n).is(".lock")){b(n).addClass("lock");k(function(){b(n).removeClass("lock")});return false}})}function m(f){return f.height>=
f.width?"jbgs-thumb-portrait":"jbgs-thumb-landscape"}function o(f,k){v.animate({left:f},function(){k&&k()})}function q(f){var k=l(),n=r();k=k+60*n>0?0:k+60*n;o(k,f)}function d(f){var k=l(),n=a.length(),z=Math.abs(k)/60,w=r(),N=(n-w)*60;if(n<w||w+z>=n)return f();k=z+w+w>n?-N:k-60*w;o(k,f)}function l(){return parseInt(v.css("left"),10)}function r(){var f=b(B).width()-130;return(f-f%60)/60}function A(){b("a",v).css("margin-top","");b(".jbgs-thumb").fadeOut(c.timers.fade,function(){b(this).remove()})}
function x(f){f=f.target||f.srcElement;if(f.tagName.toString().toLowerCase()==="img"){b(f).parent().parent().css("margin-top","3px");var k=b(L).index(b(f).parent().parent());f=b(f).get(0);var n=new Image;n.src=f.src;k="jbgs-thumb-"+k;var z=b(f).parents("li:eq(0)").offset().left-b(h).offset().left,w=m(n);n=n.height>=n.width?25:(n.width*100/n.height-60)/2;n=z-n;if(b("#"+k).length==0)b('<div style="left:'+n+'px" class="jbgs-thumb" id="'+k+'"><img src="'+f.src+'" alt="" class="'+w+'" />'+(c.ie6||c.ie7?
"":'<div class="jbgs-thumb-btn"><div class="jbgs-thumb-tip" /></div>')+"</div>").hide().appendTo(B).fadeIn(c.timers.fade)}}function s(){var f=b(B).width()-130;I.width(f-f%60)}function u(f){b(f).addClass(m(f)).css(f.height>=f.width?{top:-(f.height*51/f.width-51)/2}:{left:-(f.width*51/f.height-51)/2})}function y(f){b(f).wrap("<div />");f.complete?u(f):b(f).one("load",function(){u(f)})}function p(f,k){var n=b('<li><a title="'+f.title+'" href="'+f.href+'"><img src="'+f.thumb+'" alt="" /></a></li>')[k](E);
n=b("img",n).css("opacity",0.7).get(0);y(n)}function j(f,k,n){!n&&!J&&t();b.isArray(f)?b.each(f,function(z,w){p(w,k)}):p(f,k);K==0&&!n&&F.fadeIn(c.timers.fade);K=a.length()}function t(){if(!J&&a.length()>0){b(B).append(O+P).addClass("jbgs-cnt");D=b(".jbgs-top-right",h);I=b(".jbgs-viewer",h);E=b('<div class="jbgs-inner"></div>').appendTo(I);v=b(".jbgs-inner",h);G=b(".jbgs-h-play",h);H=b(".jbgs-h-pause",h);L=b("a",v);F=b(".jbgs-opacity, .jbgs, .jbgs-top",h);j(e.items(),"appendTo",true);b(".jbgs-opacity, .jbgs-h").css("opacity",
0.8);a.slideshow()?G.hide():H.hide();c.caption&&b(Q).click(function(){g.toggle();return false}).appendTo(D);if(c.popup){b("a",D).length>0&&b(R).appendTo(D);b(S).click(function(){b(C).trigger("destroy");c.close();return false}).appendTo(D)}i(".jbgs-h-left",q);i(".jbgs-h-right",d);G.click(function(){b(this).hide();H.show();a.play();return false});H.click(function(){b(this).hide();G.show();a.stop();return false});b(".jbgs-h-prev",h).click(function(){a.left();return false});b(".jbgs-h-next",h).click(function(){a.right();
return false});b("a",v).live("click",function(){var f=b("a",v).index(this)+1;a.go(f);return false});jBGallery.EventTimer(v,["mouseover"],c.delays.mouseover,x,"mouseout");v.bind("mouseout",A);a.target.bind("load",function(){var f=a.current(),k=l();k=Math.abs(k)/60;var n=r();n=k+n;if(!(f>=k+1&&f<=n)){k=f;k-=1;k=k;n=a.length;var z=r();k=n-z<k?n-z:k;o(-(k*60)<=0?-(k*60):0)}b("a",v).find(".focus").removeClass("focus").css("opacity","0.7").end().eq(f-1).find("img").addClass("focus").css("opacity","1").parent().addClass("focus").css("opacity",
"1")});jBGallery.EventTimer(window,["resize.jbgallery"],c.delays.resize,s);if(c.autohide){jBGallery.AutoToggle(F,c);jBGallery.AutoToggle(".jbgs-thumb",c,["fadeIn","fadeOut"])}J=true}}var C=h,B=h,M=c.fullscreen?b("body").width()-130:b(B).width()-130,R="<span>&nbsp;|&nbsp;</span>",S='<a href="#" class="jbgs-h-close">'+c.labels.close+"</a>",Q='<a href="#" class="jbgs-h-info">'+c.labels.info+"</a>",O='<div class="jbgs-top"><div class="jbgs-top-center"><a href="#" class="jbgs-h jbgs-h-prev">&nbsp;</a><a href="#" class="jbgs-h jbgs-h-next">&nbsp;</a></div><div class="jbgs-top-right"></div></div>',
P='<div class="jbgs-opacity"></div><div class="jbgs"><div class="jbgs-wrapper"><div class="jbgs-left"><a href="#" class="jbgs-h-play jbgs-h">&nbsp;</a><a href="#" class="jbgs-h-pause jbgs-h">&nbsp;</a><a href="#" class="jbgs-h-left jbgs-h">&nbsp;</a></div><div class="jbgs-viewer" style="width:'+(M-M%60)+'px"></div><div class="jbgs-right"><a href="#" class="jbgs-h-right jbgs-h">&nbsp;</a></div></div></div>',E,D,I,v,G,H,L,F,J=false,K=a.length();t();return{notify:function(f,k){switch(f){case "empty":v.empty();
F.hide(c.timers.fade);K=a.length();break;case "push":j(k,"appendTo");break;case "unshift":j(k,"prependTo");break;case "shift":b("li:first",E).remove();break;case "pop":b("li:last",E).remove()}}}};jBGallery.Adapters={};b.fn.jbgallery=jBGallery.Init})(jQuery);


/***
 * 
 * MobileMe adapter written by SymfoniP.com 
 * 
 * $Date: 21-Feb-2011 Version 1.0.1
 * Push Images from Mobile Me Galleries 
 */
(function(a){jBGallery.Adapters.MobileMe=function(e){function b(){return("localStorage" in window)&&window.localStorage!==null}function c(n,m,j){var d="";var i=0;var l=n.query.results.json.length;var k=[];var o;a.each(n.query.results.json,function(r,t){if(r==0){return}var s=t.records.content;var q=l==(r+1);t.description="<h3>"+t.records.title+"</h3>"+t.records.content;if(r==1){a(m).append("<ul />");var p='<img src="'+t.records.squareDerivativeUrl+'" alt="" />';d+='<li><a href="'+t.records.largeImageUrl+'" title="">'+p+'</a><div class="caption">'+t.description+"</div></li>";a("ul",m).append(d);o=a(m).jbgallery(j,true);i++}else{k.push({href:t.records.largeImageUrl,caption:t.description,thumb:t.records.squareDerivativeUrl});if((r+1)==n.query.results.json.length){o.push(k)}}})}var g=null;var h=new Date();if(b()&&localStorage.getItem("maxAge")!=null&&JSON.parse(localStorage.getItem("maxAge"))>h.getTime()){if(typeof e.stackid=="undefined"){e.stackid="symJBGallery"}g=JSON.parse(localStorage.getItem(e.stackid))}if(g==null){var f="http://gallery.me.com/"+e.account+"/"+e.albums+"/?webdav-method=truthget&feedfmt=json";return this.each(function(){var d=this;a.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20records.squareDerivativeUrl%2Crecords.content%2C%20records.title%2C%20records.largeImageUrl%20from%20json%20where%20url%3D'"+encodeURIComponent(f)+"'%20limit%20150&format=json&diagnostics=false&_maxage=900&callback=?",function(i){var j=new Date();if(typeof e.stackid=="undefined"){e.stackid="symJBGallery"}if(typeof e.timeout=="undefined"){e.timeout=900}if(b()){localStorage.setItem(e.stackid,JSON.stringify(i));localStorage.setItem("maxAge",JSON.stringify(j.getTime()+(e.timeout*1000)))}c(i,d,e)})})}else{return this.each(function(){c(g,this,e)})}};a.fn.jbmobileme=jBGallery.Adapters.MobileMe})(jQuery);

/*Make it Go Go Go - Easy MobileME Gallery*/
/* Version 1.0.0 21-Feb-2011 */
jQuery(document).ready(function(){
	jQuery("#symmobileme_stacks_in_47_page12").jbmobileme({
		albums  : '101087', account : 'jason.lewis',
		filter  : false, fullscreen: false, caption: false, 
		autohide: true, slideshow: true, 
		menu    : 'slider', style:'centered',
		stackid: 'stacks_in_47_page12',
		timers   : {   
		    fade    : 450,           //fade duration  
		    interval: 6000,          //slideshow interval  
		    autohide: 3500           //autohide timeout  
		}
	});
});
// end of Easy MobileMe Gallery Code



	return stack;
})(stacks.stacks_in_47_page12);


// Javascript for stacks_in_79_page12
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_79_page12 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_79_page12 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

//-- Facebook Comments Stack v1.0.0 by Joe Workman --//
$('head').append('<meta property="fb:admins" content="jason@jasonknowsmarin.com"/>');
//-- End Facebook Comments Stack --//

	return stack;
})(stacks.stacks_in_79_page12);



