var Site = {
	
	start: function(){
		
		if ($('imgicon')) Site.parseImgicons();
		
		if ($('download')) Download.start();
		
		if ($('sidebar')){
			Site.appearText();
			if (!window.ie6) Site.makeShadow();
		}
	},
	
	parseImgicons: function(){
		var imgicons = $$('#imgicon .imgicon');
		var fx = new Fx.Elements(imgicons, {wait: false, duration: 173, transition: Fx.Transitions.quadOut});
		imgicons.each(function(imgicon, i){
			imgicon.addEvent('mouseenter', function(e){
				var obj = {};
				obj[i] = {
					'width': [imgicon.getStyle('width').toInt(), 220]
				};
				imgicons.each(function(other, j){
					if (other != imgicon){
						var w = other.getStyle('width').toInt();
						if (w != 153) obj[j] = {'width': [w, 153]};
					}
				});
				fx.start(obj);
			});
		});
		
		$('imgicon').addEvent('mouseleave', function(e){
			var obj = {};
			imgicons.each(function(other, j){
				obj[j] = {'width': [other.getStyle('width').toInt(), 173]};
			});
			fx.start(obj);
		});
	}	
	
	
};



window.addEvent('load', Site.start);