document.observe("dom:loaded", function() {


	Event.addBehavior( {
	    '#team_member_portrait_link' : function() {
	      this.show();
	    }
	});

	Event.addBehavior( {
	    '#team_member_portrait_static' : function() {
	      this.hide();
	    }
	});

	// Team Portrait Image

	Event.addBehavior( {
	    '#cover_white' : function() {
			//$('image_MA').show();
	    this.show();
	    this.style.right = '0px';
		  new Effect.Morph(this, { 
			  style: 'right: 320px', 
			  duration: 0.5
			});
	  }
	});


	// Team Portrait Text Layer 
	
//	Event.addBehavior( {
//	        '#url_team_portrait:mouseover' : function(e) {  
//	        new Effect.Appear($('team_member_portrait'), {
//	          duration: 0.5, from:0, to:1
//	        }); 
//	        e.stop();
//	     }
//	});
//	Event.addBehavior( {
//	      '#url_team_portrait:mouseout' : function(e) {
//	      new Effect.Fade($('team_member_portrait'), {
//	        duration: 0.5, from:1, to:0
///	      });  
//	      e.stop();
//	    }
//	});
//
	Event.addBehavior( {
	    '#page_attachments_container' : function() {
	    if(!this.empty()) {
	        this.style.left = '600px';
	        new Effect.Morph(this, {
	        style: 'left:795px', // CSS Properties
	        duration: 2  // Core Effect properties
	        });
	    }
	    else {
	        this.hide();
	    }
	  }
	});

});
