var content=new Array('<div id="plan-special"><h2>Special Hosting Plans</h2><ul><li>Massive Storage & Transfer</li><li>Massive Storage & Transfer</li><li>Massive Storage & Transfer</li></ul></div>', '<div id="plan-special"><h2>Reseller Hosting Plans</h2><ul><li>Massive Storage & Transfer</li><li>Massive Storage & Transfer</li><li>Massive Storage & Transfer</li></ul></div>');

var direction=1;
var current=content.length; 

function update() {
	if (direction!==0) {
		current=(current+direction)%content.length;
		while (current<0) { current+=content.length; }
	}
	

	document.getElementById('scontent').innerHTML=content[1];
	
}

function loop_em() {
	if (direction!==0) {
		current=(current+direction)%content.length;
		while (current<0) { current+=content.length; }
	}
	update();
	loop_timer=setTimeout("loop_em();",5000);
}

function start() {
	direction=1;
	document.getElementById('startstop').innerHTML='<a href="#" onclick="stop(); return false;"><img src="images/pause.png" alt="" /></a>';
	loop_em();
	return true;
}

function reverse() {
	direction=-1;
	document.getElementById('startstop').innerHTML='<a href="#" onclick="stop(); return false;"><img src="images/pause.png" alt="" /></a>';
	loop_em();
	return true;
}

function stop() {
	direction=0;
	document.getElementById('startstop').innerHTML='<a href="#" onclick="start(); return false;"><img src="images/play.png" alt="" /></a>';
	clearTimeout(loop_timer);
	return true;
}

function previous() {
	stop();
	current--;
	while (current<0) { current+=content.length; }
	update();
	return true;
}

function next() {
	stop();
	current=(current+1)%content.length;
	update();
	return true;
}

function ef()
{
	new Effect.Fade('scontent'); 	
	window.setTimeout('Effect.SlideDown(\'scontent2\', {duration:.9})',1200);
	document.getElementById('scontent').style.display='none';
	return true;
}