
/* Newsletter signup dim effect */
$(document).ready(function(){
		
    		$("#dim").css("height", $(document).height());
    		
    		$(".alert").click(function(){
    			$("#dim").fadeIn();
    			return false;
			});
    		
    		$(".close").click(function(){
    			$("#dim").fadeOut();
    			return false;
			});
			
		
		});
		
		$(window).bind("resize", function(){
		 	$("#dim").css("height", $(window).height());
		});
		 

/* Social Icons on the left */
function set_social(_title, _link) {

	// this sets the "off" state
	jQuery(".cube img").css("opacity", 1.0);
	jQuery("#footer_links img").css("opacity", 1.0);
	jQuery("#home_links img").css("opacity", 1.0);
	jQuery("#merch_links img").css("opacity", 1.0);
		
	// this adds hover to full opacity:
	jQuery("#footer_links img").hover( 
		// hover state
		function() {
			jQuery(this).css("opacity", 0.3);
		
		},
		// back to off
		function() {
		
			jQuery(this).css("opacity", 1);
		
		});
	
	jQuery(".cube img").hover( 
		// hover state
		function() {
			jQuery(this).css("opacity", 0.4);
		
		},
		// back to off
		function() {
		
			jQuery(this).css("opacity", 1.0);
		
		});
	
	jQuery("#home_links img").hover( 
		// hover state
		function() {
			jQuery(this).css("opacity", 0.4);
		
		},
		// back to off
		function() {
		
			jQuery(this).css("opacity", 1.0);
		
		});
	
	jQuery("#merch_links img").hover( 
		// hover state
		function() {
			jQuery(this).css("opacity", 0.4);
		
		},
		// back to off
		function() {
		
			jQuery(this).css("opacity", 1.0);
		
		});
	
	
	
}


jQuery(document).ready(function(){
	
	// set the links to this site:
	set_social(document.title, document.location);

});
	


	
