window.addEvent('domready', function() {
	var el = $('garden');
	$('garden').addEvents({
		'mouseleave': function(e) {
			e.stop();
			el.fade(1);
			new Fx.Morph('garden_text').set({
				'display': 'none'
			});
		},
		'mouseenter': function(e) {
			e.stop();
			el.fade(0.5);
			new Fx.Morph('garden').set({
				'cursor': 'pointer'
			});
			new Fx.Morph('garden_text').set({
				'display': 'block'
			});
		},
		'click': function(e) {
			e.stop();
			window.location = "view.php?ini=garden";
		}
	});
	
	var el2 = $('bed');
	$('bed').addEvents({
		'mouseleave': function(e) {
			e.stop();
			el2.fade(1);
			new Fx.Morph('bed_text').set({
				'display': 'none'
			});
		},
		'mouseenter': function(e) {
			e.stop();
			el2.fade(0.5);
			new Fx.Morph('bed').set({
				'cursor': 'pointer'
			});
			new Fx.Morph('bed_text').set({
				'display': 'block'
			});
		},
		'click': function(e) {
			e.stop();
			window.location = "view.php?ini=bed";
		}
	});
	
	var el3 = $('living');
	$('living').addEvents({
		'mouseleave': function(e) {
			e.stop();
			el3.fade(1);
			new Fx.Morph('living_text').set({
				'display': 'none'
			});
		},
		'mouseenter': function(e) {
			e.stop();
			el3.fade(0.5);
			new Fx.Morph('living').set({
				'cursor': 'pointer'
			});
			new Fx.Morph('living_text').set({
				'display': 'block'
			});
		},
		'click': function(e) {
			e.stop();
			window.location = "view.php?ini=living";
		}
	});
	
	var el4 = $('dining');
	$('dining').addEvents({
		'mouseleave': function(e) {
			e.stop();
			el4.fade(1);
			new Fx.Morph('dining_text').set({
				'display': 'none'
			});
		},
		'mouseenter': function(e) {
			e.stop();
			el4.fade(0.5);
			new Fx.Morph('dining').set({
				'cursor': 'pointer'
			});
			new Fx.Morph('dining_text').set({
				'display': 'block'
			});
		},
		'click': function(e) {
			e.stop();
			window.location = "view.php?ini=dining";
		}
	});
	
	var el5 = $('bath');
	$('bath').addEvents({
		'mouseleave': function(e) {
			e.stop();
			el5.fade(1);
			new Fx.Morph('bath_text').set({
				'display': 'none'
			});
		},
		'mouseenter': function(e) {
			e.stop();
			el5.fade(0.5);
			new Fx.Morph('bath').set({
				'cursor': 'pointer'
			});
			new Fx.Morph('bath_text').set({
				'display': 'block'
			});
		},
		'click': function(e) {
			e.stop();
			window.location = "view.php?ini=bath";
		}
	});
	
	var el6 = $('kitchen');
	$('kitchen').addEvents({
		'mouseleave': function(e) {
			e.stop();
			el6.fade(1);
			new Fx.Morph('kitchen_text').set({
				'display': 'none'
			});
		},
		'mouseenter': function(e) {
			e.stop();
			el6.fade(0.5);
			new Fx.Morph('kitchen').set({
				'cursor': 'pointer'
			});
			new Fx.Morph('kitchen_text').set({
				'display': 'block'
			});
		},
		'click': function(e) {
			e.stop();
			window.location = "view.php?ini=kitchen";
		}
	});
	
});
