/* Tips */
var Tips1 = new Tips($$('.Tips1'));
var Tips2 = new Tips($$('.Tips2 a'));
/* Menu */
var szNormal = 90, szSmall  = 80, szFull   = 140;
var kwicks = $$("#kwicks .kwick");
var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});
kwicks.each(function(kwick, i) {
	kwick.addEvent("mouseenter", function(event) {
		var o = {};
		o[i] = {width: [kwick.getStyle("width").toInt(), szFull]}
		kwicks.each(function(other, j) {
			if(i != j) {
				var w = other.getStyle("width").toInt();
				if(w != szSmall) o[j] = {width: [w, szSmall]};
			}
		});
		fx.start(o);
	});
});
 
$("kwicks").addEvent("mouseleave", function(event) {
	var o = {};
	kwicks.each(function(kwick, i) {
		o[i] = {width: [kwick.getStyle("width").toInt(), szNormal]}
	});
	fx.start(o);
})
/* vistazo */
window.addEvent('domready',function() { new SmoothScroll({ duration: 4800 }); });  
/* plugins */
var list2 = $$('#pluginList li a');
list2.each(function(element) {
	var fx = new Fx.Styles(element, {duration:200, wait:false});
 	element.addEvent('mouseenter', function(){
		fx.start({
			'font-size': '14px',	
			'color': '#D40000',		
			'background': '#fff url(images/left_sidebar_box_top.png) repeat-x 0% 0%'			
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#666',
			'font-size': '12px',	
			'background': '#fff url(images/left_sidebar_box_top.png) repeat-x 0% 30%'
		});
	});
});

