function dropdownify(site) {
	var id = "#hover_nav_dropdown_"+site;
	var box_id = "#hover_nav_box_"+site;
	jQuery(box_id).bind("mouseenter", function() {
		clearTimeout(jQuery(id).data('timeout'));
		jQuery(box_id).css({backgroundColor:"#990000"});
		// close other dropdowns
		if(id!="dansr") jQuery("#hover_nav_dropdown_dansr div.dropdown_top").slideUp("fast");
		if(id!="vando") jQuery("#hover_nav_dropdown_vando div.dropdown_top").slideUp("fast");
		if(id!="wick") jQuery("#hover_nav_dropdown_wick div.dropdown_top").slideUp("fast");
		if(id!="hamil") jQuery("#hover_nav_dropdown_hamil div.dropdown_top").slideUp("fast");
		// open hovered dropdown
		jQuery(id+" div.dropdown_top").slideDown(300);
	});
	jQuery(box_id).bind("mouseleave", function() {
		if (jQuery(box_id).is('.selected')) { } else {
			jQuery(box_id).css({background:"none"});
		}
		var t = setTimeout(function() {
			jQuery(id+" div.dropdown_top").slideUp("fast");
		}, 1000);
	    jQuery(id).data('timeout', t);
	});
	jQuery(id).bind("mouseenter", function() {
		clearTimeout(jQuery(id).data('timeout'));
	});
	jQuery(id).bind("mouseleave", function() {
		var t = setTimeout(function() {
			jQuery(id+" div.dropdown_top").slideUp("fast");
		}, 1000);
	    jQuery(id).data('timeout', t);
	});
	jQuery(id+" a.menu_title").bind("mouseenter", function() {
		jQuery(this).next(id+" div.menu_content").slideDown(300).siblings(id+" div.menu_content").slideUp("slow");
	});
	jQuery(id+" div.dropdown_top").bind("mouseleave", function() {
		jQuery(id+" div.menu_content").slideUp("slow");
	});
}

function redirect(href) {
	window.location = href;
}
