function createKf(){
	var kf = document.createElement('dl');              
	kf.style.position = 'absolute';
	kf.setAttribute("name","_qq");
	kf.style.top = '20';
	kf.style.right = '100';
	kf.innerHTML = getKfHtml('025-66037861','025－83376216','13905167376','18905157608','664072775');
	document.getElementsByTagName("body")[0].appendChild(kf);
}

function getKfHtml(fixedPhonef,fixedPhones,mobilePhonef,mobilePhones,qq){
	var temp = '<table cellpadding="0" cellspacing="0" border="0">';
	temp += '<tr height="34"><A href="javascript:CloseQQ();" shape=circle coords=91,16,12 style="cursor;hand;"><td width="109" background="images/qq/qq_top.gif"></td></A></tr>';
	temp += '<tr height="150">';
	temp += '<td width="109">';
	temp += '<table cellpadding="0" cellspacing="0" border="0" style="font-size:13px;">';
	temp += '<tr height="150" valign="top" style="padding-top:10px;" align="left">';
	temp += '<td width="6" background="images/qq/qq_life.gif"></td>';
	temp += '<td width="97" background="images/qq/qq_bg.gif" style="padding-left:5px;">';
	temp += '<div><span><img src="images/qq/qq_ico1.gif" width="16" height="13" border="0" />&nbsp;客服客服</span></div>';
	temp += '<div style="padding-top:5px; padding-left:2px;">';
	temp += '<span><a href="tencent://message/?uin='+qq+'&Site=灵雨起名&Menu=yes" target="_self"><img src="images/qq/10_online.gif" width="61" height="16" border="0" /></a></span>';
	temp += '</div>';
	temp += '<div style="padding-top:5px;">';
	temp += '<div style="padding-top:5px;"><img src="images/qq/qq_ico1.gif" width="16" height="13" border="0" />&nbsp;客服热线</div>';
	temp += '<div style="padding-top:5px;">'+fixedPhonef+'</div><div>'+fixedPhones+'</div>';
	temp += '<div>'+mobilePhonef+'</div><div>'+mobilePhones+'</div>';
	temp += '</div>';
	temp += '</td>';
	temp += '<td width="6" background="images/qq/qq_right.gif"></td>';
	temp += '</tr></table></td></tr>';
	temp += '<tr height="30"><td width="109" background="images/qq/qq_bottom1.gif"></td></tr>';
	temp += '<tr height="33"><td width="109" background="images/qq/qq_logo.gif"></td></tr>';
	temp += '</table>';
	return temp;
}
function CloseQQ(){
	document.getElementsByTagName("dl")[0].style.display = 'none';
	//document.getElementsByName("_qq")[0].style.display = "none";
	//obj.parentNode.parentNode.parentNode.style.display = 'none';
}
window.onscroll = function(){ 
	var QQ = document.getElementsByTagName("dl")[0];
	QQ.style.position = 'fix';
	
	QQ.style.top = 20; 
	QQ.style.right = 100;

}
createKf();
