/**
 * @author Iris Associates Ltd.
 * @version 1.0
 */
$("searchq").observe("focus", function(evt) {
	this.value = (this.value == "Search the National College") ? "" : this.value;
}).observe("blur", function(evt) {
	this.value = (this.value == "") ? "Search the National College" : this.value;
});

// tooltips
if(typeof Tooltipsy == "function")
{
	var t = $("tools");
	if(t)
	{
		t.down("ul").select("li").each(function(s) { new Tooltipsy(s); });
	}
}

// social bookmarking
if(typeof SocialBookmark == "function")
{
	var sb = $("socialBookmarking");
	if(sb)
	{
		new SocialBookmark(sb);
	}
}

if(typeof Tabulator == "function")
{
	var tar = $$('#topicsAndResources .tab');
	if(tar)
	{
		new Tabulator(tar);
	}
}
