var bi = Array(  
	Array(
		"6",
		"Live",
		"3.0.0",
		"live",
		"This is a reboot of the hugely popular HFS Live template created by Alvaro &quot;<a href=\"http://www.rejetto.com/forum/index.php?action=profile\">Chrno</a>&quot; Quezada. Its most likely one of the first HFS templates to not use &lt;table/&gt; markup. Designed using CSS and DIV's, this template features the same custom icons, look and feel, that the old template had.",
		"/projects/6/3.0.0/Live-3.0.0.zip"
	), 
	Array(
		"1",
		"RAWR-Player",
		"1.0.1",
		"player",
		"RAWR-Player is a dynamic flash player that interacts with the templates we create. It can also be used as a standalone. RAWR-Player features context menu items, dynamic theme and a simple interface. It supports .mp3 .flv .m4a .mov .mp4 .3gp; almost any container that uses the H264 codec.",
		"/projects/1/1.0.1/RAWR-Player-1.0.1.zip"
	), 
	Array(
		"2",
		"RAWR-Template",
		"0.1.2",
		"template",
		"RAWR-Template is a completely re-written hybrid between the ToG and Terayon. It is the first major distributed template for <a href=\"http://www.rejetto.com/hfs\">HFS</a> to fully make use of the macro system. This new template technology has provided the HFS template engine with more power and versatility.",
		"/projects/2/0.1.2/RAWR-Template-0.1.2.zip"
	), 
	Array(
		"5",
		"Terayon",
		"1.3.3",
		"terayon",
		"Terayon is based on the phpBB theme &quot;Terayon V2b&quot;. It has been ported and modified to work on rejetto HFS. Terayon is a feature rich template that will make any high bandwidth server look the part.",
		"/projects/5/1.3.3/Terayon v1.3.3.zip"
	), 
	Array(
		"4",
		"Thumbnail &amp; Preview Generator",
		"3.0.0",
		"tpgen",
		"The Thumbnail and Preview Generator is an application written in Visual Basic .NET&nbsp; to ease the batch processing of images. It is a flexible program that can be used for much more than its intended purpose.",
		"/projects/4/3.0.0/TPGen.exe"
	), 
	Array(
		"3",
		"Thunderchicken of Glory",
		"4.0.2",
		"tog",
		"The Thunderchicken of Glory is a lightweight, feature packed template. It is written and maintained by forum operator Christopher &quot;That Stevens Guy&quot; Stevens. The ToG has a long history with rejetto HFS and is still very popular today.",
		"/projects/3/4.0.2/thunderchicken_of_glory-4.0.2.zip"
	) 
);

for (i=0; i<bi.length; i++)
{
	setTimeout("var img" + i + " = new Image(); img" + i + ".src = \"http://files.rawr-designs.com/projects/" + bi[i][0] + "/120.jpg\";", 3000 + (1500 * i));
	setTimeout("var img" + i + " = new Image(); img" + i + ".src = \"http://files.rawr-designs.com/projects/" + bi[i][0] + "/banner.jpg\";", 3000 + (1500 * i));
}

function changeBanner(i)  
{
	document.getElementById('banner-1').firstChild.src = "http://files.rawr-designs.com/projects/" + bi[i-1][0] + "/120.jpg";
	document.getElementById('banner-2').innerHTML = bi[i-1][1] + " v" + bi[i-1][2];
	document.getElementById('banner-3').innerHTML = bi[i-1][4];
	document.getElementById('banner').style.backgroundImage = "url(http://files.rawr-designs.com/projects/" + bi[i-1][0] + "/banner.jpg)";
	document.getElementById('banner-1').href = "http://www.rawr-designs.com/projects/" + bi[i-1][3] + "/index.html";
	document.getElementById('banner-2').href = "http://www.rawr-designs.com/projects/" + bi[i-1][3] + "/index.html";
	var nodes = document.getElementById('banner-4').childNodes;
	for (child in nodes)
	{
		nodes[child].className = "";
		if (nodes[child].innerHTML == i)
		{
			nodes[child].className = "active";		
		}
	}
	document.getElementById('banner-5').href = "http://www.rawr-designs.com/projects/" + bi[i-1][3] + "/index.html";
	if (document.getElementById('banner-6'))
	{
		document.getElementById('banner-6').href = "http://files.rawr-designs.com" + bi[i-1][5]; // + "?info";
		document.getElementById('banner-7').innerHTML = bi[i-1][2];
	}
	return false;
}

var ab = 0;  

function gab()  
{
	var nodes = document.getElementById('banner-4').childNodes;
	for (child in nodes)
	{
		if (nodes[child].className == "active")
		{
			ab = nodes[child].innerHTML;
		}
	}
}

setTimeout("gab()", 3000);  
setTimeout("cab()", 180000);  

function cab()  
{
	if (ab + 1 < bi.length)
	{
		ab++;
	}
	else
	{
		ab = 1;
	}
	changeBanner(ab);
	setTimeout("cab()", 180000);  
}