//Mlex Javascript,
//author One Million Dollars (1MD) <http://1md.be>,

var menu = function(id){
	this.menu = $(id);
	this.menu.find("li").each(function(){
		$(this).children("ul").hide();		
		
		$(this).mouseover(function(){
			$(this).children("ul").slideDown("fast");
			if($.browser.msie) {
				var hauteur = $(this).width(); 
				$(this).children("ul").css({marginLeft:"-"+hauteur+"px"}); 
			}
			$(this).prev().children("ul").fadeOut("fast");
		 	$(this).siblings().children("ul").fadeOut("fast");
			if($.browser.msie && /6.0/.test(navigator.userAgent)){	
				$(this).siblings().children("ul").width($(this).width()+10);
			}
		});
	});
	$("body").click(function(){ $(id+" ul").fadeOut("fast"); });
};


$(document).ready(function() {

 
	
	$(".corner_left").corner('bl tl');
	$(".corner_right").corner('br tr');

	$(document).pngFix();


	
	$("#form_login_index input[type=text]").focus(function(){ if($(this).attr("value") == "Login"){ $(this).attr("value", ""); } });
	$("#form_login_index input[type=text]").blur(function(){ if($(this).attr("value") == ""){ $(this).attr("value", "Login"); } });

	$("#form_login_index input[type=password]").focus(function(){ $(this).css('background', '#fff');});





});


 

