$(document).ready(function() {
			
	 // initialize tooltip 
	 $("#footerNoPurple img[title]").tooltip({ 
	 //$("#footerNoPurple img").attr("title").tooltip({
		// use single tooltip element for all tips 
		tip: '#footertip',  
		 
		// tweak the position 
		offset: [15, 0], 
		 
		// use "slide" effect 
		effect: 'slide' 
		 
	// add dynamic plugin  
	}).dynamic( { 
		// customized configuration on bottom edge 
		bottom: { 
			direction: 'down',  
			bounce: true 
		} 
	}); 
	 
	$("#printBtn[title]").tooltip({ 
	 
		// use single tooltip element for all tips 
		tip: '#footertip',  
		 
		// tweak the position 
		offset: [15, 0], 
		 
		// use "slide" effect 
		effect: 'slide' 
		 
	// add dynamic plugin  
	}).dynamic( { 
	 
		// customized configuration on bottom edge 
		bottom: { 
			direction: 'down',  
			bounce: true 
		} 
	});
	
	// toggle footer
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$("h2.trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow");
	});
	
});