window.addEvent('domready',function(){
	var notice_dirt = $('notice_dirt');
	var notice_blog = $('notice_blog');
	var notice_lab = $('notice_lab');
	var light_switch = $('switch');
	var light_ceiling = $('ceiling-light');
	var light_wall = $('wall-light');
	var light_toggle = 1;
	
	//notice_dirt.setStyle('opacity',0.5);
	//notice_blog.setStyle('opacity',0.5);
	notice_dirt.tween('opacity','0.5');
	notice_blog.tween('opacity','0.5');
	notice_lab.tween('opacity','0.5');
	notice_canvas.tween('opacity','0.5');
	light_ceiling.tween('opacity','1');
	light_wall.tween('opacity','1');

	notice_dirt.addEvent('mouseover',function(){
		notice_dirt.tween('opacity','1.0');
	});
	notice_dirt.addEvent('mouseout',function(){
		notice_dirt.tween('opacity','0.5');
	});
	
	notice_blog.addEvent('mouseover',function(){
		notice_blog.tween('opacity','1.0');
	});
	notice_blog.addEvent('mouseout',function(){
		notice_blog.tween('opacity','0.5');
	});
	
	notice_lab.addEvent('mouseover',function(){
		notice_lab.tween('opacity','1.0');
	});
	notice_lab.addEvent('mouseout',function(){
		notice_lab.tween('opacity','0.5');
	});
	
	notice_canvas.addEvent('mouseover',function(){
		notice_canvas.tween('opacity','1.0');
	});
	notice_canvas.addEvent('mouseout',function(){
		notice_canvas.tween('opacity','0.5');
	});	
	
	light_switch.addEvent('mouseup',function(){
		if(light_toggle != 0){
			light_ceiling.tween('opacity','0');
			light_wall.tween('opacity','0');
			light_toggle = 0;
		}
		else{
			light_ceiling.tween('opacity','1');
			light_wall.tween('opacity','1');
			light_toggle = 1;		
		}
	});

});
