var time_run = 500;
var objinter;
var left = 0;
var right = 0;
function CurOver(id,cl)
{
	document.getElementById(id).style.background = cl;
}
function GotoPage(p)
{
	var objhdd = document.getElementById("hddPage");
	var objform = document.getElementById("frm");
	objhdd.value = p;
	objform.submit();
	return true;
}
function slide_start(direction, time_run1){
	time_run = time_run1;
	document.getElementById("Slide_Collection").direction = direction;
	//document.getElementById("Slide_Collection").behavior = "scroll";
	//document.getElementById("Slide_Collection").start();
	//objinter = setInterval("slide_run()", 1);
}
function slide_run(){
	if(time_run >= 1)
		time_run -= 1;
	
	if(time_run <= 0){
		//document.getElementById("Slide_Collection").behavior = "alternate";	
		document.getElementById("Slide_Collection").stop();
		clearInterval(objinter);
	}
}

