/*
#####################
# Code by TaiDay team
# TaiDay library
# taiday_net
#####################
*/

function login_div(){
	jQuery.blockUI({ message: '<form name="LOGINFORM"  action="http://taiday.net/login.html?forwardurl=" method="POST"><div style="width:410px;border:1px solid #d1d4d3; background-color:#fff; padding:1px;" align="left"><div style=" height:26px; background-color:#17437a;" align="left"><span style=" line-height:26px;color: #fff; padding-left:10px;">Đăng nhập !</span><img src="http://taiday.net/javascript/images/i_close2.gif" width="13" height="13" id="close_box" title="Close..." style="cursor:pointer; padding:2px; margin-top:3px; _margin-top:0px; margin-left:295px; _margin-left:300px; position:absolute" /></div><div id="loginForm" align="left" style=" background:url(http://taiday.net/javascript/images/bg_log_faile.gif) repeat-x bottom; height:178px"><div class="sign-in-field" style="padding-top:20px;"><label for="user_name" style="font-weight:normal; width:120px; color:#000">T&agrave;i kho&#7843;n: </label><input name="user_name" type="text" id="user_name" /></div><div class="sign-in-field"><label for="password" style="font-weight:normal; width:120px;color:#000">M&#7853;t kh&#7849;u: </label><input name="user_password" type="password" id="user_password" /></div><div class="sign-in-set-cookie" align="left" style="margin-left:35px;font-weight:normal;" ><input id="user_remember" name="user_remember" value="on" type="checkbox" /><label for="set_cookie" class="cursor" style="font-weight:normal"> Nhớ mật khẩu</label></div><div  class="sign-in-submit1" style="padding-left:122px;"><input type="submit" name="login" class="btnLogLogin floatLeft"  id="sign-in-submit"  value="Đăng nhập"/><span class="sign-in-lost-password"><a href="forgetPass.html" style="font-weight:normal;">Qu&#234;n m&#7853;t kh&#7849;u?</a></span></div></div></div></form>', css: { border:'none', padding:0} });
	jQuery('#close_box').click(function () {
		jQuery.unblockUI();
	});
	
	closeBlockUI();
	jQuery('#overlays').click(function () {
		jQuery.unblockUI();
	});
}
function closeBlockUI(){		
	jQuery(window).keydown(function (e) {
      if (e.which == 27){
		  jQuery.unblockUI();
	  }
	});
}
