1var INARRAY		=	1;
2var CAPARRAY		=	2;
3var STICKY		=	3;
4var BACKGROUND		=	4;
5var NOCLOSE		=	5;
6var CAPTION		=	6;
7var LEFT		=	7;
8var RIGHT		=	8;
9var CENTER		=	9;
10var OFFSETX		=	10;
11var OFFSETY		=	11;
12var FGCOLOR		=	12;
13var BGCOLOR		=	13;
14var TEXTCOLOR		=	14;
15var CAPCOLOR		=	15;
16var CLOSECOLOR		=	16;
17var WIDTH		=	17;
18var BORDER		=	18;
19var STATUS		=	19;
20var AUTOSTATUS		=	20;
21var AUTOSTATUSCAP	=	21;
22var HEIGHT		=	22;
23var CLOSETEXT		=	23;
24var SNAPX		=	24;
25var SNAPY		=	25;
26var FIXX		=	26;
27var FIXY		=	27;
28var FGBACKGROUND	=	28;
29var BGBACKGROUND	=	29;
30var PADX		=	30; // PADX2 out
31var PADY		=	31; // PADY2 out
32var FULLHTML		=	34;
33var ABOVE		=	35;
34var BELOW		=	36;
35var CAPICON		=	37;
36var TEXTFONT		=	38;
37var CAPTIONFONT		=	39;
38var CLOSEFONT		=	40;
39var TEXTSIZE		=	41;
40var CAPTIONSIZE		=	42;
41var CLOSESIZE		=	43;
42var FRAME		=	44;
43var TIMEOUT		=	45;
44var FUNCTION		=	46;
45var DELAY		=	47;
46var HAUTO		=	48;
47var VAUTO		=	49;
48var CLOSECLICK		=	50;
49var CSSOFF		=	51;
50var CSSSTYLE		=	52;
51var CSSCLASS		=	53;
52var FGCLASS		=	54;
53var BGCLASS		=	55;
54var TEXTFONTCLASS	=	56;
55var CAPTIONFONTCLASS	=	57;
56var CLOSEFONTCLASS	=	58;
57var PADUNIT		=	59;
58var HEIGHTUNIT		=	60;
59var WIDTHUNIT		=	61;
60var TEXTSIZEUNIT	=	62;
61var TEXTDECORATION	=	63;
62var TEXTSTYLE		=	64;
63var TEXTWEIGHT		=	65;
64var CAPTIONSIZEUNIT	=	66;
65var CAPTIONDECORATION	=	67;
66var CAPTIONSTYLE	=	68;
67var CAPTIONWEIGHT	=	69;
68var CLOSESIZEUNIT	=	70;
69var CLOSEDECORATION	=	71;
70var CLOSESTYLE		=	72;
71var CLOSEWEIGHT		=	73;
72
73if (typeof ol_fgcolor == 'undefined') { var ol_fgcolor = "#CCCCFF";}
74
75if (typeof ol_bgcolor == 'undefined') { var ol_bgcolor = "#333399";}
76
77if (typeof ol_textcolor == 'undefined') { var ol_textcolor = "#000000";}
78
79if (typeof ol_capcolor == 'undefined') { var ol_capcolor = "#FFFFFF";}
80
81if (typeof ol_closecolor == 'undefined') { var ol_closecolor = "#9999FF";}
82
83if (typeof ol_textfont == 'undefined') { var ol_textfont = "Verdana,Arial,Helvetica";}
84if (typeof ol_captionfont == 'undefined') { var ol_captionfont = "Verdana,Arial,Helvetica";}
85if (typeof ol_closefont == 'undefined') { var ol_closefont = "Verdana,Arial,Helvetica";}
86if (typeof ol_textsize == 'undefined') { var ol_textsize = "1";}
87if (typeof ol_captionsize == 'undefined') { var ol_captionsize = "1";}
88if (typeof ol_closesize == 'undefined') { var ol_closesize = "1";}
89if (typeof ol_width == 'undefined') { var ol_width = "200";}
90if (typeof ol_border == 'undefined') { var ol_border = "1";}
91if (typeof ol_offsetx == 'undefined') { var ol_offsetx = 10;}
92if (typeof ol_offsety == 'undefined') { var ol_offsety = 10;}
93if (typeof ol_text == 'undefined') { var ol_text = "Default Text"; }
94if (typeof ol_cap == 'undefined') { var ol_cap = ""; }
95if (typeof ol_sticky == 'undefined') { var ol_sticky = 0; }
96if (typeof ol_background == 'undefined') { var ol_background = ""; }
97if (typeof ol_close == 'undefined') { var ol_close = "Close"; }
98if (typeof ol_hpos == 'undefined') { var ol_hpos = RIGHT; }
99if (typeof ol_status == 'undefined') { var ol_status = ""; }
100if (typeof ol_autostatus == 'undefined') { var ol_autostatus = 0; }
101if (typeof ol_height == 'undefined') { var ol_height = -1; }
102if (typeof ol_snapx == 'undefined') { var ol_snapx = 0; }
103if (typeof ol_snapy == 'undefined') { var ol_snapy = 0; }
104if (typeof ol_fixx == 'undefined') { var ol_fixx = -1; }
105if (typeof ol_fixy == 'undefined') { var ol_fixy = -1; }
106if (typeof ol_fgbackground == 'undefined') { var ol_fgbackground = ""; }
107if (typeof ol_bgbackground == 'undefined') { var ol_bgbackground = ""; }
108if (typeof ol_padxl == 'undefined') { var ol_padxl = 1; }
109if (typeof ol_padxr == 'undefined') { var ol_padxr = 1; }
110if (typeof ol_padyt == 'undefined') { var ol_padyt = 1; }
111if (typeof ol_padyb == 'undefined') { var ol_padyb = 1; }
112if (typeof ol_fullhtml == 'undefined') { var ol_fullhtml = 0; }
113if (typeof ol_vpos == 'undefined') { var ol_vpos = BELOW; }
114if (typeof ol_aboveheight == 'undefined') { var ol_aboveheight = 0; }
115if (typeof ol_capicon == 'undefined') { var ol_capicon = ""; }
116if (typeof ol_frame == 'undefined') { var ol_frame = self; }
117if (typeof ol_timeout == 'undefined') { var ol_timeout = 0; }
118if (typeof ol_function == 'undefined') { var ol_function = null; }
119if (typeof ol_delay == 'undefined') { var ol_delay = 0; }
120if (typeof ol_hauto == 'undefined') { var ol_hauto = 0; }
121if (typeof ol_vauto == 'undefined') { var ol_vauto = 1; }
122if (typeof ol_closeclick == 'undefined') { var ol_closeclick = 0; }
123if (typeof ol_css == 'undefined') { var ol_css = CSSOFF; }
124if (typeof ol_fgclass == 'undefined') { var ol_fgclass = ""; }
125if (typeof ol_bgclass == 'undefined') { var ol_bgclass = ""; }
126if (typeof ol_textfontclass == 'undefined') { var ol_textfontclass = ""; }
127if (typeof ol_captionfontclass == 'undefined') { var ol_captionfontclass = ""; }
128if (typeof ol_closefontclass == 'undefined') { var ol_closefontclass = ""; }
129if (typeof ol_padunit == 'undefined') { var ol_padunit = "px";}
130if (typeof ol_heightunit == 'undefined') { var ol_heightunit = "px";}
131if (typeof ol_widthunit == 'undefined') { var ol_widthunit = "px";}
132if (typeof ol_textsizeunit == 'undefined') { var ol_textsizeunit = "px";}
133if (typeof ol_textdecoration == 'undefined') { var ol_textdecoration = "none";}
134if (typeof ol_textstyle == 'undefined') { var ol_textstyle = "normal";}
135if (typeof ol_textweight == 'undefined') { var ol_textweight = "normal";}
136if (typeof ol_captionsizeunit == 'undefined') { var ol_captionsizeunit = "px";}
137if (typeof ol_captiondecoration == 'undefined') { var ol_captiondecoration = "none";}
138if (typeof ol_captionstyle == 'undefined') { var ol_captionstyle = "normal";}
139if (typeof ol_captionweight == 'undefined') { var ol_captionweight = "bold";}
140if (typeof ol_closesizeunit == 'undefined') { var ol_closesizeunit = "px";}
141if (typeof ol_closedecoration == 'undefined') { var ol_closedecoration = "none";}
142if (typeof ol_closestyle == 'undefined') { var ol_closestyle = "normal";}
143if (typeof ol_closeweight == 'undefined') { var ol_closeweight = "normal";}
144if (typeof ol_texts == 'undefined') { var ol_texts = new Array("Text 0", "Text 1"); }
145if (typeof ol_caps == 'undefined') { var ol_caps = new Array("Caption 0", "Caption 1"); }
146
147
148var o3_text = "";
149var o3_cap = "";
150var o3_sticky = 0;
151var o3_background = "";
152var o3_close = "Close";
153var o3_hpos = RIGHT;
154var o3_offsetx = 2;
155var o3_offsety = 2;
156var o3_fgcolor = "";
157var o3_bgcolor = "";
158var o3_textcolor = "";
159var o3_capcolor = "";
160var o3_closecolor = "";
161var o3_width = 100;
162var o3_border = 1;
163var o3_status = "";
164var o3_autostatus = 0;
165var o3_height = -1;
166var o3_snapx = 0;
167var o3_snapy = 0;
168var o3_fixx = -1;
169var o3_fixy = -1;
170var o3_fgbackground = "";
171var o3_bgbackground = "";
172var o3_padxl = 0;
173var o3_padxr = 0;
174var o3_padyt = 0;
175var o3_padyb = 0;
176var o3_fullhtml = 0;
177var o3_vpos = BELOW;
178var o3_aboveheight = 0;
179var o3_capicon = "";
180var o3_textfont = "Verdana,Arial,Helvetica";
181var o3_captionfont = "Verdana,Arial,Helvetica";
182var o3_closefont = "Verdana,Arial,Helvetica";
183var o3_textsize = "1";
184var o3_captionsize = "1";
185var o3_closesize = "1";
186var o3_frame = self;
187var o3_timeout = 0;
188var o3_timerid = 0;
189var o3_allowmove = 0;
190var o3_function = null;
191var o3_delay = 0;
192var o3_delayid = 0;
193var o3_hauto = 0;
194var o3_vauto = 0;
195var o3_closeclick = 0;
196
197var o3_css = CSSOFF;
198var o3_fgclass = "";
199var o3_bgclass = "";
200var o3_textfontclass = "";
201var o3_captionfontclass = "";
202var o3_closefontclass = "";
203var o3_padunit = "px";
204var o3_heightunit = "px";
205var o3_widthunit = "px";
206var o3_textsizeunit = "px";
207var o3_textdecoration = "";
208var o3_textstyle = "";
209var o3_textweight = "";
210var o3_captionsizeunit = "px";
211var o3_captiondecoration = "";
212var o3_captionstyle = "";
213var o3_captionweight = "";
214var o3_closesizeunit = "px";
215var o3_closedecoration = "";
216var o3_closestyle = "";
217var o3_closeweight = "";
218var o3_x = 0;
219var o3_y = 0;
220var o3_allow = 0;
221var o3_showingsticky = 0;
222var o3_removecounter = 0;
223var over = null;
224var fnRef;
225var ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4);
226var ns6 = (document.getElementById)? true:false;
227var ie4 = (document.all)? true:false;
228if (ie4) var docRoot = 'document.body';
229var ie5 = false;
230if (ns4) {
231	var oW = window.innerWidth;
232	var oH = window.innerHeight;
233	window.onresize = function () {if (oW!=window.innerWidth||oH!=window.innerHeight) location.reload();}
234}
235if (ie4) {
236	if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
237		if(document.compatMode && document.compatMode == 'CSS1Compat') docRoot = 'document.documentElement';
238		ie5 = true;
239	}
240	if (ns6) {
241		ns6 = false;
242	}
243}
244if ( (ns4) || (ie4) || (ns6)) {
245	document.onmousemove = mouseMove
246	if (ns4) document.captureEvents(Event.MOUSEMOVE)
247} else {
248	overlib = no_overlib;
249	nd = no_overlib;
250	ver3fix = true;
251}
252function no_overlib() {
253	return ver3fix;
254}
255function overlib() {
256
257	// Load defaults to runtime.
258	o3_text = ol_text;
259	o3_cap = ol_cap;
260	o3_sticky = ol_sticky;
261	o3_background = ol_background;
262	o3_close = ol_close;
263	o3_hpos = ol_hpos;
264	o3_offsetx = ol_offsetx;
265	o3_offsety = ol_offsety;
266	o3_fgcolor = ol_fgcolor;
267	o3_bgcolor = ol_bgcolor;
268	o3_textcolor = ol_textcolor;
269	o3_capcolor = ol_capcolor;
270	o3_closecolor = ol_closecolor;
271	o3_width = ol_width;
272	o3_border = ol_border;
273	o3_status = ol_status;
274	o3_autostatus = ol_autostatus;
275	o3_height = ol_height;
276	o3_snapx = ol_snapx;
277	o3_snapy = ol_snapy;
278	o3_fixx = ol_fixx;
279	o3_fixy = ol_fixy;
280	o3_fgbackground = ol_fgbackground;
281	o3_bgbackground = ol_bgbackground;
282	o3_padxl = ol_padxl;
283	o3_padxr = ol_padxr;
284	o3_padyt = ol_padyt;
285	o3_padyb = ol_padyb;
286	o3_fullhtml = ol_fullhtml;
287	o3_vpos = ol_vpos;
288	o3_aboveheight = ol_aboveheight;
289	o3_capicon = ol_capicon;
290	o3_textfont = ol_textfont;
291	o3_captionfont = ol_captionfont;
292	o3_closefont = ol_closefont;
293	o3_textsize = ol_textsize;
294	o3_captionsize = ol_captionsize;
295	o3_closesize = ol_closesize;
296	o3_timeout = ol_timeout;
297	o3_function = ol_function;
298	o3_delay = ol_delay;
299	o3_hauto = ol_hauto;
300	o3_vauto = ol_vauto;
301	o3_closeclick = ol_closeclick;
302
303	o3_css = ol_css;
304	o3_fgclass = ol_fgclass;
305	o3_bgclass = ol_bgclass;
306	o3_textfontclass = ol_textfontclass;
307	o3_captionfontclass = ol_captionfontclass;
308	o3_closefontclass = ol_closefontclass;
309	o3_padunit = ol_padunit;
310	o3_heightunit = ol_heightunit;
311	o3_widthunit = ol_widthunit;
312	o3_textsizeunit = ol_textsizeunit;
313	o3_textdecoration = ol_textdecoration;
314	o3_textstyle = ol_textstyle;
315	o3_textweight = ol_textweight;
316	o3_captionsizeunit = ol_captionsizeunit;
317	o3_captiondecoration = ol_captiondecoration;
318	o3_captionstyle = ol_captionstyle;
319	o3_captionweight = ol_captionweight;
320	o3_closesizeunit = ol_closesizeunit;
321	o3_closedecoration = ol_closedecoration;
322	o3_closestyle = ol_closestyle;
323	o3_closeweight = ol_closeweight;
324	fnRef = '';
325
326	if ( (ns4) || (ie4) || (ns6) ) {
327		if (over) cClick();
328		o3_frame = ol_frame;
329		if (ns4) over = o3_frame.document.overDiv
330		if (ie4) over = o3_frame.overDiv.style
331		if (ns6) over = o3_frame.document.getElementById("overDiv");
332	}
333
334	var parsemode = -1, udf, v = null;
335
336	var ar = arguments;
337	udf = (!ar.length ? 1 : 0);
338
339	for (i = 0; i < ar.length; i++) {
340
341		if (parsemode < 0) {
342			// Arg is maintext, unless its a PARAMETER
343			if (typeof ar[i] == 'number') {
344				udf = (ar[i] == FUNCTION ? 0 : 1);
345				i--;
346			} else {
347				o3_text = ar[i];
348			}
349
350			parsemode = 0;
351		} else {
352			// Note: NS4 doesn't like switch cases with vars.
353			if (ar[i] == INARRAY) { udf = 0; o3_text = ol_texts[ar[++i]]; continue; }
354			if (ar[i] == CAPARRAY) { o3_cap = ol_caps[ar[++i]]; continue; }
355			if (ar[i] == STICKY) { o3_sticky = 1; continue; }
356			if (ar[i] == BACKGROUND) { o3_background = ar[++i]; continue; }
357			if (ar[i] == NOCLOSE) { o3_close = ""; continue; }
358			if (ar[i] == CAPTION) { o3_cap = ar[++i]; continue; }
359			if (ar[i] == CENTER || ar[i] == LEFT || ar[i] == RIGHT) { o3_hpos = ar[i]; continue; }
360			if (ar[i] == OFFSETX) { o3_offsetx = ar[++i]; continue; }
361			if (ar[i] == OFFSETY) { o3_offsety = ar[++i]; continue; }
362			if (ar[i] == FGCOLOR) { o3_fgcolor = ar[++i]; continue; }
363			if (ar[i] == BGCOLOR) { o3_bgcolor = ar[++i]; continue; }
364			if (ar[i] == TEXTCOLOR) { o3_textcolor = ar[++i]; continue; }
365			if (ar[i] == CAPCOLOR) { o3_capcolor = ar[++i]; continue; }
366			if (ar[i] == CLOSECOLOR) { o3_closecolor = ar[++i]; continue; }
367			if (ar[i] == WIDTH) { o3_width = ar[++i]; continue; }
368			if (ar[i] == BORDER) { o3_border = ar[++i]; continue; }
369			if (ar[i] == STATUS) { o3_status = ar[++i]; continue; }
370			if (ar[i] == AUTOSTATUS) { o3_autostatus = (o3_autostatus == 1) ? 0 : 1; continue; }
371			if (ar[i] == AUTOSTATUSCAP) { o3_autostatus = (o3_autostatus == 2) ? 0 : 2; continue; }
372			if (ar[i] == HEIGHT) { o3_height = ar[++i]; o3_aboveheight = ar[i]; continue; } // Same param again.
373			if (ar[i] == CLOSETEXT) { o3_close = ar[++i]; continue; }
374			if (ar[i] == SNAPX) { o3_snapx = ar[++i]; continue; }
375			if (ar[i] == SNAPY) { o3_snapy = ar[++i]; continue; }
376			if (ar[i] == FIXX) { o3_fixx = ar[++i]; continue; }
377			if (ar[i] == FIXY) { o3_fixy = ar[++i]; continue; }
378			if (ar[i] == FGBACKGROUND) { o3_fgbackground = ar[++i]; continue; }
379			if (ar[i] == BGBACKGROUND) { o3_bgbackground = ar[++i]; continue; }
380			if (ar[i] == PADX) { o3_padxl = ar[++i]; o3_padxr = ar[++i]; continue; }
381			if (ar[i] == PADY) { o3_padyt = ar[++i]; o3_padyb = ar[++i]; continue; }
382			if (ar[i] == FULLHTML) { o3_fullhtml = 1; continue; }
383			if (ar[i] == BELOW || ar[i] == ABOVE) { o3_vpos = ar[i]; continue; }
384			if (ar[i] == CAPICON) { o3_capicon = ar[++i]; continue; }
385			if (ar[i] == TEXTFONT) { o3_textfont = ar[++i]; continue; }
386			if (ar[i] == CAPTIONFONT) { o3_captionfont = ar[++i]; continue; }
387			if (ar[i] == CLOSEFONT) { o3_closefont = ar[++i]; continue; }
388			if (ar[i] == TEXTSIZE) { o3_textsize = ar[++i]; continue; }
389			if (ar[i] == CAPTIONSIZE) { o3_captionsize = ar[++i]; continue; }
390			if (ar[i] == CLOSESIZE) { o3_closesize = ar[++i]; continue; }
391			if (ar[i] == FRAME) { opt_FRAME(ar[++i]); continue; }
392			if (ar[i] == TIMEOUT) { o3_timeout = ar[++i]; continue; }
393			if (ar[i] == FUNCTION) { udf = 0; if (typeof ar[i+1] != 'number') v = ar[++i]; opt_FUNCTION(v); continue; }
394			if (ar[i] == DELAY) { o3_delay = ar[++i]; continue; }
395			if (ar[i] == HAUTO) { o3_hauto = (o3_hauto == 0) ? 1 : 0; continue; }
396			if (ar[i] == VAUTO) { o3_vauto = (o3_vauto == 0) ? 1 : 0; continue; }
397			if (ar[i] == CLOSECLICK) { o3_closeclick = (o3_closeclick == 0) ? 1 : 0; continue; }
398			if (ar[i] == CSSOFF) { o3_css = ar[i]; continue; }
399			if (ar[i] == CSSSTYLE) { o3_css = ar[i]; continue; }
400			if (ar[i] == CSSCLASS) { o3_css = ar[i]; continue; }
401			if (ar[i] == FGCLASS) { o3_fgclass = ar[++i]; continue; }
402			if (ar[i] == BGCLASS) { o3_bgclass = ar[++i]; continue; }
403			if (ar[i] == TEXTFONTCLASS) { o3_textfontclass = ar[++i]; continue; }
404			if (ar[i] == CAPTIONFONTCLASS) { o3_captionfontclass = ar[++i]; continue; }
405			if (ar[i] == CLOSEFONTCLASS) { o3_closefontclass = ar[++i]; continue; }
406			if (ar[i] == PADUNIT) { o3_padunit = ar[++i]; continue; }
407			if (ar[i] == HEIGHTUNIT) { o3_heightunit = ar[++i]; continue; }
408			if (ar[i] == WIDTHUNIT) { o3_widthunit = ar[++i]; continue; }
409			if (ar[i] == TEXTSIZEUNIT) { o3_textsizeunit = ar[++i]; continue; }
410			if (ar[i] == TEXTDECORATION) { o3_textdecoration = ar[++i]; continue; }
411			if (ar[i] == TEXTSTYLE) { o3_textstyle = ar[++i]; continue; }
412			if (ar[i] == TEXTWEIGHT) { o3_textweight = ar[++i]; continue; }
413			if (ar[i] == CAPTIONSIZEUNIT) { o3_captionsizeunit = ar[++i]; continue; }
414			if (ar[i] == CAPTIONDECORATION) { o3_captiondecoration = ar[++i]; continue; }
415			if (ar[i] == CAPTIONSTYLE) { o3_captionstyle = ar[++i]; continue; }
416			if (ar[i] == CAPTIONWEIGHT) { o3_captionweight = ar[++i]; continue; }
417			if (ar[i] == CLOSESIZEUNIT) { o3_closesizeunit = ar[++i]; continue; }
418			if (ar[i] == CLOSEDECORATION) { o3_closedecoration = ar[++i]; continue; }
419			if (ar[i] == CLOSESTYLE) { o3_closestyle = ar[++i]; continue; }
420			if (ar[i] == CLOSEWEIGHT) { o3_closeweight = ar[++i]; continue; }
421		}
422	}
423	if (udf && o3_function) o3_text = o3_function();
424
425	if (o3_delay == 0) {
426		return overlib351();
427	} else {
428		o3_delayid = setTimeout("overlib351()", o3_delay);
429		return false;
430	}
431}
432
433
434function nd() {
435	if ( o3_removecounter >= 1 ) { o3_showingsticky = 0 };
436	if ( (ns4) || (ie4) || (ns6) ) {
437		if ( o3_showingsticky == 0 ) {
438			o3_allowmove = 0;
439			if (over != null) hideObject(over);
440		} else {
441			o3_removecounter++;
442		}
443	}
444
445	return true;
446}
447
448function overlib351() {
449	var layerhtml;
450
451	if (o3_background != "" || o3_fullhtml) {
452		layerhtml = ol_content_background(o3_text, o3_background, o3_fullhtml);
453	} else {
454		if (o3_fgbackground != "" && o3_css == CSSOFF) {
455			o3_fgbackground = "BACKGROUND=\""+o3_fgbackground+"\"";
456		}
457		if (o3_bgbackground != "" && o3_css == CSSOFF) {
458			o3_bgbackground = "BACKGROUND=\""+o3_bgbackground+"\"";
459		}
460		if (o3_fgcolor != "" && o3_css == CSSOFF) {
461			o3_fgcolor = "BGCOLOR=\""+o3_fgcolor+"\"";
462		}
463		if (o3_bgcolor != "" && o3_css == CSSOFF) {
464			o3_bgcolor = "BGCOLOR=\""+o3_bgcolor+"\"";
465		}
466		if (o3_height > 0 && o3_css == CSSOFF) {
467			o3_height = "HEIGHT=" + o3_height;
468		} else {
469			o3_height = "";
470		}
471		if (o3_cap == "") {
472			// Plain
473			layerhtml = ol_content_simple(o3_text);
474		} else {
475			if (o3_sticky) {
476				layerhtml = ol_content_caption(o3_text, o3_cap, o3_close);
477			} else {
478				layerhtml = ol_content_caption(o3_text, o3_cap, "");
479			}
480		}
481	}
482	if (o3_sticky) {
483		if (o3_timerid > 0) {
484			clearTimeout(o3_timerid);
485			o3_timerid = 0;
486		}
487		o3_showingsticky = 1;
488		o3_removecounter = 0;
489	}
490	layerWrite(layerhtml);
491	if (o3_autostatus > 0) {
492		o3_status = o3_text;
493		if (o3_autostatus > 1) {
494			o3_status = o3_cap;
495		}
496	}
497	o3_allowmove = 0;
498	if (o3_timeout > 0) {
499		if (o3_timerid > 0) clearTimeout(o3_timerid);
500		o3_timerid = setTimeout("cClick()", o3_timeout);
501	}
502	disp(o3_status);
503	if (o3_sticky) o3_allowmove = 0;
504
505	return (o3_status != '');
506}
507function ol_content_simple(text) {
508	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>";
509	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>";
510	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>";
511
512	set_background("");
513	return txt;
514}
515function ol_content_caption(text, title, close) {
516	closing = "";
517	closeevent = "onMouseOver";
518
519	if (o3_closeclick == 1) closeevent = "onClick";
520	if (o3_capicon != "") o3_capicon = "<IMG SRC=\""+o3_capicon+"\"> ";
521
522	if (close != "") {
523		if (o3_css == CSSCLASS) closing = "<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\" class=\""+o3_closefontclass+"\">"+close+"</A></TD>";
524		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>";
525		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>";
526	}
527
528	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>";
529	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>";
530	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>";
531
532	set_background("");
533	return txt;
534}
535function ol_content_background(text, picture, hasfullhtml) {
536	var txt;
537	if (hasfullhtml) {
538		txt = text;
539	} else {
540		var pU, hU, wU;
541		pU = (o3_padunit == '%' ? '%' : '');
542		hU = (o3_heightunit == '%' ? '%' : '');
543		wU = (o3_widthunit == '%' ? '%' : '');
544
545		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>";
546		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>";
547		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>";
548	}
549	set_background(picture);
550	return txt;
551}
552function set_background(pic) {
553	if (pic == "") {
554		if (ns4) over.background.src = null;
555		if (ie4) over.backgroundImage = "none";
556		if (ns6) over.style.backgroundImage = "none";
557	} else {
558		if (ns4) {
559			over.background.src = pic;
560		} else if (ie4) {
561			over.backgroundImage = "url("+pic+")";
562		} else if (ns6) {
563			over.style.backgroundImage = "url("+pic+")";
564		}
565	}
566}
567
568function disp(statustext) {
569	if ( (ns4) || (ie4) || (ns6) ) {
570		if (o3_allowmove == 0) 	{
571			placeLayer();
572			showObject(over);
573			o3_allowmove = 1;
574		}
575	}
576
577	if (statustext != "") {
578		self.status = statustext;
579	}
580}
581function placeLayer() {
582	var placeX, placeY;
583	if (o3_fixx > -1) {
584		placeX = o3_fixx;
585	} else {
586		winoffset = (ie4) ? eval('o3_frame.'+docRoot+'.scrollLeft') : o3_frame.pageXOffset;
587		if (ie4) iwidth = eval('o3_frame.'+docRoot+'.clientWidth');
588		if (ns4 || ns6) iwidth = o3_frame.innerWidth;
589		if (o3_hauto == 1) {
590			if ( (o3_x - winoffset) > ((eval(iwidth)) / 2)) {
591				o3_hpos = LEFT;
592			} else {
593				o3_hpos = RIGHT;
594			}
595		}
596		if (o3_hpos == CENTER) { // Center
597			placeX = o3_x+o3_offsetx-(o3_width/2);
598			if (placeX < winoffset) placeX = winoffset;
599		}
600		if (o3_hpos == RIGHT) { // Right
601			placeX = o3_x+o3_offsetx;
602			if ( (eval(placeX) + eval(o3_width)) > (winoffset + iwidth) ) {
603				placeX = iwidth + winoffset - o3_width;
604				if (placeX < 0) placeX = 0;
605			}
606		}
607		if (o3_hpos == LEFT) { // Left
608			placeX = o3_x-o3_offsetx-o3_width;
609			if (placeX < winoffset) placeX = winoffset;
610		}
611		if (o3_snapx > 1) {
612			var snapping = placeX % o3_snapx;
613			if (o3_hpos == LEFT) {
614				placeX = placeX - (o3_snapx + snapping);
615			} else {
616				placeX = placeX + (o3_snapx - snapping);
617			}
618			if (placeX < winoffset) placeX = winoffset;
619		}
620	}
621	if (o3_fixy > -1) {
622		placeY = o3_fixy;
623	} else {
624		scrolloffset = (ie4) ? eval('o3_frame.'+docRoot+'.scrollTop') : o3_frame.pageYOffset;
625		if (o3_vauto == 1) {
626			if (ie4) iheight = eval('o3_frame.'+docRoot+'.clientHeight');
627			if (ns4 || ns6) iheight = o3_frame.innerHeight;
628
629			iheight = (eval(iheight)) / 2;
630			if ( (o3_y - scrolloffset) > iheight) {
631				o3_vpos = ABOVE;
632			} else {
633				o3_vpos = BELOW;
634			}
635		}
636		if (o3_vpos == ABOVE) {
637			if (o3_aboveheight == 0) {
638				var divref = (ie4) ? o3_frame.document.all['overDiv'] : over;
639				o3_aboveheight = (ns4) ? divref.clip.height : divref.offsetHeight;
640			}
641
642			placeY = o3_y - (o3_aboveheight + o3_offsety);
643			if (placeY < scrolloffset) placeY = scrolloffset;
644		} else {
645			placeY = o3_y + o3_offsety;
646		}
647		if (o3_snapy > 1) {
648			var snapping = placeY % o3_snapy;
649
650			if (o3_aboveheight > 0 && o3_vpos == ABOVE) {
651				placeY = placeY - (o3_snapy + snapping);
652			} else {
653				placeY = placeY + (o3_snapy - snapping);
654			}
655
656			if (placeY < scrolloffset) placeY = scrolloffset;
657		}
658	}
659	repositionTo(over, placeX, placeY);
660}
661function mouseMove(e) {
662	if ( (ns4) || (ns6) ) {o3_x=e.pageX; o3_y=e.pageY;}
663	if (ie4) {o3_x=event.x; o3_y=event.y;}
664	if (ie5) {o3_x=eval('event.x+o3_frame.'+docRoot+'.scrollLeft'); o3_y=eval('event.y+o3_frame.'+docRoot+'.scrollTop');}
665
666	if (o3_allowmove == 1) {
667		placeLayer();
668	}
669}
670function cClick() {
671	hideObject(over);
672	o3_showingsticky = 0;
673
674	return false;
675}
676function compatibleframe(frameid) {
677	if (ns4) {
678		if (typeof frameid.document.overDiv =='undefined') return false;
679	} else if (ie4) {
680		if (typeof frameid.document.all["overDiv"] =='undefined') return false;
681	} else if (ns6) {
682		if (frameid.document.getElementById('overDiv') == null) return false;
683	}
684
685	return true;
686}
687function layerWrite(txt) {
688	txt += "\n";
689
690	if (ns4) {
691		var lyr = o3_frame.document.overDiv.document
692		lyr.write(txt)
693		lyr.close()
694	} else if (ie4) {
695		o3_frame.document.all["overDiv"].innerHTML = txt
696	} else if (ns6) {
697		range = o3_frame.document.createRange();
698		range.setStartBefore(over);
699		domfrag = range.createContextualFragment(txt);
700		while (over.hasChildNodes()) {
701			over.removeChild(over.lastChild);
702		}
703		over.appendChild(domfrag);
704	}
705}
706function showObject(obj) {
707	if (ns4) obj.visibility = "show";
708	else if (ie4) obj.visibility = "visible";
709	else if (ns6) obj.style.visibility = "visible";
710}
711function hideObject(obj) {
712	if (ns4) obj.visibility = "hide";
713	else if (ie4) obj.visibility = "hidden";
714	else if (ns6) obj.style.visibility = "hidden";
715
716	if (o3_timerid > 0) clearTimeout(o3_timerid);
717	if (o3_delayid > 0) clearTimeout(o3_delayid);
718	o3_timerid = 0;
719	o3_delayid = 0;
720	self.status = "";
721}
722function repositionTo(obj,xL,yL) {
723	if ( (ns4) || (ie4) ) {
724		obj.left = (ie4 ? xL + 'px' : xL);
725		obj.top = (ie4 ? yL + 'px' : yL);
726	} else if (ns6) {
727		obj.style.left = xL + "px";
728		obj.style.top = yL+ "px";
729	}
730}
731function getFrameRef(thisFrame, ofrm) {
732	var retVal = '';
733	for (var i=0; i<thisFrame.length; i++) {
734		if (thisFrame[i].length > 0) {
735			retVal = getFrameRef(thisFrame[i],ofrm);
736			if (retVal == '') continue;
737		} else if (thisFrame[i] != ofrm) continue;
738
739		retVal = '['+i+']' + retVal;
740		break;
741	}
742
743	return retVal;
744}
745function opt_FRAME(frm) {
746	o3_frame = compatibleframe(frm) ? frm : ol_frame;
747
748	if (o3_frame != ol_frame) {
749		var tFrm = getFrameRef(top.frames, o3_frame);
750		var sFrm = getFrameRef(top.frames, ol_frame);
751
752		if (sFrm.length == tFrm.length) {
753			l = tFrm.lastIndexOf('[');
754			if (l) {
755				while(sFrm.substring(0,l) != tFrm.substring(0,l)) l = tFrm.lastIndexOf('[',l-1);
756				tFrm = tFrm.substr(l);
757				sFrm = sFrm.substr(l);
758			}
759		}
760
761		var cnt = 0, p = '', str = tFrm;
762
763		while((k = str.lastIndexOf('[')) != -1) {
764			cnt++;
765			str = str.substring(0,k);
766		}
767
768		for (var i=0; i<cnt; i++) p = p + 'parent.';
769		fnRef = p + 'frames' + sFrm + '.';
770	}
771
772	if ( (ns4) || (ie4 || (ns6)) ) {
773		if (ns4) over = o3_frame.document.overDiv;
774		if (ie4) over = o3_frame.overDiv.style;
775		if (ns6) over = o3_frame.document.getElementById("overDiv");
776	}
777
778	return 0;
779}
780function opt_FUNCTION(callme) {
781	o3_text = (callme ? callme() : (o3_function ? o3_function() : 'No Function'));
782	return 0;
783}
784function vpos_convert(d) {
785	if (d == 0) {
786		d = LEFT;
787	} else {
788		if (d == 1) {
789			d = RIGHT;
790		} else {
791			d = CENTER;
792		}
793	}
794
795	return d;
796}
797function dts(d,text) {
798	o3_hpos = vpos_convert(d);
799	overlib(text, o3_hpos, CAPTION, "");
800}
801function dtc(d,text, title) {
802	o3_hpos = vpos_convert(d);
803	overlib(text, CAPTION, title, o3_hpos);
804}
805function stc(d,text, title) {
806	o3_hpos = vpos_convert(d);
807	overlib(text, CAPTION, title, o3_hpos, STICKY);
808}
809function drs(text) {
810	dts(1,text);
811}
812function drc(text, title) {
813	dtc(1,text,title);
814}
815function src(text,title) {
816	stc(1,text,title);
817}
818function dls(text) {
819	dts(0,text);
820}
821function dlc(text, title) {
822	dtc(0,text,title);
823}
824function slc(text,title) {
825	stc(0,text,title);
826}
827function dcs(text) {
828	dts(2,text);
829}
830function dcc(text, title) {
831	dtc(2,text,title);
832}
833function scc(text,title) {
834	stc(2,text,title);
835}
836