
// '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_22_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_22_page12 = {};

// 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_22_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;
	
/* SymfoniP.com (c) 2010 - BlackOut Pro Stack Code 
 * 26-Oct-2010 Developed by Ronan Cashell & Kevin Burns
 * Version 1.7.1 - changed: options for H and V center on Target Image, cookie fix
*/
(function(a){a.fn.extend({symBlackOut:function(s){var j={timeBeforeFade:3,fadeOutDuration:800,offsetTop:0,offsetLeft:0,backgroundColor:"#000000",backgroundImage:true,expires:"",cookie:0,image2image:true,centerImageVertical:false,centerImageHorizontal:false,centerImageWindow:false};a.extend(j,s);var n=a(a(this)[0]);var i,l;if(j.image2image){i=a(".main img",n)}else{i=a(".main",n)}l=a(".symSplash",n);if(j.cookie>0&&d("symAdvert")=="1"){l.hide();a(".symBlackout").hide();return}if(j.expires!=""){var e=new Date();var m=e.getMonth()+1;if(m<10){m="0"+m}var f=e.getDate();if(f<10){f="0"+f}var f=e.getFullYear()+""+m+f;if(f>j.expires){l.hide();a(".symBlackout").hide();return}}if(j.backgroundImage&&j.image2image){var b=a("img",l);var p=0,o=0;if(j.centerImageVertical){o=(i.height()-b.height())/2}if(j.centerImageHorizontal){p=(i.width()-b.width())/2}l.css({width:a(document).width(),height:a(document).height(),backgroundImage:"url("+b.attr("src")+")",backgroundRepeat:"no-repeat",backgroundPosition:(i.offset().left+p)+"px "+(i.offset().top+o)+"px"});b.remove()}else{var b=a("div:first",l);var q=b.width();var k=b.height();var r=b.css("textAlign");b.wrap('<div id="contentContainer">');b.wrap('<div id="content">');l.offset({left:0,top:0}).css({left:"0",top:"0",width:a(document).width(),height:a(document).height()});b.css({textAlign:r}).parent().css({margin:0,padding:0,textAlign:"center",width:q,height:k}).parent().css({margin:0,padding:0,width:a(window).width()});if(j.centerImageWindow){b.parent().css({width:q,height:k,marginRight:"auto",marginLeft:"auto",marginTop:(a(window).height()-k)/2})}else{b.css({width:i.width(),height:i.height(),marginLeft:i.offset().left,marginTop:i.offset().top})}}a("body").append(l);var c=setTimeout(function(){l.fadeOut(j.fadeOutDuration)},j.timeBeforeFade*1000);a(document).keydown(function(h){if(h.which==27){clearTimeout(c);l.fadeOut(j.fadeOutDuration)}});var g=0;if(!j.centerImageWindow){g=i.offset().top-(a(window).height()-n.height())/2}a(document).scrollTop(g);a(".symBlackout").hide();if(j.cookie>0&&d("symAdvert")!="1"){d("symAdvert","1",{expires:j.cookie,path:"/"})}function d(t,A,D){if(typeof A!="undefined"){D=D||{};if(A===null){A="";D.expires=-1}var w="";if(D.expires&&(typeof D.expires=="number"||D.expires.toUTCString)){var x;if(typeof D.expires=="number"){x=new Date();x.setTime(x.getTime()+(D.expires*24*60*60*1000))}else{x=D.expires}w="; expires="+x.toUTCString()}var C=D.path?"; path="+(D.path):"";var y=D.domain?"; domain="+(D.domain):"";var h=D.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(A),w,C,y,h].join("")}else{var v=null;if(document.cookie&&document.cookie!=""){var B=document.cookie.split(";");for(var z=0;z<B.length;z++){var u=jQuery.trim(B[z]);if(u.substring(0,t.length+1)==(t+"=")){v=decodeURIComponent(u.substring(t.length+1));break}}}return v}}}})})(jQuery);
/* Make BlackOut Pro go - SymfoniP.com */
jQuery(document).ready(function($) {
	$("#symBlackOutstacks_in_22_page12").symBlackOut({timeBeforeFade: 4, fadeOutDuration: 950, expires:'', cookie:0, image2image:true, centerImageVertical:false, centerImageHorizontal:false,centerImageWindow:true});
});
	return stack;
})(stacks.stacks_in_22_page12);


// Javascript for stacks_in_29_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_29_page12 = {};

// 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_29_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;
	

//-- TipTip Stack v1.4.1 by Joe Workman --//
/* TipTip Version 1.3 - Copyright 2010 Drew Wilson
 * http://code.drewwilson.com/entry/tiptip-jquery-plugin
 * Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php & http://www.gnu.org/licenses/gpl.html */
