

onload = function() {
	//
}
function cusWin(url, width, height, scrollbars, resize) {
	if (!scrollbars) { scrollbars = 'yes' }
	if (!resize) { resize = 'yes' }
	var win = open(url, 'win','scrollbars='+scrollbars+',resizable='+resize+',left=5,top=5,width='+width+',height='+height+'');
	win.focus();

	event.cancelBubble = true;
}
function clearField(field){
	if (field.defaultValue==field.value)
		field.value = ""
}


function toggleDisplay(obj) {
	var parentDiv = obj.parentNode;

	var advisorText = parseSelector(".advisorText", parentDiv)[0];

	dbg(advisorText);

	var advisorImage = parseSelector(".arrow", parentDiv)[0];
	var advisorExpTxt = parseSelector(".expTxt", parentDiv)[0];

	if (advisorText.style.display == "block") {

		advisorText.style.display = "none";
		advisorImage.src = "common/images/rtArrow.gif";
		advisorExpTxt.firstChild.nodeValue = "Display Full Text";

	} else {
		advisorText.style.display = "block";
		advisorImage.src = "common/images/dnArrow.gif";
		advisorExpTxt.firstChild.nodeValue = "Display Summary Only";
	}
}
function closeEmail() {
	document.getElementById("emailMessage").style.display="none";
}
function closeMailList() {
	document.getElementById("mailingListMessage").style.display="none";
}
function closeTicker() {
	document.getElementById("tickerMessage").style.display="none";
}


function fund_over(obj) {
	obj.className = "fund_over";
}
function fund_out(obj) {
	obj.className = "";
}
function fund_go(obj) {
	var a = document.getElementsBySelector("a", obj)[0];

	var url = a.getAttribute("href");

	location.href = url;
}


