// ------------------------------------------------

// 	Our Custom Javascript
 
//		--> Using jQuery, jQuery Tools, etc.

// ------------------------------------------------

/* <![CDATA[ */
jQuery(document).ready(function() {

// Slideshow
// From -- http://flowplayer.org/tools/demos/tabs/slideshow.html
		jQuery(".slidetabs").tabs(".slideshow > div",
			{	effect: 'fade', // enable "cross-fading" effect
				fadeInSpeed: 1200,
				fadeOutSpeed: 1200,
				rotate: true // restart from the beginning
			})
			.slideshow( // use the slideshow plugin
			{	autoplay: true, 
				clickable: false, 
				interval: 9000 // 5000 = 5 seconds
			});
		// finished with slideshow

// jQuery Tooltips Experiment 
// -- disabled for now
//		jQuery(".slidetabs a[title]").tooltip();


	
//-------------------------------------------------
//  jQuery Hide/Show on Click
//
//  1. Look for an element of the class "group"
//      and hide the element that occurs next
//      Example: h3 of class "group" with a ul after
            jQuery(".group").next().hide();
//  2. If it also has a class "show" then show it
//      (Starts out open. Closes on click.)
            jQuery(".group").next(".show").show();
//  3. Add the class "toggle" to the next element
//      for purposes of styling
            jQuery(".group").next().addClass("toggle");
//  4. Add and removes the class "active"
//      on the toggled element
            jQuery(".group").toggle(function(){
                jQuery(this).addClass("active");
                }, function () {
                jQuery(this).removeClass("active");
                });
            jQuery(".group").click(function(){
                jQuery(this).next().slideToggle(300);
                });
//
//-- end jQuery Hide/Show ---------------------------



// Done.	
});
/* ]]> */

