/*  Put code to initialize the mediawiki in this file, in the JQuery ready event.
*/
$(function() {
	$(".wiki-table.:not(.no-stripes)").find("tr:even").addClass("eventr");
	$(".wiki-table.:not(.no-stripes)").find("tr:odd").addClass("oddtr");
	
	var noTextColor = $("#search-box input.textbox").css("color");
	var searchTextColor = $("#search-box input.search-button").css("color");
	$("#searchInput").val(searchInputString).css({color:noTextColor}).click(function () {
		if($(this).css("color")!=searchTextColor)
			$(this).val("").css({color:searchTextColor});

		return true;
	});
	$("#searchInput").blur(function () {
		if($(this).val() == "")
			$(this).val(searchInputString).css({color:noTextColor});
			
		return true;
	});
	
	// Activate the become an editor button on click.  (Mainpage button).
	$(".right-imgdiv").click(function () {
		window.location = "http://evonypedia.com/index.php?title=Special:UserLogin&type=signup";
	 });
});
