// Poll jQuery if(document.getElementById('PollDynamics')) { jQuery("#submit_image").click(function() { jQuery("#PollDynamics").fadeOut(500,UpdatePoll); }); } function UpdatePoll() { jQuery("#PollDynamics").load( "/includes/poll.php", jQuery("#PollForm").serializeArray(), DisplayPollResults ); } function DisplayPollResults() { jQuery("#PollDynamics").fadeIn(500); jQuery("#PollResults").load( "poll/matte_hair/index.html", '' ); } // Code for the jQuery slideshow initialization var theInt = null; var $navthumb, $highlightthumb; var curclicked = 0; theInterval = function(cur){ clearInterval(theInt); if( typeof cur != 'undefined' ) curclicked = cur; $highlightthumb.removeClass("active-thumb"); $highlightthumb.eq(curclicked).addClass("active-thumb"); jQuery(".stripNav ul li a").eq(curclicked).trigger('click'); theInt = setInterval(function(){ $highlightthumb.removeClass("active-thumb"); $highlightthumb.eq(curclicked).addClass("active-thumb"); jQuery(".stripNav ul li a").eq(curclicked).trigger('click'); curclicked++; if( $highlightthumb.length == curclicked ) curclicked = 0; }, 3000); }; $(function(){ jQuery("#main-photo-slider").codaSlider(); $navthumb = jQuery(".nav-thumb"); $highlightthumb = jQuery("#SlideShowNav li a"); $navthumb .click(function() { var $this = jQuery(this); theInterval($this.parent().attr('href').slice(1) - 1); return false; }); // display all hidden slides (if they exist) jQuery("#SON #Slideshow .panel").addClass( 'Show' ); // display all hidden slides (if they exist) jQuery("#SONContainer #Slideshow .panel").addClass( 'Show' ); // display all hidden How To slides (if they exist) jQuery("#SON #PageHowTo .glidecontent").addClass( 'Show' ); theInterval(); });