			var box = {};
			var active_tab="button1";
			var cal12;
			
			//----------------------------------------------------------------------
			
window.addEvent('load', function(){ //note not on domready otherwise colors jumpy
 
	var cycle = $('slider'); 
 
	var fx = cycle.effects({duration: 2000, transition: Fx.Transitions.linear});
 
	var cycleColors = function() {
		fx.start({'background-color': '#ff00ff' //purple
	}).chain(function(){
		this.start({'background-color': '#ff0000'}); //red
	}).chain(function(){
		this.start({'background-color': '#ffff00'}); //yellow
	}).chain(function(){
		this.start({'background-color': '#00ff00'}); //green
	}).chain(function(){
		this.start({'background-color': '#00ffff'}); //cyan	
	}).chain(function(){
		this.start({'background-color': '#0000ff'}); //blue
	});
		
	setTimeout(cycleColors, 5);
}; // end cycleColors function
 
// execute the function on a click

	
cycleColors();
 

 
}); //end window load
			
			
			//--------------------------------------------------------------------------
			
			
			
			window.addEvent('domready', function(){
			
				box = new MultiBox('mb', {descClassName: 'multiBoxDesc', useOverlay: true});
				
				$("button1").addEvent('click', function() {
						document.getElementById(active_tab).className='';
						document.getElementById("button1").className='active';
						//var myFx = new Fx.Scroll('widecontent').scrollTo(-400, 0);
						var scroller = new Fx.Scroll($('widecontent2'), {
						duration:400,
						transition: Fx.Transitions.Quad.easeInOut,
								onComplete: function() {
								}
							}).scrollTo(0,0);

						
			
						active_tab="button1";
					});
				if($("button2"))$("button2").addEvent('click', function() {
						$(active_tab).className='';
						$("button2").className='active';
						//var myFx = new Fx.Scroll('widecontent').scrollTo(-400, 0);
						var scroller = new Fx.Scroll($('widecontent2'), {
						duration:400,
						transition: Fx.Transitions.Quad.easeInOut,
						transition: Fx.Transitions.Quad.easeInOut,

								onComplete: function() {
								}
							}).toElement('divv2');

						
			
						active_tab="button2";
					});
					
				if($("button3"))$("button3").addEvent('click', function() {
						$(active_tab).className='';
						$("button3").className='active';
						//var myFx = new Fx.Scroll('widecontent').scrollTo(-400, 0);
						var scroller = new Fx.Scroll($('widecontent2'), {
						duration:400,
						transition: Fx.Transitions.Quad.easeInOut,
						transition: Fx.Transitions.Quad.easeInOut,



								onComplete: function() {
								}
							}).toElement('divv3');

						
			
						active_tab="button3";
					});
				$("button4").addEvent('click', function() {
						$(active_tab).className='';
						$("button4").className='active';
						//var myFx = new Fx.Scroll('widecontent').scrollTo(-400, 0);
						var scroller = new Fx.Scroll($('widecontent2'), {
						duration:400,
						transition: Fx.Transitions.Quad.easeInOut,
						transition: Fx.Transitions.Quad.easeInOut,

								onComplete: function() {
								}
							}).toElement('divv4');

						
			
						active_tab="button4";
					});
				$("button5").addEvent('click', function() {
						$(active_tab).className='';
						$("button5").className='active';
						//var myFx = new Fx.Scroll('widecontent').scrollTo(-400, 0);
						var scroller = new Fx.Scroll($('widecontent2'), {
						duration:400,
						transition: Fx.Transitions.Quad.easeInOut,
						transition: Fx.Transitions.Quad.easeInOut,

								onComplete: function() {
								}
							}).toElement('divv5');

						
			
						active_tab="button5";
					});
				$("button6").addEvent('click', function() {
						$(active_tab).className='';
						$("button6").className='active';
						//var myFx = new Fx.Scroll('widecontent').scrollTo(-400, 0);
						var scroller = new Fx.Scroll($('widecontent2'), {
						duration:400,
						transition: Fx.Transitions.Quad.easeInOut,
						transition: Fx.Transitions.Quad.easeInOut,

								onComplete: function() {
								}
							}).toElement('divv6');

						
			
						active_tab="button6";
					});
	});
