adm.js
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:18k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. var ADM_DIV="ADAREA";
  2. var ADM_LOADED=false;
  3. var ADM_O1,ADM_O2,AD;
  4. var ADM_Ver="1.0";
  5. var ADM_S=new Array(); 
  6. var ADM_RESIZE=new Array();
  7. var ADM_F="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0";
  8. var ADM_CE=document.all?1:(document.getElementById?0:-1);
  9. document.write("<div id='"+ADM_DIV+"'></div>");
  10. var documentBody = document.documentElement.clientHeight>0?document.documentElement:document.body;
  11. function InitSchedule(){
  12. ADM_S.sort(ADM_sort);
  13. for(iAI=0;iAI<ADM_S.length;iAI++)
  14. ADM_S[iAI].i=iAI;
  15. }
  16. function ADM_sort(a,b){
  17. return(a.p>b.p)?1:((a.p==b.p)?0:-1);
  18. }
  19. function ADM_Start(o){
  20. if(eval("typeof("+o.t+"_main)")=="function") 
  21. eval(o.t+"_main(o)");
  22. }
  23. function DoSchedule(){
  24. var p=-1;
  25. for(dAI=0;dAI<ADM_S.length;dAI++){
  26. switch(ADM_S[dAI].s){
  27. case 0:
  28. if(p==-1)
  29. p=ADM_S[dAI].p;
  30. if(p==ADM_S[dAI].p){
  31. ADM_S[dAI].s=1;
  32. ADM_Start(ADM_S[dAI]);
  33. break;
  34. }
  35. case 1:
  36. setTimeout("DoSchedule()",300);
  37. return;
  38. default :
  39. }
  40. }
  41. }
  42. if(ADM_CE>-1){
  43. window.onload=function ADM_PUSH(){
  44. if(!ADM_LOADED){
  45. ADM_LOADED=true;
  46. InitSchedule();
  47. DoSchedule();
  48. }
  49. }
  50. window.onresize=function(){
  51. for(oAI=0;oAI<ADM_RESIZE.length;oAI++){
  52. eval(ADM_RESIZE[oAI]);
  53. }
  54. }
  55. }
  56. function WriteAd(id,s){
  57. var o0=document.getElementById(id);
  58. if(o0==null){
  59. o0=document.createElement("div");
  60. o0.id=id;
  61. if(ADM_CE==1)
  62. document.getElementById(ADM_DIV).insertAdjacentElement("beforeBegin",o0);
  63. else 
  64. document.getElementById(ADM_DIV).insertBefore(o0,null);
  65. }
  66. o0.innerHTML=s;
  67. }
  68. function AddSchedule(oo){
  69. if(oo!=null && oo instanceof ADM)
  70. ADM_S[ADM_S.length]=oo;
  71. }
  72. function ADM(t,p){
  73. this.t=t;
  74. this.p=p;
  75. this.s=0;
  76. this.i=0;
  77. this.style="position:absolute;";
  78. }
  79. function ADM_Check(o){
  80. return o.CookieHour && ADM_CheckCookie(o.t+o.p+location.host.substring(0,location.host.indexOf(".")),o);
  81. }
  82. function ADM_CheckCookie(E,o){
  83. var Now=new Date();
  84. var s=String(Now.getYear())+String(Now.getMonth()+1)+String(Now.getDate());
  85. if(ADM_GetCookie(E)==s)
  86. return true;
  87. else{
  88. Now.setTime(Now.getTime()+(parseFloat(typeof(o.CookieHour)=="undefined"?24:parseFloat(o.CookieHour))*60*60*1000));
  89. ADM_SetCookie(E,s,Now);
  90. return false;
  91. }
  92. }
  93. function ADM_GetCookie(n){
  94. var args=n+"=";
  95. var aLength=args.length,cLength=document.cookie.length,AAi=0;
  96. while(AAi<cLength){
  97. var AAj=AAi+aLength;
  98. if(document.cookie.substring(AAi, AAj)==args)
  99. return ADM_GetCookieVal(AAj);
  100. AAi=document.cookie.indexOf(" ", AAi)+1;
  101. if(AAi==0)
  102. break;
  103. }
  104. return null;
  105. }
  106. function ADM_GetCookieVal(offset){
  107. var endstr=document.cookie.indexOf(";", offset);
  108. if(endstr==-1)
  109. endstr=document.cookie.length;
  110. return unescape(document.cookie.substring(offset, endstr));
  111. }
  112. function ADM_SetCookie(name, value){
  113. var argv=ADM_SetCookie.arguments;
  114. var argc=ADM_SetCookie.arguments.length;
  115. var expires=(argc>2)?argv[2]:null;
  116. var path=(argc>3)?argv[3]:null;
  117. var domain=(argc>4)?argv[4]:null;
  118. var secure=(argc>5)?argv[5]:false;
  119. document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");
  120. }
  121. function ADM_Media(a,w,h,o,id,href){
  122. var s="";
  123. if(a.indexOf(".swf")!=-1){
  124. if(ADM_CE==1){
  125. s="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='"+ADM_F +"' id='"+((id==null)?o.t:id)+"' width='"+w+"' height='"+h+"' ";
  126. if(o.style)
  127. s+=" style='"+o.style+"'";
  128. if(o.extfunc)
  129. s+=" "+o.extfunc+" ";s+=" ><param name='movie' value='"+a+"'>";
  130. if(o.play)
  131. s+="<param name='play' value='"+o.play+"'>";
  132. if(o.wmode&&o.wmode!="")
  133. s+="<param name='wmode' value='"+o.wmode+"'>";
  134. if(typeof(o.loop)!="undefined")
  135. s+="<param name='loop' value='"+o.loop+"'>";
  136. s+="<param name='quality' value='autohigh'></object>";
  137. }
  138. else{
  139. s="<embed ";
  140. if(o.style)
  141. s+=" style='"+o.style+"'";
  142. if(o.extfunc)
  143. s+=" "+o.extfunc+" ";
  144. s+=" src='"+a+"'"+" quality='autohigh' id='"+((id==null)?o.t:id)+"' name='"+((id==null)?o.t:id)+"' width='"+w+"' height='"+h+"' ";
  145. if(o.wmode&&o.wmode!="")
  146. s+=" wmode='"+o.wmode+"' ";
  147. if(typeof(o.loop)!="undefined")
  148. s+=" loop='"+o.loop+"' ";
  149. s+="type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>";
  150. }
  151. }
  152. else if(a.indexOf(".gif")!=-1||a.indexOf(".jpg")!=-1){
  153. s="<a href='"+((href==null)?o.href:href)+"' target='_blank'><img ";if(o.style)s+=" style='"+o.style+"'";
  154. if(o.extfunc)
  155. s+=" "+o.extfunc+" ";
  156. s+=" id='"+((id==null)?o.t:id)+"' src='"+a+"' border='0' width='"+w+"' height='"+h+"'></a>";
  157. }
  158. else{
  159. s="<div style='width:" + w + ";height:" + h + ";";
  160. if(o.style)
  161. s+=""+o.style;
  162. s+="'"
  163. if(o.extfunc)
  164. s+=" "+o.extfunc+" ";
  165. s+=" id='"+((id==null)?o.t:id)+"'>"
  166. if (href!=null)
  167. s+="<a href='"+href+"' target='_blank'>";
  168. else if(o.href!="")
  169. s+="<a href='"+o.href+"' target='_blank'>";
  170. s+=a;
  171. if (href!=null)
  172. s+="</a></div>";
  173. else if(o.href!="")
  174. s+="</a></div>";
  175. else
  176. s+="</div>";
  177. }
  178. return s;
  179. }
  180. function ADM_FSCommand(o,id){
  181. var s="";
  182. if(ADM_CE==1){
  183. s="<Script language='Javascript' for='"+((id==null)?o.t:id)+"' event='FSCommand(command,args)'>n" +""+((id==null)?o.t:id)+"_DoFSCommand(command,args);n" +"</Script>n";
  184. }
  185. return s;
  186. }
  187. function ADM_Close(o,n){
  188. ADM_S[o].s=2;
  189. var OBJ=document.getElementById(n);
  190. if(OBJ)
  191. OBJ.style.display="none";
  192. }
  193. function FULL_main(o){
  194. if(ADM_Check(o)){
  195. o.s=2;
  196. return;
  197. }
  198. var IS_Find=false;
  199. if(o.StartTime.length==o.EndTime.length && o.EndTime.length==o.src.length && o.src.length==o.href.length){
  200. for(FAi=0;FAi<o.src.length;FAi++){
  201. var ST=new Date(o.StartTime[FAi]);
  202. var ET=new Date(o.EndTime[FAi]);
  203. var NT=new Date();
  204. if((ST<=ET)&&(NT<ET)&&(NT>=ST)){
  205. var OBJ=document.getElementById("fullscreenad");
  206. if(OBJ!=null){
  207. self.scroll(0,0);
  208. OBJ.style.display="block";
  209. o.style="";
  210. OBJ.innerHTML=ADM_Media(o.src[FAi],760,480,o,"",o.href[FAi]);
  211. IS_Find=true;
  212. setTimeout("ADM_Close("+o.i+",'fullscreenad')",isNaN(parseInt(o.timeout))?7000:parseInt(o.timeout));
  213. return;
  214. }
  215. else{
  216. o.s=2;
  217. return;
  218. }
  219. }
  220. }
  221. if(!IS_Find)
  222. ADM_Close(o.i,"fullscreenad");
  223. }
  224. }
  225. function POP_STRUCT(o){
  226. o.s=2;
  227. var WN=(o.name)?o.name:"";
  228. var Wi=(o.superad)?(screen.width-9):(parseInt((o.width)?o.width:350)-4);
  229. var Wh=(o.superad)?(screen.height-56):(parseInt((o.height)?o.height:250)-4);
  230. var Wl=(o.t=="POPUP")?((o.left)?o.left:0):(screen.width+10);
  231. var Wt=(o.t=="POPUP")?((o.top)?o.top:0):(screen.height+10);
  232. return window.open("about:blank","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width="+Wi+",height="+Wh+",top="+Wt+",left="+Wl);
  233. }
  234. function POP_WINDOW(o){
  235. var SK="<html><head><meta http-equiv='content-type' content='text/html; charset=gb2312'><title>";
  236. SK+=(o.title)?o.title:((o.superad)?("背投广告"):(" "+o.t+" Ad"));
  237. SK+="</title>";
  238. SK+="n<Script language='Javascript'>n";
  239. if(o.t=="POPUP"){
  240. SK+="function Load(){n";
  241. if(ADM_CE==1)
  242. SK+="setTimeout('blur();',";
  243. else 
  244. SK+="setTimeout('self.opener.focus()',";
  245. SK+=isNaN(parseInt(o.timeout))?7000:o.timeout;SK+=");n}n";
  246. }
  247. SK+="</Script>";
  248. SK+="</head><body scroll=no style='margin:0;border:none'>";
  249. SK+="<iframe id='iFrame' ";
  250. if(o.t=="POPUP")
  251. SK+=" onload='Load()' ";
  252. SK+=" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no width=100% height=100% src='"+o.src+"'>wait</iframe>";
  253. SK+="</body></html>";
  254. return SK;
  255. }
  256. function POPUP_main(o){
  257. if(ADM_Check(o)){
  258. o.s=2;
  259. return;
  260. }
  261. if(o.src&&o.src!=""){
  262. var OK=POP_STRUCT(o);
  263. if(OK)
  264. OK.document.write(POP_WINDOW(o));
  265. }
  266. }
  267. function POPUNDER_main(o){
  268. if(ADM_Check(o)){
  269. o.s=2;
  270. return;
  271. }
  272. if(o.src&&o.src!=""){
  273. var OK=POP_STRUCT(o);
  274. if(OK){
  275. if(ADM_CE==1)
  276. OK.blur();
  277. else 
  278. OK.opener.focus();
  279. OK.moveTo(((o.left)?o.left:0),((o.top)?o.top:0));
  280. OK.document.write(POP_WINDOW(o));
  281. }
  282. }
  283. }
  284. function FLOAT_main(o){
  285. var HasBOOKTURN=false;
  286. for(CAI=0;CAI<ADM_S.length;CAI++){
  287. if(ADM_S[CAI].t=="BOOKTURN"){
  288. HasBOOKTURN=true;
  289. break;
  290. }
  291. }
  292. var HasCOUPLET=false;
  293. for(CAC=0;CAC<ADM_S.length;CAC++){
  294. if(ADM_S[CAC].t=="COUPLET"){
  295. HasCOUPLET=true;
  296. break;
  297. }
  298. }
  299. o.style+="z-index:10;";
  300. if(!o.leftHref)
  301. o.leftHref="";
  302. if(!o.rightHref)
  303. o.rightHref="";
  304. if(isNaN(parseInt(o.offsetX)))
  305. o.offsetX=30;
  306. if(screen.width<1024)
  307. o.offsetX+=100;
  308. if(isNaN(parseInt(o.offsetY)))
  309. o.offsetY=(HasBOOKTURN&&HasCOUPLET)?0:20;
  310. if (!o.leftWidth)
  311. o.leftWidth = 80;
  312. if (!o.rightWidth)
  313. o.rightWidth = 80;
  314. if (!o.leftHeight)
  315. o.leftHeight = 80;
  316. if (!o.rightHeight)
  317. o.rightHeight = 80;
  318. var s="";
  319. if(o.leftSrc && o.leftSrc!="")
  320. s+=ADM_Media(o.leftSrc,o.leftWidth,o.leftHeight,o,ADM_DIV+"left",o.leftHref);
  321. if(o.wmode2)
  322. o.wmode=o.wmode2;
  323. if(o.style2)
  324. o.style+=o.style2;
  325. if(o.rightSrc && o.rightSrc!="")
  326. s+=ADM_Media(o.rightSrc,o.rightWidth,o.rightHeight,o,ADM_DIV+"right",o.rightHref);
  327. if(s!=""){
  328. WriteAd(ADM_DIV+"FLOAT",s);
  329. ADM_O1=document.getElementById(ADM_DIV+"left");
  330. ADM_O2=document.getElementById(ADM_DIV+"right");
  331. if(ADM_O1!=null||ADM_O2!=null){
  332. window.setInterval("FLOAT_position("+o.offsetX+","+(parseInt(o.offsetY)+parseInt(o.leftHeight))+"," + o.leftHeight + ")",400);
  333. }
  334. }
  335. o.s=2;
  336. }
  337. function FLOAT_position(a,b,h){
  338. if(ADM_CE==1){
  339. if(ADM_O1!=null){
  340. ADM_O1.style.pixelTop=parseInt((parseInt(documentBody.scrollTop) + parseInt(documentBody.clientHeight)-b))
  341. ADM_O1.style.left=parseInt((parseInt(documentBody.scrollLeft) + a))+"px";
  342. }
  343. if(ADM_O2!=null){
  344. ADM_O2.style.top=parseInt((parseInt(documentBody.scrollTop)+parseInt(documentBody.clientHeight)-b))+"px";
  345. ADM_O2.style.left=parseInt((parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-h-a))+"px";
  346. }
  347. }
  348. else{
  349. if(ADM_O1!=null){
  350. ADM_O1.style.top=parseInt(0.75*(parseInt(documentBody.scrollTop)+parseInt(documentBody.clientHeight)-b))+"pt";
  351. ADM_O1.style.left=parseInt(0.75*(parseInt(documentBody.scrollLeft) + a))+"pt";
  352. }
  353. if(ADM_O2!=null){
  354. ADM_O2.style.top=parseInt(0.75*(parseInt(documentBody.scrollTop)+parseInt(documentBody.clientHeight)-b))+"pt";
  355. ADM_O2.style.left=parseInt(0.75*(parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-h-a))+"pt";
  356. }
  357. }
  358. }
  359. function LIUMEITI_main(o){
  360. if(ADM_Check(o)){
  361. o.s=2;
  362. if(typeof(LIUMEITI_CALL)=="function")
  363. LIUMEITI_CALL();
  364. return;
  365. }
  366. if(!o.width)
  367. o.width=200;
  368. if(!o.height)
  369. o.height=150;
  370. if(!o.top)
  371. o.top="0";
  372. if(!o.left)
  373. o.left="-0";
  374. if(o.src&&o.src!=""){
  375. o.style+="top:"+(parseInt(documentBody.scrollTop)+((String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(documentBody.clientHeight)+parseInt(o.top)-o.height)));
  376. o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(documentBody.clientWidth)-o.width+parseInt(o.left)));
  377. ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"lmt').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(documentBody.clientWidth)-"+(o.width+parseInt(o.left))+"))";
  378. WriteAd(ADM_DIV+"LIUMEITI",ADM_Media(o.src,o.width,o.height,o,ADM_DIV+"lmt"));
  379. if(o.eval&&o.eval!="")
  380. eval(o.eval);
  381. setTimeout("ADM_Close("+o.i+",'"+ADM_DIV+"lmt')",isNaN(parseInt(o.timeout))?8000:parseInt(o.timeout));
  382. }
  383. }
  384. function BOOKTURN_main(o){
  385. self.scroll(0,0);
  386. if(!o.top)
  387. o.top="0";
  388. if(!o.left)
  389. o.left="-0";
  390. if(!o.loop)
  391. o.loop=false;
  392. if(!o.loop2)
  393. o.loop2=true;
  394. if(!o.CookieHour)
  395. o.CookieHour=1;
  396. if(o.src&&o.srcButton){
  397. var show=(ADM_Check(o));
  398. o.style+="z-index:10000;";
  399. if(show)
  400. o.style+="visibility:hidden;";
  401. o.style+="top:"+(parseInt(documentBody.scrollTop)+(String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(documentBody.clientHeight)+parseInt(o.top)-250));
  402. o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(documentBody.clientWidth)-350+parseInt(o.left)));
  403. var s1=ADM_Media(o.src,350,250,o,ADM_DIV+"book1");
  404. o.wmode=(o.wmode2)?o.wmode2:"";
  405. o.style=o.style.substring(0,o.style.lastIndexOf("z-index:10000;"));
  406. if(!show)
  407. o.style+="visibility:hidden;";
  408. o.style+="z-index:11;";
  409. o.style+="top:"+(parseInt(documentBody.scrollTop)+(String(o.top).indexOf("-")==-1)?parseInt(o.top):(parseInt(documentBody.clientHeight)+parseInt(o.top)-250));
  410. o.style+=";left:"+((String(o.left).indexOf("-")==-1)?parseInt(o.left):(parseInt(documentBody.clientWidth)-80+parseInt(o.left)));
  411. s1+=ADM_Media(o.srcButton,80,80,o,ADM_DIV+"book2");
  412. ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"book1').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(documentBody.clientWidth)-"+(350+parseInt(o.left))+"))";
  413. ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"book2').style.left=(('"+o.left+"'.indexOf('-')==-1)?"+o.left+":(parseInt(documentBody.clientWidth)-"+(80+parseInt(o.left))+"))";
  414. s1+=ADM_FSCommand(o,ADM_DIV+"book1");
  415. s1+=ADM_FSCommand(o,ADM_DIV+"book2");
  416. WriteAd(ADM_DIV+"book",s1);
  417. document.getElementById(ADM_DIV).i=o.i;
  418. if(show)
  419. o.s=2;
  420. }
  421. else 
  422. o.s=2;
  423. }
  424. function ADAREAbook1_DoFSCommand(commands,args){
  425. ADM_S[document.getElementById(ADM_DIV).i].s=2;
  426. document.getElementById(ADM_DIV+"book1").style.visibility='hidden';
  427. var OBJ=document.getElementById(ADM_DIV+"book2");
  428. OBJ.style.visibility='visible';OBJ.style.display='block';
  429. }
  430. function ADAREAbook2_DoFSCommand(commands,args){
  431. document.getElementById(ADM_DIV+"book2").style.visibility='hidden';
  432. var OBJ=document.getElementById(ADM_DIV+"book1");
  433. OBJ.style.visibility='visible';
  434. OBJ.style.display='block';
  435. OBJ.Play();
  436. }
  437. function COUPLET_main(o){
  438. if(((ADM_CE==1)&&(screen.width<1000))||((ADM_CE==0)&&(documentBody.scrollWidth<1000))){
  439. o.s=2;
  440. return;
  441. }
  442. var HasBOOKTURN=false;
  443. for(CAI=0;CAI<ADM_S.length;CAI++){
  444. if(ADM_S[CAI].t=="BOOKTURN"){
  445. HasBOOKTURN=true;
  446. break;
  447. }
  448. }
  449. if(ADM_Check(o)){
  450. o.s=2;
  451. return;
  452. }
  453. if(!o.offsetX)
  454. o.offsetX=0;
  455. if(!o.offsetY)
  456. o.offsetY=(HasBOOKTURN)?250:130;
  457. if(!o.width)
  458. o.width=120;
  459. if(!o.height)
  460. o.height=270;
  461. if(!o.width2)
  462. o.width=120;
  463. if(!o.height2)
  464. o.height=270;
  465. if(!o.href)
  466. o.href="";
  467. if(!o.href2)
  468. o.href2="";
  469. if(o.src||o.src2){
  470. if(!o.src)
  471. o.src=o.src2;
  472. if(!o.wmode)
  473. o.wmode="opaque";
  474. if(!o.src2)
  475. o.src2=o.src;
  476. var UseCache=(o.src.toLowerCase()==o.src2.toLowerCase());
  477. o.style+="top:"+o.offsetY + "px";
  478. o.style+=";left:"+(parseInt(documentBody.scrollLeft) + parseInt(o.offsetX)) + "px;";
  479. var s1=ADM_Media(o.src,o.width,o.height,o,ADM_DIV+"Couplet1",o.href);
  480. o.style=o.style.substring(0,o.style.lastIndexOf("left:"));
  481. o.style+="left:"+((parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-o.width-o.offsetX )) + "px;";
  482. if(!UseCache){
  483. if(o.wmode2)
  484. o.wmode=o.wmode2;
  485. s1+=ADM_Media(o.src2,o.width2,o.height2,o,ADM_DIV+"Couplet2",o.href2);
  486. s1+=ADM_FSCommand(o,ADM_DIV+"Couplet2");
  487. ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-"+(o.width2+o.offsetX);
  488. }
  489. else {
  490. s1+="<div id='"+ADM_DIV+"CoupletCache' style='display:none'>"+o.i+"</div>";
  491. }
  492. s1+=ADM_FSCommand(o,ADM_DIV+"Couplet1");
  493. if(ADM_CE==1&&UseCache){
  494. s1+="n<Script language='javascript' for='"+ADM_DIV+"Couplet1' event='OnReadyStateChange(a)'>n";
  495. s1+=""+ADM_DIV+"Couplet1_Cache(a);n";
  496. s1+="</Script>";
  497. }
  498. WriteAd(ADM_DIV+"Couplet",s1);
  499. if(ADM_CE==1&&UseCache&&document.getElementById(ADM_DIV+"Couplet1").PercentLoaded()==100)
  500. ADAREACouplet1_Cache(4);
  501. else if(ADM_CE==0&&UseCache)
  502. ADAREACouplet1_Check();
  503. if(o.timeout)
  504. setTimeout("ADAREACouplet1_DoFSCommand()",o.timeout);
  505. window.setInterval("ADAREACouplet_position("+parseInt(o.offsetY)+"," + o.height + ")",400);
  506. }
  507. o.s=2;
  508. }
  509. function ADAREACouplet1_Check(){
  510. if(document.getElementById(ADM_DIV+"Couplet1").PercentLoaded()==100){
  511. ADAREACouplet1_Cache(4);
  512. return;
  513. }
  514. setTimeout("ADAREACouplet1_Check()",100);
  515. }
  516. function ADAREACouplet1_Cache(a){
  517. if(a==4){
  518. var OBJ=document.getElementById(ADM_DIV+"CoupletCache");
  519. var o=ADM_S[parseInt(OBJ.innerHTML)];
  520. OBJ.innerHTML=ADM_Media(o.src,o.width,o.height,o,ADM_DIV+"Couplet2",o.href)+ADM_FSCommand(o,ADM_DIV+"Couplet2");
  521. OBJ.style.display="block";
  522. if (ADM_CE==1){
  523. ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-"+(o.width*1+o.offsetX);
  524. }
  525. else{
  526. ADM_RESIZE[ADM_RESIZE.length]="document.getElementById('"+ADM_DIV+"Couplet2').style.left=parseInt(parseInt(documentBody.scrollLeft) + parseInt(documentBody.clientWidth)-"+(o.width*1+o.offsetX) + ") + 'px';";
  527. }
  528. }
  529. }
  530. function ADAREACouplet1_DoFSCommand(commands,args){
  531. document.getElementById(ADM_DIV+"Couplet1").style.visibility='hidden';
  532. document.getElementById(ADM_DIV+"Couplet2").style.visibility='hidden';
  533. }
  534. function ADAREACouplet2_DoFSCommand(commands,args){
  535. ADAREACouplet1_DoFSCommand(commands,args);
  536. }
  537. function ADAREACouplet_position(b,h){
  538. if(ADM_CE==1){
  539. if(document.getElementById(ADM_DIV+"Couplet1")!=null){
  540. eval("document.getElementById('"+ADM_DIV+"Couplet1').style.top=parseInt(documentBody.scrollTop) + "+ b + ";");
  541. }
  542. if(document.getElementById(ADM_DIV+"Couplet2")!=null){
  543. eval("document.getElementById('"+ADM_DIV+"Couplet2').style.top=parseInt(documentBody.scrollTop) + "+ b + ";");
  544. }
  545. }
  546. else{
  547. if(document.getElementById(ADM_DIV+"Couplet1")!=null){
  548. eval("document.getElementById('"+ADM_DIV+"Couplet1').style.top=parseInt(0.75*(parseInt(documentBody.scrollTop) + "+ b + ")) + 'pt';");
  549. }
  550. if(document.getElementById(ADM_DIV+"Couplet2")!=null){
  551. eval("document.getElementById('"+ADM_DIV+"Couplet2').style.top=parseInt(0.75*(parseInt(documentBody.scrollTop) + "+ b + ")) + 'pt';");
  552. }
  553. }
  554. }