//众盟网络科技有限公司---网站访客询盘管理系统
//众盟网络 http://soft.online.net.cn/zmbbs
//联系人:吕先生 手机:(0)13506892710 E-mail:ywlzm@yahoo.com.cn
//Copyright (C)浙江众盟网络科技 2008 - 2010 Online.net.cn All Rights Reserved. 浙ICP备05079585号
window.onresize = baiduResizeDiv;
window.onerror = function(){}
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
var px = document.doctype?"px":0;
var scrollwidth = navigator.userAgent.indexOf("Firefox")>0?16:0;
var iframeheight = navigator.userAgent.indexOf("MSIE")>0?170-2:209-2;
String.prototype.Trim  = function(){return this.replace(/^\s+|\s+$/g,"");}
function baidu_collapse(obj){
ct = document.getElementById('tab_c_iframe');
if(ct.style.display=="none"){
ct.style.display="";
obj.src=obj.src.replace("b.gif","a.gif");
} else {
ct.style.display="none";
obj.src=obj.src.replace("a.gif","b.gif");
}
baiduResizeDiv();
}
function baiduMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng").style.top,10);
divLeft = parseInt(document.getElementById("eMeng").style.left,10);
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);
var scrollPosTop,scrollPosLeft,docWidth,docHeight;
if (typeof window.pageYOffset != 'undefined') { 
scrollPosTop = window.pageYOffset; 
scrollPosLeft = window.pageXOffset; 
docWidth = window.innerWidth; 
docHeight = window.innerHeight; 
} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
scrollPosTop = document.documentElement.scrollTop;
scrollPosLeft = document.documentElement.scrollLeft;
docWidth = document.documentElement.clientWidth;
docHeight = document.documentElement.clientHeight;
} else if (typeof document.body != 'undefined') { 
scrollPosTop = document.body.scrollTop;
scrollPosLeft = document.body.scrollLeft;
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
}
document.getElementById("eMeng").style.top = parseInt(scrollPosTop,10) + docHeight + 10 + px;
document.getElementById("eMeng").style.left = parseInt(scrollPosLeft,10) + docWidth - divWidth - scrollwidth + px;
document.getElementById("eMeng").style.visibility="visible";
objTimer = window.setInterval("baidu_move_div()",10);
}catch(e){}
}
function baiduResizeDiv()
{
i+=1;
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);
var scrollPosTop,scrollPosLeft,docWidth,docHeight; 
if (typeof window.pageYOffset != 'undefined') { 
scrollPosTop = window.pageYOffset; 
scrollPosLeft = window.pageXOffset; 
docWidth = window.innerWidth; 
docHeight = window.innerHeight; 
} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
scrollPosTop = document.documentElement.scrollTop;
scrollPosLeft = document.documentElement.scrollLeft;
docWidth = document.documentElement.clientWidth;
docHeight = document.documentElement.clientHeight;
} else if (typeof document.body != 'undefined') { 
scrollPosTop = document.body.scrollTop;
scrollPosLeft = document.body.scrollLeft;
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
}
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(scrollPosTop,10) + px;
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(scrollPosLeft,10) - scrollwidth + px;
}catch(e){}
}
function baidu_move_div()
{
var scrollPosTop,scrollPosLeft,docWidth,docHeight; 
if (typeof window.pageYOffset != 'undefined') { 
scrollPosTop = window.pageYOffset; 
scrollPosLeft = window.pageXOffset; 
docWidth = window.innerWidth; 
docHeight = window.innerHeight; 
} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
scrollPosTop = document.documentElement.scrollTop;
scrollPosLeft = document.documentElement.scrollLeft;
docWidth = document.documentElement.clientWidth;
docHeight = document.documentElement.clientHeight;
} else if (typeof document.body != 'undefined') { 
scrollPosTop = document.body.scrollTop;
scrollPosLeft = document.body.scrollLeft;
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
}
try{
if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(scrollPosTop,10)))
{
window.clearInterval(objTimer);objTimer = window.setInterval("baiduResizeDiv()",1);
}
divTop = parseInt(document.getElementById("eMeng").style.top,10);
document.getElementById("eMeng").style.top = divTop - 1 + px;
}catch(e){}
}
function baiduMessbox(shape,color,syy,title,userid){//设置模板,颜色,语言,标题,会员ID号
var styles='position:absolute;top:0px;left:0px;z-index:99999;visibility:hidden;';
var copic='<img src="http://soft.online.net.cn/zmbbs/images/ico_'+shape+'_'+color+'_'+syy+'a.gif" align="absmiddle" class="ioc'+color+'" onClick="baidu_collapse(this)">';
if(shape>-1) window.onload = baiduMsg;
else {styles='';copic=''}
var s;
if(shape==1) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="214"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.jpg);line-height:20px;height:24px;padding-right:6px;color:#ffffff;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+''+copic
+'</td>'
+'</tr>'
+'    </tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="214" height="205" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==2) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="229"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.jpg);line-height:20px;height:32px;padding-right:100px;color:#FFFFFF;" onDblClick="baidu_collapse(this.firstChild.nextSibling)"><img src="http://soft.online.net.cn/zmbbs/images/ico_'+shape+'_'+color+'_'+syy+'a.gif" align="absmiddle" class="ioc'+color+'" onClick="baidu_collapse(this)">'+title+''
+'</td>'
+'</tr>'
+'    </tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="229" height="285" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==3) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="209"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.gif);line-height:20px;height:28px;padding-right:6px;color:#FFFFFF;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+''+copic
+'</td>'
+'</tr>'
+'    </tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="209" height="233" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==4) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="136" border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'" align="center">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'a.gif);line-height:20px;height:101px;padding-right:15px;color:#ffffff;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+''
+'</td>'
+'</tr>'
+'  <tr>'
+'<td height="21" align="center" background="http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'b.gif"><img src="http://soft.online.net.cn/zmbbs/images/ico_'+shape+'_'+color+'_'+syy+'a.gif" align="absmiddle" class="ioc'+color+'" onClick="baidu_collapse(this)"></td>'
+'</tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="229" height="290" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==5) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="214"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.jpg);line-height:20px;height:32px;padding-right:6px;color:#2B465F;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+'<img src="http://soft.online.net.cn/zmbbs/images/spacer.gif" width="80" height="1" align="absmiddle">'+copic
+'</td>'
+'</tr>'
+'    </tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="214" height="292" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==6) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="209"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.jpg);line-height:20px;height:28px;padding-right:6px;color:#000000;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+'<img src="http://soft.online.net.cn/zmbbs/images/spacer.gif" width="50" height="1" align="absmiddle"><img src="http://soft.online.net.cn/zmbbs/images/ico_'+shape+'_'+color+'_'+syy+'a.gif" align="absmiddle" class="ioc'+color+'" onClick="baidu_collapse(this)">'
+'</td>'
+'</tr>'
+'    </tr>'+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="209" height="230" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==7) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="209"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.jpg);line-height:20px;height:28px;padding-right:6px;color:#ffffff;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+'<img src="http://soft.online.net.cn/zmbbs/images/ico_'+shape+'_'+color+'_'+syy+'a.gif" align="absmiddle" class="ioc'+color+'" onClick="baidu_collapse(this)">'
+'</td>'
+'</tr>'
+'    </tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="209" height="217" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
else if(shape==8) {
s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'
+'  <table width="209"  border="0" cellpadding="0" cellspacing="0" id="tab_'+color+'">'
+'    <tr>'
+'      <td colspan="3" align=right style="font-size:12px;background:url(http://soft.online.net.cn/zmbbs/images/topbg_'+shape+'_'+color+'_'+syy+'.jpg);line-height:20px;height:28px;padding-right:6px;color:#ffffff;" onDblClick="baidu_collapse(this.firstChild.nextSibling)">'+title+'<img src="http://soft.online.net.cn/zmbbs/images/ico_'+shape+'_'+color+'_'+syy+'a.gif" align="absmiddle" class="ioc'+color+'" onClick="baidu_collapse(this)">'
+'</td>'
+'</tr>'
+'    </tr>'
+ '</table>'
+ '<iframe src="http://soft.online.net.cn/zmbbs/side_'+shape+'_'+color+'_'+syy+'.html?userid=' +userid+ '" width="209" height="223" frameborder="0" id="tab_c_iframe"></iframe>'
+'</div>';
}
document.writeln(s);
}
baiduMessbox(7,3,1,'欢迎给我们留言',70);
//第一个为总样式(shape),第二个值为为此样式下的相关图片或色彩(color),第三个值为语言,第四个值为会员ID号(MemberID)

