var showad = true; //是否显示广告
var toppx = 60; //上端位置
var addivw = 53; //宽度
var addivh = 49; //高度
var pagewidth = 800; //页面多少宽度象素下正好不出现左右滚动条
var minscreenw = 1024; //显示广告的最小屏幕宽度象素
var leftpos = 0;
var currscreen = window.screen.width;
switch (currscreen) {
case 800:
leftpos = 0;
break;
case 1024:
leftpos = 46;
break;
case 1152:
leftpos = 78;
break;
case 1280:
leftpos = 110;
break;
case 1680:
leftpos = 210;
break;
}
//var closebuttonhtml ="
"
//var closebuttonhtml =""
//var adcontenthtml = '';
//document.write (''+closebuttonhtml+'
'+adcontenthtml+'
');
//document.write (''+closebuttonhtml+'
'+adcontenthtml+'
');
function scall(){
if(!showad){return;}
if (window.screen.width60){
object.filters.alpha.opacity+=-10}
}
function o_up(theobject){
object=theobject
while(object.filters.alpha.opacity<100){
object.filters.alpha.opacity+=10}
}
function wback(){
if(new_date.history.length==0){window.history.back()}
else{new_date.history.back()}
}
//dreamweaver 自带滚动效果
function mm_swapimgrestore() { //v3.0
var i,x,a=document.mm_sr; for(i=0;a&&i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i';
for (var i in params)
str += ' ';
str += '';
document.write(str);
}
function ac_fl_runcontent(){
var ret =
ac_getargs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
);
ac_generateobj(ret.objattrs, ret.params, ret.embedattrs);
}
function ac_sw_runcontent(){
var ret =
ac_getargs
( arguments, ".dcr", "src", "clsid:166b1bca-3f9c-11cf-8075-444553540000"
, null
);
ac_generateobj(ret.objattrs, ret.params, ret.embedattrs);
}
function ac_getargs(args, ext, srcparamname, classid, mimetype){
var ret = new object();
ret.embedattrs = new object();
ret.params = new object();
ret.objattrs = new object();
for (var i=0; i < args.length; i=i+2){
var currarg = args[i].tolowercase();
switch (currarg){
case "classid":
break;
case "pluginspage":
ret.embedattrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = ac_addextension(args[i+1], ext);
ret.embedattrs["src"] = args[i+1];
ret.params[srcparamname] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
ret.objattrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "id":
case "tabindex":
ret.embedattrs[args[i]] = ret.objattrs[args[i]] = args[i+1];
break;
default:
ret.embedattrs[args[i]] = ret.params[args[i]] = args[i+1];
}
}
ret.objattrs["classid"] = classid;
if (mimetype) ret.embedattrs["type"] = mimetype;
return ret;
}