var Media = {
	is_compact:true,
	compact:function() {
		if(!this.is_compact) {
			$('media_holder').addClassName('compact');
			if($('mpl')) {
				$('mpl').height = 392;
				$('mpl').style.height = 392+'px';
				$('mpl').width = 640;
				$('mpl').style.width = 640+'px';
			}
			$('compact').innerHTML = 'Large';
			this.is_compact = true;
		}
		else {
			$('media_holder').removeClassName('compact');
			if($('mpl')) {
				$('mpl').height = 572;
				$('mpl').style.height = 572+'px';
				$('mpl').width = 960;
				$('mpl').style.width = 960+'px';
			}
			$('compact').innerHTML = 'Small';
			this.is_compact = false;
		}
	},
	more:function(s) {
		if(this.show) {
			$('info').className = '';
			$('media_more').innerHTML = 'More';
			this.show = false;
		}
		else {
			$('info').className = 'more';
			$('media_more').innerHTML = 'Less';
			this.show = true;
		}
	}
};

Event.observe(window,'load',function(event) {
	new Ajax.Request('/ajax.php',{
		method:'get',parameters:{ control:'media',action:'related',media_id:Container.current_page,xsrf:xsrf },onSuccess:function(transport){
			$('content_related_media').update(transport.responseText);
		}
	});
});