window.addEvent('domready', function(){
	var list = $$('#idList li');
	$$('#idList li:first-child').addClass('selected');
	
	list.each(function(element) {
		
		var fx = new Fx.Morph(element, {duration:250, link: 'cancel' });
		
		element.addEvent('mouseenter', function() {
			
			fx.start({
				'height': '79px',
				'background-color': '#FFF',
				'border-left-color': '#FFF',
				'padding-left': '0',
				'color': '#666'
			});
			
			$('Image').set('html', element.getElement('div[class=img]').get('html') );
			
			list.each(function(ele){
				
				if( ele != element )
				{
					var subfx = new Fx.Morph(ele, {duration:250, link: 'cancel' });
					subfx.start({
						'height': '32px',
						'background-color': '#EEE',
						'border-left-color': '#CCC',
						'padding-left': '10px',
						'color': '#EEE'
					});
				}
				
			});
			
		});
		
	});
	
}); 
/*
window.addEvent('domready', function(){
	
	if (Cookie.read('popup_live2') != 'show') {
		var winSize = window.getSize();
		
		$$('.popup-wrap').setStyles({
			'display': 'block',
			'opacity': 0,
			'left': ((winSize.x/2)-250)
		});
		
		$$('.popup-wrap').fade('in');
		
		var myCookie = Cookie.write('popup_live2', 'show', { domain: 'fh.is' });
	}
	
	$$('.close').addEvent('click', function(){
		
		$$('.popup-wrap').fade('out');
		
	});
	
});
*/