var iens6;
var scrollspeed;
var step;
var contentobj;
var contentwidth;
function start(){
	iens6=document.all||document.getElementById
	scrollspeed = 40
	step=1;
	if (iens6){
		contentobj=document.getElementById? document.getElementById("content") : document.all.content;
		containerobj=document.getElementById? document.getElementById("container") : document.all.container;
		containerobj.style.position = "absolute";
		containerobj.style.visibility = "visible";
		contentwidth=totalWidth-parseInt(contentobj.style.width);
		ww = (770-parseInt(containerobj.style.width))/2;
	}
	scrollleft();
}
function scrollright() {
	if(window.scrolltimerup){
		clearTimeout(scrolltimerup);
	}
	if(iens6&&parseInt(contentobj.style.left)>=(contentwidth*(-1))){
		contentobj.style.left=parseInt(contentobj.style.left)-step;
		if (firstpage) {
			containerobj.style.top=(document.body.clientHeight-478>0)?(412+parseInt((document.body.clientHeight-478)/2)):412;
			containerobj.style.left=(document.body.clientWidth-770>0)?(277+parseInt((document.body.clientWidth-770)/2)):277;
		} else {
			containerobj.style.top=document.body.scrollHeight-71;
			containerobj.style.left=(document.body.clientWidth-770>0)?(ww+parseInt((document.body.clientWidth-770)/2)):ww;
		}
	} else {stopall(); scrollleft(); return 0;}
	scrolltimerdown = setTimeout("scrollright()",scrollspeed);
}
function scrollleft() {
	if(window.scrolltimerdown){
		clearTimeout(scrolltimerdown);
	}
	if(iens6&&parseInt(contentobj.style.left)<=0){
		contentobj.style.left=parseInt(contentobj.style.left)+step;
		if (firstpage) {
			containerobj.style.top=(document.body.clientHeight-478>0)?(412+parseInt((document.body.clientHeight-478)/2)):412;
			containerobj.style.left=(document.body.clientWidth-770>0)?(277+parseInt((document.body.clientWidth-770)/2)):277;
		} else {
			containerobj.style.top=document.body.scrollHeight-71;
			containerobj.style.left=(document.body.clientWidth-770>0)?(ww+parseInt((document.body.clientWidth-770)/2)):ww;
		}
	} else {stopall(); scrollright(); return 0;}
	scrolltimerup = setTimeout("scrollleft()",scrollspeed)	;
}
function stopall(){
	if(window.scrolltimerup){
		clearTimeout(window.scrolltimerup);
	}
	if(window.scrolltimerdown){
		clearTimeout(window.scrolltimerdown);
	}
}
firstpage = false;