﻿
function includeJScript(sId, Url, params)  
{  
	var oHead = document.getElementsByTagName("body").item(0);  
	var oScript = document.createElement("script");  
	oScript.language = "javascript";  
	oScript.type = "text/javascript";  
	oScript.id = sId;  
	oScript.defer = true;  
	oScript.src = Url + params;

	//document.write (oScript.src);

	oHead.appendChild(oScript);  
}  

function doHot(curIndex,disp)
{
	var totalIndex = document.getElementById("hotitemposition").value;

	for (var i=1;i<=totalIndex;i++)
	{
		document.getElementById("hi" + i).className = "none";
	}
	
	document.getElementById("hi" + curIndex).className = "here";
}

function favMyHomepage()
{
	window.external.AddFavorite(window.location.toString(),window.document.title);
}

function getSub(getDiv,getID,getObject)
{
	for (var i=1;i<=3;i++)
	{
		$$$(getDiv + i).className = "hidden";
		$$$(getDiv + "A" + i).className = "hidden";
	}

	$$$(getDiv + getID).className = "here";
	$$$(getDiv + "A" + getID).className = "here";
}