RBM_sImageName = "http://www.haibochina.com/images/bbs.gif";
RBM_sClickUrl = "http://www.haibochina.com/index.php?page=guestbook";
RBM_sImageUrl = "";
RBM_sIsCover = "Y";
RBM_bIsCover = true;
if(RBM_sIsCover.toUpperCase() == "N") RBM_bIsCover = false;
RBM_iImageWidth = parseInt("100");
if (isNaN(RBM_iImageWidth)) RBM_iImageWidth = 100;
RBM_iImageHeight = parseInt("100");
if (isNaN(RBM_iImageHeight)) RBM_iImageHeight = 100;
RBM_iRight = 5;
RBM_iBottom = 2;
RBM_iMinTop = 335;
RBM_iTimeout = 50;
var __bs__ = navigator.userAgent.indexOf("MSIE") > 0 ?
"MSIE" : navigator.userAgent.indexOf("Safari") > 0 ?
"Safari" : "others";
var __dt__ = (document.documentElement.clientHeight > 0) &&
(__bs__ == "MSIE" || document.body.clientHeight > document.documentElement.clientHeight) ?
"W3C" : "undefined";
function MK_pageY() {
if (__bs__ == "MSIE") {
if (__dt__ == "W3C")
return document.documentElement.scrollTop;
else
return document.body.scrollTop;
} else {
return window.pageYOffset;
}
}
function MK_pageX() {
if (__bs__ == "MSIE") {
if (__dt__ == "W3C")
return document.documentElement.scrollLeft;
else
return document.body.scrollLeft;
} else {
return window.pageXOffset;
}
}
function MK_pageH() {
if (__bs__ == "Safari")
return window.innerHeight;
else if (__dt__ == "W3C")
return document.documentElement.clientHeight;
else
return document.body.clientHeight;
}
function MK_pageW() {
if (__bs__ == "Safari")
return window.innerWidth;
else if (__dt__ == "W3C")
return document.documentElement.clientWidth;
else
return document.body.clientWidth;
}
function MK_posY(o, v) {
if (!o || !o.style) return ;
if (v) {
o.style.top = parseInt(v) + "px";
} else {
return o.style.top;
}
}
function MK_posX(o, v) {
if (!o || !o.style) return ;
if (v) {
o.style.left = parseInt(v) + "px";
} else {
return o.style.left;
}
}
function atoi(s) {
var r = parseInt(s);
return isNaN(r) ? 0 : r;
}
function magic_locus(x1, x2, n) {
x1 = atoi(x1);
x2 = atoi(x2);
n = atoi(n);
var d = Math.abs(x1 - x2);
if (d < n) return magic_locus(x1, x2, d / 2);
return n <= 1 ? x1 : (x1 + (n-1) * x2) / n ;
}
function tmh__make_ad_fodder(src, width, height)
{
src = src.replace(" ", "");
var TEMP_IMAGE = '';
var TEMP_FLASH = '';
return (/\.swf$/gi.test(src) == true ? TEMP_FLASH : TEMP_IMAGE)
.replace(/\$src\$/gi, src)
.replace(/\$width\$/gi, width)
.replace(/\$height\$/gi, height)
;
}
function tmh__make_ad_content(strImageUrl, strImageName, iWidth, iHeight, strClickUrl, blClickCover)
{
var TEMP_LINK = '$ad_fodder$';
var TEMP_COVER = '