var myChain = new Chain();

window.addEvent('domready', function() {


	$('moon').setStyle('display','block'); 
	$('moon').fade(0);
	
	var sky = new Fx.Gradient('sky', {duration: 1000});
		
	var rising =  function(){sky.start(['#000000','#44CCCC', '#66FFFF'])};
	var risingout =  function(){sky.start([  '#66BDBDB','#88AAAA','#CC6666','#000000' ])};
			
	
	var moveW = new Fx.Move('sun', {duration:4000, link:'chain'});
	
	$('sun').setStyle('margin-left','650px');

	myChain.chain(
		function(){ 
			$('msg').fade(0);
		},
		function(){ 
			$('msg').setStyle('text-align','left');
			$('msg').setStyle('padding','10px 10px 10px 10px');
			$('msg').set('html','<br><br><br><br><br>you made me forget myself ');
			$('msg').fade(1);
			moveW.start(-150 , 0);
			rising();
		},
		function(){ 
			$('msg').fade(0);
		},
		function(){ 
			$('msg').setStyle('text-align','right');
			$('msg').setStyle('padding','10px 10px 10px 10px');
			$('msg').setStyle('color','black');
			$('msg').set('html','<br><br><br><br><br>I thought I was');
			$('msg').fade(1);
			moveW.start(4, -250);
			risingout();
		},
		function(){ 
			$('msg').fade(0);
		},
		function(){ 
			$('msg').setStyle('text-align','center');
			$('msg').setStyle('padding','20px 20px 20px 20px');

			$('msg').setStyle('color','gray');
			$('msg').set('html','<br><br><br><br><br> someone else, someone good');
			$('msg').fade(1);
			$('moon').fade(1);
			
			$('sun').fade(0);
		},
		
		function(){ 
			$('msg').fade(0);
		},
		function(){ 
			$('msg').setStyle('text-align','center');
			
			$('msg').set('html','<br><br><br><br><br>...Oh, it\'s such a perfect day ...I\'m glad I spent it with you... <br><div style="text-align:right;font-style:italic;">Lou Reed</div><br><br><a href="/moonkiki/">ENTER</a>');
			$('msg').fade(1);
			clearInterval(callCh); }
	);
	
	var callCh = window.setInterval("myChain.callChain()", 2000);

	
	


}); 