/* - - - - - - - - - - - - - - - - - - -
/ Client:		Voxtec
/ Rev. Date:	4/10/08
/- - - - - - - - - - - - - - - - - - - - */

// This is the jQuery for PNG-friendly browsers

$(document).ready(function(){
	$(".section a").click(function(){
		if ($(this).attr("href") != '#') {
			document.location = $(this).attr("href");
			return false;
		}
	});
	
	$(".section").click(function(){
		if ($(this).next(".section_bot2").hasClass("active")) { return false; }
		$(".section_bot2.active").children().hide();
		$(".section_bot2.active").next(".section_bot1").slideDown();
		$(".section_bot2.active").slideUp();
		$(".section_bot2.active").removeClass("active");
		$(this).next(".section_bot2").children().css("display","none");
		$(this).next().next(".section_bot1").slideUp();
		$(this).next(".section_bot2").slideDown(callback);
		
		$(this).next(".section_bot2").addClass("active");
	});
	
	function callback(){
	$(".section_bot2").children().show();
	}
	    
	
	function bgChange(area) {
		$(area).addClass("hover");
	}
	
	function bgResume(area) {
		$(area).removeClass("hover");
	}
});