var page =1;
var ml = 0;
var stop_play=0;
var tmove = {}, tinvert={};
var speed = 10000;
/**
 *
 * @access public
 * @return void
 **/
function move(id){
		if(id=='auto'){
			if (stop_play == 1) {
				return;
			}
			if(page<divCount){
				id=page+1;
			}else{
				id=1;
			}
			tmove = setTimeout('move("auto")',speed);
		}else{
			stop_play = 1;
		}

		page = id;

		var sign='-';
		var unit = 576;
		ml = (page - 1) * unit;

		new Effect.Morph('item0', {
			style: 'margin-left:'+sign+ml+'px', // CSS Properties
			duration: 0.8 // Core Effect properties
		});

		if (page == divCount) {
			clearTimeout(tmove);
			tinvert = setTimeout('invert("auto")',speed);
		}

}

function invert(id){

		if(id=='auto'){
			if (stop_play == 1) {
				return;
			}
			if(page>1){
				id=page-1;
			}else{
				id=divCount;
			}
			tinvert = setTimeout('invert("auto")',speed);
		}else{
			stop_play = 1;
		}

		page = id;

		var sign='-';
		var unit = 576;
		ml = (page - 1) * unit;

		new Effect.Morph('item0', {
			style: 'margin-left:'+sign+ml+'px', // CSS Properties
			duration: 0.8 // Core Effect properties
		});

		if (page == 1) {
			clearTimeout(tinvert);
			tmove = setTimeout('move("auto")',speed);
		}
}
