$(document).ready(function(){

//	$(".form").validate({
//		rules: {
//			field: {
//			  required: true,
//			  email: true,
//			  number: true
//			}
//		}
//	});

	$('.cycle').cycle({
		fx: 'fade'
	});
	
	var $tabs = $('#tabs').tabs({ 
		select: function(event, ui){ window.location = ui.tab.href; },
		fx: { height: 'toggle', opacity: 'toggle', duration: 'normal' }
	});
	
	
	$('#newtab').tabs({
    select: function(event, ui) {
        var url = $.data(ui.tab, 'load.tabs');
        if( url ) {
            location.href = url;
            return false;
        }
        return true;
    }
});


//	$('#nav').superfish();

	$('#tour').colorbox({href:"/wp-content/themes/bb/modal/tour.html",width:'50%',height:'50%'});
	
	$('#header-swf').flash({
		swf: '/wp-content/themes/bb/images/westvirginiarafting3-header.swf',
		height: 132,
		width: 770,
		params: {
			wmode: 'transparent'
		}
	});
	
	$('#nav li:first').addClass('first');	
	$('#nav li:last').addClass('last');

	// $("ul.nav li a").hover(function() {
		// $(this).stop().animate({ color: "#ffcc00", paddingRight:'0.4em' }, 600);
	// },function() {
		// $(this).stop().animate({ color: "#fff", paddingRight:'0' }, 400);
	// });
	
	// $("div.left ul.nav li a").hover(function() {
		// $(this).stop().animate({ color: "#ffcc00", paddingLeft:'0.4em' }, 600);
	// },function() {
		// $(this).stop().animate({ color: "#fff", paddingLeft:'0' }, 400);
	// });

});
