
// '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_45_page0
// ---------------------------------------------------------------------

// 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_45_page0 = {};

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

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

//-- Expose Stack v1.1.0 by Joe Workman --//
/* jQuery Tools Overlay 1.2.5 - The missing UI library for the Web */
(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:99998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==
27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);

jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(document).ready(function() {
	var bg_color = $('#stacks_in_45_page0').css('background-color');
	if (bg_color) { 
		$('#stacks_in_45_page0').css({'background-color': 'transparent'});	
		$('#expose_stacks_in_45_page0').css({'background-color': bg_color });	
	}

	var bg_border_style = $('#stacks_in_45_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color  = $('#stacks_in_45_page0').css('border-bottom-color');
		var bg_border_top 	 = $('#stacks_in_45_page0').css('border-top-width');
		var bg_border_right  = $('#stacks_in_45_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_45_page0').css('border-bottom-width');
		var bg_border_left 	 = $('#stacks_in_45_page0').css('border-left-width');
		$('#stacks_in_45_page0').css({'border-width':0});	
		$('#expose_stacks_in_45_page0').css({	'border-style':bg_border_style,
							 		'border-color':bg_border_color,
									'border-top-width':bg_border_top,
									'border-right-width':bg_border_right,
									'border-bottom-width':bg_border_bottom,	
									'border-left-width':bg_border_left
		});	
	}
	var custom_bg_src = $("#custom_bg_stacks_in_45_page0 img").attr("src");
	if (custom_bg_src) { 
	    $("#expose_stacks_in_45_page0").css({'background-image':'url(' + custom_bg_src + ')'});
	    var repeat_x = true;
	    var repeat_y = true;
	    
	    if (repeat_x && repeat_y) {
		    var bg_repeat = 'repeat';
	    }
	    else if (repeat_y) {
		    var bg_repeat = 'repeat-y';
	    }
	    else {
		    var bg_repeat = 'repeat-x';
	    }
	    $("#expose_stacks_in_45_page0").css({'background-repeat':bg_repeat});
	}

	// Need to append this to body to fix issues with some themes hiding it behind overlay
	$('#expose_stacks_in_45_page0').appendTo('body');

    // Build the Expose Lightbox
    $(".expose_stacks_in_45_page0").overlay({	
    		mask: {color:'#FFFFFF', zIndex:999998, opacity:0.9},
			target:'#expose_stacks_in_45_page0',
			closeOnClick: true,
			closeOnEsc: true,
			effect:	'default',
			load: false,
			fixed: true,
			oneInstance: false,
			left: 'center',
			top: '10%',
			onLoad: function() {
				if ( $('#expose_stacks_in_45_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_45_page0 .vimeo_player')[0])
				    player.api('play');
  				}
				if ( $('#expose_stacks_in_45_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_45_page0 div.youtube_player').tubeplayer("play");
  				}
				if ( $('#expose_stacks_in_45_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_45_page0 video.html5video').get(0).play();
  				}
				if ( $('#expose_stacks_in_45_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_45_page0 audio.html5audio').get(0).play();
  				}
				if ( $('#expose_stacks_in_45_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_45_page0 .html5audio').flowplayer(0).play();
  				}
				if ( $('#expose_stacks_in_45_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_45_page0 .html5video').flowplayer(0).play();
  				}
			},
			onClose: function() {
				if ( $('#expose_stacks_in_45_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_45_page0 .vimeo_player')[0])
				    player.api('pause');
  				}
				if ( $('#expose_stacks_in_45_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_45_page0 div.youtube_player').tubeplayer("pause");
  				}
				if ( $('#expose_stacks_in_45_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_45_page0 video.html5video').get(0).pause();
  				}
				if ( $('#expose_stacks_in_45_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_45_page0 audio.html5audio').get(0).pause();
  				}
				if ( $('#expose_stacks_in_45_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_45_page0 .html5audio').flowplayer(0).pause();
  				}
				if ( $('#expose_stacks_in_45_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_45_page0 .html5video').flowplayer(0).pause();
  				}
			}
    });    
});
//-- End Expose Stack --//

	return stack;
})(stacks.stacks_in_45_page0);


// Javascript for stacks_in_6_page0
// ---------------------------------------------------------------------

// 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_6_page0 = {};

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

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

//-- Expose Stack v1.1.0 by Joe Workman --//
/* jQuery Tools Overlay 1.2.5 - The missing UI library for the Web */
(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:99998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==
27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);

jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(document).ready(function() {
	var bg_color = $('#stacks_in_6_page0').css('background-color');
	if (bg_color) { 
		$('#stacks_in_6_page0').css({'background-color': 'transparent'});	
		$('#expose_stacks_in_6_page0').css({'background-color': bg_color });	
	}

	var bg_border_style = $('#stacks_in_6_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color  = $('#stacks_in_6_page0').css('border-bottom-color');
		var bg_border_top 	 = $('#stacks_in_6_page0').css('border-top-width');
		var bg_border_right  = $('#stacks_in_6_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_6_page0').css('border-bottom-width');
		var bg_border_left 	 = $('#stacks_in_6_page0').css('border-left-width');
		$('#stacks_in_6_page0').css({'border-width':0});	
		$('#expose_stacks_in_6_page0').css({	'border-style':bg_border_style,
							 		'border-color':bg_border_color,
									'border-top-width':bg_border_top,
									'border-right-width':bg_border_right,
									'border-bottom-width':bg_border_bottom,	
									'border-left-width':bg_border_left
		});	
	}
	var custom_bg_src = $("#custom_bg_stacks_in_6_page0 img").attr("src");
	if (custom_bg_src) { 
	    $("#expose_stacks_in_6_page0").css({'background-image':'url(' + custom_bg_src + ')'});
	    var repeat_x = true;
	    var repeat_y = true;
	    
	    if (repeat_x && repeat_y) {
		    var bg_repeat = 'repeat';
	    }
	    else if (repeat_y) {
		    var bg_repeat = 'repeat-y';
	    }
	    else {
		    var bg_repeat = 'repeat-x';
	    }
	    $("#expose_stacks_in_6_page0").css({'background-repeat':bg_repeat});
	}

	// Need to append this to body to fix issues with some themes hiding it behind overlay
	$('#expose_stacks_in_6_page0').appendTo('body');

    // Build the Expose Lightbox
    $(".expose_stacks_in_6_page0").overlay({	
    		mask: {color:'#808080', zIndex:999998, opacity:0.9},
			target:'#expose_stacks_in_6_page0',
			closeOnClick: true,
			closeOnEsc: true,
			effect:	'default',
			load: false,
			fixed: true,
			oneInstance: false,
			left: 'center',
			top: '10%',
			onLoad: function() {
				if ( $('#expose_stacks_in_6_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_6_page0 .vimeo_player')[0])
				    player.api('play');
  				}
				if ( $('#expose_stacks_in_6_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_6_page0 div.youtube_player').tubeplayer("play");
  				}
				if ( $('#expose_stacks_in_6_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_6_page0 video.html5video').get(0).play();
  				}
				if ( $('#expose_stacks_in_6_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_6_page0 audio.html5audio').get(0).play();
  				}
				if ( $('#expose_stacks_in_6_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_6_page0 .html5audio').flowplayer(0).play();
  				}
				if ( $('#expose_stacks_in_6_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_6_page0 .html5video').flowplayer(0).play();
  				}
			},
			onClose: function() {
				if ( $('#expose_stacks_in_6_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_6_page0 .vimeo_player')[0])
				    player.api('pause');
  				}
				if ( $('#expose_stacks_in_6_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_6_page0 div.youtube_player').tubeplayer("pause");
  				}
				if ( $('#expose_stacks_in_6_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_6_page0 video.html5video').get(0).pause();
  				}
				if ( $('#expose_stacks_in_6_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_6_page0 audio.html5audio').get(0).pause();
  				}
				if ( $('#expose_stacks_in_6_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_6_page0 .html5audio').flowplayer(0).pause();
  				}
				if ( $('#expose_stacks_in_6_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_6_page0 .html5video').flowplayer(0).pause();
  				}
			}
    });    
});
//-- End Expose Stack --//

	return stack;
})(stacks.stacks_in_6_page0);


// Javascript for stacks_in_78_page0
// ---------------------------------------------------------------------

// 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_78_page0 = {};

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

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

//-- Expose Stack v1.1.0 by Joe Workman --//
/* jQuery Tools Overlay 1.2.5 - The missing UI library for the Web */
(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:99998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==
27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);

jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(document).ready(function() {
	var bg_color = $('#stacks_in_78_page0').css('background-color');
	if (bg_color) { 
		$('#stacks_in_78_page0').css({'background-color': 'transparent'});	
		$('#expose_stacks_in_78_page0').css({'background-color': bg_color });	
	}

	var bg_border_style = $('#stacks_in_78_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color  = $('#stacks_in_78_page0').css('border-bottom-color');
		var bg_border_top 	 = $('#stacks_in_78_page0').css('border-top-width');
		var bg_border_right  = $('#stacks_in_78_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_78_page0').css('border-bottom-width');
		var bg_border_left 	 = $('#stacks_in_78_page0').css('border-left-width');
		$('#stacks_in_78_page0').css({'border-width':0});	
		$('#expose_stacks_in_78_page0').css({	'border-style':bg_border_style,
							 		'border-color':bg_border_color,
									'border-top-width':bg_border_top,
									'border-right-width':bg_border_right,
									'border-bottom-width':bg_border_bottom,	
									'border-left-width':bg_border_left
		});	
	}
	var custom_bg_src = $("#custom_bg_stacks_in_78_page0 img").attr("src");
	if (custom_bg_src) { 
	    $("#expose_stacks_in_78_page0").css({'background-image':'url(' + custom_bg_src + ')'});
	    var repeat_x = true;
	    var repeat_y = true;
	    
	    if (repeat_x && repeat_y) {
		    var bg_repeat = 'repeat';
	    }
	    else if (repeat_y) {
		    var bg_repeat = 'repeat-y';
	    }
	    else {
		    var bg_repeat = 'repeat-x';
	    }
	    $("#expose_stacks_in_78_page0").css({'background-repeat':bg_repeat});
	}

	// Need to append this to body to fix issues with some themes hiding it behind overlay
	$('#expose_stacks_in_78_page0').appendTo('body');

    // Build the Expose Lightbox
    $(".expose_stacks_in_78_page0").overlay({	
    		mask: {color:'#808080', zIndex:999998, opacity:0.9},
			target:'#expose_stacks_in_78_page0',
			closeOnClick: true,
			closeOnEsc: true,
			effect:	'default',
			load: false,
			fixed: true,
			oneInstance: false,
			left: 'center',
			top: '10%',
			onLoad: function() {
				if ( $('#expose_stacks_in_78_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_78_page0 .vimeo_player')[0])
				    player.api('play');
  				}
				if ( $('#expose_stacks_in_78_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_78_page0 div.youtube_player').tubeplayer("play");
  				}
				if ( $('#expose_stacks_in_78_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_78_page0 video.html5video').get(0).play();
  				}
				if ( $('#expose_stacks_in_78_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_78_page0 audio.html5audio').get(0).play();
  				}
				if ( $('#expose_stacks_in_78_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_78_page0 .html5audio').flowplayer(0).play();
  				}
				if ( $('#expose_stacks_in_78_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_78_page0 .html5video').flowplayer(0).play();
  				}
			},
			onClose: function() {
				if ( $('#expose_stacks_in_78_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_78_page0 .vimeo_player')[0])
				    player.api('pause');
  				}
				if ( $('#expose_stacks_in_78_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_78_page0 div.youtube_player').tubeplayer("pause");
  				}
				if ( $('#expose_stacks_in_78_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_78_page0 video.html5video').get(0).pause();
  				}
				if ( $('#expose_stacks_in_78_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_78_page0 audio.html5audio').get(0).pause();
  				}
				if ( $('#expose_stacks_in_78_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_78_page0 .html5audio').flowplayer(0).pause();
  				}
				if ( $('#expose_stacks_in_78_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_78_page0 .html5video').flowplayer(0).pause();
  				}
			}
    });    
});
//-- End Expose Stack --//

	return stack;
})(stacks.stacks_in_78_page0);


// Javascript for stacks_in_72_page0
// ---------------------------------------------------------------------

// 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_72_page0 = {};

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

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

//-- Expose Stack v1.1.0 by Joe Workman --//
/* jQuery Tools Overlay 1.2.5 - The missing UI library for the Web */
(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:99998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==
27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);

jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(document).ready(function() {
	var bg_color = $('#stacks_in_72_page0').css('background-color');
	if (bg_color) { 
		$('#stacks_in_72_page0').css({'background-color': 'transparent'});	
		$('#expose_stacks_in_72_page0').css({'background-color': bg_color });	
	}

	var bg_border_style = $('#stacks_in_72_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color  = $('#stacks_in_72_page0').css('border-bottom-color');
		var bg_border_top 	 = $('#stacks_in_72_page0').css('border-top-width');
		var bg_border_right  = $('#stacks_in_72_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_72_page0').css('border-bottom-width');
		var bg_border_left 	 = $('#stacks_in_72_page0').css('border-left-width');
		$('#stacks_in_72_page0').css({'border-width':0});	
		$('#expose_stacks_in_72_page0').css({	'border-style':bg_border_style,
							 		'border-color':bg_border_color,
									'border-top-width':bg_border_top,
									'border-right-width':bg_border_right,
									'border-bottom-width':bg_border_bottom,	
									'border-left-width':bg_border_left
		});	
	}
	var custom_bg_src = $("#custom_bg_stacks_in_72_page0 img").attr("src");
	if (custom_bg_src) { 
	    $("#expose_stacks_in_72_page0").css({'background-image':'url(' + custom_bg_src + ')'});
	    var repeat_x = true;
	    var repeat_y = true;
	    
	    if (repeat_x && repeat_y) {
		    var bg_repeat = 'repeat';
	    }
	    else if (repeat_y) {
		    var bg_repeat = 'repeat-y';
	    }
	    else {
		    var bg_repeat = 'repeat-x';
	    }
	    $("#expose_stacks_in_72_page0").css({'background-repeat':bg_repeat});
	}

	// Need to append this to body to fix issues with some themes hiding it behind overlay
	$('#expose_stacks_in_72_page0').appendTo('body');

    // Build the Expose Lightbox
    $(".expose_stacks_in_72_page0").overlay({	
    		mask: {color:'#808080', zIndex:999998, opacity:0.9},
			target:'#expose_stacks_in_72_page0',
			closeOnClick: true,
			closeOnEsc: true,
			effect:	'default',
			load: false,
			fixed: true,
			oneInstance: false,
			left: 'center',
			top: '10%',
			onLoad: function() {
				if ( $('#expose_stacks_in_72_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_72_page0 .vimeo_player')[0])
				    player.api('play');
  				}
				if ( $('#expose_stacks_in_72_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_72_page0 div.youtube_player').tubeplayer("play");
  				}
				if ( $('#expose_stacks_in_72_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_72_page0 video.html5video').get(0).play();
  				}
				if ( $('#expose_stacks_in_72_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_72_page0 audio.html5audio').get(0).play();
  				}
				if ( $('#expose_stacks_in_72_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_72_page0 .html5audio').flowplayer(0).play();
  				}
				if ( $('#expose_stacks_in_72_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_72_page0 .html5video').flowplayer(0).play();
  				}
			},
			onClose: function() {
				if ( $('#expose_stacks_in_72_page0 iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_stacks_in_72_page0 .vimeo_player')[0])
				    player.api('pause');
  				}
				if ( $('#expose_stacks_in_72_page0 div.youtube_player').exists()) {
				    $('#expose_stacks_in_72_page0 div.youtube_player').tubeplayer("pause");
  				}
				if ( $('#expose_stacks_in_72_page0 video.html5video').exists()) {
				    $('#expose_stacks_in_72_page0 video.html5video').get(0).pause();
  				}
				if ( $('#expose_stacks_in_72_page0 audio.html5audio').exists()) {
				    $('#expose_stacks_in_72_page0 audio.html5audio').get(0).pause();
  				}
				if ( $('#expose_stacks_in_72_page0 .html5audio object').exists()) {
				    $('#expose_stacks_in_72_page0 .html5audio').flowplayer(0).pause();
  				}
				if ( $('#expose_stacks_in_72_page0 .html5video object').exists()) {
				    $('#expose_stacks_in_72_page0 .html5video').flowplayer(0).pause();
  				}
			}
    });    
});
//-- End Expose Stack --//

	return stack;
})(stacks.stacks_in_72_page0);


// Javascript for stacks_in_346_page0
// ---------------------------------------------------------------------

// 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_346_page0 = {};

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- Like It Stack v1.1.0 by Joe Workman --//

/*  Tallest jQuery Plugin
 *	@author	nickf
 *	@date	2009-08-19
 *	@version 1.0 $Id: jquery.tallest.js 100 2009-08-19 00:40:09Z spadgos $
 */
