

var ContentType = "WP";

function MarkNode(CallObj,CallContentType)
{
	var CallObjId = CallObj.id;
	ContentType = CallContentType;

	if (CallObjId.indexOf("coll_")>-1)
	{
		CallObjType ="Coll"
	}
	else
	{
		CallObjType ="Cat"		
		
	}

	CallObj.className = ContentType + "_" + CallObjType + "_Hover";
	document.getElementById(CallObjId + "_link").className= ContentType + "_" + CallObjType + "_Link_Hover" ;
	document.all[CallObjId + "_right"].src =  SiteImageRoot + "/gallery/tree/" + ContentType.toLowerCase() +  "_tree_" + CallObjType.toLowerCase() + "_right_over.gif";
	document.all[CallObjId + "_left"].src =   SiteImageRoot + "/gallery/tree/" + ContentType.toLowerCase() +  "_tree_" + CallObjType.toLowerCase() + "_left_over.gif";
}


function ReleaseNode(CallObj)
{
	var CallObjId = CallObj.id;
	
	if (CallObjId.indexOf("coll_")>-1)
	{
		CallObjType ="Coll"
	}
	else
	{
		CallObjType ="Cat"	
	}
	
	CallObj.className = CallObjType + "_Cat";
	document.getElementById(CallObjId + "_link").className= ContentType + "_" + CallObjType + "_Link" ;
	document.all[CallObjId + "_right"].src =  SiteImageRoot + "/gallery/spacer.gif";
	document.all[CallObjId + "_left"].src =   SiteImageRoot + "/gallery/spacer.gif";
}
