home *** CD-ROM | disk | FTP | other *** search
/ The Houseplan Collection / HRCD2005.ISO / overlib_mini.js < prev    next >
Text File  |  2005-04-21  |  26KB  |  720 lines

  1. //\//////////////////////////////////////////////////////////////////////////////////
  2. //\  overLIB 3.50  --  This notice must remain untouched at all times.
  3. //\  Copyright Erik Bosrup 1998-2001. All rights reserved.
  4. //\
  5. //\  By Erik Bosrup (erik@bosrup.com).  Last modified 2001-08-28.
  6. //\  Portions by Dan Steinman (dansteinman.com). Additions by other people are
  7. //\  listed on the overLIB homepage.
  8. //\
  9. //\  Get the latest version at http://www.bosrup.com/web/overlib/
  10. //\
  11. //\  This script is published under an open source license. Please read the license
  12. //\  agreement online at: http://www.bosrup.com/web/overlib/license.html
  13. //\  If you have questions regarding the license please contact erik@bosrup.com.
  14. //\
  15. //\  This script library was originally created for personal use. By request it has
  16. //\  later been made public. This is free software. Do not sell this as your own
  17. //\  work, or remove this copyright notice. For full details on copying or changing
  18. //\  this script please read the license agreement at the link above.
  19. //\
  20. //\  Please give credit on sites that use overLIB and submit changes of the script
  21. //\  so other people can use them as well. This script is free to use, don't abuse.
  22. //\//////////////////////////////////////////////////////////////////////////////////
  23.  
  24. //\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!
  25.  
  26. function popUp(url)
  27. {
  28.     sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0, status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
  29.     self.name = "mainWin";
  30. }
  31.  
  32. var INARRAY=1;
  33. var CAPARRAY=2;
  34. var STICKY=3;
  35. var BACKGROUND=4;
  36. var NOCLOSE=5;
  37. var CAPTION=6;
  38. var LEFT=7;
  39. var RIGHT=8;
  40. var CENTER=9;
  41. var OFFSETX=10;
  42. var OFFSETY=11;
  43. var FGCOLOR=12;
  44. var BGCOLOR=13;
  45. var TEXTCOLOR=14;
  46. var CAPCOLOR=15;
  47. var CLOSECOLOR=16;
  48. var WIDTH=17;
  49. var BORDER=18;
  50. var STATUS=19;
  51. var AUTOSTATUS=20;
  52. var AUTOSTATUSCAP=21;
  53. var HEIGHT=22;
  54. var CLOSETEXT=23;
  55. var SNAPX=24;
  56. var SNAPY=25;
  57. var FIXX=26;
  58. var FIXY=27;
  59. var FGBACKGROUND=28;
  60. var BGBACKGROUND=29;
  61. var PADX=30;// PADX2 out
  62. var PADY=31;// PADY2 out
  63. var FULLHTML=34;
  64. var ABOVE=35;
  65. var BELOW=36;
  66. var CAPICON=37;
  67. var TEXTFONT=38;
  68. var CAPTIONFONT=39;
  69. var CLOSEFONT=40;
  70. var TEXTSIZE=41;
  71. var CAPTIONSIZE=42;
  72. var CLOSESIZE=43;
  73. var FRAME=44;
  74. var TIMEOUT=45;
  75. var FUNCTION=46;
  76. var DELAY=47;
  77. var HAUTO=48;
  78. var VAUTO=49;
  79. var CLOSECLICK=50;
  80. var CSSOFF=51;
  81. var CSSSTYLE=52;
  82. var CSSCLASS=53;
  83. var FGCLASS=54;
  84. var BGCLASS=55;
  85. var TEXTFONTCLASS=56;
  86. var CAPTIONFONTCLASS=57;
  87. var CLOSEFONTCLASS=58;
  88. var PADUNIT=59;
  89. var HEIGHTUNIT=60;
  90. var WIDTHUNIT=61;
  91. var TEXTSIZEUNIT=62;
  92. var TEXTDECORATION=63;
  93. var TEXTSTYLE=64;
  94. var TEXTWEIGHT=65;
  95. var CAPTIONSIZEUNIT=66;
  96. var CAPTIONDECORATION=67;
  97. var CAPTIONSTYLE=68;
  98. var CAPTIONWEIGHT=69;
  99. var CLOSESIZEUNIT=70;
  100. var CLOSEDECORATION=71;
  101. var CLOSESTYLE=72;
  102. var CLOSEWEIGHT=73;
  103. if(typeof ol_fgcolor=='undefined'){var ol_fgcolor="#24488A";}
  104. if(typeof ol_bgcolor=='undefined'){var ol_bgcolor="#000000";}
  105. if(typeof ol_textcolor=='undefined'){var ol_textcolor="#EEEEEE";}
  106. if(typeof ol_capcolor=='undefined'){var ol_capcolor="#FFFFFF";}
  107. if(typeof ol_closecolor=='undefined'){var ol_closecolor="#9999FF";}
  108. if(typeof ol_textfont=='undefined'){var ol_textfont="Arial,Helvetica";}
  109. if(typeof ol_captionfont=='undefined'){var ol_captionfont="Arial,Helvetica";}
  110. if(typeof ol_closefont=='undefined'){var ol_closefont="Arial,Helvetica";}
  111. if(typeof ol_textsize=='undefined'){var ol_textsize="1";}
  112. if(typeof ol_captionsize=='undefined'){var ol_captionsize="1";}
  113. if(typeof ol_closesize=='undefined'){var ol_closesize="1";}
  114. if(typeof ol_width=='undefined'){var ol_width="200";}
  115. if(typeof ol_border=='undefined'){var ol_border="1";}
  116. if(typeof ol_offsetx=='undefined'){var ol_offsetx=10;}
  117. if(typeof ol_offsety=='undefined'){var ol_offsety=10;}
  118. if(typeof ol_text=='undefined'){var ol_text="Default Text";}
  119. if(typeof ol_cap=='undefined'){var ol_cap="";}
  120. if(typeof ol_sticky=='undefined'){var ol_sticky=0;}
  121. if(typeof ol_background=='undefined'){var ol_background="";}
  122. if(typeof ol_close=='undefined'){var ol_close="Close";}
  123. if(typeof ol_hpos=='undefined'){var ol_hpos=8;}
  124. if(typeof ol_status=='undefined'){var ol_status="";}
  125. if(typeof ol_autostatus=='undefined'){var ol_autostatus=0;}
  126. if(typeof ol_height=='undefined'){var ol_height=-1;}
  127. if(typeof ol_snapx=='undefined'){var ol_snapx=0;}
  128. if(typeof ol_snapy=='undefined'){var ol_snapy=0;}
  129. if(typeof ol_fixx=='undefined'){var ol_fixx=-1;}
  130. if(typeof ol_fixy=='undefined'){var ol_fixy=-1;}
  131. if(typeof ol_fgbackground=='undefined'){var ol_fgbackground="";}
  132. if(typeof ol_bgbackground=='undefined'){var ol_bgbackground="";}
  133. if(typeof ol_padxl=='undefined'){var ol_padxl=1;}
  134. if(typeof ol_padxr=='undefined'){var ol_padxr=1;}
  135. if(typeof ol_padyt=='undefined'){var ol_padyt=1;}
  136. if(typeof ol_padyb=='undefined'){var ol_padyb=1;}
  137. if(typeof ol_fullhtml=='undefined'){var ol_fullhtml=0;}
  138. if(typeof ol_vpos=='undefined'){var ol_vpos=36;}
  139. if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;}
  140. if(typeof ol_caption=='undefined'){var ol_capicon="";}
  141. if(typeof ol_frame=='undefined'){var ol_frame=self;}
  142. if(typeof ol_timeout=='undefined'){var ol_timeout=0;}
  143. if(typeof ol_function=='undefined'){var ol_function=Function();}
  144. if(typeof ol_delay=='undefined'){var ol_delay=0;}
  145. if(typeof ol_hauto=='undefined'){var ol_hauto=0;}
  146. if(typeof ol_vauto=='undefined'){var ol_vauto=0;}
  147. if(typeof ol_closeclick=='undefined'){var ol_closeclick=0;}
  148. if(typeof ol_css=='undefined'){var ol_css=51;}
  149. if(typeof ol_fgclass=='undefined'){var ol_fgclass="";}
  150. if(typeof ol_bgclass=='undefined'){var ol_bgclass="";}
  151. if(typeof ol_textfontclass=='undefined'){var ol_textfontclass="";}
  152. if(typeof ol_captionfontclass=='undefined'){var ol_captionfontclass="";}
  153. if(typeof ol_closefontclass=='undefined'){var ol_closefontclass="";}
  154. if(typeof ol_padunit=='undefined'){var ol_padunit="px";}
  155. if(typeof ol_heightunit=='undefined'){var ol_heightunit="px";}
  156. if(typeof ol_widthunit=='undefined'){var ol_widthunit="px";}
  157. if(typeof ol_textsizeunit=='undefined'){var ol_textsizeunit="px";}
  158. if(typeof ol_textdecoration=='undefined'){var ol_textdecoration="none";}
  159. if(typeof ol_textstyle=='undefined'){var ol_textstyle="normal";}
  160. if(typeof ol_textweight=='undefined'){var ol_textweight="normal";}
  161. if(typeof ol_captionsizeunit=='undefined'){var ol_captionsizeunit="px";}
  162. if(typeof ol_captiondecoration=='undefined'){var ol_captiondecoration="none";}
  163. if(typeof ol_captionstyle=='undefined'){var ol_captionstyle="normal";}
  164. if(typeof ol_captionweight=='undefined'){var ol_captionweight="bold";}
  165. if(typeof ol_closesizeunit=='undefined'){var ol_closesizeunit="px";}
  166. if(typeof ol_closedecoration=='undefined'){var ol_closedecoration="none";}
  167. if(typeof ol_closestyle=='undefined'){var ol_closestyle="normal";}
  168. if(typeof ol_closeweight=='undefined'){var ol_closeweight="normal";}
  169. if(typeof ol_texts=='undefined'){var ol_texts=new Array("Text 0", "Text 1");}
  170. if(typeof ol_caps=='undefined'){var ol_caps=new Array("Caption 0", "Caption 1");}
  171. var otext="";
  172. var ocap="";
  173. var osticky=0;
  174. var obackground="";
  175. var oclose="Close";
  176. var ohpos=8;
  177. var ooffsetx=2;
  178. var ooffsety=2;
  179. var ofgcolor="";
  180. var obgcolor="";
  181. var otextcolor="";
  182. var ocapcolor="";
  183. var oclosecolor="";
  184. var owidth=100;
  185. var oborder=1;
  186. var ostatus="";
  187. var oautostatus=0;
  188. var oheight=-1;
  189. var osnapx=0;
  190. var osnapy=0;
  191. var ofixx=-1;
  192. var ofixy=-1;
  193. var ofgbackground="";
  194. var obgbackground="";
  195. var opadxl=0;
  196. var opadxr=0;
  197. var opadyt=0;
  198. var opadyb=0;
  199. var ofullhtml=0;
  200. var ovpos=36;
  201. var oaboveheight=0;
  202. var ocapicon="";
  203. var otextfont="Arial,Helvetica";
  204. var ocaptionfont="Arial,Helvetica";
  205. var oclosefont="Arial,Helvetica";
  206. var otextsize="1";
  207. var ocaptionsize="1";
  208. var oclosesize="1";
  209. var oframe=self;
  210. var otimeout=0;
  211. var otimerid=0;
  212. var oallowmove=0;
  213. var ofunction=Function();
  214. var odelay=0;
  215. var odelayid=0;
  216. var ohauto=0;
  217. var ovauto=0;
  218. var ocloseclick=0;
  219. var ocss=51;
  220. var ofgclass="";
  221. var obgclass="";
  222. var otextfontclass="";
  223. var ocaptionfontclass="";
  224. var oclosefontclass="";
  225. var opadunit="px";
  226. var oheightunit="px";
  227. var owidthunit="px";
  228. var otextsizeunit="px";
  229. var otextdecoration="";
  230. var otextstyle="";
  231. var otextweight="";
  232. var ocaptionsizeunit="px";
  233. var ocaptiondecoration="";
  234. var ocaptionstyle="";
  235. var ocaptionweight="";
  236. var oclosesizeunit="px";
  237. var oclosedecoration="";
  238. var oclosestyle="";
  239. var ocloseweight="";
  240. var ox=0;
  241. var oy=0;
  242. var oallow=0;
  243. var oshowingsticky=0;
  244. var oremovecounter=0;
  245. var over=null;
  246. var ns4=(document.layers)? true:false;
  247. var ns6=(document.getElementById)? true:false;
  248. var ie4=(document.all)? true:false;
  249. var ie5=false;
  250. if(ie4){
  251. if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
  252. ie5=true;
  253. }
  254. if(ns6){
  255. ns6=false;
  256. }
  257. }
  258. if((ns4)||(ie4)||(ns6)){
  259. document.onmousemove=mouseMove
  260. if(ns4)document.captureEvents(Event.MOUSEMOVE)
  261. }else{
  262. overlib=no_overlib;
  263. nd=no_overlib;
  264. ver3fix=true;
  265. }
  266. function no_overlib(){
  267. return ver3fix;
  268. }
  269. function overlib(){
  270. otext=ol_text;
  271. ocap=ol_cap;
  272. osticky=ol_sticky;
  273. obackground=ol_background;
  274. oclose=ol_close;
  275. ohpos=ol_hpos;
  276. ooffsetx=ol_offsetx;
  277. ooffsety=ol_offsety;
  278. ofgcolor=ol_fgcolor;
  279. obgcolor=ol_bgcolor;
  280. otextcolor=ol_textcolor;
  281. ocapcolor=ol_capcolor;
  282. oclosecolor=ol_closecolor;
  283. owidth=ol_width;
  284. oborder=ol_border;
  285. ostatus=ol_status;
  286. oautostatus=ol_autostatus;
  287. oheight=ol_height;
  288. osnapx=ol_snapx;
  289. osnapy=ol_snapy;
  290. ofixx=ol_fixx;
  291. ofixy=ol_fixy;
  292. ofgbackground=ol_fgbackground;
  293. obgbackground=ol_bgbackground;
  294. opadxl=ol_padxl;
  295. opadxr=ol_padxr;
  296. opadyt=ol_padyt;
  297. opadyb=ol_padyb;
  298. ofullhtml=ol_fullhtml;
  299. ovpos=ol_vpos;
  300. oaboveheight=ol_aboveheight;
  301. ocapicon=ol_capicon;
  302. otextfont=ol_textfont;
  303. ocaptionfont=ol_captionfont;
  304. oclosefont=ol_closefont;
  305. otextsize=ol_textsize;
  306. ocaptionsize=ol_captionsize;
  307. oclosesize=ol_closesize;
  308. otimeout=ol_timeout;
  309. ofunction=ol_function;
  310. odelay=ol_delay;
  311. ohauto=ol_hauto;
  312. ovauto=ol_vauto;
  313. ocloseclick=ol_closeclick;
  314. ocss=ol_css;
  315. ofgclass=ol_fgclass;
  316. obgclass=ol_bgclass;
  317. otextfontclass=ol_textfontclass;
  318. ocaptionfontclass=ol_captionfontclass;
  319. oclosefontclass=ol_closefontclass;
  320. opadunit=ol_padunit;
  321. oheightunit=ol_heightunit;
  322. owidthunit=ol_widthunit;
  323. otextsizeunit=ol_textsizeunit;
  324. otextdecoration=ol_textdecoration;
  325. otextstyle=ol_textstyle;
  326. otextweight=ol_textweight;
  327. ocaptionsizeunit=ol_captionsizeunit;
  328. ocaptiondecoration=ol_captiondecoration;
  329. ocaptionstyle=ol_captionstyle;
  330. ocaptionweight=ol_captionweight;
  331. oclosesizeunit=ol_closesizeunit;
  332. oclosedecoration=ol_closedecoration;
  333. oclosestyle=ol_closestyle;
  334. ocloseweight=ol_closeweight;
  335. if((ns4)||(ie4)||(ns6)){
  336. oframe=ol_frame;
  337. if(ns4)over=oframe.document.overDiv
  338. if(ie4)over=oframe.overDiv.style
  339. if(ns6)over=oframe.document.getElementById("overDiv");
  340. }
  341. var c=-1;
  342. var ar=arguments;
  343. for(i=0;i < ar.length;i++){
  344. if(c < 0){
  345. if(ar[i]==1){
  346. otext=ol_texts[ar[++i]];
  347. }else{
  348. otext=ar[i];
  349. }
  350. c=0;
  351. }else{
  352. if(ar[i]==1){otext=ol_texts[ar[++i]];continue;}
  353. if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;}
  354. if(ar[i]==3){osticky=1;continue;}
  355. if(ar[i]==4){obackground=ar[++i];continue;}
  356. if(ar[i]==NOCLOSE){oclose="";continue;}
  357. if(ar[i]==6){ocap=ar[++i];continue;}
  358. if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;}
  359. if(ar[i]==10){ooffsetx=ar[++i];continue;}
  360. if(ar[i]==11){ooffsety=ar[++i];continue;}
  361. if(ar[i]==12){ofgcolor=ar[++i];continue;}
  362. if(ar[i]==13){obgcolor=ar[++i];continue;}
  363. if(ar[i]==14){otextcolor=ar[++i];continue;}
  364. if(ar[i]==15){ocapcolor=ar[++i];continue;}
  365. if(ar[i]==16){oclosecolor=ar[++i];continue;}
  366. if(ar[i]==17){owidth=ar[++i];continue;}
  367. if(ar[i]==18){oborder=ar[++i];continue;}
  368. if(ar[i]==19){ostatus=ar[++i];continue;}
  369. if(ar[i]==20){oautostatus=1;continue;}
  370. if(ar[i]==21){oautostatus=2;continue;}
  371. if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again.
  372. if(ar[i]==23){oclose=ar[++i];continue;}
  373. if(ar[i]==24){osnapx=ar[++i];continue;}
  374. if(ar[i]==25){osnapy=ar[++i];continue;}
  375. if(ar[i]==26){ofixx=ar[++i];continue;}
  376. if(ar[i]==27){ofixy=ar[++i];continue;}
  377. if(ar[i]==28){ofgbackground=ar[++i];continue;}
  378. if(ar[i]==29){obgbackground=ar[++i];continue;}
  379. if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;}
  380. if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;}
  381. if(ar[i]==34){ofullhtml=1;continue;}
  382. if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;}
  383. if(ar[i]==37){ocapicon=ar[++i];continue;}
  384. if(ar[i]==38){otextfont=ar[++i];continue;}
  385. if(ar[i]==39){ocaptionfont=ar[++i];continue;}
  386. if(ar[i]==40){oclosefont=ar[++i];continue;}
  387. if(ar[i]==41){otextsize=ar[++i];continue;}
  388. if(ar[i]==42){ocaptionsize=ar[++i];continue;}
  389. if(ar[i]==43){oclosesize=ar[++i];continue;}
  390. if(ar[i]==44){opt_FRAME(ar[++i]);continue;}
  391. if(ar[i]==45){otimeout=ar[++i];continue;}
  392. if(ar[i]==46){opt_FUNCTION(ar[++i]);continue;}
  393. if(ar[i]==47){odelay=ar[++i];continue;}
  394. if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;}
  395. if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;}
  396. if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;}
  397. if(ar[i]==51){ocss=ar[i];continue;}
  398. if(ar[i]==52){ocss=ar[i];continue;}
  399. if(ar[i]==53){ocss=ar[i];continue;}
  400. if(ar[i]==54){ofgclass=ar[++i];continue;}
  401. if(ar[i]==55){obgclass=ar[++i];continue;}
  402. if(ar[i]==56){otextfontclass=ar[++i];continue;}
  403. if(ar[i]==57){ocaptionfontclass=ar[++i];continue;}
  404. if(ar[i]==58){oclosefontclass=ar[++i];continue;}
  405. if(ar[i]==59){opadunit=ar[++i];continue;}
  406. if(ar[i]==60){oheightunit=ar[++i];continue;}
  407. if(ar[i]==61){owidthunit=ar[++i];continue;}
  408. if(ar[i]==62){otextsizeunit=ar[++i];continue;}
  409. if(ar[i]==63){otextdecoration=ar[++i];continue;}
  410. if(ar[i]==64){otextstyle=ar[++i];continue;}
  411. if(ar[i]==65){otextweight=ar[++i];continue;}
  412. if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;}
  413. if(ar[i]==67){ocaptiondecoration=ar[++i];continue;}
  414. if(ar[i]==68){ocaptionstyle=ar[++i];continue;}
  415. if(ar[i]==69){ocaptionweight=ar[++i];continue;}
  416. if(ar[i]==70){oclosesizeunit=ar[++i];continue;}
  417. if(ar[i]==71){oclosedecoration=ar[++i];continue;}
  418. if(ar[i]==72){oclosestyle=ar[++i];continue;}
  419. if(ar[i]==73){ocloseweight=ar[++i];continue;}
  420. }
  421. }
  422. if(odelay==0){
  423. return overlib350();
  424. }else{
  425. odelayid=setTimeout("overlib350()", odelay);
  426. if(osticky){
  427. return false;
  428. }else{
  429. return true;
  430. }
  431. }
  432. }
  433. function nd(){
  434. if(oremovecounter >=1){oshowingsticky=0};
  435. if((ns4)||(ie4)||(ns6)){
  436. if(oshowingsticky==0){
  437. oallowmove=0;
  438. if(over !=null)hideObject(over);
  439. }else{
  440. oremovecounter++;
  441. }
  442. }
  443. return true;
  444. }
  445. function overlib350(){
  446. var layerhtml;
  447. if(obackground !="" || ofullhtml){
  448. layerhtml=ol_content_background(otext, obackground, ofullhtml);
  449. }else{
  450. if(ofgbackground !="" && ocss==CSSOFF){
  451. ofgbackground="BACKGROUND=\""+ofgbackground+"\"";
  452. }
  453. if(obgbackground !="" && ocss==CSSOFF){
  454. obgbackground="BACKGROUND=\""+obgbackground+"\"";
  455. }
  456. if(ofgcolor !="" && ocss==CSSOFF){
  457. ofgcolor="BGCOLOR=\""+ofgcolor+"\"";
  458. }
  459. if(obgcolor !="" && ocss==CSSOFF){
  460. obgcolor="BGCOLOR=\""+obgcolor+"\"";
  461. }
  462. if(oheight > 0 && ocss==51){
  463. oheight="HEIGHT=" + oheight;
  464. }else{
  465. oheight="";
  466. }
  467. if(ocap==""){
  468. layerhtml=ol_content_simple(otext);
  469. }else{
  470. if(osticky){
  471. layerhtml=ol_content_caption(otext, ocap, oclose);
  472. }else{
  473. layerhtml=ol_content_caption(otext, ocap, "");
  474. }
  475. }
  476. }
  477. if(osticky){
  478. oshowingsticky=1;
  479. oremovecounter=0;
  480. }
  481. layerWrite(layerhtml);
  482. if(oautostatus > 0){
  483. ostatus=otext;
  484. if(oautostatus > 1){
  485. ostatus=ocap;
  486. }
  487. }
  488. oallowmove=0;
  489. if(otimeout > 0){
  490. if(otimerid > 0)clearTimeout(otimerid);
  491. otimerid=setTimeout("cClick()", otimeout);
  492. }
  493. disp(ostatus);
  494. if(osticky){
  495. oallowmove=0;
  496. return false;
  497. }else{
  498. return true;
  499. }
  500. }
  501. function ol_content_simple(text){
  502. if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
  503. if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
  504. if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
  505. set_background("");
  506. return txt;
  507. }
  508. function ol_content_caption(text, title, close){
  509. closing="";
  510. closeevent="onMouseOver";
  511. if(ocloseclick==1)closeevent="onClick";
  512. if(ocapicon !="")ocapicon="<IMG SRC=\""+ocapicon+"\"> ";
  513. if(close !=""){
  514. if(ocss==CSSCLASS)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" class=\""+oclosefontclass+"\">"+close+"</A></TD>";
  515. if(ocss==CSSSTYLE)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" style=\"color: "+oclosecolor+";font-family: "+oclosefont+";font-size: "+oclosesize+oclosesizeunit+";text-decoration: "+oclosedecoration+";font-weight: "+ocloseweight+";font-style:"+oclosestyle+";\">"+close+"</A></TD>";
  516. if(ocss==CSSOFF)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+oclosecolor+"\" FACE=\""+oclosefont+"\" SIZE=\""+oclosesize+"\">"+close+"</FONT></A></TD>";
  517. }
  518. if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT class=\""+ocaptionfontclass+"\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
  519. if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";background-image: url("+obgbackground+");height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT style=\"font-family: "+ocaptionfont+";color: "+ocapcolor+";font-size: "+ocaptionsize+ocaptionsizeunit+";font-weight: "+ocaptionweight+";font-style: "+ocaptionstyle+";\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
  520. if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+obgbackground+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+ocapcolor+"\" FACE=\""+ocaptionfont+"\" SIZE=\""+ocaptionsize+"\">"+ocapicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT COLOR=\""+otextcolor+"\" FACE=\""+otextfont+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
  521. set_background("");
  522. return txt;
  523. }
  524. function ol_content_background(text, picture, hasfullhtml){
  525. if(hasfullhtml){
  526. txt=text;
  527. }else{
  528. if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>";
  529. if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>";
  530. if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+"></TD></TR><TR><TD WIDTH="+opadxl+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+"><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+"></TD></TR></TABLE>";
  531. }
  532. set_background(picture);
  533. return txt;
  534. }
  535. function set_background(pic){
  536. if(pic==""){
  537. if(ie4)over.backgroundImage="none";
  538. if(ns6)over.style.backgroundImage="none";
  539. }else{
  540. if(ns4){
  541. over.background.src=pic;
  542. }else if(ie4){
  543. over.backgroundImage="url("+pic+")";
  544. }else if(ns6){
  545. over.style.backgroundImage="url("+pic+")";
  546. }
  547. }
  548. }
  549. function disp(statustext){
  550. if((ns4)||(ie4)||(ns6)){
  551. if(oallowmove==0){
  552. placeLayer();
  553. showObject(over);
  554. oallowmove=1;
  555. }
  556. }
  557. if(statustext !=""){
  558. self.status=statustext;
  559. }
  560. }
  561. function placeLayer(){
  562. var placeX, placeY;
  563. if(ofixx > -1){
  564. placeX=ofixx;
  565. }else{
  566. winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset;
  567. if(ie4)iwidth=oframe.document.body.clientWidth;
  568. if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now?
  569. if(ns6)iwidth=oframe.outerWidth;
  570. if(ohauto==1){
  571. if((ox - winoffset)>((eval(iwidth))/ 2)){
  572. ohpos=7;
  573. }else{
  574. ohpos=8;
  575. }
  576. }
  577. if(ohpos==9){// Center
  578. placeX=ox+ooffsetx-(owidth/2);
  579. }
  580. if(ohpos==8){// Right
  581. placeX=ox+ooffsetx;
  582. if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){
  583. placeX=iwidth + winoffset - owidth;
  584. if(placeX < 0)placeX=0;
  585. }
  586. }
  587. if(ohpos==7){// Left
  588. placeX=ox-ooffsetx-owidth;
  589. if(placeX < winoffset)placeX=winoffset;
  590. }
  591. if(osnapx > 1){
  592. var snapping=placeX % osnapx;
  593. if(ohpos==7){
  594. placeX=placeX -(osnapx + snapping);
  595. }else{
  596. placeX=placeX +(osnapx - snapping);
  597. }
  598. if(placeX < winoffset)placeX=winoffset;
  599. }
  600. }
  601. if(ofixy > -1){
  602. placeY=ofixy;
  603. }else{
  604. scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset;
  605. if(ovauto==1){
  606. if(ie4)iheight=oframe.document.body.clientHeight;
  607. if(ns4)iheight=oframe.innerHeight;
  608. if(ns6)iheight=oframe.outerHeight;
  609. iheight=(eval(iheight))/ 2;
  610. if((oy - scrolloffset)> iheight){
  611. ovpos=35;
  612. }else{
  613. ovpos=36;
  614. }
  615. }
  616. if(ovpos==35){
  617. if(oaboveheight==0){
  618. var divref=(ie4)? oframe.document.all['overDiv'] : over;
  619. oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight;
  620. }
  621. placeY=oy -(oaboveheight + ooffsety);
  622. if(placeY < scrolloffset)placeY=scrolloffset;
  623. }else{
  624. placeY=oy + ooffsety;
  625. }
  626. if(osnapy > 1){
  627. var snapping=placeY % osnapy;
  628. if(oaboveheight > 0 && ovpos==35){
  629. placeY=placeY -(osnapy + snapping);
  630. }else{
  631. placeY=placeY +(osnapy - snapping);
  632. }
  633. if(placeY < scrolloffset)placeY=scrolloffset;
  634. }
  635. }
  636. repositionTo(over, placeX, placeY);
  637. }
  638. function mouseMove(e){
  639. if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;}
  640. if(ie4){ox=event.x;oy=event.y;}
  641. if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;}
  642. if(oallowmove==1){
  643. placeLayer();
  644. }
  645. }
  646. function cClick(){
  647. hideObject(over);
  648. oshowingsticky=0;
  649. return false;
  650. }
  651. function compatibleframe(frameid){
  652. if(ns4){
  653. if(typeof frameid.document.overDiv=='undefined')return false;
  654. }else if(ie4){
  655. if(typeof frameid.document.all["overDiv"]=='undefined')return false;
  656. }else if(ns6){
  657. if(frameid.document.getElementById('overDiv')==null)return false;
  658. }
  659. return true;
  660. }
  661. function layerWrite(txt){
  662. txt +="\n";
  663. if(ns4){
  664. var lyr=oframe.document.overDiv.document
  665. lyr.write(txt)
  666. lyr.close()
  667. }else if(ie4){
  668. oframe.document.all["overDiv"].innerHTML=txt
  669. }else if(ns6){
  670. range=oframe.document.createRange();
  671. range.setStartBefore(over);
  672. domfrag=range.createContextualFragment(txt);
  673. while(over.hasChildNodes()){
  674. over.removeChild(over.lastChild);
  675. }
  676. over.appendChild(domfrag);
  677. }
  678. }
  679. function showObject(obj){
  680. if(ns4)obj.visibility="show";
  681. else if(ie4)obj.visibility="visible";
  682. else if(ns6)obj.style.visibility="visible";
  683. }
  684. function hideObject(obj){
  685. if(ns4)obj.visibility="hide";
  686. else if(ie4)obj.visibility="hidden";
  687. else if(ns6)obj.style.visibility="hidden";
  688. if(otimerid > 0)clearTimeout(otimerid);
  689. if(odelayid > 0)clearTimeout(odelayid);
  690. otimerid=0;
  691. odelayid=0;
  692. self.status="";
  693. }
  694. function repositionTo(obj,xL,yL){
  695. if((ns4)||(ie4)){
  696. obj.left=xL;
  697. obj.top=yL;
  698. }else if(ns6){
  699. obj.style.left=xL + "px";
  700. obj.style.top=yL+ "px";
  701. }
  702. }
  703. function opt_FRAME(frm){
  704. oframe=compatibleframe(frm)? frm : ol_frame;
  705. if((ns4)||(ie4 ||(ns6))){
  706. if(ns4)over=oframe.document.overDiv;
  707. if(ie4)over=oframe.overDiv.style;
  708. if(ns6)over=oframe.document.getElementById("overDiv");
  709. }
  710. return 0;
  711. }
  712. function opt_FUNCTION(callme){
  713. otext=callme()
  714. return 0;
  715. }
  716.  
  717. // Created with XBuilder (2.5.3727.1), Copyright (c) 1997-1999 Berry International, Inc. All Rights Reserved 
  718. // Page: http://hrcd05.icowip.co.uk/overlib_mini.js 
  719. // Date: 04/27/05 09:21 AM 
  720.