// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
jQuery(document).ready(function() {	
	jQuery("#login-nav").find("a").each(function(i) {
	     jQuery(this).addClass( "login" );
	   });
	
    jQuery('a[class*=login]').facebox({
        loadingImage : '/images/facebox/loading.gif',
    	closeImage   : '/images/facebox/closelabel.gif',
    });

	jQuery(document).bind('reveal.facebox', function() {  
		jQuery('#new_user_session').submit(function() {  
			jQuery.post(this.action, jQuery(this).serialize(), null, "script");  
			return false;  
		});  
	});
});

// Disable right-click context menu to prevent easy copying of images from site
document.oncontextmenu = function(){return false}
