function create()
{
	document.write('<div id="detailedSummaryBG" style="display:none;width:365px;height:235px;position:absolute;z-index:10" onMouseOver="javascript:inBoxFlag=true;" onMouseOut="javascript:inBoxFlag=false;" ></div>');
	document.write('<div id="detailedSummaryBox" style="display:none;z-index:11;position:absolute;"><table cellpadding="0" cellspacing="0" border="0" width="330" id="popInnerBox" ><tr><td><div id="detailedSummaryContent">d</div></td></tr></table>');
	document.write('</div>');
}
create();
function getAbsolutePos(e){
	var l=e.offsetLeft;
	var t=e.offsetTop;
	while(e=e.offsetParent){
		l+=e.offsetLeft;
		t+=e.offsetTop;
	}
	var pos=new Object();
	pos.x=l;
	pos.y=t;
	return pos;
}
function getWindowSize(){
	var _13=0,_14=0;
	if(typeof (window.innerWidth)=="number"){
		_13=window.innerWidth;
		_14=window.innerHeight;
	}else{
		if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
			_13=document.documentElement.clientWidth;
			_14=document.documentElement.clientHeight;
		}else{
			if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
				_13=document.body.clientWidth;
				_14=document.body.clientHeight;
			}
		}
	}
	var _15=new Object();
	_15.width=_13;
	_15.height=_14;
	return _15;
}
function getScrollXY(){
	var _16=0,_17=0;
	if(typeof (window.pageYOffset)=="number"){
		_17=window.pageYOffset;
		_16=window.pageXOffset;
	}else{
		if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
			_17=document.body.scrollTop;
			_16=document.body.scrollLeft;
		}else{
			if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
				_17=document.documentElement.scrollTop;
				_16=document.documentElement.scrollLeft;
			}
		}
	}
	var _18=new Object();
	_18.x=_16;
	_18.y=_17;
	return _18;
}
function addEvent(elm,_1a,fn,_1c){
	if(elm.addEventListener){
		elm.addEventListener(_1a,fn,_1c);
		return true;
	}else{
		if(elm.attachEvent){
			var r=elm.attachEvent("on"+_1a,fn);
			return r;
		}else{
			elm["on"+_1a]=fn;
		}
	}
}
function changeImageToNormalState(_1e){
	var img=document.getElementById("detailedSummaryImage"+_1e);
	img.src="y.gif";
}
function changeImageToClickState(_20){
}
function changeImageToHoverState(_21){
	var img=document.getElementById("detailedSummaryImage"+_21);
	img.src="y.gif";
}
var popTimer;
var gotoTitleTimer;
var canCloseTimer;
var canClose=false;
var inBoxFlag=false;
var detailedSummaryHidden=true;
var lastDocId;
var sumPoped=false;
function clearPopsTimer(_23,_24){
	changeImageToNormalState(_23);
	if(_24=="1"){
		clearTimeout(popTimer);
	}
}
function timeOutShowDetailedSummary(_25,_29,_2a,mid,title,url,freephone,shortad){
	changeImageToHoverState(_25);
	if(_2a=="1"){
		popTimer=setTimeout("_showDetailedSummary('"+_25+"','"+mid+"','"+title+"','"+url+"','"+freephone+"','"+shortad+"')",_29);
	}
}
function hideDetailedSummary(){
	if(!canClose){
		return;
	}
	clearTimeout(gotoTitleTimer);
	//alert("a")
	var box=document.getElementById("detailedSummaryBox");
	box.style.display="none";
	var _2c=document.getElementById("detailedSummaryBG");
	_2c.style.display="none";
	//var _2d=document.getElementById("detailedSummaryContent");
	//if(_2d.scrollTop){
	//_2d.scrollTop=0;
	//}
	detailedSummaryHidden=true;
	sumPoped=false;
	//resetInex();
}
function showDetailedSummary(_2e,_2f,_30,_31,_32){
	changeImageToClickState(_2e);
	if(_32=="0"){
		_showDetailedSummary(_2e,_2f,_30,_31);
	}
}
downpng=new Image();
downpng.src="down.png";
uppng=new Image();
uppng.src="up.png";
var cache=new Object();
var currentHitPos=0;
function _showDetailedSummary(_33,mid,title,url,freephone,shortad){
	//	alert('1111adfafasf');
	sumPoped=true;
	clearTimeout(gotoTitleTimer);
	var _37=document.getElementById("detailedSummary"+_33);
	var pos=getAbsolutePos(_37);
	var box=document.getElementById("detailedSummaryBox");
	var _3c=document.getElementById("detailedSummaryBG");
	var _3d=getWindowSize();
	var _3e=getScrollXY();
	box.style.left=(pos.x+20)+"px";
	//var _3f=document.getElementById("popupSummaryURL");
	var _40=document.getElementById("detailedSummaryContent");

	var _41=document.getElementById("popInnerBox");
	var _42=navigator.appVersion.split("MSIE");

	var _43=parseFloat(_42[1]);
	if(pos.y-_3e.y<300){
		if(pos.x-_3e.x<500)
		{
			box.className="popdown";
			box.style.top=pos.y+"px";
			_41.style.margin="30px 0 0 15px";/*down层里面文字的位置*/
			if(_43&&_43<7){
				_3c.style.background="0 none no-repeat";
				_3c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='down.png')";
			}else{
				_3c.style.background="0 url('down.png') no-repeat";
			}

		}
		else
		{
			box.className="popdown";
			box.style.top=pos.y+"px";
			box.style.left=(pos.x-360)+"px"
			_41.style.margin="30px 0 0 15px";/*down层里面文字的位置*/
			if(_43&&_43<7){
				_3c.style.background="0 none no-repeat";
				_3c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='downright.png')";
			}else{
				_3c.style.background="0 url('downright.png') no-repeat";
			}
		}
	}else{
		if(pos.x-_3e.x<400)
		{
			box.className="popup";
			box.style.top=(pos.y-230)+"px";
			_41.style.margin="20px 0 0 15px";/*up层里面文字的位置*/
			if(_43&&_43<7){
				_3c.style.background="0 none no-repeat";
				_3c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='up.png')";
			}else{
				_3c.style.background="0 url('up.png') no-repeat";
			}
		}
		else
		{
			box.className="popup";
			box.style.top=(pos.y-230)+"px";
			box.style.left=(pos.x-360)+"px"
			_41.style.margin="20px 0 0 15px";/*up层里面文字的位置*/
			if(_43&&_43<7){
				_3c.style.background="0 none no-repeat";
				_3c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='upright.png')";
			}else{
				_3c.style.background="0 url('upright.png') no-repeat";
			}

		}
	}
	_3c.style.top=box.style.top;
	_3c.style.left=box.style.left;
	currentHitPos=_33;

	canClose=false;
	clearTimeout(canCloseTimer);
	canCloseTimer=setTimeout("allowClose()",200);
	if(detailedSummaryHidden){
		_3c.style.display="block";
		box.style.display="block";
	}
	detailedSummaryHidden=false;
	_40.innerHTML = '<table cellpadding="0" cellspacing="0" border="0" width="330" ><tr><td width="300" class="padtop5 padbottom5"><div style="width:280px;overflow:hidden"><nobr><a href="'+url+'" class="ablue" target="_blank" id="detailedSummaryURL">'+title+'[详细]</a></nobr></div></td><td align="right" valign="top"><a href="javascript:void(0)" onMouseDown="javascript:hideDetailedSummary();"><img src="close.gif" border="0" onmouseover="this.src=\'llbuttonfloat.gif\'" onmouseout="this.src=\'llbuttonclick.gif\'" /></a></td></tr><tr><td colspan="2"><div style="width:320px;overflow:hidden" class="f12"><span style=" float:left; width:200px;" class="forange" id="detailedFreephone"><nobr></span></div></td></tr><tr><td colspan="2" style="border-top-style:solid;border-top-width:1px;border-top-color:#AAA8A8;padding-top:5px"><div><iframe src="'+mid+'" border=0 frameborder=0 width=340 height=170></iframe></div></td></tr></table>';
}
function allowClose(){
	canClose=true;
}
function closeBubble(event) {
	if(event.target!=document.getElementById("detailedSummaryContent") && inBoxFlag==false){
		hideDetailedSummary();
	}
}
addEvent(document, "click", closeBubble);

