	function breadcrumbs()
	{
		var cpage=currentpage;
		var ccategory=currentcategory;
		var mainheader = document.getElementById(cpage);
		if(mainheader!=null)
		{
			mainheader.style.backgroundColor="#CE6454";
		}
		var subheader = document.getElementById(ccategory);
		if(subheader!=null)
		{
			subheader.style.fontWeight="bold";
		}
	}

	function breadcrumbs2(thisobj)
		{
			thisobj.style.backgroundColor='#28367D';
			breadcrumbs();
		}
	
	
	function updaterecent()
	{
		var currentloc = document.URL;
		for(v=0; v< featurepages.length; v++)
		{	
			if(currentloc.indexOf(featurepages[v])>0)
			{
				document.getElementById("recentmain").style.display='none';
				return;
			}
		}
	
	}
	
	
	function fixlinks(tagname)
	{
		var linkobjs = document.getElementsByTagName(tagname);
		var thislink;
		var thispath;

		// Fixes links for testing on local system
		if(location.hostname != "localhost") {
			for(i = 0; i<linkobjs.length; i++)
			{
				if(linkobjs[i].hostname == "old.twistedstraight.com")
				{
					thispath = linkobjs[i].pathname;
					if(thispath == "/default.aspx" || thispath=="/")
					{
						linkobjs[i].href = "http://twistedstraight.com";
					}
					if(thispath == "/ts.xml") linkobjs[i].href="http://twistedstraight.com/?feed=rss2";
				}
				else
				{
					if(linkobjs[i].hostname == "www.twistedstraight.com")
					{
						linkobjs[i].hostname = "old.twistedstraight.com";
					}
				}
			}	
			
			return;
		}
		for(i = 0; i<linkobjs.length; i++)
		{
			if(linkobjs[i].hostname == "localhost")
			{
				thispath = linkobjs[i].pathname;
				if(thispath.indexOf("ts1")<0)
				{
					if(thispath.indexOf("/")!=0) thispath = "/"+thispath;
					linkobjs[i].pathname = "ts1" + thispath;
				}
			}
		}	
	}

