/* 
 * Devondev specific javascript
 * Author: Peter Wooster, Devondev Inc.
 */

/**
 * scrolling marquee
 * <ul id="ticker" style="width:5000px">...
 */
jQuery(function() {
   jQuery("ul#ticker").liScroll({travelocity:.08}); 
});

/**
 * slideshow
 */ 
jQuery(function() {
    jQuery('#slides').cycle({
                next:".next",
                prev:".prev",
                pager:"#slide-controller",
                pagerAnchorBuilder: function(idx, slide) { 
                    // return selector string for existing anchor 
                    return '#slide-controller li:eq(' + idx + ') a'; 
                },
                timeout:0, 
                easing:"easeInOutBack",
                fx:"scrollHorz" // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});

/**
 * show and hide
 * <p class="showIt">-</p>
 * <div class-"itsHidden">-
 *   <p> class="hideIt</p>
 * </div>  
 */
jQuery(function()
{
 //hide the itsHidden elements
 jQuery(".itsHidden").hide();
 jQuery(".showIt").click(function()
 {
   jQuery(this).toggle();
   jQuery(this).next(".itsHidden").slideToggle(100);
 });
 jQuery(".hideIt").click(function()
 {
   jQuery(this).parent().slideToggle(100);
   jQuery(this).parent().prev(".showIt").toggle();
 });
});