jQuery(function($) {
	$.fn.tallest = function()       { return this._extremities({ 'aspect' : 'height', 'max' : true  })[0] };
	$.fn.tallestSize = function()   { return this._extremities({ 'aspect' : 'height', 'max' : true  })[1] };
	$.fn.shortest = function()      { return this._extremities({ 'aspect' : 'height', 'max' : false })[0] };
	$.fn.shortestSize = function()  { return this._extremities({ 'aspect' : 'height', 'max' : false })[1] };
	$.fn.widest = function()        { return this._extremities({ 'aspect' : 'width',  'max' : true  })[0] };
	$.fn.widestSize = function()    { return this._extremities({ 'aspect' : 'width',  'max' : true  })[1] };
	$.fn.thinnest = function()      { return this._extremities({ 'aspect' : 'width',  'max' : false })[0] };
	$.fn.thinnestSize = function()  { return this._extremities({ 'aspect' : 'width',  'max' : false })[1] };
	$.fn._extremities = function(options) {
		var defaults = {
			aspect : 'height', // or 'width'
			max : true	// or false to find the min
		};
		options = $.extend(defaults, options);
		if (this.length < 2) {
			return [this, this[options.aspect]()];
		}
		var bestIndex = 0,
			bestSize = this.eq(0)[options.aspect](),
			thisSize
		;
		for (var i = 1; i < this.length; ++i) {
			thisSize = this.eq(i)[options.aspect]();
			if ((options.max && thisSize > bestSize) || (!options.max && thisSize < bestSize)) {
				bestSize = thisSize;
				bestIndex = i;
			}
		}
		return [ this.eq(bestIndex), bestSize ];
	};
});
(function($){ 
    $.getScript = function(url, callback, cache){
    	$.ajax({
    			type: "GET",
    			url: url,
    			success: callback,
    			dataType: "script",
    			cache: true
    	});
    };
})(jQuery)

$(document).ready(function() {	
    
// Twitter Buttons
switch ( 2 ) {
case 1:
	$('#like_twitter1 a').attr('data-count', 'vertical');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
case 2:
    $('#like_twitter2 a').attr('data-count', 'horizontal');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
case 3:
    $('#like_twitter3 a').attr('data-count', 'none');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
default:
    // Do Nothing
}
// Google Buttons
switch ( 4 ) {
case 1:
	$('#like_google1 .like_google').html('<g:plusone size="small" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 2:
	$('#like_google2 .like_google').html('<g:plusone size="small" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 3:
	$('#like_google3 .like_google').html('<g:plusone size="medium" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 4:
	$('#like_google4 .like_google').html('<g:plusone size="medium" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 5:
	$('#like_google5 .like_google').html('<g:plusone size="standard" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 6:
	$('#like_google6 .like_google').html('<g:plusone size="standard" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 7:
	$('#like_google7 .like_google').html('<g:plusone size="tall" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
default:
    // Do Nothing
}

// Facebook Buttons
switch ( 2 ) {
case 1:
    $('#like_facebook1 .like_facebook').html('<fb:like show_faces="false" width="280"></fb:like>');
    break;
case 2:
    $('#like_facebook2 .like_facebook').html('<fb:like layout="button_count" show_faces="false" width="50"></fb:like>');
    break;
case 3:
    $('#like_facebook3 .like_facebook').html('<fb:like layout="box_count" show_faces="false" width="50"></fb:like>');
    break;
case 4:
    $('#like_facebook4 .like_facebook').html('<fb:like show_faces="false" width="450" action="recommend"></fb:like>');
    break;
case 5:
    $('#like_facebook5 .like_facebook').html('<fb:like layout="button_count" show_faces="false" width="50" action="recommend"></fb:like>');
    break;
case 6:
    $('#like_facebook6 .like_facebook').html('<fb:like layout="box_count" show_faces="false" width="50" action="recommend"></fb:like>');
    break;
default:
    // Do Nothing
}
// Digg Buttons
switch ( 3 ) {
case 1:
    $('#like_digg1 a').addClass('DiggWide');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 2:
    $('#like_digg2 a').addClass('DiggMedium');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 3:
    $('#like_digg3 a').addClass('DiggCompact');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 4:
    $('#like_digg4 a').addClass('DiggIcon');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
default:
    // Do Nothing
}
// LinkedIn Buttons
switch ( 2 ) {
case 1:
    $('#like_linkedin1').html('<script type="in/share" data-counter="top"></script>');
    $.getScript('http://platform.linkedin.com/in.js');
    break;
case 2:
	$('#like_linkedin2').html('<script type="in/share" data-counter="right"></script>');
	$.getScript('http://platform.linkedin.com/in.js');
	break;
case 3:
	$('#like_linkedin3').html('<script type="in/share"></script>');
	$.getScript('http://platform.linkedin.com/in.js');
	break;
default:
    // Do Nothing
}
// Evernote Button
if (2 != 0) {
    $.getScript('http://static.evernote.com/noteit.js');
}
//Email Button
$('.like_email a').attr('href','mailto:?subject=Check out this webpage&body='+location.href);
// Make all buttons have the same height and display it
// $('.like_button_wrapper').height( $('.like_button').tallest().height() );
});

//-- End Like It Stack --//
	return stack;
})(stacks.stacks_in_346_page0);



