var aButtons = new Array('nieuw', 'budget', 'voorraad', 'overname');
var nNormalSize = 120;
var nSmallSize	= 110;
var nLargeSize	= 150;
var nActiveButton = '';
var nButtons = aButtons.length;

function switch_button(nButton) 
{
    var switches = $$('#switch_container .buttonshow');
	
	switches.each(function(el, i){
		el.observe('mouseover', function(e){
			elwidth = $(el).style.width;
			if(elwidth != nLargeSize+'px')
			{
				new Effect.Scale(el, 125, {
					duration: 0.2,
					scaleMode:{originalWidth: nNormalSize},
					scaleX: true,
					scaleY: false
				});
			}
			switches.each(function(other, j) {
				if(i != j) {
					width = $(other).style.width;
					if(width != nSmallSize+'px')
					{
						new Effect.Scale(other, 91.67, {
							duration: 0.2,
							scaleMode:{originalWidth: nNormalSize},
							scaleX: true,
							scaleY: false
						});
					}
				}
			});
		});
    })
	/*
	$('switch').observe('mouseout', function(e){
		switches.each(function(el, i) {
			new Effect.Scale(el, 100, {
				duration: 0.3,
				scaleMode:{originalWidth: nNormalSize},
				scaleX: true,
				scaleY: false
			});
		});
	})
	*/
}

Event.observe(window, 'load', switch_button);
