1 //\//////////////////////////////////////////////////////////////////////////////////
2 //\ overLIB 3.50 -- This notice must remain untouched at all times.
3 //\ Copyright Erik Bosrup 1998-2001. All rights reserved.
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.
9 //\ Get the latest version at http://www.bosrup.com/web/overlib/
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.
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.
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 //\//////////////////////////////////////////////////////////////////////////////////
24 //\ THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!
55 var PADX=30;// PADX2 out
56 var PADY=31;// PADY2 out
80 var CAPTIONFONTCLASS=57;
81 var CLOSEFONTCLASS=58;
86 var TEXTDECORATION=63;
89 var CAPTIONSIZEUNIT=66;
90 var CAPTIONDECORATION=67;
94 var CLOSEDECORATION=71;
97 if(typeof ol_fgcolor=='undefined'){var ol_fgcolor="#CCCCFF";}
98 if(typeof ol_bgcolor=='undefined'){var ol_bgcolor="#333399";}
99 if(typeof ol_textcolor=='undefined'){var ol_textcolor="#000000";}
100 if(typeof ol_capcolor=='undefined'){var ol_capcolor="#FFFFFF";}
101 if(typeof ol_closecolor=='undefined'){var ol_closecolor="#9999FF";}
102 if(typeof ol_textfont=='undefined'){var ol_textfont="Verdana,Arial,Helvetica";}
103 if(typeof ol_captionfont=='undefined'){var ol_captionfont="Verdana,Arial,Helvetica";}
104 if(typeof ol_closefont=='undefined'){var ol_closefont="Verdana,Arial,Helvetica";}
105 if(typeof ol_textsize=='undefined'){var ol_textsize="1";}
106 if(typeof ol_captionsize=='undefined'){var ol_captionsize="1";}
107 if(typeof ol_closesize=='undefined'){var ol_closesize="1";}
108 if(typeof ol_width=='undefined'){var ol_width="200";}
109 if(typeof ol_border=='undefined'){var ol_border="1";}
110 if(typeof ol_offsetx=='undefined'){var ol_offsetx=10;}
111 if(typeof ol_offsety=='undefined'){var ol_offsety=10;}
112 if(typeof ol_text=='undefined'){var ol_text="Default Text";}
113 if(typeof ol_cap=='undefined'){var ol_cap="";}
114 if(typeof ol_sticky=='undefined'){var ol_sticky=0;}
115 if(typeof ol_background=='undefined'){var ol_background="";}
116 if(typeof ol_close=='undefined'){var ol_close="Close";}
117 if(typeof ol_hpos=='undefined'){var ol_hpos=8;}
118 if(typeof ol_status=='undefined'){var ol_status="";}
119 if(typeof ol_autostatus=='undefined'){var ol_autostatus=0;}
120 if(typeof ol_height=='undefined'){var ol_height=-1;}
121 if(typeof ol_snapx=='undefined'){var ol_snapx=0;}
122 if(typeof ol_snapy=='undefined'){var ol_snapy=0;}
123 if(typeof ol_fixx=='undefined'){var ol_fixx=-1;}
124 if(typeof ol_fixy=='undefined'){var ol_fixy=-1;}
125 if(typeof ol_fgbackground=='undefined'){var ol_fgbackground="";}
126 if(typeof ol_bgbackground=='undefined'){var ol_bgbackground="";}
127 if(typeof ol_padxl=='undefined'){var ol_padxl=1;}
128 if(typeof ol_padxr=='undefined'){var ol_padxr=1;}
129 if(typeof ol_padyt=='undefined'){var ol_padyt=1;}
130 if(typeof ol_padyb=='undefined'){var ol_padyb=1;}
131 if(typeof ol_fullhtml=='undefined'){var ol_fullhtml=0;}
132 if(typeof ol_vpos=='undefined'){var ol_vpos=36;}
133 if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;}
134 if(typeof ol_caption=='undefined'){var ol_capicon="";}
135 if(typeof ol_frame=='undefined'){var ol_frame=self;}
136 if(typeof ol_timeout=='undefined'){var ol_timeout=0;}
137 if(typeof ol_function=='undefined'){var ol_function=Function();}
138 if(typeof ol_delay=='undefined'){var ol_delay=0;}
139 if(typeof ol_hauto=='undefined'){var ol_hauto=0;}
140 if(typeof ol_vauto=='undefined'){var ol_vauto=0;}
141 if(typeof ol_closeclick=='undefined'){var ol_closeclick=0;}
142 if(typeof ol_css=='undefined'){var ol_css=51;}
143 if(typeof ol_fgclass=='undefined'){var ol_fgclass="";}
144 if(typeof ol_bgclass=='undefined'){var ol_bgclass="";}
145 if(typeof ol_textfontclass=='undefined'){var ol_textfontclass="";}
146 if(typeof ol_captionfontclass=='undefined'){var ol_captionfontclass="";}
147 if(typeof ol_closefontclass=='undefined'){var ol_closefontclass="";}
148 if(typeof ol_padunit=='undefined'){var ol_padunit="px";}
149 if(typeof ol_heightunit=='undefined'){var ol_heightunit="px";}
150 if(typeof ol_widthunit=='undefined'){var ol_widthunit="px";}
151 if(typeof ol_textsizeunit=='undefined'){var ol_textsizeunit="px";}
152 if(typeof ol_textdecoration=='undefined'){var ol_textdecoration="none";}
153 if(typeof ol_textstyle=='undefined'){var ol_textstyle="normal";}
154 if(typeof ol_textweight=='undefined'){var ol_textweight="normal";}
155 if(typeof ol_captionsizeunit=='undefined'){var ol_captionsizeunit="px";}
156 if(typeof ol_captiondecoration=='undefined'){var ol_captiondecoration="none";}
157 if(typeof ol_captionstyle=='undefined'){var ol_captionstyle="normal";}
158 if(typeof ol_captionweight=='undefined'){var ol_captionweight="bold";}
159 if(typeof ol_closesizeunit=='undefined'){var ol_closesizeunit="px";}
160 if(typeof ol_closedecoration=='undefined'){var ol_closedecoration="none";}
161 if(typeof ol_closestyle=='undefined'){var ol_closestyle="normal";}
162 if(typeof ol_closeweight=='undefined'){var ol_closeweight="normal";}
163 if(typeof ol_texts=='undefined'){var ol_texts=new Array("Text 0", "Text 1");}
164 if(typeof ol_caps=='undefined'){var ol_caps=new Array("Caption 0", "Caption 1");}
187 var ofgbackground="";
188 var obgbackground="";
197 var otextfont="Verdana,Arial,Helvetica";
198 var ocaptionfont="Verdana,Arial,Helvetica";
199 var oclosefont="Verdana,Arial,Helvetica";
201 var ocaptionsize="1";
207 var ofunction=Function();
216 var otextfontclass="";
217 var ocaptionfontclass="";
218 var oclosefontclass="";
220 var oheightunit="px";
222 var otextsizeunit="px";
223 var otextdecoration="";
226 var ocaptionsizeunit="px";
227 var ocaptiondecoration="";
228 var ocaptionstyle="";
229 var ocaptionweight="";
230 var oclosesizeunit="px";
231 var oclosedecoration="";
237 var oshowingsticky=0;
238 var oremovecounter=0;
240 var ns4=(document.layers)? true:false;
241 var ns6=(document.getElementById)? true:false;
242 var ie4=(document.all)? true:false;
245 if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
252 if((ns4)||(ie4)||(ns6)){
253 document.onmousemove=mouseMove
254 if(ns4)document.captureEvents(Event.MOUSEMOVE)
260 function no_overlib(){
267 obackground=ol_background;
274 otextcolor=ol_textcolor;
275 ocapcolor=ol_capcolor;
276 oclosecolor=ol_closecolor;
280 oautostatus=ol_autostatus;
286 ofgbackground=ol_fgbackground;
287 obgbackground=ol_bgbackground;
292 ofullhtml=ol_fullhtml;
294 oaboveheight=ol_aboveheight;
296 otextfont=ol_textfont;
297 ocaptionfont=ol_captionfont;
298 oclosefont=ol_closefont;
299 otextsize=ol_textsize;
300 ocaptionsize=ol_captionsize;
301 oclosesize=ol_closesize;
303 ofunction=ol_function;
307 ocloseclick=ol_closeclick;
311 otextfontclass=ol_textfontclass;
312 ocaptionfontclass=ol_captionfontclass;
313 oclosefontclass=ol_closefontclass;
315 oheightunit=ol_heightunit;
316 owidthunit=ol_widthunit;
317 otextsizeunit=ol_textsizeunit;
318 otextdecoration=ol_textdecoration;
319 otextstyle=ol_textstyle;
320 otextweight=ol_textweight;
321 ocaptionsizeunit=ol_captionsizeunit;
322 ocaptiondecoration=ol_captiondecoration;
323 ocaptionstyle=ol_captionstyle;
324 ocaptionweight=ol_captionweight;
325 oclosesizeunit=ol_closesizeunit;
326 oclosedecoration=ol_closedecoration;
327 oclosestyle=ol_closestyle;
328 ocloseweight=ol_closeweight;
329 if((ns4)||(ie4)||(ns6)){
331 if(ns4)over=oframe.document.overDiv
332 if(ie4)over=oframe.overDiv.style
333 if(ns6)over=oframe.document.getElementById("overDiv");
337 for(i=0;i < ar.length;i++){
340 otext=ol_texts[ar[++i]];
346 if(ar[i]==1){otext=ol_texts[ar[++i]];continue;}
347 if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;}
348 if(ar[i]==3){osticky=1;continue;}
349 if(ar[i]==4){obackground=ar[++i];continue;}
350 if(ar[i]==NOCLOSE){oclose="";continue;}
351 if(ar[i]==6){ocap=ar[++i];continue;}
352 if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;}
353 if(ar[i]==10){ooffsetx=ar[++i];continue;}
354 if(ar[i]==11){ooffsety=ar[++i];continue;}
355 if(ar[i]==12){ofgcolor=ar[++i];continue;}
356 if(ar[i]==13){obgcolor=ar[++i];continue;}
357 if(ar[i]==14){otextcolor=ar[++i];continue;}
358 if(ar[i]==15){ocapcolor=ar[++i];continue;}
359 if(ar[i]==16){oclosecolor=ar[++i];continue;}
360 if(ar[i]==17){owidth=ar[++i];continue;}
361 if(ar[i]==18){oborder=ar[++i];continue;}
362 if(ar[i]==19){ostatus=ar[++i];continue;}
363 if(ar[i]==20){oautostatus=1;continue;}
364 if(ar[i]==21){oautostatus=2;continue;}
365 if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again.
366 if(ar[i]==23){oclose=ar[++i];continue;}
367 if(ar[i]==24){osnapx=ar[++i];continue;}
368 if(ar[i]==25){osnapy=ar[++i];continue;}
369 if(ar[i]==26){ofixx=ar[++i];continue;}
370 if(ar[i]==27){ofixy=ar[++i];continue;}
371 if(ar[i]==28){ofgbackground=ar[++i];continue;}
372 if(ar[i]==29){obgbackground=ar[++i];continue;}
373 if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;}
374 if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;}
375 if(ar[i]==34){ofullhtml=1;continue;}
376 if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;}
377 if(ar[i]==37){ocapicon=ar[++i];continue;}
378 if(ar[i]==38){otextfont=ar[++i];continue;}
379 if(ar[i]==39){ocaptionfont=ar[++i];continue;}
380 if(ar[i]==40){oclosefont=ar[++i];continue;}
381 if(ar[i]==41){otextsize=ar[++i];continue;}
382 if(ar[i]==42){ocaptionsize=ar[++i];continue;}
383 if(ar[i]==43){oclosesize=ar[++i];continue;}
384 if(ar[i]==44){opt_FRAME(ar[++i]);continue;}
385 if(ar[i]==45){otimeout=ar[++i];continue;}
386 if(ar[i]==46){opt_FUNCTION(ar[++i]);continue;}
387 if(ar[i]==47){odelay=ar[++i];continue;}
388 if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;}
389 if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;}
390 if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;}
391 if(ar[i]==51){ocss=ar[i];continue;}
392 if(ar[i]==52){ocss=ar[i];continue;}
393 if(ar[i]==53){ocss=ar[i];continue;}
394 if(ar[i]==54){ofgclass=ar[++i];continue;}
395 if(ar[i]==55){obgclass=ar[++i];continue;}
396 if(ar[i]==56){otextfontclass=ar[++i];continue;}
397 if(ar[i]==57){ocaptionfontclass=ar[++i];continue;}
398 if(ar[i]==58){oclosefontclass=ar[++i];continue;}
399 if(ar[i]==59){opadunit=ar[++i];continue;}
400 if(ar[i]==60){oheightunit=ar[++i];continue;}
401 if(ar[i]==61){owidthunit=ar[++i];continue;}
402 if(ar[i]==62){otextsizeunit=ar[++i];continue;}
403 if(ar[i]==63){otextdecoration=ar[++i];continue;}
404 if(ar[i]==64){otextstyle=ar[++i];continue;}
405 if(ar[i]==65){otextweight=ar[++i];continue;}
406 if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;}
407 if(ar[i]==67){ocaptiondecoration=ar[++i];continue;}
408 if(ar[i]==68){ocaptionstyle=ar[++i];continue;}
409 if(ar[i]==69){ocaptionweight=ar[++i];continue;}
410 if(ar[i]==70){oclosesizeunit=ar[++i];continue;}
411 if(ar[i]==71){oclosedecoration=ar[++i];continue;}
412 if(ar[i]==72){oclosestyle=ar[++i];continue;}
413 if(ar[i]==73){ocloseweight=ar[++i];continue;}
419 odelayid=setTimeout("overlib350()", odelay);
428 if(oremovecounter >=1){oshowingsticky=0};
429 if((ns4)||(ie4)||(ns6)){
430 if(oshowingsticky==0){
432 if(over !=null)hideObject(over);
439 function overlib350(){
441 if(obackground !="" || ofullhtml){
442 layerhtml=ol_content_background(otext, obackground, ofullhtml);
444 if(ofgbackground !="" && ocss==CSSOFF){
445 ofgbackground="BACKGROUND=\""+ofgbackground+"\"";
447 if(obgbackground !="" && ocss==CSSOFF){
448 obgbackground="BACKGROUND=\""+obgbackground+"\"";
450 if(ofgcolor !="" && ocss==CSSOFF){
451 ofgcolor="BGCOLOR=\""+ofgcolor+"\"";
453 if(obgcolor !="" && ocss==CSSOFF){
454 obgcolor="BGCOLOR=\""+obgcolor+"\"";
456 if(oheight > 0 && ocss==51){
457 oheight="HEIGHT=" + oheight;
462 layerhtml=ol_content_simple(otext);
465 layerhtml=ol_content_caption(otext, ocap, oclose);
467 layerhtml=ol_content_caption(otext, ocap, "");
475 layerWrite(layerhtml);
484 if(otimerid > 0)clearTimeout(otimerid);
485 otimerid=setTimeout("cClick()", otimeout);
495 function ol_content_simple(text){
496 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>";
497 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>";
498 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>";
502 function ol_content_caption(text, title, close){
504 closeevent="onMouseOver";
505 if(ocloseclick==1)closeevent="onClick";
506 if(ocapicon !="")ocapicon="<IMG SRC=\""+ocapicon+"\"> ";
508 if(ocss==CSSCLASS)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" class=\""+oclosefontclass+"\">"+close+"</A></TD>";
509 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>";
510 if(ocss==CSSOFF)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+oclosecolor+"\" FACE=\""+oclosefont+"\" SIZE=\""+oclosesize+"\">"+close+"</FONT></A></TD>";
512 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>";
513 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>";
514 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>";
518 function ol_content_background(text, picture, hasfullhtml){
522 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>";
523 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>";
524 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>";
526 set_background(picture);
529 function set_background(pic){
531 if(ie4)over.backgroundImage="none";
532 if(ns6)over.style.backgroundImage="none";
535 over.background.src=pic;
537 over.backgroundImage="url("+pic+")";
539 over.style.backgroundImage="url("+pic+")";
543 function disp(statustext){
544 if((ns4)||(ie4)||(ns6)){
552 self.status=statustext;
555 function placeLayer(){
560 winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset;
561 if(ie4)iwidth=oframe.document.body.clientWidth;
562 if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now?
563 if(ns6)iwidth=oframe.outerWidth;
565 if((ox - winoffset)>((eval(iwidth))/ 2)){
571 if(ohpos==9){// Center
572 placeX=ox+ooffsetx-(owidth/2);
574 if(ohpos==8){// Right
576 if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){
577 placeX=iwidth + winoffset - owidth;
578 if(placeX < 0)placeX=0;
582 placeX=ox-ooffsetx-owidth;
583 if(placeX < winoffset)placeX=winoffset;
586 var snapping=placeX % osnapx;
588 placeX=placeX -(osnapx + snapping);
590 placeX=placeX +(osnapx - snapping);
592 if(placeX < winoffset)placeX=winoffset;
598 scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset;
600 if(ie4)iheight=oframe.document.body.clientHeight;
601 if(ns4)iheight=oframe.innerHeight;
602 if(ns6)iheight=oframe.outerHeight;
603 iheight=(eval(iheight))/ 2;
604 if((oy - scrolloffset)> iheight){
612 var divref=(ie4)? oframe.document.all['overDiv'] : over;
613 oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight;
615 placeY=oy -(oaboveheight + ooffsety);
616 if(placeY < scrolloffset)placeY=scrolloffset;
618 placeY=oy + ooffsety;
621 var snapping=placeY % osnapy;
622 if(oaboveheight > 0 && ovpos==35){
623 placeY=placeY -(osnapy + snapping);
625 placeY=placeY +(osnapy - snapping);
627 if(placeY < scrolloffset)placeY=scrolloffset;
630 repositionTo(over, placeX, placeY);
632 function mouseMove(e){
633 if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;}
634 if(ie4){ox=event.x;oy=event.y;}
635 if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;}
645 function compatibleframe(frameid){
647 if(typeof frameid.document.overDiv=='undefined')return false;
649 if(typeof frameid.document.all["overDiv"]=='undefined')return false;
651 if(frameid.document.getElementById('overDiv')==null)return false;
655 function layerWrite(txt){
658 var lyr=oframe.document.overDiv.document
662 oframe.document.all["overDiv"].innerHTML=txt
664 range=oframe.document.createRange();
665 range.setStartBefore(over);
666 domfrag=range.createContextualFragment(txt);
667 while(over.hasChildNodes()){
668 over.removeChild(over.lastChild);
670 over.appendChild(domfrag);
673 function showObject(obj){
674 if(ns4)obj.visibility="show";
675 else if(ie4)obj.visibility="visible";
676 else if(ns6)obj.style.visibility="visible";
678 function hideObject(obj){
679 if(ns4)obj.visibility="hide";
680 else if(ie4)obj.visibility="hidden";
681 else if(ns6)obj.style.visibility="hidden";
682 if(otimerid > 0)clearTimeout(otimerid);
683 if(odelayid > 0)clearTimeout(odelayid);
688 function repositionTo(obj,xL,yL){
693 obj.style.left=xL + "px";
694 obj.style.top=yL+ "px";
697 function opt_FRAME(frm){
698 oframe=compatibleframe(frm)? frm : ol_frame;
699 if((ns4)||(ie4 ||(ns6))){
700 if(ns4)over=oframe.document.overDiv;
701 if(ie4)over=oframe.overDiv.style;
702 if(ns6)over=oframe.document.getElementById("overDiv");
706 function opt_FUNCTION(callme){