window.onload = function() {
	if(document.getElementById("homepage"))
	{
		var tabs = document.getElementById("tabs");
		if(tabs)
		{
			tabs = tabs.getElementsByTagName("li");
			for(i=0; i < tabs.length; i++)
			{
				tabs[i].index = tabs[i].id.substring(tabs[i].id.lastIndexOf("-")+1, tabs[i].id.length);
				tabs[i].onclick = function() {
					var blocks = this.parentNode.parentNode.getElementsByTagName("div");
					for(j = 0; j < blocks.length; j++)
					{
						blocks[j].index = blocks[j].id.substring(blocks[j].id.lastIndexOf("-")+1, blocks[j].id.length);
						if(blocks[j].index != this.index)
							blocks[j].style.display = "none";
						else
							blocks[j].style.display = "block";
					}
					return false;
				}
			}
		}
	}
	if(document.getElementById("homepage") || document.getElementById("category"))
	{
		swfobject.embedSWF("theme/flash/zone1.swf?t=" + new
Date().getTime(), "zone1", "235", "165", "8.0.0", "", "", {wmode:"transparent"});
		swfobject.embedSWF("theme/flash/zone2.swf?t=" + new
Date().getTime(), "zone2", "340", "405", "8.0.0", "", "", {wmode:"transparent"});
	}
	
};