var newwindow;
i = 0;
var speed = 1;

function popwindow(url, w, h)
{
	newwindow=window.open(url,"isra","height=" + h + ",width=" + w);
	if (window.focus) 
	{
		newwindow.focus();
	}
}

function hscroll()
{
	i = i + speed;
	document.getElementById("sss").scrollLeft = i;

	var txt = document.getElementById("txt");
	txt.innerHTML = "i: " + i + ", scrollLeft: " + document.getElementById("sss").scrollLeft;
	txt.scrollLeft = i;
	
	if (i > document.getElementById("sss").scrollWidth + 200)
	{
		i = 0;
	}
	
	t1 = setTimeout('hscroll("sss")', 100);
}

function scroll()
{
	i = i + speed
	var div = document.getElementById("shows")
	div.scrollTop = i
	if (i > div.scrollHeight - 160)
	{
		i = 0
	}
	t1=setTimeout("scroll()",100)
}

function load_fla()
{
	var so = new SWFObject("/images/baner.swf", "baner.swf", "262px", "85px", "8", "#000000");
	so.addParam("quality", "hight");
	so.addParam("allowScriptAccess", "always");
	so.addParam("wmode", "transparent");
	so.addParam("salign", "t");
	so.write("mainfla");
}

