// jQuery page load function
$(document).ready(function() {
	

    $("ul.nav").superfish({
        delay: 0,                            // one second delay on mouseout 
        animation: { height: 'show' },       // fade-in and slide-down animation 
        speed: 'fast',                       // faster animation speed 
        autoArrows: false,                   // disable generation of arrow mark-up 
        dropShadows: false                   // disable drop shadows
    });

    $.preloadCssImages();

    $("#rotatingImages").pwRotatingImages({
        interval: 4000,
        autoCalcHeight: false
    });

    $("div.tweets div a").attr("target","_blank");

    $("div.tweets").bxSlider({
	    mode: 'slide',
	    auto: 'true',
	    speed: 1500,
	    pause: 6000,
	    width: 350,
	    wrapper_class: 'tweets_container',
	    prev_text: '',
	    next_text: ''
	});     

    $("a#feedburnerSubscribe").click(function(){
	    window.open('http://feedburner.google.com/fb/a/mailverify?uri=WhitewaterRaftingBlog&loc=en_US&email=' + $("#feedburnerSubscribeEmail").val(), 'popupwindow', 'scrollbars=yes,width=550,height=520');	
	    return false;
	});

});