$(function(){


	/* Help for Texting */
	$(".help").click(function(){
		createPopUp(arguments[0], "Premium members: text in guesses from your mobile phone! Simply text the prize game keyword + your guess to 81000 (88230 for AT&T customers, 81000 for Cricket customers).");
	});

	/*
	$("span.help").click(function(){
		alert("What is this?????");
	});
	*/
	
	/* Bid Hint 
	$(".bidBox span").click(function(){
		alert($("#bidHint").html());
	});
	*/
	
	/* TEMP: Hide Bid Hint */
	$(".bidBox span").hide();
	
	/* Bid box control - only alow bid entry if txtBidAmount has # in it */
	$(".btnBidGo").attr({disabled: "disabled"}).css({cursor: "default"});
	$(".txtBidAmount").attr({autocomplete: "off"});
	$(".txtBidAmount").click(function(){
		$(".txtBidAmount").keyup(function(){
			if ($(this).val().length > 0)
			{
				$(this).parent().find(".btnBidGo").removeAttr("disabled");
				$(this).parent().find(".btnBidGo").css({cursor: "pointer"});
			}
			else
			{
				$(this).parent().find(".btnBidGo").attr({disabled: "disabled"}).css({cursor: "default"});
			}
		});
	});
	
	/* Questions Sub Nav - Selected element highlighter */
	$(".sideNav a").each(function(){
		if ($(this).text() == $(".sideNav").attr("rel"))
		{
			$(this).addClass("selected");
		}
	});
});
