window.addEvent("domready",function() {
	var holders = $$('.holder');
	var buttons = $$('.ohover');
	holders.each(function(el,index,array){
		var myFx = new Fx.Tween(buttons[index], { duration: 200, fps: 30 })
		buttons[index].className = "opacity";
		el.addEvent("mouseenter", function(elem) { 
			myFx.cancel();
			myFx.start("opacity",0,1);
		})
		el.addEvent("mouseleave", function(elem) { 
			myFx.cancel();
			myFx.start("opacity",1,0);
		})
	});
	if ($('content').hasClass('home_content')) {
		$('content').setStyle('height',$('content').clientHeight-35)
	}
});
window.addEvent("load",function() { 
	function adjustHeight() {
		var windowHeight = window.getSize().y;
		var htmlHeight = $('body').getSize().y;
		var contentDHeight = $('content').getSize().y;
		$('content').setStyle('height',contentDHeight);
		if (htmlHeight < windowHeight) {
			var newHeight = contentDHeight + (windowHeight-htmlHeight);
			$('content').setStyle('height',newHeight);
		}
	}
	//adjustHeight();
});
