document.writeln("");
document.writeln("");
/*
* pop-window.js v0.1
*/
function show_weixin(divID){
document.getElementById(divID).style.display='block' ;
}
function hide_weixin(divID){
document.getElementById(divID).style.display='none' ;
}
var style_url='service/online/';
function show_ali_online(is_online){
document.write("
" );
}
var ip='amos.im.alisoft.com';
var ali_url='http://'+ip+'/userstatus3.aw?uid=';
var alis_url = 'http://'+ip+'/muliuserstatus.aw?uids=';
var userStr = '';
var ali_user="cntaivip";
userStr = userStr + "cntaivip" + ';';
var ali_user="hegengjun";
userStr = userStr + "hegengjun" + ';';
document.writeln(""+"script>");
document.writeln(""+"script>");
var qqsite = document.URL;
function popWindow() {
var popwindow = '' +
'
诚泰流体设备
' +
'X' +
'
' +
'';
var popWin = document.createElement("div");
popWin.id = "serviceSkin-1";
popWin.className = "service-msg skin-1";
popWin.style.position = "absolute";
popWin.style.right = "10px";
popWin.innerHTML = popwindow;
document.body.appendChild(popWin);
setTop();
//setRight(popWin);
}
function closePopWindow() {
var elem = document.getElementById("serviceSkin-1");
elem.style.display = "none";
}
function setTop() {
var elem = document.getElementById("serviceSkin-1");
elem.style.top = (new pos().y + windowHeight()/5) + "px";
setTimeout("setTop()", 100);
}
var pos = function() {
var posX,posY;
if (window.innerHeight) {
posX = window.pageXOffset;
posY = window.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop) {
posX = document.documentElement.scrollLeft;
posY = document.documentElement.scrollTop;
}
else if (document.body) {
posX = document.body.scrollLeft;
posY = document.body.scrollTop;
}
this.x = posX;
this.y = posY;
return this;
};
function windowHeight() {
var windowHeight;
if (self.innerHeight) {
windowHeight = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
else if (document.body) {
windowHeight = document.body.clientHeight;
}
return windowHeight;
}
function windowWidth() {
var windowWidth;
if (self.innerWidth) {
windowWidth = self.innerWidth;
}
else if (document.documentElement && document.documentElement.clientWidth) {
windowWidth = document.documentElement.clientWidth;
}
else if (document.body) {
windowWidth = document.body.clientWidth;
}
return windowWidth;
};
if (window.addEventListener) {
window.addEventListener("load", popWindow, false)
} else {
if (window.attachEvent) {
window.attachEvent("onload", popWindow)
}
};