(function($){$.fn.tipTip=function(options){var defaults={activation:"hover",keepAlive:false,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:false,enter:function(){},exit:function(){}};var opts=$.extend(defaults,options);if($("#tiptip_holder").length<=0){var tiptip_holder=$('<div id="tiptip_holder" style="max-width:'+opts.maxWidth+';"></div>');var tiptip_content=$('<div id="tiptip_content"></div>');var tiptip_arrow=$('<div id="tiptip_arrow"></div>');$("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('<div id="tiptip_arrow_inner"></div>')))}else{var tiptip_holder=$("#tiptip_holder");var tiptip_content=$("#tiptip_content");var tiptip_arrow=$("#tiptip_arrow")}return this.each(function(){var org_elem=$(this);if(opts.content){var org_title=opts.content}else{var org_title=org_elem.attr(opts.attribute)}if(org_title!=""){if(!opts.content){org_elem.removeAttr(opts.attribute)}var timeout=false;if(opts.activation=="hover"){org_elem.hover(function(){active_tiptip()},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}else if(opts.activation=="focus"){org_elem.focus(function(){active_tiptip()}).blur(function(){deactive_tiptip()})}else if(opts.activation=="click"){org_elem.click(function(){active_tiptip();return false}).hover(function(){},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}function active_tiptip(){opts.enter.call(this);tiptip_content.html(org_title);tiptip_holder.hide().removeAttr("class").css("margin","0");tiptip_arrow.removeAttr("style");var top=parseInt(org_elem.offset()['top']);var left=parseInt(org_elem.offset()['left']);var org_width=parseInt(org_elem.outerWidth());var org_height=parseInt(org_elem.outerHeight());var tip_w=tiptip_holder.outerWidth();var tip_h=tiptip_holder.outerHeight();var w_compare=Math.round((org_width-tip_w)/2);var h_compare=Math.round((org_height-tip_h)/2);var marg_left=Math.round(left+w_compare);var marg_top=Math.round(top+org_height+opts.edgeOffset);var t_class="";var arrow_top="";var arrow_left=Math.round(tip_w-12)/2;if(opts.defaultPosition=="bottom"){t_class="_bottom"}else if(opts.defaultPosition=="top"){t_class="_top"}else if(opts.defaultPosition=="left"){t_class="_left"}else if(opts.defaultPosition=="right"){t_class="_right"}var right_compare=(w_compare+left)<parseInt($(window).scrollLeft());var left_compare=(tip_w+left)>parseInt($(window).width());if((right_compare&&w_compare<0)||(t_class=="_right"&&!left_compare)||(t_class=="_left"&&left<(tip_w+opts.edgeOffset+5))){t_class="_right";arrow_top=Math.round(tip_h-13)/2;arrow_left=-12;marg_left=Math.round(left+org_width+opts.edgeOffset);marg_top=Math.round(top+h_compare)}else if((left_compare&&w_compare<0)||(t_class=="_left"&&!right_compare)){t_class="_left";arrow_top=Math.round(tip_h-13)/2;arrow_left=Math.round(tip_w);marg_left=Math.round(left-(tip_w+opts.edgeOffset+5));marg_top=Math.round(top+h_compare)}var top_compare=(top+org_height+opts.edgeOffset+tip_h+8)>parseInt($(window).height()+$(window).scrollTop());var bottom_compare=((top+org_height)-(opts.edgeOffset+tip_h+8))<0;if(top_compare||(t_class=="_bottom"&&top_compare)||(t_class=="_top"&&!bottom_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_top"}else{t_class=t_class+"_top"}arrow_top=tip_h;marg_top=Math.round(top-(tip_h+5+opts.edgeOffset))}else if(bottom_compare|(t_class=="_top"&&bottom_compare)||(t_class=="_bottom"&&!top_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_bottom"}else{t_class=t_class+"_bottom"}arrow_top=-12;marg_top=Math.round(top+org_height+opts.edgeOffset)}if(t_class=="_right_top"||t_class=="_left_top"){marg_top=marg_top+5}else if(t_class=="_right_bottom"||t_class=="_left_bottom"){marg_top=marg_top-5}if(t_class=="_left_top"||t_class=="_left_bottom"){marg_left=marg_left+5}tiptip_arrow.css({"margin-left":arrow_left+"px","margin-top":arrow_top+"px"});tiptip_holder.css({"margin-left":marg_left+"px","margin-top":marg_top+"px"}).attr("class","tip"+t_class);if(timeout){clearTimeout(timeout)}timeout=setTimeout(function(){tiptip_holder.stop(true,true).fadeIn(opts.fadeIn)},opts.delay)}function deactive_tiptip(){opts.exit.call(this);if(timeout){clearTimeout(timeout)}tiptip_holder.fadeOut(opts.fadeOut)}}})}})(jQuery);

$(document).ready(function() {
	$(".tiptip").tipTip({activation:'hover',keepAlive:false});
	if (true == true) {
	    $('#tiptip_holder').live('click', function() {
          $('#tiptip_holder').fadeOut(200);
        });
	}
});
//-- End TipTip Stack --//


	return stack;
})(stacks.stacks_in_29_page12);



