/** 
/* General functions for DoGreat.com Theme
/* By Patrick Bennett of Modern Blue
**/


//change the main content div based on user clicks
jQuery.noConflict();
jQuery(document).ready(function($){
	
	//detect any click from the buttons
	jQuery('.buttons li a').hover(function(){
		//first deactivate all
		var i = 1;
		for(i<1;i<7;i++) {
			var but = ".buttons li #" + "but" + i;
			var slide = "#slides #slide" + i;
			jQuery(but).attr("class","png_bg");
			jQuery(slide).css("display","none");
		}
		
		jQuery(this).attr("class","png_bg current");
		
		//show the correct slide
		var show = jQuery(this).attr("id").replace('but','slide');
		jQuery("#"+show).css("display","block");
	});

});


