//By HK, Date 2008.06.27 WANMEI.COM

//config
var serverid = "http://cookie.bi.wanmei.com/servlet/wanmei.html";

var serverid2 = "http://cookie.bi.wanmei.com/servlet/huodongcount.html";
//config

function wanmeibi(){
	
	var addr = encodeURIComponent(window.location.href);	
	//addr = addr.replace('\?','&');	
	addr += '&referer=' + encodeURIComponent(document.referrer);
	
		var ifrmwanmeibi = '<iframe id=ifrmwanmeibi01 src=\"'+serverid+'?addr='+addr+'\" scrolling=no width=0 height=0 marginWidth=0 marginHeight=0 frameborder=0 border=0 ></iframe>';	
		
		document.write(ifrmwanmeibi);
		
		//alert('url ' + encodeURI(window.location.href));
		//alert('urlc ' +encodeURIComponent(window.location.href));
	
	//alert(ifrmwanmeibi);
		
}

try{
	wanmeibi();
}catch(e){
	
}


function wanmeihuodongbi(id){
	//alert(id);
	var ifrmwanmeibi = '<iframe id=ifrmwanmeibi01 src=\"'+serverid+'?bihuodongid='+id+'\" scrolling=no width=0 height=0 marginWidth=0 marginHeight=0 frameborder=0 border=0 ></iframe>';	
	document.write(ifrmwanmeibi);
}
