$(document).ready(function(){
	wrapInput();
	$("#mainmenu li").bind("mouseover", function(){
		$(this).not(".white").css("background-color", "#666");
	});
	$("#mainmenu li").bind("mouseout", function(){
		$(this).not(".white").css("background-color", "#555");
	});

});

function wrapInput(){$(".inpWrapped").wrap('<div class="inpWrapper"></div>');}

function sel(id){id.value="";}

function authPlease(){alert(' ');}

function showWait(){return '<span id="wait"><img src="'+aload_preload.src+'" class="icons16">  ...</span>';}

function dropDownMM(){
	$.post("../ajax/drop_down_mainmenu.php",
	function(data){
		$("#dropdn").hide();
		$("#dropdn").before(data);
		var target=$("#dropdnList");
		target.slideDown("fast");
		$("#cont").bind("mouseover", function(){target.slideUp("fast", function(){$('#dropdn').show('slow');target.remove();});});
		$("#mpTopBlock").bind("mouseover", function(){target.slideUp("fast", function(){$('#dropdn').show('slow');target.remove();});});
  	});
}

function changeMainBanner(current){
	$("#mpNavButt").html('<a href="javascript:void(0);" onclick="changeMainBanner('+current+');"><img src="'+mpload_preload.src+'" class="icons16"></a>');
	$.post("../ajax/change_main_banner.php", {current:current},
	function(data){
		$("#mpTopBlock").html(data);
  	});
}

function winop(page, w, h, s) {window.open(page, "win", "width="+w+", height="+h+", left=40, top=40, scrollbars="+s);}

function hide(id){$("#"+id).hide();}
function show(id){$("#"+id).show();}
