function init(){
	var stretchers = document.getElementsByClassName('box');
	var toggles = document.getElementsByClassName('tab');
	var myItems = new fx.Accordion( toggles, stretchers, {opacity: false, height: true, duration: 600} );
	//hash functions
	var found = false;
	toggles.each(function(h3, i)
	{
		var div = Element.find(h3, 'nextSibling');
		if (window.location.href.indexOf(h3.title) > 0)
		{
			myItems.showThisHideOpen(div);
			found = true;
		}
	});
	if (!found) myItems.showThisHideOpen(stretchers[0]);
}

function paintover(link)
{
	document.getElementById('mylink' + link).style.background="#AAAAAA";
	if (link == 1)
	{
		document.getElementById('top-left-inside').style.color="#AAAAAA";
	}
	if (link == 5)
	{
		document.getElementById('top-right-inside').style.color="#AAAAAA";
	}
}

function paintoriginal(link)
{
	document.getElementById('mylink' + link).style.background="#45545f";
	if (link == 1)
	{
		document.getElementById('top-left-inside').style.color="#45545f";
		document.getElementById('top-left-inside').style.bacground="#ffffff";
	}
	if (link == 5)
	{
		document.getElementById('top-right-inside').style.color="#45545f";
		document.getElementById('top-right-inside').style.bacground="#ffffff";
	}
}

function blinkit()
{
	if (!document.getElementById('item1').style.color)
	{
		document.getElementById('item1').style.color="yellow";
	}
	if (document.getElementById('item1').style.color=="yellow")
	{
		document.getElementById('item1').style.color="#fff";
	}
	else
	{
		document.getElementById('item1').style.color="yellow";
	}
	timer=setTimeout("blinkit()",400);
}

function stoptimer()
{
	clearTimeout(timer);
	document.getElementById('item1').style.color="#fff";
}


