/*
* 对联广告代码-DI (Double Images)
* 2007/1/12;
*/
DI_sLeftImageUrl = "http://ads001.ebrun.com/delivery/avw.php?zoneid=35&n=a9463ae6";
DI_sRightImageUrl = "ad/touzi85x200.swf";
DI_sClickUrl = "http://ads001.ebrun.com/delivery/ck.php?n=a9463ae6&cb=INSERT_RANDOM_NUMBER_HERE";
DI_sClickUrl2 ="http://www.foodqs.com"
/*DI_sClickUrl2 = "http://afp.adpolestar.net/adpolestar/wayl/;ad=C107F8F1_1EF9_66E8_DDE0_522106220B1C;ap=0;pu=csadbj;/?http://www.myob.com.cn/chi/products/account_free_trials.aspx?utm_source=foodqs&utm_medium=referral&utm_content=txt&utm_campaign=vertical09";*/
DI_sImageUrl = "";
DI_iImageWidth = parseInt("85");
if (isNaN(DI_iImageWidth)) DI_iImageWidth = 85;
DI_iImageHeight = parseInt("200");
if (isNaN(DI_iImageHeight)) DI_iImageHeight = 200;
DI_iMinWindowWidth = 786 + DI_iImageWidth * 2; /* avoid covering the web content */
DI_iTop = 10;
DI_iLeft = 17;
DI_iRight = 17;
DI_iTimeout = 500;
DI_blClosed = false;
/*---- common codes begin ----*/
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 MK_makeAdFodderHTML(sImageUrl, sImageName, iWidth, iHeight) {
var _src = sImageUrl == "" ? sImageName : sImageUrl;
return (!_src.match(/\.swf$/gi)? '' :
'')
.replace(/\$src\$/gi, _src).replace(/\$height\$/gi, iHeight).replace(/\$width\$/gi, iWidth);
}
/*---- common codes end ----*/
function closead() {
DI_blClosed = true;
DI_Hide();
}
function DI_Hide() {
try {
document.getElementById('DI_LDiv').style.display = 'none';
document.getElementById('DI_RDiv').style.display = 'none';
} catch(e) {}
}
function JsCloseDAD() {
closead();
return false ;
}
function DI_Show() {
if (DI_blClosed) return;
try {
document.getElementById('DI_LDiv').style.display = 'block';
document.getElementById('DI_RDiv').style.display = 'block';
} catch(e) {}
}
function DI_Load() {
var style_class ;
/* try {
if (__bs__ == "MSIE")
document.styleSheets[0].addRule('.div_floating_ad', 'position:absolute');
else
document.styleSheets[0].insertRule('.div_floating_ad {position:absolute}', document.styleSheets[0].cssRules.length);
style_class = 'class="div_floating_ad" style="display:none; float:none; border:1px solid #cccccc; background:#eeeeee;"';
} catch(e) {*/
style_class = 'style="position:absolute; display:none; float:none; border:1px solid #cccccc; background:#eeeeee;"';
/* }*/
var _temp = '
