var left = 0;
var kaafeceent = 1;
var napr = -1;
var ww = 0;


function isIE ()
{	
	return (navigator.appVersion.search('MSIE') > -1) ? 'true' : 'false';
}



function startScroll()
{	
	setInterval ("scrollRight()", 50);	
}


function scrollRight ()
{	
	if (!ww) 
	{
		if (isIE())
		{
			//ww = $("#content").css("width").substr (0, $("#content").css("width").length-2) - 200;
			//ww = $("#content").clientWidth().substr (0, $("#content").css("width").length-2) - 200;
		}
		else
		{
			
			//ww = $("#content").clientWidth().substr (0, $("#content").css("width").length-2) - 200;
		}
	
		//alert (ww);
		//ww = parseInt (substr ($("#content").css("width"), 0, $("#content").css("width").length-2)) - 200;
		ww = 600;
		$("#wc").css ({"width":ww});
	}
	//$("#tablo").html (ww);
	
	if (left < -(q * 140 - ww)) 
	{		
		napr *= -1;
	}

	if (left >= 1)
	{
		napr *= -1;
	}
	
	left += napr * kaafeceent * 1;
	document.getElementById ("scroller").style.left = left + "px";	
}

function leftarrowdown ()
{	
	if (napr = -1)
		kaafeceent = 5;
	else
		napr = -1;
}

function leftarrowup ()
{
	kaafeceent = 1;
}

function rightarrowdown ()
{
	
	if (napr = 1)
		kaafeceent = 5;
	else
		napr = 1;
}

function rightarrowup ()
{
	kaafeceent = 1;
}

