//phone number
//swt
document.writeln("<style type=\"text/css\">")
document.writeln("#swt_center{width:275px;height:171px;left: 12%; top:15rem; position: fixed; z-index:999;}")
document.writeln("#swt_close{height:30px;overflow:hidden;position:absolute;top:23px;right:24px;}")
document.writeln("#swt_close a{display:block;width:28px;height:30px;float:right;}")
document.writeln("#swt_click{height:32px;overflow:hidden;position:absolute;top:96px;left:43px;}")
document.writeln("#swt_click a{display:inline-block;width:91px;height:32px;float:left;margin-right:8px;}")
document.writeln("#qiao-wrap{display:none}")
document.writeln("#QIAO_INVITE_CONTAINER{display:none !important}")
document.writeln("#QIAO_ICON_CONTAINER{display:none !important}")
document.writeln("#QIAO_ICON_CONTAINER.qiao-icon-sector-left .qiao-icon-sector-inner{display:none}")
document.writeln("</style>")
document.writeln("<div id=\"swt_center\" style=\"display:none;\"><img src=\"/lib/img/swt/wxswt.png\" width=\"275\" height=\"171\"><div id=\"swt_close\"><a ></a></div><div id=\"swt_click\"><a href=\"javascript:void(0);\" false;\" target=\"_blank\"></a><a href=\"tel:051783654599\" target=\"_blank\"></a></div></div>")
var int=true;
function position_center() {
var top=$(document).scrollTop();
var body_width = $(window).width();
var body_height = $(window).height();
$("#swt_center").css({
left:(body_width - 240)/2,
top:(body_height - 120)/2
})
if($.support.leadingWhitespace && ($.support.leadingWhitespace == '6.0' || $.support.leadingWhitespace == '7.0')){
$("#swt_center").css({
position:"absolute",
top:top + (body_height - 120)/2
});
}else{
$("#swt_center").css({
position:'fixed',
top:(body_height - 120)/2
})
}
/* int=setInterval(function(){
$('#swt_center').toggle(3000);
},14000)*/
$("#swt_close a").click(function(){
$("#swt_center").fadeOut(1000);
clearInterval(int);
int=setInterval(function(){
$('#swt_center').fadeIn(3000);
},10000)
})
}
position_center();
$(function(){
window.onscroll=position_center;
window.onresize=position_center;
//setTimeout('swtn3()',20000);
swtn3();
// var starTimer=setInterval("fShow()",5000);
})
function swtn3(){document.getElementById('swt_center').style.display='block';}
document.write('<script src="http://lr.zoosnet.net/JS/LsJS.aspx?siteid=LEF45316433"></script>');
//wenyisheng
document.writeln("<div style=\"width:75px; height:60px; position:fixed; _position:absolute; z-index: 9999; bottom:63px; right:0%;\"><a false;\" href=\"javascript:void(0);\"><img src=\"/lib/img/swt/mobileicon.gif\" /></a></div>");
//QQtop
function swt2(){
var sHTML = [
'<style type="text/css">',
'.topTips { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: fixed; left:0; top: 0; width: 100%; z-index: 3000;-webkit-perspective: 600px; perspective: 600px; }',
'.tipsInner {font-family: "Microsoft YaHei"; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); background: #fff;-webkit-transform-origin: 0px 0px; transform-origin: 0px 0px; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); opacity: 0; }',
'.tipsInner a { text-decoration:none;display: block; position: relative; padding-left: 50px; color: #111; }',
'.tipsInner img { position: absolute; left: 8px; top: 50%; margin-top: -17px; width: 36px; height: auto; padding-right: 5px; background: #fff; }',
'.tipsInner dl { margin:0; padding: 5px 5px; border-left: 1px solid #ccc; }',
'.tipsInner dt { font-weight: bold;line-height:1.5em; font-size:13px;}',
'.tipsInner dd { margin:0; line-height: 1.2em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px; }',
'.showTip { visibility:visible; }',
'.showTip .tipsInner { -webkit-transform-origin: 0px 0px; transform-origin: 0px 0px; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); opacity: 1; }',
'.hideTip { visibility:hidden; }',
'.hideTip .tipsInner { -webkit-transform-origin: 0px 100%; transform-origin: 0px 100%; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); opacity: 0; }',
'</style>',
'<div class="topTips" id="toptips">',
' <div class="tipsInner">',
' <a href=\"javascript:void(0)\" false;\" class="JS-SWT-LINK" )">',
' <img src="/lib/img/swt/qqIcon.png" alt="">',
' <dl>',
' <dt>淮安幸福医院</dt>',
' <dd>您好,请问有什么可以帮助到您?</dd>',
' </dl>',
' </a>',
' </div>',
'</div>'
].join('\r\n');
var o = document.createElement('div');
o.innerHTML = sHTML;
while (o.firstElementChild) {
document.body.appendChild(o.firstElementChild);
};
T = {
hasClass: function(d, a) {
var c = d.className.split(/\s+/);
for (var b = 0; b < c.length; b++) {
if (c[b] == a) {
return true
}
}
return false
},
addClass: function(b, a) {
if (!this.hasClass(b, a)) {
b.className += " " + a
}
},
removeClass: function(d, a) {
if (this.hasClass(d, a)) {
var c = d.className.split(/\s+/);
for (var b = 0; b < c.length; b++) {
if (c[b] == a) {
delete c[b]
}
}
d.className = c.join(" ")
}
}
};
function Toptips(options) {
this.init(options);
};
Toptips.prototype = {
constructor: Toptips,
init: function(options) {
this.item = options.item;
this.itemInner = options.item.children[0];
this.loop = typeof options.loop == "undefined" ? true : options.loop;
this.showTime = typeof options.showTime == "undefined" ? 7000 : options.showTime;
this.hideTime = typeof options.hideTime == "undefined" ? 15000 : options.hideTime;
this.showTimer = null;
this.hideTimer = null;
this.preTimer = null;
this.item.style.WebkitTransition = this.item.style.transition = this.itemInner.style.WebkitTransition = this.itemInner.style.transition = "0.5s";
var me = this;
var initTimer = setTimeout(function() {
me.showTip();
}, 1000);
},
showTip: function() {
var me = this;
T.addClass(me.item, "showTip");
T.removeClass(me.item, "hideTip");
clearTimeout(me.hideTimer);
me.showTimer = setTimeout(function() {
me.hideTip();
}, me.showTime);
},
hideTip: function() {
var me = this;
T.removeClass(me.item, "showTip");
T.addClass(me.item, "hideTip");
me.item.style.visibility = me.itemInner.style.visibility = "hidden";
if (me.loop) {
clearTimeout(me.showTimer);
me.preTimer = setTimeout(function() {
me.item.style.visibility = me.itemInner.style.visibility = "visible";
}, me.hideTime - 100);
me.hideTimer = setTimeout(function() {
me.showTip();
}, me.hideTime);
}
},
};
var toptip = document.getElementById("toptips");
new Toptips({
item: toptip,
loop: true
});
return false;
delete o;
}
swt2();
/*移除自带商务通 begin*/
function noswt()
{
if($("#LRdiv1").length>0)
{
$("#LRdiv1").remove();
}
else
{
setTimeout(noswt,100);
}
}
noswt();
/*移除自带商务通 end*/