/***baseHttp.js***/
var $=function(id){return document.getElementById(id);}
/*var XMLHttpRequestObject = false;
if (window.XMLHttpRequest) {XMLHttpRequestObject = new XMLHttpRequest();} 
else {if (window.ActiveXObject) {XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");}}
function getData(dataSource,data) {
	if (XMLHttpRequestObject) {		
		XMLHttpRequestObject.open("POST", dataSource,true);
		XMLHttpRequestObject.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		XMLHttpRequestObject.onreadystatechange = function() {}    
		XMLHttpRequestObject.send(data);
	}
}*/
/**点击数统计*/
function ck(id,obj){
	if(obj.href.indexOf('#')!=-1||obj.href.indexOf('javascript:void(null)')!=-1){obj.target="_parent";obj.href="javascript:void(null)";}else{obj.target="_blank";}
	//getData("http://china.herostart.com/trade/adsClick","id="+id);
	new Image().src="http://china.herostart.com/trade/adsClick?id="+id+"&rad="+Math.random();
}	
ICss={add:function(css){
	var D=document,e=D.createElement('style');
	e.setAttribute("type","text/css");
	e.styleSheet&&(e.styleSheet.cssText=css)|| e.appendChild(D.createTextNode(css)); 
	D.getElementsByTagName('head')[0].appendChild(e); 
}}


/***adver_82***/
try{
/***rightFloating.js***/
/**
 * 右浮动广告模板
 */
var RindexScrollY_R=0;
var mrTFPD_R = true,mrBottom_R,mrTopscroll_R = 0;
function positionRGG(){
	var contentObj = document.getElementById(arguments[0]).style;
	
	var bodyTop = document.documentElement.scrollTop;
	if(contentObj.top){
	
		var percent=0.1*(bodyTop - RindexScrollY_R);
		if(percent>0){percent=Math.ceil(percent);}else{percent=Math.floor(percent);}
		var getTopSum = parseInt(contentObj.top);
		contentObj.top = getTopSum + percent +"px";
		RindexScrollY_R = RindexScrollY_R + percent;
	}else if(contentObj.bottom){
			
		var ua = navigator.userAgent.toLowerCase();
		var os = new Object();
		os.isIE = !os.isOpera && ua.indexOf("msie 6.0") != -1;
		if(os.isIE){
			if(mrTFPD_R){mrBottom_R = parseInt(contentObj.bottom);mrTFPD_R = false;}
			if(mrTopscroll_R != bodyTop){mrTopscroll_R = bodyTop;}
			var percent=0.1*(bodyTop - RindexScrollY_R);
			if(percent>0){percent=Math.ceil(percent);}else{percent=Math.floor(percent);}
			var setBottom = mrBottom_R + bodyTop - RindexScrollY_R;
			contentObj.bottom = setBottom - percent +"px";
			RindexScrollY_R = RindexScrollY_R + percent;
		}else{
			var percent=0.1*(bodyTop + RindexScrollY_R);
			if(percent>0){percent=Math.ceil(percent);}else{percent=Math.floor(percent);}
			var getTopSum = parseInt(contentObj.bottom);
			contentObj.bottom = getTopSum - percent +"px";
			RindexScrollY_R = RindexScrollY_R - percent;
		}
	}else{
		contentObj.display = "none";
		window.clearInterval("positionRGG()");
		return;
	}
}
function hiddenLayerPosiR(){document.getElementById('LayerPosiR').style.display='none';}
window.setInterval("positionRGG('LayerPosiR')",1);
document.getElementById('FloatingRight').innerHTML="<div id='LayerPosiR' style='right:3px;position:absolute;bottom:20px;border=0'><a href='http://china.herostart.com/active/2011/06/active.html' target='_blank' onclick='ck(\"82\",this)' title='注册有礼'><img src='http://img.herostart.com.cn/images/ads/ads_img/41/eC20110616150350430.jpg' width='95' height='327' border='0'/></a><div style='position:absolute; top: 3px; right:3px; z-index:3; height: 13px; width: 13px;'><a href='#' onclick='hiddenLayerPosiR()'><img src='http://img.herostart.com.cn/images/ads/ads_img/baseimg/close.gif' border='0'/></a></div></div>";

}catch(e){}

/***adver_101***/
try{
$('topAdver1').innerHTML="<a href='http://china.herostart.com/trade/register' target='_blank' onclick='ck(\"101\",this)' title='注册免费发布商务时空'><img src='http://img.herostart.com.cn/images/ads/ads_img/41/zi20110419160108571.jpg' width='734' height='127' border='0'/></a>";
}catch(e){}

/***adver_81***/
try{
/***leftFloating.js***/
/**
 * 左浮动广告模板
 */
var RindexScrollY=0;
var mrTFPD = true,mrBottom,mrTopscroll = 0;
function positionLGG(){
	var contentObj = document.getElementById(arguments[0]).style;
	
	var bodyTop = document.documentElement.scrollTop;
	if(contentObj.top){
	
		var percent=0.1*(bodyTop - RindexScrollY);
		if(percent>0){percent=Math.ceil(percent);}else{percent=Math.floor(percent);}
		var getTopSum = parseInt(contentObj.top);
		contentObj.top = getTopSum + percent +"px";
		RindexScrollY = RindexScrollY + percent;
	}else if(contentObj.bottom){
			
		var ua = navigator.userAgent.toLowerCase();
		var os = new Object();
		os.isIE = !os.isOpera && ua.indexOf("msie 6.0") != -1;
		if(os.isIE){
			if(mrTFPD){mrBottom = parseInt(contentObj.bottom);mrTFPD = false;}
			if(mrTopscroll != bodyTop){mrTopscroll = bodyTop;}
			var percent=0.1*(bodyTop - RindexScrollY);
			if(percent>0){percent=Math.ceil(percent);}else{percent=Math.floor(percent);}
			var setBottom = mrBottom + bodyTop - RindexScrollY;
			contentObj.bottom = setBottom - percent +"px";
			RindexScrollY = RindexScrollY + percent;
		}else{
			var percent=0.1*(bodyTop + RindexScrollY);
			if(percent>0){percent=Math.ceil(percent);}else{percent=Math.floor(percent);}
			var getTopSum = parseInt(contentObj.bottom);
			contentObj.bottom = getTopSum - percent +"px";
			RindexScrollY = RindexScrollY - percent;
		}
	}else{
		contentObj.display = "none";
		window.clearInterval("positionLGG()");
		return;
	}
}
function hiddenLayerPosiL(){document.getElementById('LayerPosiL').style.display='none';}
window.setInterval("positionLGG('LayerPosiL')",1);
document.getElementById('FloatingLeft').innerHTML="<div id='LayerPosiL' style='left:3px;position:absolute;bottom:20px;border=0'><a href='http://china.herostart.com/active/2011/062/index.html' target='_blank' onclick='ck(\"81\",this)' title='1元特价广告位'><img src='http://img.herostart.com.cn/images/ads/ads_img/41/rD20110608163524727.gif' width='95' height='327' border='0'/></a><div style='position:absolute; top: 3px; right:3px; z-index:3; height: 13px; width: 13px;'><a href='#' onclick='hiddenLayerPosiL()'><img src='http://img.herostart.com.cn/images/ads/ads_img/baseimg/close.gif' border='0'/></a></div></div>";

}catch(e){}

