$(document).ready(function() {

//ACCORDION BUTTON ACTION	
	$('div.accordionButton').click(function() {
		$('div.accordionContent').slideUp('normal');	
		$(this).next().slideDown('normal');
	});
 
	//HIDE THE DIVS ON PAGE LOAD	
	$("div.accordionContent").hide();

	// For each link containing -off, set up a -on hover
	$("img[src*='-off']").each(function() {
	
		// Preload on state
		var img = new Image();
		img.src = $(this).attr("src").replace(/-off/,"-on");
		
		// Set up the hover switcher
		$(this).hover(function() {
			$(this).attr("src",$(this).attr("src").replace(/-off/,"-on"));
		}, function() {
			$(this).attr("src",$(this).attr("src").replace(/-on/,"-off"));
		});
	
	});
	
	/*
	$(".tooltip[title]").qtip({ 
		tip: true,
		hide: { when: 'mouseout', fixed: true, delay: 1000 },
		position: {
			corner: {
				target: 'bottomRight',
				tooltip: 'topRight'
			}
		},
		style: { 
			width: 200,
			padding: 10,
			background: '#8FB3D4',
			color: 'white',
			textAlign: 'right',
			border: {
				width: 1,
				radius: 5,
				color: '#cae1f7'
			},
		}
	}); 
	*/
	
});
