$(document).ready(function() {
$('#slideshow').cycle({
        fx:     'fade',
        speed:   2000,
        timeout: 6000,
        pager:  '#ssnav',
        pagerAnchorBuilder: function(idx, slide) {
        return '#ssnav li:eq(' + (idx) + ') a';
        }
});

$('#ssnav').append("<li><a id='pbtn' class='pause'>&nbsp;</a></li>");
	var bplplay = true;
	$('#pbtn').click(function() {
			
	if (bplplay) {
	   $('#slideshow').cycle('pause');
	   $('#pbtn').removeClass('pause').addClass('play')
	   bplplay = false;
	} else {
	   $('#slideshow').cycle('resume');
	   $('#pbtn').removeClass('play').addClass('pause')
	   bplplay = true;
	}
});

$("table tr:nth-child(odd)").addClass("striped");

$('.menu li').hover(
	function () {
        $('ul', this).slideDown(100);
        }, 
	function () {
	$('ul', this).slideUp(100);			
	}
    );

   $("#marquee").marquee();

   $(".popup").tipTip({maxWidth: "auto", defaultPosition: "top"});

   var stickyPanelOptions = {
       topPadding: 0,
       savePanelSpace: true
       };
   $("#compareheader").stickyPanel(stickyPanelOptions);
   $("#resourceheader").stickyPanel(stickyPanelOptions);

});
