var style1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
		"#FFFFFF",			// Mouse Off Font Color
		"#7D703C",			// Mouse Off Background Color
		"#7D703C",			// Mouse On Font Color
		"#FFFFFF",			// Mouse On Background Color
		"D8D5C6",			// Menu Border Color 
		11,					// Font Size in pixels
		"normal",			// Font Style (italic or normal)
		"",					// Font Weight (bold or normal)
		"Verdana",	// Font Name
		2,					// Menu Item Padding
		"",					// Sub Menu Image (Leave this blank if not needed)
		"",					// 3D Border & Separator bar
		,					// 3D High Color
		,					// 3D Low Color
		"",					// Current Page Item Font Color (leave this blank to disable)
		"",					// Current Page Item Background Color (leave this blank to disable)
		"",					// Top Bar image (Leave this blank to disable)
		"",					// Menu Header Font Color (Leave blank if headers are not needed)
		"",					// Menu Header Background Color (Leave blank if headers are not needed)
		"",					// Menu Item Separator Color
		]

	var top = 328;
	var left = 206;


	// 1 corporate
	var menu_1_top = 328;		// Menu Top - The Top position of the menu in pixels
	var menu_1_left = "offset=+289";		// Menu Left - The Left position of the menu in pixels



var SlideList = new Class({
	initialize: function(menu, options) {
		this.setOptions(this.getOptions(), options);
		
		this.menu = $(menu), this.current = this.menu.getElement('li.current');
		
		this.menu.getElements('li').each(function(item){
			item.addEvent('mouseover', function(){ this.moveBg(item); }.bind(this));
			item.addEvent('mouseout', function(){ this.moveBg(this.current); }.bind(this));
			item.addEvent('click', function(event){ this.clickItem(event, item); }.bind(this));
		}.bind(this));
				
		this.back = new Element('li').addClass('background').adopt(new Element('div').addClass('left')).injectInside(this.menu);
		this.back.fx = this.back.effects(this.options);
		if(this.current) this.setCurrent(this.current);
	},
	
	setCurrent: function(el, effect){
		this.back.setStyles({left: (el.offsetLeft)+'px', width: (el.offsetWidth)+'px'});
		(effect) ? this.back.effect('opacity').set(0).start(1) : this.back.setOpacity(1);
		this.current = el;
	},
	
	getOptions: function(){
		return {
			transition: Fx.Transitions.sineInOut,
			duration: 500, wait: false,
			onClick: Class.empty
		};
	},

	clickItem: function(event, item) {
		if(!this.current) this.setCurrent(item, true);
		this.current = item;
		this.options.onClick(new Event(event), item);
	},

	moveBg: function(to) {
		if(!this.current) return;
		this.back.fx.custom({
			left: [this.back.offsetLeft, to.offsetLeft],
			width: [this.back.offsetWidth, to.offsetWidth]
		});
	}
});

SlideList.implement(new Options);