
var tweenerFunction  = function() {
        //now select the element you want to tween
        //then tack on .tween
        //finally declare the style property and value you want to tween to
	$('scrollmaincontent').tween('left', '-900px');
}

var tweenBack = function(){
	$('scrollmaincontent').tween('left', '0px');	
}

var tweenerFunction1  = function() {
	$('scrollmaincontent1').tween('left', '-900px');
}

var tweenBack1 = function(){
	$('scrollmaincontent1').tween('left', '0px');	
}



window.addEvent('domready', function(){
									 
$('next').addEvent('click', tweenerFunction);
$('prev').addEvent('click', tweenBack);
$('next1').addEvent('click', tweenerFunction1);
$('prev1').addEvent('click', tweenBack1);
									
var myboolean= new Boolean('true');

var slideVar1 = null;
var slideVar2 = null;
var slideVar3 = null;
//var slideVar4 = null;
var slideVar5 = null;
var slideVar6 = null;

//var myFx = new Fx.Scroll(window)
function closeOpen(name) {
if (name != slideVar1 && slideVar1.wrapper.offsetHeight > 0) {
			slideVar1.slideOut();
		}
	
		if (name != slideVar2 && slideVar2.wrapper.offsetHeight > 0) {
			slideVar2.slideOut();
		}
		
		if (name != slideVar3 && slideVar3.wrapper.offsetHeight > 0) {
			slideVar3.slideOut();
		}
		/*if (name != slideVar4 && slideVar4.wrapper.offsetHeight > 0) {
			slideVar4.slideOut();
		}*/
		if (name != slideVar5 && slideVar5.wrapper.offsetHeight > 0) {
			slideVar5.slideOut();
		}
		if (name != slideVar6 && slideVar6.wrapper.offsetHeight > 0) {
			slideVar6.slideOut();
		}
}

 slideVar1 = new Fx.Slide('nav1_content', {
		onStart: function(request){
		if (this.wrapper.offsetHeight == 0) {
						closeOpen(slideVar1);
					}

		
		},
		onComplete: function(request){
			
		if (this.wrapper.offsetHeight > 0) {
						new Fx.Scroll(window).toElement($('nav1'));
					}

		

		}
	}).hide();
	
	
	$('nav1').addEvent('click', function(e){
	
		slideVar1.toggle();
			e = new Event(e);
		e.stop();

	});




	 slideVar2 = new Fx.Slide('nav2_content', {
		onStart: function(request){
		if (this.wrapper.offsetHeight == 0) {
						closeOpen(slideVar2);
					}

		
		},
		onComplete: function(request){
			
		if (this.wrapper.offsetHeight > 0) {
						new Fx.Scroll(window).toElement($('nav2'));
					}

		

		}
	}).hide();
	
	
	$('nav2').addEvent('click', function(e){
	
		slideVar2.toggle();
			e = new Event(e);
		e.stop();

	});

slideVar3 = new Fx.Slide('nav3_content', {
		onStart: function(request){
		if (this.wrapper.offsetHeight == 0) {
						closeOpen(slideVar3);
					}

		
		},
		onComplete: function(request){
			
		if (this.wrapper.offsetHeight > 0) {
						new Fx.Scroll(window).toElement($('nav3'));
					}

		

		}
	}).hide();
	
	
	$('nav3').addEvent('click', function(e){
	
		slideVar3.toggle();
			e = new Event(e);
		e.stop();

	});


/*slideVar4 = new Fx.Slide('nav4_content', {
		onStart: function(request){
		if (this.wrapper.offsetHeight == 0) {
						closeOpen(slideVar4);
					}

		
		},
		onComplete: function(request){
			
		if (this.wrapper.offsetHeight > 0) {
						new Fx.Scroll(window).toElement($('nav4'));
					}

		

		}
	}).hide();
	
	
	$('nav4').addEvent('click', function(e){
	
		slideVar4.toggle();
			e = new Event(e);
		e.stop();

	});
	*/
	
slideVar5 = new Fx.Slide('nav5_content', {
		onStart: function(request){
		if (this.wrapper.offsetHeight == 0) {
						closeOpen(slideVar5);
					}

		
		},
		onComplete: function(request){
			
		if (this.wrapper.offsetHeight > 0) {
						new Fx.Scroll(window).toElement($('nav5'));
					}

		

		}
	}).hide();
	
	
	$('nav5').addEvent('click', function(e){
	
		slideVar5.toggle();
			e = new Event(e);
		e.stop();

	});



slideVar6 = new Fx.Slide('nav6_content', {
		onStart: function(request){
		if (this.wrapper.offsetHeight == 0) {
						closeOpen(slideVar6);
					}

		
		},
		onComplete: function(request){
			
		if (this.wrapper.offsetHeight > 0) {
						new Fx.Scroll(window).toElement($('nav6'));
					}

		

		}
	}).hide();
	
	
	$('nav6').addEvent('click', function(e){
	
		slideVar6.toggle();
			e = new Event(e);
		e.stop();

	});



///////////////////////////////////////
/////////////horizontal////////////////
///////////////////////////////////////



/*var scroll = new Fx.Scroll('content');
 
$('next').addEvent('click', function(event) {
	event = new Event(event).stop();
	scroll.toElement('scrollcontent2');
});*/


/*var fx = new Fx.Style('scrollmaincontent', 'margin-left', {
duration: 500,
transition: Fx.Transitions.Back.easeInOut,
wait: true
});
$('next').addEvents({'click' : function(event){
fx.start(200);
}
}); 
*/



$('nav2').setStyle('cursor','pointer');

$('nav1').setStyle('cursor','pointer');

$('next').setStyle('cursor','pointer');
$('prev').setStyle('cursor','pointer');
$('next1').setStyle('cursor','pointer');
$('prev1').setStyle('cursor','pointer');





});









<!--
var hexChars = "0123456789ABCDEF";

function Dec2Hex (Dec)
{
if ( Dec > 255 )
        {
        hex = "ff";
        }
else
        {
        var a = Dec%16;
        var b = (Dec - a)/16;
        hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
        }
return hex;
};


function colorshift(e)
{
document.bgColor = "#" + Dec2Hex(e.pageX/4) + Dec2Hex(e.pageY/4) + Dec2Hex((window.innerWidth-e.pageX-e.pageY));
}

function startCapture()
{
window.captureEvents(Event.MOUSEMOVE);
window.onmousemove = colorshift;
}

function stopCapture()
{
window.releaseEvents(Event.MOUSEUP|Event.MOUSEDOWN|Event.MOUSEDRAG);
return true;
}

if ( navigator.appName == "Netscape" && parseFloat(navigator.appVersion.substring(0,navigator.appVersion.indexOf(' '))) >= 4 )
        {
        startCapture();
        }
else
        {

        };
//-->



var0="red";  
var1="blue";  
var2="aqua";  
var3="green";  
var4="yellow";  
var5="purple";  
var6="orange";  

now=new Date() 
num=(now.getSeconds() )%7

if (num == 0) 
{cliche=var0} 

if (num == 1) 
{cliche=var1} 

if (num == 2) 
{cliche=var2} 

if (num == 3) 
{cliche=var3}

if (num == 4) 
{cliche=var4}

if (num == 5) 
{cliche=var5}

if (num == 6) 
{cliche=var6}

document.bgColor=(cliche)

