<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html   xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta   name="robots" content="noindex, nofollow" />
<meta   http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>形象设计 - <jcms:site.name/></title>
<script type="text/javascript" src="../_libs/swfobject.js"></script>
<script type="text/javascript" src="../_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="../_data/jcmsV4.x.js"></script>
<link   type="text/css" rel="stylesheet" href="../_data/jcmsV4.x.css" />
</head>
<body>
<style>
@import url(../style/member/style.v4.css);
#ucmenu{width:600px;}
</style>
<script type="text/javascript">
(function(){
	$(document).ready(function() {
		refreshPhoto();
	});
})();
function refreshPhoto() {
	$("#u_myface").attr("src","../_data/avatar/{$_userid$}_l.jpg?" + (new Date().getTime()));
}
function save_success(data) {
	if(data=="ok") {
		//showAvatarEditor();
		//refreshPhoto();
		alert('制作成功');
		window.location.reload();
	}
	else
		alert(data);
}
</script>
<iframe frameborder="0" scrolling="no" src="index_default.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="user_content">
	<!--menu-->
	<div class="user_menu">
		<iframe frameborder="0" scrolling="no" src="index_default.aspx?do=left" width="176" height="700" name="iFrame1"  marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifleft"></iframe>
	</div>
	<script type="text/javascript">
function reinitIframe(str){
	var iframe = document.getElementById(str);
	try{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		iframe.height =  height;
	}catch (ex){}
}
window.setInterval("reinitIframe('ifleft')", 200);
</script>
	<!--右侧功能细分区-->
	<div id="function_box">
		<div class="nav_two">
			<ul>
				<li><a href="../passport/changepassword.aspx">密码设置</a></li>
				<li><a href="../user/changeprofile_default.aspx">基本资料</a></li>
				<li><a href="../user/changeforuminfo_default.aspx">论坛信息</a></li>
				<li class="currently"><a href="../user/changeavatar_default.aspx">形象设计</a></li>
			</ul>
			<div class="clear"></div>
		</div>
		<div>
				<table style="width:100%;" border="0" cellspacing="4" cellpadding="4" id="studio">
					<tr>
						<td width="135" align="center" valign="top"><div class="ar_r_t">
							<div class="ar_l_t">
								<div class="ar_r_b">
									<div class="ar_l_b"><img id="u_myface" src="" onerror="this.src='../_data/avatar/0_l.jpg'" width="120" height="120" /></div>
								</div>
							</div>
						</div><br /><div style="width:100%;text-align: center;"><span>当前形象</span></td>
						<td width="20"></td>
						<td height="360"><div id="swfDiv"></div>
<script type="text/javascript">
function showAvatarEditor(){
	var flashvars = {};
	flashvars.ServiceUrl = "{$_serviceurl$}";
	flashvars.UserId = "{$_userid$}";
	flashvars.UserSign = "{$_usersign$}";
	flashvars.FileFilter = "{$_filefilter$}";
	flashvars.MaxSize = "{$_maxsize$}";
	var params = {};
	params.quality = "high";
	params.bgcolor = "#ffffff";
	params.allowScriptAccess = "sameDomain";
	params.allowfullscreen = "true";
	var attributes = {};
	attributes.id="AvatarFlexApp";
	attributes.name="AvatarFlexApp";
	swfobject.embedSWF("../style/flex3/user/AvatarEditor.swf", "swfDiv", "440", "340", "9.0.0", "../style/flex3/expressInstall.swf", flashvars, params, attributes); 
}
showAvatarEditor();
</script>
</td>
					</tr>
				</table>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
<iframe frameborder="0" scrolling="no" src="../user/index_default.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
