var imageCount = 44;
var randomNumber = (Math.floor(Math.random() * imageCount) + 1);

$(document).ready( function() {
	$webToolsDropDown = $("#searchBar ul ul.webToolsDropDown");
	$dropDown = $("#dropDown");
	
	$dropDown.mouseover( function() {
		$webToolsDropDown.addClass("showWebToolsDropDown");
	});
	
	$("#searchBar ul li a").focus( function() {
		$webToolsDropDown.addClass("showWebToolsDropDown");
	});

	$dropDown.mouseout( function() {
		$webToolsDropDown.removeClass("showWebToolsDropDown");
	});
	
	$(".webToolsDropDown li.last a").blur( function() {
		$webToolsDropDown.removeClass("showWebToolsDropDown");
	});
	
	$("input.searchTextbox").focus( function() {
		if ( $(this).val() == "Search WIU" ) {
			$(this).val("");
			$("#searchBar input.searchTextbox").css("font-style", "normal");
		}
	});
	
	$(".rollover").hover( function() {
		this.src = this.src.replace("_off", "_roll");
	}, function() {
		this.src = this.src.replace("_roll", "_off");
	});
	
	$("#higherValuesBox").css("background", "url(images/front/higherValues" + randomNumber + ".jpg) no-repeat");
});

