








document.writeln("<link href='http://www.hc360.com/css/2007/iframe_mmttop.css' type='text/css' rel='stylesheet' media='screen'/>");
document.writeln("<div id='hcwrap'>");
	document.writeln("<H1><A href='http://www.hc360.com' target='_parent'><IMG height=75 alt=慧聪网logo src='http://www.hc360.com/images/2007/logo.gif' width=300 border='0'></A><SPAN>慧聪网</SPAN></H1>");
	document.writeln("<div id='hcuserarea'>");
	document.writeln("<ul id='hcuser'><li></li></ul>");
	document.writeln("<ul id='hctools'><li class='list05'><a href='http://www.hc360.com' target='_parent'>首页</a></li><li><a href='http://my.b2b.hc360.com/' target='_parent'>商务中心</a></li><li><a href='http://b2b.hc360.com/intro/index.htm' target='_parent'>买卖通服务</a></li><li><a href='http://www.im.hc360.com/' target='_parent'>慧聪发发</a></li><li><a href='http://www.chat.hc360.com/chat/turbine/action/firstview.GetInHouseAction' target='_parent'>洽谈会</a></li><li><a href='http://help.hc360.com' target='_parent'>帮助</a></li></ul>");
	document.writeln("</div>");
    document.writeln("<div id='hcmainnav'>");
	    document.writeln("<ul ><li id='buy'><a href='http://b2b.hc360.com/supermarket/isupply.html' target='_parent'>我要采购</a></li>");
	         document.writeln("<li id='sale'><a href='http://b2b.hc360.com/buy/index.htm' target='_parent'>我要销售</a></li>");

document.writeln("<li class='login'>您还没有登录，请 <a href='http://sso.hc360.com/ssologin?ReturnURL=",escape(window.location.href),"' target='_parent'>登录</a> 或者 <a href='http://b2b.hc360.com/member/reg_8.html' target='_parent' id='freereg'>免费注册</a></li>");

    document.writeln("</ul>");
	document.writeln("</div>");
document.writeln("</div>");

var curUrl,foreUrl,lastUrl,endUrl;
	var ssoName=new Array();
	curUrl = window.parent.location.href;
	foreUrl="http://b2b.hc360.com/";
	var spos = curUrl.indexOf("http://b2b.hc360.com/")+foreUrl.length;
	lastUrl = curUrl.substring(spos);
	if (lastUrl.indexOf("buy.html")|lastUrl.indexOf("company.html")|lastUrl.indexOf("product.html")|lastUrl.indexOf("supply.html"))
	{
		if(lastUrl.indexOf("supermarket")==0){
			endUrl = lastUrl.substring(lastUrl.indexOf("supermarket")+12);
			ssoName = endUrl.split("/");
		}else{
			ssoName = lastUrl.split("/");
			}
		switch (ssoName[1]){
			case "buy.html" : 
					ssoName[1] = "buy"; break;
			case "company.html" : 
					ssoName[1] = "com"; break;
			case "product.html" :
					ssoName[1] = "pro"; break;
			case "supply.html" :
					ssoName[1] = "sup"; break;
		}
	}
	var vUrl="";
	if(lastUrl.indexOf("supermarket")==0){
		vUrl+="s" + ssoName[0] + "_" + ssoName[1];
	}
	else{
		vUrl+=ssoName[0] + "_" + ssoName[1];
		}
	if(document.getElementById("freereg")!=null) {
		document.getElementById("freereg").href = "http://b2b.hc360.com/member/reg_8.html?sky=" + vUrl;
	}
