jQuery(document).ready(function() {
	jQuery('#slideWrapper').hide();
	jQuery('#slideButton').click(function() {
		jQuery('#slideWrapper').slideToggle('slow', function() {
    	});
	});
	
	jQuery('#slideWrapper2').hide();
	jQuery('#slideButton2').click(function() {
		jQuery('#slideWrapper2').slideToggle('slow', function() {
    	});
	});
	// slidedeck homepage nav		
	jQuery('#slidedeck_nav span.prev').click(function(){
		jQuery('.slidedeck_376').slidedeck().pauseAutoPlay = true;
		jQuery('.slidedeck_376').slidedeck().prev();
	
	});
	jQuery('#slidedeck_nav span.next').click(function(){
		jQuery('.slidedeck_376').slidedeck().pauseAutoPlay = true;
		jQuery('.slidedeck_376').slidedeck().next();
	});
	jQuery("#peripheral").hover(
		function(){
        	jQuery("#blueman").attr("src", jQuery("#blueman").attr('src').replace("_man","_peripheral"));
 		},
 		function(){
        	jQuery("#blueman").attr("src", jQuery("#blueman").attr('src').replace("_peripheral","_man"));
 		}
 	);
	jQuery("#autonomic").hover(
		function(){
        	jQuery("#blueman").attr("src", jQuery("#blueman").attr('src').replace("_man","_autonomic"));
 		},
 		function(){
        	jQuery("#blueman").attr("src", jQuery("#blueman").attr('src').replace("_autonomic","_man"));
 		}
 	);
 	jQuery("#focal").hover(
		function(){
        	jQuery("#blueman").attr("src", jQuery("#blueman").attr('src').replace("_man","_focal"));
 		},
 		function(){
        	jQuery("#blueman").attr("src", jQuery("#blueman").attr('src').replace("_focal","_man"));
 		}
 	);
});
jQuery("#slideButton").mouseover(function() {
    $(this).css('cursor', 'pointer');
});
jQuery("#slideButton2").mouseover(function() {
    $(this).css('cursor', 'pointer');
});

	// send email function
	function mailpage() {
		<!--
		mail_str = "mailto:?subject=Check out this page about Metanx";
		mail_str += "&body=I thought you might be interested in this page about Metanx.";
		mail_str += "  You can view it at " + location.href;
		location.href = mail_str;
		-->
	}
	// pop up url 
	function popup(URL) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=1,resizable=1,width=620,height=500,left = 410,top = 200');");
}

