function init() {
	init_dropdowns();
}

function init_dropdowns() {
	$("a[id^='nav-']").each(function(i) {
		var t = $(this);
		var cleanID = t.attr("id").substring(4);
		var dd = $("div[id='dd-"+cleanID+"']");
		if(dd.length > 0) {
			var pos = t.position();
		
			dd.css({ 	left	: pos.left, 
								top		: pos.top+t.height() });
								
			t.mouseover(function() { 	t.css({ backgroundColor:"#5e5b5b" });
																dd.fadeIn(); });			
			t.parent("li").mouseleave(function() { $("div[id^='dd']").fadeOut();
																							t.css({ backgroundColor:"transparent" }); });
		}
	});
	
	$("#download-centre *, .quote").hide();
	window.setTimeout(showDownloads, 3000);
}

function showDownloads() {
	$("#download-centre img").fadeIn();
	$("#download-centre a").each(function() {
		var t = $(this);
		t.slideDown(1000, function() { $(".quote").fadeIn(1000); });
	});
}

