1 //\//////////////////////////////////////////////////////////////////////////////////
\r
2 //\ overLIB 3.51 -- This notice must remain untouched at all times.
\r
3 //\ Copyright Erik Bosrup 1998-2002. All rights reserved.
\r
5 //\ By Erik Bosrup (erik@bosrup.com). Last modified 2002-11-01.
\r
6 //\ Portions by Dan Steinman (dansteinman.com). Additions by other people are
\r
7 //\ listed on the overLIB homepage.
\r
9 //\ Get the latest version at http://www.bosrup.com/web/overlib/
\r
11 //\ This script is published under an open source license. Please read the license
\r
12 //\ agreement online at: http://www.bosrup.com/web/overlib/license.html
\r
13 //\ If you have questions regarding the license please contact erik@bosrup.com.
\r
15 //\ This script library was originally created for personal use. By request it has
\r
16 //\ later been made public. This is free software. Do not sell this as your own
\r
17 //\ work, or remove this copyright notice. For full details on copying or changing
\r
18 //\ this script please read the license agreement at the link above.
\r
20 //\ Please give credit on sites that use overLIB and submit changes of the script
\r
21 //\ so other people can use them as well. This script is free to use, don't abuse.
\r
22 //\//////////////////////////////////////////////////////////////////////////////////
\r
26 ////////////////////////////////////////////////////////////////////////////////////
\r
28 // Don't touch these. :)
\r
29 ////////////////////////////////////////////////////////////////////////////////////
\r
45 var CLOSECOLOR = 16;
\r
49 var AUTOSTATUS = 20;
\r
50 var AUTOSTATUSCAP = 21;
\r
57 var FGBACKGROUND = 28;
\r
58 var BGBACKGROUND = 29;
\r
59 var PADX = 30; // PADX2 out
\r
60 var PADY = 31; // PADY2 out
\r
66 var CAPTIONFONT = 39;
\r
69 var CAPTIONSIZE = 42;
\r
77 var CLOSECLICK = 50;
\r
83 var TEXTFONTCLASS = 56;
\r
84 var CAPTIONFONTCLASS = 57;
\r
85 var CLOSEFONTCLASS = 58;
\r
87 var HEIGHTUNIT = 60;
\r
89 var TEXTSIZEUNIT = 62;
\r
90 var TEXTDECORATION = 63;
\r
92 var TEXTWEIGHT = 65;
\r
93 var CAPTIONSIZEUNIT = 66;
\r
94 var CAPTIONDECORATION = 67;
\r
95 var CAPTIONSTYLE = 68;
\r
96 var CAPTIONWEIGHT = 69;
\r
97 var CLOSESIZEUNIT = 70;
\r
98 var CLOSEDECORATION = 71;
\r
99 var CLOSESTYLE = 72;
\r
100 var CLOSEWEIGHT = 73;
\r
103 ////////////////////////////////////////////////////////////////////////////////////
\r
104 // DEFAULT CONFIGURATION
\r
105 // You don't have to change anything here if you don't want to. All of this can be
\r
106 // changed on your html page or through an overLIB call.
\r
107 ////////////////////////////////////////////////////////////////////////////////////
\r
109 // Main background color (the large area)
\r
110 // Usually a bright color (white, yellow etc)
\r
111 if (typeof ol_fgcolor == 'undefined') { var ol_fgcolor = "#CCCCFF";}
\r
113 // Border color and color of caption
\r
114 // Usually a dark color (black, brown etc)
\r
115 if (typeof ol_bgcolor == 'undefined') { var ol_bgcolor = "#333399";}
\r
118 // Usually a dark color
\r
119 if (typeof ol_textcolor == 'undefined') { var ol_textcolor = "#000000";}
\r
121 // Color of the caption text
\r
122 // Usually a bright color
\r
123 if (typeof ol_capcolor == 'undefined') { var ol_capcolor = "#FFFFFF";}
\r
125 // Color of "Close" when using Sticky
\r
126 // Usually a semi-bright color
\r
127 if (typeof ol_closecolor == 'undefined') { var ol_closecolor = "#9999FF";}
\r
129 // Font face for the main text
\r
130 if (typeof ol_textfont == 'undefined') { var ol_textfont = "Verdana,Arial,Helvetica";}
\r
132 // Font face for the caption
\r
133 if (typeof ol_captionfont == 'undefined') { var ol_captionfont = "Verdana,Arial,Helvetica";}
\r
135 // Font face for the close text
\r
136 if (typeof ol_closefont == 'undefined') { var ol_closefont = "Verdana,Arial,Helvetica";}
\r
138 // Font size for the main text
\r
139 // When using CSS this will be very small.
\r
140 if (typeof ol_textsize == 'undefined') { var ol_textsize = "1";}
\r
142 // Font size for the caption
\r
143 // When using CSS this will be very small.
\r
144 if (typeof ol_captionsize == 'undefined') { var ol_captionsize = "1";}
\r
146 // Font size for the close text
\r
147 // When using CSS this will be very small.
\r
148 if (typeof ol_closesize == 'undefined') { var ol_closesize = "1";}
\r
150 // Width of the popups in pixels
\r
151 // 100-300 pixels is typical
\r
152 if (typeof ol_width == 'undefined') { var ol_width = "200";}
\r
154 // How thick the ol_border should be in pixels
\r
155 // 1-3 pixels is typical
\r
156 if (typeof ol_border == 'undefined') { var ol_border = "1";}
\r
158 // How many pixels to the right/left of the cursor to show the popup
\r
159 // Values between 3 and 12 are best
\r
160 if (typeof ol_offsetx == 'undefined') { var ol_offsetx = 10;}
\r
162 // How many pixels to the below the cursor to show the popup
\r
163 // Values between 3 and 12 are best
\r
164 if (typeof ol_offsety == 'undefined') { var ol_offsety = 10;}
\r
166 // Default text for popups
\r
167 // Should you forget to pass something to overLIB this will be displayed.
\r
168 if (typeof ol_text == 'undefined') { var ol_text = "Default Text"; }
\r
171 // You should leave this blank or you will have problems making non caps popups.
\r
172 if (typeof ol_cap == 'undefined') { var ol_cap = ""; }
\r
174 // Decides if sticky popups are default.
\r
175 // 0 for non, 1 for stickies.
\r
176 if (typeof ol_sticky == 'undefined') { var ol_sticky = 0; }
\r
178 // Default background image. Better left empty unless you always want one.
\r
179 if (typeof ol_background == 'undefined') { var ol_background = ""; }
\r
181 // Text for the closing sticky popups.
\r
182 // Normal is "Close".
\r
183 if (typeof ol_close == 'undefined') { var ol_close = "Close"; }
\r
185 // Default vertical alignment for popups.
\r
186 // It's best to leave RIGHT here. Other options are LEFT and CENTER.
\r
187 if (typeof ol_hpos == 'undefined') { var ol_hpos = RIGHT; }
\r
189 // Default status bar text when a popup is invoked.
\r
190 if (typeof ol_status == 'undefined') { var ol_status = ""; }
\r
192 // If the status bar automatically should load either text or caption.
\r
193 // 0=nothing, 1=text, 2=caption
\r
194 if (typeof ol_autostatus == 'undefined') { var ol_autostatus = 0; }
\r
196 // Default height for popup. Often best left alone.
\r
197 if (typeof ol_height == 'undefined') { var ol_height = -1; }
\r
199 // Horizontal grid spacing that popups will snap to.
\r
200 // 0 makes no grid, anything else will cause a snap to that grid spacing.
\r
201 if (typeof ol_snapx == 'undefined') { var ol_snapx = 0; }
\r
203 // Vertical grid spacing that popups will snap to.
\r
204 // 0 makes no grid, andthing else will cause a snap to that grid spacing.
\r
205 if (typeof ol_snapy == 'undefined') { var ol_snapy = 0; }
\r
207 // Sets the popups horizontal position to a fixed column.
\r
208 // Anything above -1 will cause fixed position.
\r
209 if (typeof ol_fixx == 'undefined') { var ol_fixx = -1; }
\r
211 // Sets the popups vertical position to a fixed row.
\r
212 // Anything above -1 will cause fixed position.
\r
213 if (typeof ol_fixy == 'undefined') { var ol_fixy = -1; }
\r
215 // Background image for the popups inside.
\r
216 if (typeof ol_fgbackground == 'undefined') { var ol_fgbackground = ""; }
\r
218 // Background image for the popups frame.
\r
219 if (typeof ol_bgbackground == 'undefined') { var ol_bgbackground = ""; }
\r
221 // How much horizontal left padding text should get by default when BACKGROUND is used.
\r
222 if (typeof ol_padxl == 'undefined') { var ol_padxl = 1; }
\r
224 // How much horizontal right padding text should get by default when BACKGROUND is used.
\r
225 if (typeof ol_padxr == 'undefined') { var ol_padxr = 1; }
\r
227 // How much vertical top padding text should get by default when BACKGROUND is used.
\r
228 if (typeof ol_padyt == 'undefined') { var ol_padyt = 1; }
\r
230 // How much vertical bottom padding text should get by default when BACKGROUND is used.
\r
231 if (typeof ol_padyb == 'undefined') { var ol_padyb = 1; }
\r
233 // If the user by default must supply all html for complete popup control.
\r
234 // Set to 1 to activate, 0 otherwise.
\r
235 if (typeof ol_fullhtml == 'undefined') { var ol_fullhtml = 0; }
\r
237 // Default vertical position of the popup. Default should normally be BELOW.
\r
238 // ABOVE only works when HEIGHT is defined.
\r
239 if (typeof ol_vpos == 'undefined') { var ol_vpos = BELOW; }
\r
241 // Default height of popup to use when placing the popup above the cursor.
\r
242 if (typeof ol_aboveheight == 'undefined') { var ol_aboveheight = 0; }
\r
244 // Default icon to place next to the popups caption.
\r
245 if (typeof ol_capicon == 'undefined') { var ol_capicon = ""; }
\r
247 // Default frame. We default to current frame if there is no frame defined.
\r
248 if (typeof ol_frame == 'undefined') { var ol_frame = self; }
\r
250 // Default timeout. By default there is no timeout.
\r
251 if (typeof ol_timeout == 'undefined') { var ol_timeout = 0; }
\r
253 // Default javascript funktion. By default there is none.
\r
254 if (typeof ol_function == 'undefined') { var ol_function = null; }
\r
256 // Default timeout. By default there is no timeout.
\r
257 if (typeof ol_delay == 'undefined') { var ol_delay = 0; }
\r
259 // If overLIB should decide the horizontal placement.
\r
260 if (typeof ol_hauto == 'undefined') { var ol_hauto = 0; }
\r
262 // If overLIB should decide the vertical placement.
\r
263 if (typeof ol_vauto == 'undefined') { var ol_vauto = 0; }
\r
267 // If the user has to click to close stickies.
\r
268 if (typeof ol_closeclick == 'undefined') { var ol_closeclick = 0; }
\r
270 // This variable determines if you want to use CSS or inline definitions.
\r
271 // CSSOFF=no CSS CSSSTYLE=use CSS inline styles CSSCLASS=use classes
\r
272 if (typeof ol_css == 'undefined') { var ol_css = CSSOFF; }
\r
274 // Main background class (eqv of fgcolor)
\r
275 // This is only used if CSS is set to use classes (ol_css = CSSCLASS)
\r
276 if (typeof ol_fgclass == 'undefined') { var ol_fgclass = ""; }
\r
278 // Frame background class (eqv of bgcolor)
\r
279 // This is only used if CSS is set to use classes (ol_css = CSSCLASS)
\r
280 if (typeof ol_bgclass == 'undefined') { var ol_bgclass = ""; }
\r
283 // This is only used if CSS is set to use classes (ol_css = CSSCLASS)
\r
284 if (typeof ol_textfontclass == 'undefined') { var ol_textfontclass = ""; }
\r
286 // Caption font class
\r
287 // This is only used if CSS is set to use classes (ol_css = CSSCLASS)
\r
288 if (typeof ol_captionfontclass == 'undefined') { var ol_captionfontclass = ""; }
\r
290 // Close font class
\r
291 // This is only used if CSS is set to use classes (ol_css = CSSCLASS)
\r
292 if (typeof ol_closefontclass == 'undefined') { var ol_closefontclass = ""; }
\r
294 // Unit to be used for the text padding above
\r
295 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
296 // Options include "px", "%", "in", "cm"
\r
297 if (typeof ol_padunit == 'undefined') { var ol_padunit = "px";}
\r
299 // Unit to be used for height of popup
\r
300 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
301 // Options include "px", "%", "in", "cm"
\r
302 if (typeof ol_heightunit == 'undefined') { var ol_heightunit = "px";}
\r
304 // Unit to be used for width of popup
\r
305 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
306 // Options include "px", "%", "in", "cm"
\r
307 if (typeof ol_widthunit == 'undefined') { var ol_widthunit = "px";}
\r
309 // Font size unit for the main text
\r
310 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
311 if (typeof ol_textsizeunit == 'undefined') { var ol_textsizeunit = "px";}
\r
313 // Decoration of the main text ("none", "underline", "line-through" or "blink")
\r
314 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
315 if (typeof ol_textdecoration == 'undefined') { var ol_textdecoration = "none";}
\r
317 // Font style of the main text ("normal" or "italic")
\r
318 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
319 if (typeof ol_textstyle == 'undefined') { var ol_textstyle = "normal";}
\r
321 // Font weight of the main text ("normal", "bold", "bolder", "lighter", ect.)
\r
322 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
323 if (typeof ol_textweight == 'undefined') { var ol_textweight = "normal";}
\r
325 // Font size unit for the caption
\r
326 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
327 if (typeof ol_captionsizeunit == 'undefined') { var ol_captionsizeunit = "px";}
\r
329 // Decoration of the caption ("none", "underline", "line-through" or "blink")
\r
330 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
331 if (typeof ol_captiondecoration == 'undefined') { var ol_captiondecoration = "none";}
\r
333 // Font style of the caption ("normal" or "italic")
\r
334 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
335 if (typeof ol_captionstyle == 'undefined') { var ol_captionstyle = "normal";}
\r
337 // Font weight of the caption ("normal", "bold", "bolder", "lighter", ect.)
\r
338 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
339 if (typeof ol_captionweight == 'undefined') { var ol_captionweight = "bold";}
\r
341 // Font size unit for the close text
\r
342 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
343 if (typeof ol_closesizeunit == 'undefined') { var ol_closesizeunit = "px";}
\r
345 // Decoration of the close text ("none", "underline", "line-through" or "blink")
\r
346 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
347 if (typeof ol_closedecoration == 'undefined') { var ol_closedecoration = "none";}
\r
349 // Font style of the close text ("normal" or "italic")
\r
350 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
351 if (typeof ol_closestyle == 'undefined') { var ol_closestyle = "normal";}
\r
353 // Font weight of the close text ("normal", "bold", "bolder", "lighter", ect.)
\r
354 // Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
\r
355 if (typeof ol_closeweight == 'undefined') { var ol_closeweight = "normal";}
\r
359 ////////////////////////////////////////////////////////////////////////////////////
\r
360 // ARRAY CONFIGURATION
\r
361 // You don't have to change anything here if you don't want to. The following
\r
362 // arrays can be filled with text and html if you don't wish to pass it from
\r
364 ////////////////////////////////////////////////////////////////////////////////////
\r
366 // Array with texts.
\r
367 if (typeof ol_texts == 'undefined') { var ol_texts = new Array("Text 0", "Text 1"); }
\r
369 // Array with captions.
\r
370 if (typeof ol_caps == 'undefined') { var ol_caps = new Array("Caption 0", "Caption 1"); }
\r
373 ////////////////////////////////////////////////////////////////////////////////////
\r
374 // END CONFIGURATION
\r
375 // Don't change anything below this line, all configuration is above.
\r
376 ////////////////////////////////////////////////////////////////////////////////////
\r
384 ////////////////////////////////////////////////////////////////////////////////////
\r
386 ////////////////////////////////////////////////////////////////////////////////////
\r
388 // Runtime variables init. Used for runtime only, don't change, not for config!
\r
392 var o3_background = "";
\r
393 var o3_close = "Close";
\r
394 var o3_hpos = RIGHT;
\r
395 var o3_offsetx = 2;
\r
396 var o3_offsety = 2;
\r
397 var o3_fgcolor = "";
\r
398 var o3_bgcolor = "";
\r
399 var o3_textcolor = "";
\r
400 var o3_capcolor = "";
\r
401 var o3_closecolor = "";
\r
402 var o3_width = 100;
\r
404 var o3_status = "";
\r
405 var o3_autostatus = 0;
\r
406 var o3_height = -1;
\r
411 var o3_fgbackground = "";
\r
412 var o3_bgbackground = "";
\r
417 var o3_fullhtml = 0;
\r
418 var o3_vpos = BELOW;
\r
419 var o3_aboveheight = 0;
\r
420 var o3_capicon = "";
\r
421 var o3_textfont = "Verdana,Arial,Helvetica";
\r
422 var o3_captionfont = "Verdana,Arial,Helvetica";
\r
423 var o3_closefont = "Verdana,Arial,Helvetica";
\r
424 var o3_textsize = "1";
\r
425 var o3_captionsize = "1";
\r
426 var o3_closesize = "1";
\r
427 var o3_frame = self;
\r
428 var o3_timeout = 0;
\r
429 var o3_timerid = 0;
\r
430 var o3_allowmove = 0;
\r
431 var o3_function = null;
\r
433 var o3_delayid = 0;
\r
436 var o3_closeclick = 0;
\r
438 var o3_css = CSSOFF;
\r
439 var o3_fgclass = "";
\r
440 var o3_bgclass = "";
\r
441 var o3_textfontclass = "";
\r
442 var o3_captionfontclass = "";
\r
443 var o3_closefontclass = "";
\r
444 var o3_padunit = "px";
\r
445 var o3_heightunit = "px";
\r
446 var o3_widthunit = "px";
\r
447 var o3_textsizeunit = "px";
\r
448 var o3_textdecoration = "";
\r
449 var o3_textstyle = "";
\r
450 var o3_textweight = "";
\r
451 var o3_captionsizeunit = "px";
\r
452 var o3_captiondecoration = "";
\r
453 var o3_captionstyle = "";
\r
454 var o3_captionweight = "";
\r
455 var o3_closesizeunit = "px";
\r
456 var o3_closedecoration = "";
\r
457 var o3_closestyle = "";
\r
458 var o3_closeweight = "";
\r
462 // Display state variables
\r
466 var o3_showingsticky = 0;
\r
467 var o3_removecounter = 0;
\r
473 // Decide browser version
\r
474 var ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4);
\r
475 var ns6 = (document.getElementById)? true:false;
\r
476 var ie4 = (document.all)? true:false;
\r
477 if (ie4) var docRoot = 'document.body';
\r
480 var oW = window.innerWidth;
\r
481 var oH = window.innerHeight;
\r
482 window.onresize = function () {if (oW!=window.innerWidth||oH!=window.innerHeight) location.reload();}
\r
486 // Microsoft Stupidity Check(tm).
\r
488 if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
\r
489 if(document.compatMode && document.compatMode == 'CSS1Compat') docRoot = 'document.documentElement';
\r
498 // Capture events, alt. diffuses the overlib function.
\r
499 if ( (ns4) || (ie4) || (ns6)) {
\r
500 document.onmousemove = mouseMove
\r
501 if (ns4) document.captureEvents(Event.MOUSEMOVE)
\r
503 overlib = no_overlib;
\r
509 // Fake function for 3.0 users.
\r
510 function no_overlib() {
\r
516 ////////////////////////////////////////////////////////////////////////////////////
\r
517 // PUBLIC FUNCTIONS
\r
518 ////////////////////////////////////////////////////////////////////////////////////
\r
521 // overlib(arg0, ..., argN)
\r
522 // Loads parameters into global runtime variables.
\r
523 function overlib() {
\r
525 // Load defaults to runtime.
\r
528 o3_sticky = ol_sticky;
\r
529 o3_background = ol_background;
\r
530 o3_close = ol_close;
\r
532 o3_offsetx = ol_offsetx;
\r
533 o3_offsety = ol_offsety;
\r
534 o3_fgcolor = ol_fgcolor;
\r
535 o3_bgcolor = ol_bgcolor;
\r
536 o3_textcolor = ol_textcolor;
\r
537 o3_capcolor = ol_capcolor;
\r
538 o3_closecolor = ol_closecolor;
\r
539 o3_width = ol_width;
\r
540 o3_border = ol_border;
\r
541 o3_status = ol_status;
\r
542 o3_autostatus = ol_autostatus;
\r
543 o3_height = ol_height;
\r
544 o3_snapx = ol_snapx;
\r
545 o3_snapy = ol_snapy;
\r
548 o3_fgbackground = ol_fgbackground;
\r
549 o3_bgbackground = ol_bgbackground;
\r
550 o3_padxl = ol_padxl;
\r
551 o3_padxr = ol_padxr;
\r
552 o3_padyt = ol_padyt;
\r
553 o3_padyb = ol_padyb;
\r
554 o3_fullhtml = ol_fullhtml;
\r
556 o3_aboveheight = ol_aboveheight;
\r
557 o3_capicon = ol_capicon;
\r
558 o3_textfont = ol_textfont;
\r
559 o3_captionfont = ol_captionfont;
\r
560 o3_closefont = ol_closefont;
\r
561 o3_textsize = ol_textsize;
\r
562 o3_captionsize = ol_captionsize;
\r
563 o3_closesize = ol_closesize;
\r
564 o3_timeout = ol_timeout;
\r
565 o3_function = ol_function;
\r
566 o3_delay = ol_delay;
\r
567 o3_hauto = ol_hauto;
\r
568 o3_vauto = ol_vauto;
\r
569 o3_closeclick = ol_closeclick;
\r
572 o3_fgclass = ol_fgclass;
\r
573 o3_bgclass = ol_bgclass;
\r
574 o3_textfontclass = ol_textfontclass;
\r
575 o3_captionfontclass = ol_captionfontclass;
\r
576 o3_closefontclass = ol_closefontclass;
\r
577 o3_padunit = ol_padunit;
\r
578 o3_heightunit = ol_heightunit;
\r
579 o3_widthunit = ol_widthunit;
\r
580 o3_textsizeunit = ol_textsizeunit;
\r
581 o3_textdecoration = ol_textdecoration;
\r
582 o3_textstyle = ol_textstyle;
\r
583 o3_textweight = ol_textweight;
\r
584 o3_captionsizeunit = ol_captionsizeunit;
\r
585 o3_captiondecoration = ol_captiondecoration;
\r
586 o3_captionstyle = ol_captionstyle;
\r
587 o3_captionweight = ol_captionweight;
\r
588 o3_closesizeunit = ol_closesizeunit;
\r
589 o3_closedecoration = ol_closedecoration;
\r
590 o3_closestyle = ol_closestyle;
\r
591 o3_closeweight = ol_closeweight;
\r
595 // Special for frame support, over must be reset...
\r
596 if ( (ns4) || (ie4) || (ns6) ) {
\r
597 if (over) cClick();
\r
598 o3_frame = ol_frame;
\r
599 if (ns4) over = o3_frame.document.overDiv
\r
600 if (ie4) over = o3_frame.overDiv.style
\r
601 if (ns6) over = o3_frame.document.getElementById("overDiv");
\r
605 // What the next argument is expected to be.
\r
606 var parsemode = -1, udf, v = null;
\r
608 var ar = arguments;
\r
609 udf = (!ar.length ? 1 : 0);
\r
611 for (i = 0; i < ar.length; i++) {
\r
613 if (parsemode < 0) {
\r
614 // Arg is maintext, unless its a PARAMETER
\r
615 if (typeof ar[i] == 'number') {
\r
616 udf = (ar[i] == FUNCTION ? 0 : 1);
\r
624 // Note: NS4 doesn't like switch cases with vars.
\r
625 if (ar[i] == INARRAY) { udf = 0; o3_text = ol_texts[ar[++i]]; continue; }
\r
626 if (ar[i] == CAPARRAY) { o3_cap = ol_caps[ar[++i]]; continue; }
\r
627 if (ar[i] == STICKY) { o3_sticky = 1; continue; }
\r
628 if (ar[i] == BACKGROUND) { o3_background = ar[++i]; continue; }
\r
629 if (ar[i] == NOCLOSE) { o3_close = ""; continue; }
\r
630 if (ar[i] == CAPTION) { o3_cap = ar[++i]; continue; }
\r
631 if (ar[i] == CENTER || ar[i] == LEFT || ar[i] == RIGHT) { o3_hpos = ar[i]; continue; }
\r
632 if (ar[i] == OFFSETX) { o3_offsetx = ar[++i]; continue; }
\r
633 if (ar[i] == OFFSETY) { o3_offsety = ar[++i]; continue; }
\r
634 if (ar[i] == FGCOLOR) { o3_fgcolor = ar[++i]; continue; }
\r
635 if (ar[i] == BGCOLOR) { o3_bgcolor = ar[++i]; continue; }
\r
636 if (ar[i] == TEXTCOLOR) { o3_textcolor = ar[++i]; continue; }
\r
637 if (ar[i] == CAPCOLOR) { o3_capcolor = ar[++i]; continue; }
\r
638 if (ar[i] == CLOSECOLOR) { o3_closecolor = ar[++i]; continue; }
\r
639 if (ar[i] == WIDTH) { o3_width = ar[++i]; continue; }
\r
640 if (ar[i] == BORDER) { o3_border = ar[++i]; continue; }
\r
641 if (ar[i] == STATUS) { o3_status = ar[++i]; continue; }
\r
642 if (ar[i] == AUTOSTATUS) { o3_autostatus = (o3_autostatus == 1) ? 0 : 1; continue; }
\r
643 if (ar[i] == AUTOSTATUSCAP) { o3_autostatus = (o3_autostatus == 2) ? 0 : 2; continue; }
\r
644 if (ar[i] == HEIGHT) { o3_height = ar[++i]; o3_aboveheight = ar[i]; continue; } // Same param again.
\r
645 if (ar[i] == CLOSETEXT) { o3_close = ar[++i]; continue; }
\r
646 if (ar[i] == SNAPX) { o3_snapx = ar[++i]; continue; }
\r
647 if (ar[i] == SNAPY) { o3_snapy = ar[++i]; continue; }
\r
648 if (ar[i] == FIXX) { o3_fixx = ar[++i]; continue; }
\r
649 if (ar[i] == FIXY) { o3_fixy = ar[++i]; continue; }
\r
650 if (ar[i] == FGBACKGROUND) { o3_fgbackground = ar[++i]; continue; }
\r
651 if (ar[i] == BGBACKGROUND) { o3_bgbackground = ar[++i]; continue; }
\r
652 if (ar[i] == PADX) { o3_padxl = ar[++i]; o3_padxr = ar[++i]; continue; }
\r
653 if (ar[i] == PADY) { o3_padyt = ar[++i]; o3_padyb = ar[++i]; continue; }
\r
654 if (ar[i] == FULLHTML) { o3_fullhtml = 1; continue; }
\r
655 if (ar[i] == BELOW || ar[i] == ABOVE) { o3_vpos = ar[i]; continue; }
\r
656 if (ar[i] == CAPICON) { o3_capicon = ar[++i]; continue; }
\r
657 if (ar[i] == TEXTFONT) { o3_textfont = ar[++i]; continue; }
\r
658 if (ar[i] == CAPTIONFONT) { o3_captionfont = ar[++i]; continue; }
\r
659 if (ar[i] == CLOSEFONT) { o3_closefont = ar[++i]; continue; }
\r
660 if (ar[i] == TEXTSIZE) { o3_textsize = ar[++i]; continue; }
\r
661 if (ar[i] == CAPTIONSIZE) { o3_captionsize = ar[++i]; continue; }
\r
662 if (ar[i] == CLOSESIZE) { o3_closesize = ar[++i]; continue; }
\r
663 if (ar[i] == FRAME) { opt_FRAME(ar[++i]); continue; }
\r
664 if (ar[i] == TIMEOUT) { o3_timeout = ar[++i]; continue; }
\r
665 if (ar[i] == FUNCTION) { udf = 0; if (typeof ar[i+1] != 'number') v = ar[++i]; opt_FUNCTION(v); continue; }
\r
666 if (ar[i] == DELAY) { o3_delay = ar[++i]; continue; }
\r
667 if (ar[i] == HAUTO) { o3_hauto = (o3_hauto == 0) ? 1 : 0; continue; }
\r
668 if (ar[i] == VAUTO) { o3_vauto = (o3_vauto == 0) ? 1 : 0; continue; }
\r
669 if (ar[i] == CLOSECLICK) { o3_closeclick = (o3_closeclick == 0) ? 1 : 0; continue; }
\r
670 if (ar[i] == CSSOFF) { o3_css = ar[i]; continue; }
\r
671 if (ar[i] == CSSSTYLE) { o3_css = ar[i]; continue; }
\r
672 if (ar[i] == CSSCLASS) { o3_css = ar[i]; continue; }
\r
673 if (ar[i] == FGCLASS) { o3_fgclass = ar[++i]; continue; }
\r
674 if (ar[i] == BGCLASS) { o3_bgclass = ar[++i]; continue; }
\r
675 if (ar[i] == TEXTFONTCLASS) { o3_textfontclass = ar[++i]; continue; }
\r
676 if (ar[i] == CAPTIONFONTCLASS) { o3_captionfontclass = ar[++i]; continue; }
\r
677 if (ar[i] == CLOSEFONTCLASS) { o3_closefontclass = ar[++i]; continue; }
\r
678 if (ar[i] == PADUNIT) { o3_padunit = ar[++i]; continue; }
\r
679 if (ar[i] == HEIGHTUNIT) { o3_heightunit = ar[++i]; continue; }
\r
680 if (ar[i] == WIDTHUNIT) { o3_widthunit = ar[++i]; continue; }
\r
681 if (ar[i] == TEXTSIZEUNIT) { o3_textsizeunit = ar[++i]; continue; }
\r
682 if (ar[i] == TEXTDECORATION) { o3_textdecoration = ar[++i]; continue; }
\r
683 if (ar[i] == TEXTSTYLE) { o3_textstyle = ar[++i]; continue; }
\r
684 if (ar[i] == TEXTWEIGHT) { o3_textweight = ar[++i]; continue; }
\r
685 if (ar[i] == CAPTIONSIZEUNIT) { o3_captionsizeunit = ar[++i]; continue; }
\r
686 if (ar[i] == CAPTIONDECORATION) { o3_captiondecoration = ar[++i]; continue; }
\r
687 if (ar[i] == CAPTIONSTYLE) { o3_captionstyle = ar[++i]; continue; }
\r
688 if (ar[i] == CAPTIONWEIGHT) { o3_captionweight = ar[++i]; continue; }
\r
689 if (ar[i] == CLOSESIZEUNIT) { o3_closesizeunit = ar[++i]; continue; }
\r
690 if (ar[i] == CLOSEDECORATION) { o3_closedecoration = ar[++i]; continue; }
\r
691 if (ar[i] == CLOSESTYLE) { o3_closestyle = ar[++i]; continue; }
\r
692 if (ar[i] == CLOSEWEIGHT) { o3_closeweight = ar[++i]; continue; }
\r
695 if (udf && o3_function) o3_text = o3_function();
\r
697 if (o3_delay == 0) {
\r
698 return overlib351();
\r
700 o3_delayid = setTimeout("overlib351()", o3_delay);
\r
707 // Clears popups if appropriate
\r
709 if ( o3_removecounter >= 1 ) { o3_showingsticky = 0 };
\r
710 if ( (ns4) || (ie4) || (ns6) ) {
\r
711 if ( o3_showingsticky == 0 ) {
\r
713 if (over != null) hideObject(over);
\r
715 o3_removecounter++;
\r
728 ////////////////////////////////////////////////////////////////////////////////////
\r
729 // OVERLIB 3.51 FUNCTION
\r
730 ////////////////////////////////////////////////////////////////////////////////////
\r
733 // This function decides what it is we want to display and how we want it done.
\r
734 function overlib351() {
\r
736 // Make layer content
\r
739 if (o3_background != "" || o3_fullhtml) {
\r
740 // Use background instead of box.
\r
741 layerhtml = ol_content_background(o3_text, o3_background, o3_fullhtml);
\r
743 // They want a popup box.
\r
745 // Prepare popup background
\r
746 if (o3_fgbackground != "" && o3_css == CSSOFF) {
\r
747 o3_fgbackground = "BACKGROUND=\""+o3_fgbackground+"\"";
\r
749 if (o3_bgbackground != "" && o3_css == CSSOFF) {
\r
750 o3_bgbackground = "BACKGROUND=\""+o3_bgbackground+"\"";
\r
753 // Prepare popup colors
\r
754 if (o3_fgcolor != "" && o3_css == CSSOFF) {
\r
755 o3_fgcolor = "BGCOLOR=\""+o3_fgcolor+"\"";
\r
757 if (o3_bgcolor != "" && o3_css == CSSOFF) {
\r
758 o3_bgcolor = "BGCOLOR=\""+o3_bgcolor+"\"";
\r
761 // Prepare popup height
\r
762 if (o3_height > 0 && o3_css == CSSOFF) {
\r
763 o3_height = "HEIGHT=" + o3_height;
\r
768 // Decide which kinda box.
\r
769 if (o3_cap == "") {
\r
771 layerhtml = ol_content_simple(o3_text);
\r
776 layerhtml = ol_content_caption(o3_text, o3_cap, o3_close);
\r
779 layerhtml = ol_content_caption(o3_text, o3_cap, "");
\r
784 // We want it to stick!
\r
786 if (o3_timerid > 0) {
\r
787 clearTimeout(o3_timerid);
\r
790 o3_showingsticky = 1;
\r
791 o3_removecounter = 0;
\r
795 layerWrite(layerhtml);
\r
797 // Prepare status bar
\r
798 if (o3_autostatus > 0) {
\r
799 o3_status = o3_text;
\r
800 if (o3_autostatus > 1) {
\r
801 o3_status = o3_cap;
\r
805 // When placing the layer the first time, even stickies may be moved.
\r
808 // Initiate a timer for timeout
\r
809 if (o3_timeout > 0) {
\r
810 if (o3_timerid > 0) clearTimeout(o3_timerid);
\r
811 o3_timerid = setTimeout("cClick()", o3_timeout);
\r
817 // Stickies should stay where they are.
\r
818 if (o3_sticky) o3_allowmove = 0;
\r
820 return (o3_status != '');
\r
825 ////////////////////////////////////////////////////////////////////////////////////
\r
826 // LAYER GENERATION FUNCTIONS
\r
827 ////////////////////////////////////////////////////////////////////////////////////
\r
829 // Makes simple table without caption
\r
830 function ol_content_simple(text) {
\r
831 if (o3_css == CSSCLASS) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 class=\""+o3_bgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+o3_fgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+o3_textfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
\r
832 if (o3_css == CSSSTYLE) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 style=\"background-color: "+o3_bgcolor+"; height: "+o3_height+o3_heightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+o3_fgcolor+"; background-color: "+o3_fgcolor+"; height: "+o3_height+o3_heightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+o3_textfont+"; color: "+o3_textcolor+"; font-size: "+o3_textsize+o3_textsizeunit+"; text-decoration: "+o3_textdecoration+"; font-weight: "+o3_textweight+"; font-style:"+o3_textstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
\r
833 if (o3_css == CSSOFF) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 "+o3_bgcolor+" "+o3_height+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+o3_fgcolor+" "+o3_fgbackground+" "+o3_height+"><TR><TD VALIGN=TOP><FONT FACE=\""+o3_textfont+"\" COLOR=\""+o3_textcolor+"\" SIZE=\""+o3_textsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
\r
835 set_background("");
\r
842 // Makes table with caption and optional close link
\r
843 function ol_content_caption(text, title, close) {
\r
845 closeevent = "onMouseOver";
\r
847 if (o3_closeclick == 1) closeevent = "onClick";
\r
848 if (o3_capicon != "") o3_capicon = "<IMG SRC=\""+o3_capicon+"\"> ";
\r
851 if (o3_css == CSSCLASS) closing = "<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\" class=\""+o3_closefontclass+"\">"+close+"</A></TD>";
\r
852 if (o3_css == CSSSTYLE) closing = "<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\" style=\"color: "+o3_closecolor+"; font-family: "+o3_closefont+"; font-size: "+o3_closesize+o3_closesizeunit+"; text-decoration: "+o3_closedecoration+"; font-weight: "+o3_closeweight+"; font-style:"+o3_closestyle+";\">"+close+"</A></TD>";
\r
853 if (o3_css == CSSOFF) closing = "<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\"><FONT COLOR=\""+o3_closecolor+"\" FACE=\""+o3_closefont+"\" SIZE=\""+o3_closesize+"\">"+close+"</FONT></A></TD>";
\r
856 if (o3_css == CSSCLASS) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 class=\""+o3_bgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT class=\""+o3_captionfontclass+"\">"+o3_capicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+o3_fgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+o3_textfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
\r
857 if (o3_css == CSSSTYLE) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 style=\"background-color: "+o3_bgcolor+"; background-image: url("+o3_bgbackground+"); height: "+o3_height+o3_heightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT style=\"font-family: "+o3_captionfont+"; color: "+o3_capcolor+"; font-size: "+o3_captionsize+o3_captionsizeunit+"; font-weight: "+o3_captionweight+"; font-style: "+o3_captionstyle+"; text-decoration: " + o3_captiondecoration + ";\">"+o3_capicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+o3_fgcolor+"; background-color: "+o3_fgcolor+"; height: "+o3_height+o3_heightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+o3_textfont+"; color: "+o3_textcolor+"; font-size: "+o3_textsize+o3_textsizeunit+"; text-decoration: "+o3_textdecoration+"; font-weight: "+o3_textweight+"; font-style:"+o3_textstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
\r
858 if (o3_css == CSSOFF) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 "+o3_bgcolor+" "+o3_bgbackground+" "+o3_height+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+o3_capcolor+"\" FACE=\""+o3_captionfont+"\" SIZE=\""+o3_captionsize+"\">"+o3_capicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+o3_fgcolor+" "+o3_fgbackground+" "+o3_height+"><TR><TD VALIGN=TOP><FONT COLOR=\""+o3_textcolor+"\" FACE=\""+o3_textfont+"\" SIZE=\""+o3_textsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
\r
860 set_background("");
\r
864 // Sets the background picture, padding and lots more. :)
\r
865 function ol_content_background(text, picture, hasfullhtml) {
\r
871 pU = (o3_padunit == '%' ? '%' : '');
\r
872 hU = (o3_heightunit == '%' ? '%' : '');
\r
873 wU = (o3_widthunit == '%' ? '%' : '');
\r
875 if (o3_css == CSSCLASS) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+o3_height+"><TR><TD COLSPAN=3 HEIGHT="+o3_padyt+"></TD></TR><TR><TD WIDTH="+o3_padxl+"></TD><TD VALIGN=TOP WIDTH="+(o3_width-o3_padxl-o3_padxr)+"><FONT class=\""+o3_textfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+o3_padxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+o3_padyb+"></TD></TR></TABLE>";
\r
876 if (o3_css == CSSSTYLE) txt = "<TABLE WIDTH="+o3_width+wU+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+o3_height+hU+"><TR><TD COLSPAN=3 HEIGHT="+o3_padyt+pU+"></TD></TR><TR><TD WIDTH="+o3_padxl+pU+"></TD><TD VALIGN=TOP WIDTH="+(o3_width-o3_padxl-o3_padxr)+pU+"><FONT style=\"font-family: "+o3_textfont+"; color: "+o3_textcolor+"; font-size: "+o3_textsize+o3_textsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+o3_padxr+pU+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+o3_padyb+pU+"></TD></TR></TABLE>";
\r
877 if (o3_css == CSSOFF) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+o3_height+"><TR><TD COLSPAN=3 HEIGHT="+o3_padyt+"></TD></TR><TR><TD WIDTH="+o3_padxl+"></TD><TD VALIGN=TOP WIDTH="+(o3_width-o3_padxl-o3_padxr)+"><FONT FACE=\""+o3_textfont+"\" COLOR=\""+o3_textcolor+"\" SIZE=\""+o3_textsize+"\">"+text+"</FONT></TD><TD WIDTH="+o3_padxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+o3_padyb+"></TD></TR></TABLE>";
\r
879 set_background(picture);
\r
883 // Loads a picture into the div.
\r
884 function set_background(pic) {
\r
886 if (ns4) over.background.src = null;
\r
887 if (ie4) over.backgroundImage = "none";
\r
888 if (ns6) over.style.backgroundImage = "none";
\r
891 over.background.src = pic;
\r
893 over.backgroundImage = "url("+pic+")";
\r
895 over.style.backgroundImage = "url("+pic+")";
\r
902 ////////////////////////////////////////////////////////////////////////////////////
\r
903 // HANDLING FUNCTIONS
\r
904 ////////////////////////////////////////////////////////////////////////////////////
\r
907 // Displays the popup
\r
908 function disp(statustext) {
\r
909 if ( (ns4) || (ie4) || (ns6) ) {
\r
910 if (o3_allowmove == 0) {
\r
917 if (statustext != "") {
\r
918 self.status = statustext;
\r
922 // Decides where we want the popup.
\r
923 function placeLayer() {
\r
924 var placeX, placeY;
\r
926 // HORIZONTAL PLACEMENT
\r
927 if (o3_fixx > -1) {
\r
931 winoffset = (ie4) ? eval('o3_frame.'+docRoot+'.scrollLeft') : o3_frame.pageXOffset;
\r
932 if (ie4) iwidth = eval('o3_frame.'+docRoot+'.clientWidth');
\r
933 if (ns4 || ns6) iwidth = o3_frame.innerWidth;
\r
935 // If HAUTO, decide what to use.
\r
936 if (o3_hauto == 1) {
\r
937 if ( (o3_x - winoffset) > ((eval(iwidth)) / 2)) {
\r
945 if (o3_hpos == CENTER) { // Center
\r
946 placeX = o3_x+o3_offsetx-(o3_width/2);
\r
947 if (placeX < winoffset) placeX = winoffset;
\r
949 if (o3_hpos == RIGHT) { // Right
\r
950 placeX = o3_x+o3_offsetx;
\r
951 if ( (eval(placeX) + eval(o3_width)) > (winoffset + iwidth) ) {
\r
952 placeX = iwidth + winoffset - o3_width;
\r
953 if (placeX < 0) placeX = 0;
\r
956 if (o3_hpos == LEFT) { // Left
\r
957 placeX = o3_x-o3_offsetx-o3_width;
\r
958 if (placeX < winoffset) placeX = winoffset;
\r
962 if (o3_snapx > 1) {
\r
963 var snapping = placeX % o3_snapx;
\r
964 if (o3_hpos == LEFT) {
\r
965 placeX = placeX - (o3_snapx + snapping);
\r
967 // CENTER and RIGHT
\r
968 placeX = placeX + (o3_snapx - snapping);
\r
970 if (placeX < winoffset) placeX = winoffset;
\r
976 // VERTICAL PLACEMENT
\r
977 if (o3_fixy > -1) {
\r
981 scrolloffset = (ie4) ? eval('o3_frame.'+docRoot+'.scrollTop') : o3_frame.pageYOffset;
\r
983 // If VAUTO, decide what to use.
\r
984 if (o3_vauto == 1) {
\r
985 if (ie4) iheight = eval('o3_frame.'+docRoot+'.clientHeight');
\r
986 if (ns4 || ns6) iheight = o3_frame.innerHeight;
\r
988 iheight = (eval(iheight)) / 2;
\r
989 if ( (o3_y - scrolloffset) > iheight) {
\r
998 if (o3_vpos == ABOVE) {
\r
999 if (o3_aboveheight == 0) {
\r
1000 var divref = (ie4) ? o3_frame.document.all['overDiv'] : over;
\r
1001 o3_aboveheight = (ns4) ? divref.clip.height : divref.offsetHeight;
\r
1004 placeY = o3_y - (o3_aboveheight + o3_offsety);
\r
1005 if (placeY < scrolloffset) placeY = scrolloffset;
\r
1008 placeY = o3_y + o3_offsety;
\r
1012 if (o3_snapy > 1) {
\r
1013 var snapping = placeY % o3_snapy;
\r
1015 if (o3_aboveheight > 0 && o3_vpos == ABOVE) {
\r
1016 placeY = placeY - (o3_snapy + snapping);
\r
1018 placeY = placeY + (o3_snapy - snapping);
\r
1021 if (placeY < scrolloffset) placeY = scrolloffset;
\r
1026 // Actually move the object.
\r
1027 repositionTo(over, placeX, placeY);
\r
1031 // Moves the layer
\r
1032 function mouseMove(e) {
\r
1033 if ( (ns4) || (ns6) ) {o3_x=e.pageX; o3_y=e.pageY;}
\r
1034 if (ie4) {o3_x=event.x; o3_y=event.y;}
\r
1035 if (ie5) {o3_x=eval('event.x+o3_frame.'+docRoot+'.scrollLeft'); o3_y=eval('event.y+o3_frame.'+docRoot+'.scrollTop');}
\r
1037 if (o3_allowmove == 1) {
\r
1042 // The Close onMouseOver function for stickies
\r
1043 function cClick() {
\r
1045 o3_showingsticky = 0;
\r
1051 // Makes sure target frame has overLIB
\r
1052 function compatibleframe(frameid) {
\r
1054 if (typeof frameid.document.overDiv =='undefined') return false;
\r
1056 if (typeof frameid.document.all["overDiv"] =='undefined') return false;
\r
1058 if (frameid.document.getElementById('overDiv') == null) return false;
\r
1066 ////////////////////////////////////////////////////////////////////////////////////
\r
1067 // LAYER FUNCTIONS
\r
1068 ////////////////////////////////////////////////////////////////////////////////////
\r
1071 // Writes to a layer
\r
1072 function layerWrite(txt) {
\r
1076 var lyr = o3_frame.document.overDiv.document
\r
1080 o3_frame.document.all["overDiv"].innerHTML = txt
\r
1082 range = o3_frame.document.createRange();
\r
1083 range.setStartBefore(over);
\r
1084 domfrag = range.createContextualFragment(txt);
\r
1085 while (over.hasChildNodes()) {
\r
1086 over.removeChild(over.lastChild);
\r
1088 over.appendChild(domfrag);
\r
1092 // Make an object visible
\r
1093 function showObject(obj) {
\r
1094 if (ns4) obj.visibility = "show";
\r
1095 else if (ie4) obj.visibility = "visible";
\r
1096 else if (ns6) obj.style.visibility = "visible";
\r
1099 // Hides an object
\r
1100 function hideObject(obj) {
\r
1101 if (ns4) obj.visibility = "hide";
\r
1102 else if (ie4) obj.visibility = "hidden";
\r
1103 else if (ns6) obj.style.visibility = "hidden";
\r
1105 if (o3_timerid > 0) clearTimeout(o3_timerid);
\r
1106 if (o3_delayid > 0) clearTimeout(o3_delayid);
\r
1113 function repositionTo(obj,xL,yL) {
\r
1114 if ( (ns4) || (ie4) ) {
\r
1115 obj.left = (ie4 ? xL + 'px' : xL);
\r
1116 obj.top = (ie4 ? yL + 'px' : yL);
\r
1118 obj.style.left = xL + "px";
\r
1119 obj.style.top = yL+ "px";
\r
1123 function getFrameRef(thisFrame, ofrm) {
\r
1125 for (var i=0; i<thisFrame.length; i++) {
\r
1126 if (thisFrame[i].length > 0) {
\r
1127 retVal = getFrameRef(thisFrame[i],ofrm);
\r
1128 if (retVal == '') continue;
\r
1129 } else if (thisFrame[i] != ofrm) continue;
\r
1131 retVal = '['+i+']' + retVal;
\r
1141 ////////////////////////////////////////////////////////////////////////////////////
\r
1142 // PARSER FUNCTIONS
\r
1143 ////////////////////////////////////////////////////////////////////////////////////
\r
1146 // Defines which frame we should point to.
\r
1147 function opt_FRAME(frm) {
\r
1148 o3_frame = compatibleframe(frm) ? frm : ol_frame;
\r
1150 if (o3_frame != ol_frame) {
\r
1151 var tFrm = getFrameRef(top.frames, o3_frame);
\r
1152 var sFrm = getFrameRef(top.frames, ol_frame);
\r
1154 if (sFrm.length == tFrm.length) {
\r
1155 l = tFrm.lastIndexOf('[');
\r
1157 while(sFrm.substring(0,l) != tFrm.substring(0,l)) l = tFrm.lastIndexOf('[',l-1);
\r
1158 tFrm = tFrm.substr(l);
\r
1159 sFrm = sFrm.substr(l);
\r
1163 var cnt = 0, p = '', str = tFrm;
\r
1165 while((k = str.lastIndexOf('[')) != -1) {
\r
1167 str = str.substring(0,k);
\r
1170 for (var i=0; i<cnt; i++) p = p + 'parent.';
\r
1171 fnRef = p + 'frames' + sFrm + '.';
\r
1174 if ( (ns4) || (ie4 || (ns6)) ) {
\r
1175 if (ns4) over = o3_frame.document.overDiv;
\r
1176 if (ie4) over = o3_frame.overDiv.style;
\r
1177 if (ns6) over = o3_frame.document.getElementById("overDiv");
\r
1183 // Calls an external function
\r
1184 function opt_FUNCTION(callme) {
\r
1185 o3_text = (callme ? callme() : (o3_function ? o3_function() : 'No Function'));
\r
1192 //end (For internal purposes.)
\r
1193 ////////////////////////////////////////////////////////////////////////////////////
\r
1194 // OVERLIB 2 COMPATABILITY FUNCTIONS
\r
1195 // If you aren't upgrading you can remove the below section.
\r
1196 ////////////////////////////////////////////////////////////////////////////////////
\r
1198 // Converts old 0=left, 1=right and 2=center into constants.
\r
1199 function vpos_convert(d) {
\r
1214 function dts(d,text) {
\r
1215 o3_hpos = vpos_convert(d);
\r
1216 overlib(text, o3_hpos, CAPTION, "");
\r
1220 function dtc(d,text, title) {
\r
1221 o3_hpos = vpos_convert(d);
\r
1222 overlib(text, CAPTION, title, o3_hpos);
\r
1226 function stc(d,text, title) {
\r
1227 o3_hpos = vpos_convert(d);
\r
1228 overlib(text, CAPTION, title, o3_hpos, STICKY);
\r
1231 // Simple popup right
\r
1232 function drs(text) {
\r
1236 // Caption popup right
\r
1237 function drc(text, title) {
\r
1238 dtc(1,text,title);
\r
1241 // Sticky caption right
\r
1242 function src(text,title) {
\r
1243 stc(1,text,title);
\r
1246 // Simple popup left
\r
1247 function dls(text) {
\r
1251 // Caption popup left
\r
1252 function dlc(text, title) {
\r
1253 dtc(0,text,title);
\r
1256 // Sticky caption left
\r
1257 function slc(text,title) {
\r
1258 stc(0,text,title);
\r
1261 // Simple popup center
\r
1262 function dcs(text) {
\r
1266 // Caption popup center
\r
1267 function dcc(text, title) {
\r
1268 dtc(2,text,title);
\r
1271 // Sticky caption center
\r
1272 function scc(text,title) {
\r
1273 stc(2,text,title);
\r