function Tootip_show(linkId,imageurl,productname,score,count,dispathcount,property,supplier,endtime){

	var de = document.documentElement;
	var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var hasArea = w - getAbsoluteLeft(linkId);
	var clickElementy = getAbsoluteTop(linkId) - 3; //set y position
	
	var arrowOffset = getElementWidth(linkId) + 11;
	var clickElementx = getAbsoluteLeft(linkId) + arrowOffset; //set x position
	
	
	var Tt_a="<div id='Tt_arrow_left'></div><div id='Tt_close_left'>"+productname+"</div><div id='Tt_copy'><div class='Tt_loader' id='load'><div></div>";
	
	var Tt=document.createElement('div');
	Tt.id='Tt';
	Tt.style.width='305px';
	Tt.innerHTML=Tt_a;
	
	document.body.appendChild(Tt);
	
	var tmpl="<div style='float:left;margin: 0px 10px 6px 0px;'>"
				 +"<img src='"+imageurl+"' width='130' height='130' />"
				 +"</div>"
				 +"<div style='font-size:12px;'>"
				 +"<dd>使用积分：<b>"+score+"</b></dd>"
				 +"<dd>奖品数量：<b>"+count+"</b></dd>";
	if(property==0){			 
	    tmpl+="<dd>已兑数量：<b>"+dispathcount+"</b></dd>";
	}else{
		tmpl+="<dd>已抽数量：<b>"+dispathcount+"</b></dd>";
	}
	
	tmpl+="<dd>奖品提供：<b>"+supplier+"</b></dd>"
				+"<dd>结束时间：<b>"+endtime+"</b></dd></div>";
				 
	document.getElementById('Tt').style.left= clickElementx+"px";
	document.getElementById('Tt').style.top= clickElementy+"px";
	document.getElementById('load').style.display='none';
	
	document.getElementById('Tt_copy').innerHTML=tmpl;

	document.getElementById('Tt').style.display="block";


}

function Tootip_hide(){
	document.body.removeChild(document.getElementById('Tt'));
}

function getElementWidth(objectId) {
	x = document.getElementById(objectId);
	return x.offsetWidth;
}

function getAbsoluteLeft(objectId) {
	// Get an object left position from the upper left viewport corner
	o = document.getElementById(objectId)
	oLeft = o.offsetLeft            // Get left position from the parent object
	while(o.offsetParent!=null) {   // Parse the parent hierarchy up to the document element
		oParent = o.offsetParent    // Get parent object reference
		oLeft += oParent.offsetLeft // Add parent left position
		o = oParent
	}
	return oLeft
}

function getAbsoluteTop(objectId) {
	// Get an object top position from the upper left viewport corner
	o = document.getElementById(objectId)
	oTop = o.offsetTop            // Get top position from the parent object
	while(o.offsetParent!=null) { // Parse the parent hierarchy up to the document element
		oParent = o.offsetParent  // Get parent object reference
		oTop += oParent.offsetTop // Add parent top position
		o = oParent
	}
	return oTop
}