﻿//指定位置指定 大小打开窗口 
function openwin(urll) { 
window.open (urll, "newwindow", "height=470, width=680, toolbar =no, menubar=no, top=200,left=100; scrollbars=no, resizable=no, location=no, status=no") 
} 

//聊天界面的打开与缩小
function far_close()
{
	document.getElementById("lovexin15").style.display="none";
	document.getElementById("lovexin14").style.display="block";
}

function far_open()
{
	document.getElementById("lovexin15").style.display="block";
	document.getElementById("lovexin14").style.display="none";
	// $("#smalltq").css("display","none");
}
function far_small()
{
	document.getElementById("lovexin15").style.display="none";
	document.getElementById("lovexin14").style.display="block";
	if(window.screen.width==1024)
{

	 $("#smalltq").css("display","block");
	 }
}

//

lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}
    
//alert(diffY);
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}

suspendcode12="<DIV id=\"lovexin12\" align=\"right\" style='width:118px;POSITION:absolute;right:2px;TOP:150px;z-index:100'>";
var recontent='<img id=\"lovexin14\" onclick=\"far_open()\" style=\"display:block;\" src=\"images\/smallqt.gif\"  \/>'+

'<div id=\"lovexin15\" style=\"width:118px; display:none;\">'+
'<p style=\"background:url(images\/tq\/up_new_007.gif); width:114px; height:31px; font-size:12px; padding-top:4px; padding-left:4px;\" onclick=\"far_close()\" align="center">阔尔登客服<\/p>'+

'<div style=\"background:url(images\/tq\/mid_new_007.gif)\">'+

'<div class=\"tqtr\" style=\" background:url(images\/tq\/list_new_007.gif) center;\" >在线客服<\/div>'+

'<div class="tqtr" style="padding:0;background:#FFF;font-size:13px;height:88px;margin-bottom:5px" align="center"><img style="margin:0;padding:0;border:2px solid #E6E8FA" width="96px" src="images/center_2_138121.gif"></div>' + 

'<div class=\"tqtr\"><a style="text-decoration:none;" href="tencent://message/?uin=397811733&Site=在线咨询&Menu=yes"><span style="text-decoration:none;font-family:宋体;font-size:12;color:;text-align:left"><IMG src="http://wpa.qq.com/pa?p=1:709404630:3" border=0 /></a></div>'+

'<div class=\"tqtr\"><a style="text-decoration:none;" href="tencent://message/?uin=397811733&Site=在线咨询&Menu=yes"><span style="text-decoration:none;font-family:宋体;font-size:12;color:;text-align:left"><IMG src="http://wpa.qq.com/pa?p=1:531315683:3" border=0 /></a></div>'+

'<div class=\"tqtr\"><a style="text-decoration:none;" href="tencent://message/?uin=397811733&Site=在线咨询&Menu=yes"><span style="text-decoration:none;font-family:宋体;font-size:12;color:;text-align:left"><IMG src="http://wpa.qq.com/pa?p=1:531315683:3" border=0 /></a></div>'+

'<\/div>'+

'<p style="background-image:url(images/tq/bot_new_007.gif);height:38px;width:118px;line-height:45px;text-align:center">客服热线<\/p>'+
'<p style="background-image:url(images/tq/down_new_007.gif);height:24px;width:118px;line-height:20px;text-align:center;font-weight:600">0779-2217168<\/p>'+
'<\/div>'+
'<div style=\"height:70px;width:1px;\"><\/div>'+
'<div align="right"><a href=\"#\"> <img  src=\"images\/top.gif\" \/><\/a> <\/div>';

document.write(suspendcode12); 
document.write(recontent); 
document.write("</div>"); 
window.setInterval("heartBeat()",1);



function setfrme()
{
	var tr=document.getElementById("lovexin12");
	var twidth=tr.clientWidth;
	var theight=tr.clientHeight;
	var fr=document.getElementById("frame55la");
	fr.width=twidth-1;
	fr.height=theight-30;
}
//setfrme()
