	document.write('');
var ph_ad_float_parameter = {
	adWidth:150,
	adHeight:151,
	adLink: 'http://www.teemall.com.cn/mingxing/html/bonus.asp',
	adMediaUrl:'http://www.teemall.com.cn/mingxing/html/move.jpg',
	isFlash:false,
	marginRight:10,
	marginBottom:20,
	maxHeight:document.body.scrollHeight
}
var ph_ad_float=
{
	render:function()
	{
		if(ph_ad_float_parameter.isFlash)
		{
			var _record_swf_click = escape(ph_ad_float_parameter.adLink);
			var _flashUrl = ph_ad_float_parameter.adMediaUrl;
			document.write('<div id=\"ph_ad_float_el\" style=\"position: absolute;clear:both; width:'+ph_ad_float_parameter.adWidth+'px; height:'+ph_ad_float_parameter.adHeight+'px; top: 200px; left:900px;VISIBILITY: visible; z-index: 9999\">');
			document.write('<div id=\"ph_ad_bottom_close\" style=\"position: absolute; width:100%; height:14px; text-align:right; line-height:14px;padding-top:1px;font-size:12px;  background:#ccc; bottom:-14px; right:0;VISIBILITY: visible; cursor:pointer; z-index: 10000\" onclick=\"ph_ad_float.close()\">关闭</div>');			
			document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"'+ph_ad_float_parameter.adWidth+'\" height=\"'+ph_ad_float_parameter.adHeight+'\">');
			document.write('<param name=\"movie\"  VALUE="'+_flashUrl+'?clickTag='+_record_swf_click+'" />');
			document.write('<param name="quality" value="high" />');
			document.write('<embed src="'+_flashUrl+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ph_ad_float_parameter.adWidth+'" height="'+ph_ad_float_parameter.adHeight+'"></embed>');
			document.write('</object>');
			document.write('</div>');
		}
		else
		{
			document.write('<div id=\"ph_ad_float_el\" style=\"position: absolute;clear:both; width:'+ph_ad_float_parameter.adWidth+'px; height:'+ph_ad_float_parameter.adHeight+'px; top: 200px; left:900px;VISIBILITY: visible; z-index: 9999;\">');
			document.write('<div id=\"ph_ad_bottom_close\" style=\"position: absolute; width:100%; height:14px; text-align:right; line-height:14px;padding-top:1px;font-size:12px; background:#ccc; bottom:-14px; right:0;VISIBILITY: visible; cursor:pointer; z-index: 10000;\" onclick=\"ph_ad_float.close()\">关闭</div>');
			document.write('<a href=\"'+ph_ad_float_parameter.adLink+'\" target=\"_blank\">');
			document.write('<img src=\"'+ph_ad_float_parameter.adMediaUrl+'\" border=\"0\" width=\"'+ph_ad_float_parameter.adWidth+'\" height=\"'+ph_ad_float_parameter.adHeight+'\"  />');
			document.write('</a>');
			document.write('</div>');
		}
	},
	cal_pos:function()
	{
		var _top=_left=0;
		var doc=document;
		var docElement=doc.documentElement;
		var el=doc.getElementById('ph_ad_float_el');
		_left=docElement.scrollLeft+docElement.clientWidth-(ph_ad_float_parameter.adWidth + ph_ad_float_parameter.marginRight);
		_top=docElement.scrollTop+docElement.clientHeight-(ph_ad_float_parameter.adHeight + ph_ad_float_parameter.marginBottom);
		el.style.left=_left+'px';
		el.style.top=_top+'px';
	},
	init:function(top,left)
	{
		this.render();
		this.cal_pos();
		window.onscroll=this.cal_pos;
		window.onresize=this.cal_pos;
	},
	close:function()
	{
		document.getElementById('ph_ad_float_el').style.display='none';
	}
}
ph_ad_float.init();
document.write('');