
function WriteIEButtons(sRelLocation)
{
	var sPrefix = DeterminePrefix(sRelLocation);

	if(navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.indexOf("4") != -1 || navigator.appVersion.indexOf("5") != -1 || navigator.appVersion.indexOf("6") != -1 || navigator.appVersion.indexOf("7") != -1 || navigator.appVersion.indexOf("8") != -1))
	{
		document.write('<TR><TD BGCOLOR="#424345"><CENTER><A HREF="' +sPrefix+ 'ActiveChannel.cdf" onMouseOver="return MOText(\'Add Active Channel\');" onMouseOut="return MOTextReset()"><IMG SRC="' +sPrefix+ 'Images/AddChannel.gif" WIDTH="136" HEIGHT="20" ALT="Add Active Channel" BORDER="0"></A>');
		if(navigator.appVersion.indexOf("5") != -1 || navigator.appVersion.indexOf("6") != -1 || navigator.appVersion.indexOf("7") != -1 || navigator.appVersion.indexOf("8") != -1)
		{
			document.write('<BR><A HREF="javascript:AddToFavorites()" onMouseOver="return MOText(\'Add to Favorites\');" onMouseOut="return MOTextReset()"><IMG SRC="' +sPrefix+ 'Images/AddFavorites.gif" WIDTH="136" HEIGHT="20" ALT="Add To Favorites" BORDER="0"></A><BR><A HREF="javascript:null(0)" onClick="SetAsHomepage(this);" onMouseOver="return MOText(\'Set as Homepage\');" onMouseOut="return MOTextReset()"><IMG SRC="' +sPrefix+ 'Images/SetAsHomepage.gif" WIDTH="136" HEIGHT="20" ALT="Set as Homepage" BORDER="0"></A>');
		}
		document.write('</CENTER></TD></TR>');
	}
}

function SetAsHomepage(Object)
{
	Object.style.behavior = 'url(#default#homepage)';
	Object.setHomePage(location.href);
}

function AddToFavorites()
{
	window.external.AddFavorite(location.href, document.title);
}