//新版header
var headerHtml = '';
headerHtml += '<div class="container-fulid">'+
				  '<div class="containerCon clearfix overInitial">'+
				  		'<div class="floatL">'+
								'<div class="headlogo floatL">'+
										'<a href="javascript:;"><h1></h1></a>'+
								'</div>' +
							'</div>' +
							//未登录状态
							'<div class="unlogin floatR displayNone">'+
								'<ul class="headnavbtn floatR">'+
										'<li><a href="cmp-settled-log.html">登录</a></li>'+
								'</ul>' +
							'</div>' +
							//已登录状态
							'<div class="onlogin floatR">'+
								'<div class="headuserimg floatR">'+
										'<div class="headuser headRadius"><img src="../images/default-icon.jpg" width="100%" /></div>'+
										'<div class="comuserSelf displayNone">' +
				                '<div class="triangleB"></div>'+
				                '<div class="personal-box bgRadius">'+
				                    '<a href="cmp-setPwd.html"><span class="icon icon3"></span>账户设置</a>'+
				                    '<a href="#" onClick="exit()"><span class="icon icon4"></span>退出登录</a>'+
				                '</div> '+            
				           ' </div>' + 
								'</div>' +
								'<ul class="headnavbtn floatR">'+
										'<li><a href="cmp-workspaces.html">企业工作台</a></li>'+
								'</ul>' +
							'</div>' +
					'</div>' +
			'</div>';

document.write(headerHtml);

$(".headuserimg").hover(function(){
	$(".comuserSelf").stop(false,true).slideToggle();
})
