<!--
try{
	var greeting, nickname, blog_f, blog_photo, back_url, back_to, template_js='', domain_pf='', h_domain, c_domain=(h_domain?h_domain:document.domain), img_domain, sdomain_n;
	var w1, w2, w3, table_width, wd;
	var div_login_form = document.getElementById('div_login_form');
	w1=250;w2=179;w3=152;if(table_width && table_width!=w1) {wd=table_width-w1;w1+=wd;w2+=wd;w3+=wd;};
	//sdomain_n=c_domain.replace(/^(www.|)+(.*)$/,"$2");
	sdomain_n=c_domain.replace(/^([^\.]+)\.+(.*)$/,"$2");
	if (sdomain_n.indexOf(".")==-1) sdomain_n="hkheadline.com";
	domain_pf="http://www."+sdomain_n;
	img_domain="http://img."+sdomain_n;
	img2_domain="http://img2."+sdomain_n;
	if(greeting && blog_f) {
		blog_photo=(blog_photo?((blog_photo.indexOf("http%3A//")<0?(img2_domain+"/headline"):"")+blog_photo):img2_domain+"/headline/blog/avater/male.gif");
template_js+='<div id="div_login_form">';
template_js+='<table width="'+w1+'" border="0" cellpadding="0" cellspacing="0">';
template_js+='  <tr>';
template_js+='    <td align="center" background="'+img2_domain+'/headline/image/login/logout_box_top_bg.gif"><table width="100%" height="21" border="0" cellpadding="0" cellspacing="1">';
template_js+='      <tr>';
template_js+='        <td class="btn_content">&nbsp;'+unescape(greeting)+'&nbsp;'+unescape(nickname)+'</td>';
template_js+='        <td align="right" class="contentgray_13cf"><a href="'+domain_pf+'/membership/memberlogin_coupon.asp" class="btn_content">會員優惠</a>&nbsp;</td>';
template_js+='      </tr>';
template_js+='    </table></td>';
template_js+='  </tr>';
template_js+='  <tr>';
template_js+='    <td background="'+img2_domain+'/headline/image/login/login_box_bg.gif"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
template_js+='      <tr>';
template_js+='        <td align="center" valign="middle"><img src="'+unescape(blog_photo)+'" width="60" height="60" class="imgtopg"></td>';
template_js+='        <td width="'+w2+'"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
template_js+='          <tr>';
template_js+='            <td width="'+w3+'" height="22" background="'+img2_domain+'/headline/image/login/logout_bg1_350.gif"></td>';
template_js+='            <td width="27" rowspan="3"><a href="'+domain_pf+'/membership/logout.asp'+(back_to?'?back_to='+escape(unescape(back_to)):'')+'"><img src="'+img2_domain+'/headline/image/login/logout_btn_logout.gif" width="27" height="69" border="0"></a></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td height="41" background="'+img2_domain+'/headline/image/login/logout_bg2_350.gif"><table width="100%" cellpadding="0" cellspacing="1">';
template_js+='              <tr>';
template_js+='                <td class="contentgray_13cf">&nbsp;&nbsp;</td>';
template_js+='                <td><img src="'+img2_domain+'/headline/image/login/logout_bullet.gif" width="6" height="6"></td>';
template_js+='                <td><a href="'+domain_pf+'/blog/list_blog_edit.asp?f='+unescape(blog_f)+'" class="contentgray_13cf">Blog</a></td>';
template_js+='                <td><img src="'+img2_domain+'/headline/image/login/logout_bullet.gif" width="6" height="6"></td>';
template_js+='                <td><a href="'+domain_pf+'/album/album_cat_list.asp?f='+unescape(blog_f)+'" class="contentgray_13cf">相簿</a></td>';
template_js+='                <td><img src="'+img2_domain+'/headline/image/login/logout_bullet.gif" width="6" height="6"></td>';
template_js+='                <td><a href="'+domain_pf+'/shop/myshop.asp" class="contentgray_13cf">店舖</a></td>';
template_js+='              </tr>';
template_js+='              <tr>';
template_js+='                <td class="contentgray_13cf">&nbsp;&nbsp;</td>';
template_js+='                <td><img src="'+img2_domain+'/headline/image/login/logout_bullet.gif" width="6" height="6"></td>';
template_js+='                <td><a href="'+domain_pf+'/membership/membership_profile.asp" class="contentgray_13cf">資料</a></td>';
template_js+='              </tr>';
template_js+='            </table></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td height="6"><img src="'+img2_domain+'/headline/image/login/logout_bg3.gif" width="'+w3+'" height="6"></td>';
template_js+='          </tr>';
template_js+='        </table></td>';
template_js+='      </tr>';
template_js+='    </table></td>';
template_js+='  </tr>';
template_js+='</table>';
template_js+='</div>';
	} else {
	if (!back_url) back_url=document.URL;
	if (!h_domain) back_url=back_url.replace(/^http(s|)\:\/\/+(www.|)+(.*)$/,"http$1://www.$3");
template_js+='<div id="div_login_form">';
template_js+='<table width="'+w1+'" border="0" cellpadding="0" cellspacing="0">';
template_js+='  <tr>';
template_js+='    <td align="center" background="'+img2_domain+'/headline/image/login/login_box_top_bg.gif"><img src="'+img2_domain+'/headline/image/login/login_box_top.gif" width="63" height="24"></td>';
template_js+='  </tr>';
template_js+='  <tr>';
template_js+='    <td background="'+img2_domain+'/headline/image/login/login_box_bg.gif">';
template_js+='    <form name="frm" action="'+domain_pf+'/membership/memberlogin_check.asp" method="post" style="padding:0px;margin:0px;">';
template_js+='    <table width="100%" cellpadding="0" cellspacing="2">';
template_js+='      <tr>';
template_js+='        <td><table width="100%" cellpadding="0" cellspacing="0">';
template_js+='          <tr>';
template_js+='            <td align="center"><img src="'+img2_domain+'/headline/image/login/login_box_tag1.gif" width="60" height="17"><input type="hidden" name="actionType" value="login" /><input type="hidden" name="back_url" value="'+back_url+'" /><input type="hidden" name="back_login" value="'+domain_pf+'/membership/login.asp" /><input type="hidden" name="login" value="yes" /></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td align="center"><input name="username" type="text" maxlength="50" size="10" class="box3"></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td></td>';
template_js+='          </tr>';
template_js+='        </table></td>';
template_js+='        <td><table width="100%" cellpadding="0" cellspacing="0">';
template_js+='          <tr>';
template_js+='            <td align="center"><img src="'+img2_domain+'/headline/image/login/login_box_tag2.gif" width="38" height="17"></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td align="center"><input name="password" type="password" maxlength="50" size="10" class="box3"></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td></td>';
template_js+='          </tr>';
template_js+='        </table></td>';
template_js+='        <td><table width="100%" cellpadding="0" cellspacing="0">';
template_js+='          <tr>';
template_js+='            <td align="center" class="contentgray_13cf">&nbsp;</td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td align="center"><input type="image" src="'+img2_domain+'/headline/image/login/login_box_btn_login.gif" width="44" height="22"></td>';
template_js+='          </tr>';
template_js+='          <tr>';
template_js+='            <td></td>';
template_js+='          </tr>';
template_js+='        </table>';
template_js+='        </form>';
template_js+='        </td>';
template_js+='      </tr>';
template_js+='      <tr>';
template_js+='        <td colspan="3" align="center"><span ><a href="'+domain_pf+'/membership/memberlogin_coupon.asp" class="btn_content">會員優惠</a></span>  <span class="btn_content">|  </span><a href="'+domain_pf+'/membership/registration.asp" class="btn_content"><span >新會員登記</span></a><span class="btn_content">  |  </span><a href="'+domain_pf+'/membership/forgetPassword.asp" class="btn_content">忘記密碼</a></td>';
template_js+='      </tr>';
template_js+='    </table></td>';
template_js+='  </tr>';
template_js+='</table>';
template_js+='</div>';
	}
	if (div_login_form) {
		div_login_form.innerHTML=template_js;
	} else {
		document.write(template_js);
	}
} catch (e){}
//-->
