
function toggleDiv(which){
	if(document.getElementById(which).style.display=="none"){
		$('#' + which).slideDown("slow");
		//$(which).blindDown({duration:0.3});
	}else{
		$('#' + which).slideUp("slow");
		//$(which).blindUp({duration:0.3});
	}
	 return false;
}

var homeboxpath = "/images/hd/"
if (document.images) {
    home_bar_find_up = new Image(562,26); home_bar_find_up.src = homeboxpath + "home_bar_find_up.gif";
	home_bar_find_down = new Image(562,26); home_bar_find_down.src = homeboxpath + "home_bar_find_down.gif";
	home_bar_advertise_up = new Image(562,26); home_bar_advertise_up.src = homeboxpath + "home_bar_advertise_up.gif";
	home_bar_advertise_down = new Image(562,26); home_bar_advertise_down.src = homeboxpath + "home_bar_advertise_down.gif";
}

function toggleHomeDiv(which,bar){
	if(document.getElementById(which).style.display=="none"){
		$('#' + which).slideDown("slow");
		if (document.images) {document[bar].src = eval( bar + "_down.src" );}
		//$(which).blindDown({duration:0.3});
	}else{
		$('#' + which).slideUp("slow");
		if (document.images) {document[bar].src = eval( bar + "_up.src" );}
		//$(which).blindUp({duration:0.3});
	}
	 return false;
}

function getID(idString) {
	// Given a string like "something-101", return 101
	return idString.split("-")[idString.split("-").length - 1];
}
