jQuery(document).ready(function() {
	
		jQuery("#click-360").click(function(){

			//jQuery('.video-js-box').hide();
			jQuery('.video-js-box').addClass('move-video');
			jQuery('body').addClass('video-hidden');
		
		});

		jQuery('body.video-hidden #sb-container #sb-overlay').live('click', function(){
			
					//jQuery('.video-js-box').show();
					jQuery('.video-js-box').removeClass('move-video');
					jQuery('body').removeClass('video-hidden');
					location.reload();
		});
		
		jQuery('#sb-nav-close').live('click', function(){
			
					//jQuery('.video-js-box').show();
					jQuery('.video-js-box').removeClass('move-video');
					jQuery('body').removeClass('video-hidden');
					location.reload();
		});
		
		
//new stuff below

    jQuery("#home-video-thumbs .video-image").hover(

    function () {
       	jQuery(this).find("span").attr({
            "style": 'display:inline'
        });
        jQuery(this).find("span").animate({
            opacity: 1,
            top: "82"
        }, {
            queue: false,
            duration: 400
        });
    }, function () {
        jQuery(this).find("span").animate({
            opacity: 0,
            top: "82"
        }, {
            queue: false,
            duration: 400
        }, "linear", function () {
            jQuery(this).find("span").attr({
                "style": 'display:none'
            });
        });
    });
    
    
    jQuery("ul.menu-top li.page_item").hover(function() {
    
    	jQuery(this).siblings().children('ul.children').hide();
    	jQuery(this).children('ul.children').show();
    	
    
    
    });//end main nav rollover

    jQuery("#main-menu").hover(function() {
    
    
    }, function () {

		jQuery('#main-menu ul.children').hide();


    });//end faux rollover entire nav
    
    
    //target-click is for the RSVP/page curl thing
    jQuery('#target-click, #rsvp-ticket .close').click(function() {
    	
    	jQuery('#rsvp-ticket').toggle();
    	
    	
    	return false;
    	
    });
    
	$('#rsvp').submit(function() {
	  var code = jQuery("#rsvp-code").val();
	  //alert(code);
	  
	  if(code != 'kykc2') {
	  	jQuery('#rsvp-code').addClass('error');
	  	jQuery('#rsvp-error-msg').show();
	  	return false;
	  }
	  //there is no else because we're going to post the variable to /rsvp/
	  
	});
    
    
	
}); //document ready


