// ** Misc **
// **      **
$(function(){ // (executes when the dom is ready)
	// make logo a link to go back to home page
	$("#logo").click(function(){
		document.location = "/";
	}).css("cursor","pointer");
	// detect iPhone/iPod and add class
	if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
		$("body").addClass("iphone");
	};
	// make hero button clickable
	$("#hero .button").click(function(){
		window.location = $("#hero-button-link").attr("href");
	});
	// add numbers to ol's
	$("ol").each(function(){
		$(this).find("li").each(function(i) {
			$(this).prepend("<span class='number'>"+(i+1)+"</span>");
		})
	});
	// remove subnav if empty
	if ($("#subnavigation").height()<5) {
		$("#subnavigation").hide();
	};
	// move pr around if needed
	$("#pr-here").html("<ul class='pr-list'>"+$(".pr-list").hide().html()+"</ul>").css("display","block");
});