java/cewolf-1.0/src/site/overlib.js
author František Kučera <franta-hg@frantovo.cz>
Sun Mar 01 11:06:49 2009 +0100 (2009-03-01)
changeset 4 249560bcc466
permissions -rw-r--r--
Doplnění serializovatelnosti
franta-hg@1
     1
//\//////////////////////////////////////////////////////////////////////////////////
franta-hg@1
     2
//\  overLIB 3.50  --  This notice must remain untouched at all times.
franta-hg@1
     3
//\  Copyright Erik Bosrup 1998-2001. All rights reserved.
franta-hg@1
     4
//\
franta-hg@1
     5
//\  By Erik Bosrup (erik@bosrup.com).  Last modified 2001-08-28.
franta-hg@1
     6
//\  Portions by Dan Steinman (dansteinman.com). Additions by other people are
franta-hg@1
     7
//\  listed on the overLIB homepage.
franta-hg@1
     8
//\
franta-hg@1
     9
//\  Get the latest version at http://www.bosrup.com/web/overlib/
franta-hg@1
    10
//\
franta-hg@1
    11
//\  This script is published under an open source license. Please read the license
franta-hg@1
    12
//\  agreement online at: http://www.bosrup.com/web/overlib/license.html
franta-hg@1
    13
//\  If you have questions regarding the license please contact erik@bosrup.com.
franta-hg@1
    14
//\
franta-hg@1
    15
//\  This script library was originally created for personal use. By request it has
franta-hg@1
    16
//\  later been made public. This is free software. Do not sell this as your own
franta-hg@1
    17
//\  work, or remove this copyright notice. For full details on copying or changing
franta-hg@1
    18
//\  this script please read the license agreement at the link above.
franta-hg@1
    19
//\
franta-hg@1
    20
//\  Please give credit on sites that use overLIB and submit changes of the script
franta-hg@1
    21
//\  so other people can use them as well. This script is free to use, don't abuse.
franta-hg@1
    22
//\//////////////////////////////////////////////////////////////////////////////////
franta-hg@1
    23
//\mini
franta-hg@1
    24
franta-hg@1
    25
franta-hg@1
    26
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
    27
// CONSTANTS
franta-hg@1
    28
// Don't touch these. :)
franta-hg@1
    29
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
    30
var INARRAY		=	1;
franta-hg@1
    31
var CAPARRAY		=	2;
franta-hg@1
    32
var STICKY		=	3;
franta-hg@1
    33
var BACKGROUND		=	4;
franta-hg@1
    34
var NOCLOSE		=	5;
franta-hg@1
    35
var CAPTION		=	6;
franta-hg@1
    36
var LEFT		=	7;
franta-hg@1
    37
var RIGHT		=	8;
franta-hg@1
    38
var CENTER		=	9;
franta-hg@1
    39
var OFFSETX		=	10;
franta-hg@1
    40
var OFFSETY		=	11;
franta-hg@1
    41
var FGCOLOR		=	12;
franta-hg@1
    42
var BGCOLOR		=	13;
franta-hg@1
    43
var TEXTCOLOR		=	14;
franta-hg@1
    44
var CAPCOLOR		=	15;
franta-hg@1
    45
var CLOSECOLOR		=	16;
franta-hg@1
    46
var WIDTH		=	17;
franta-hg@1
    47
var BORDER		=	18;
franta-hg@1
    48
var STATUS		=	19;
franta-hg@1
    49
var AUTOSTATUS		=	20;
franta-hg@1
    50
var AUTOSTATUSCAP	=	21;
franta-hg@1
    51
var HEIGHT		=	22;
franta-hg@1
    52
var CLOSETEXT		=	23;
franta-hg@1
    53
var SNAPX		=	24;
franta-hg@1
    54
var SNAPY		=	25;
franta-hg@1
    55
var FIXX		=	26;
franta-hg@1
    56
var FIXY		=	27;
franta-hg@1
    57
var FGBACKGROUND	=	28;
franta-hg@1
    58
var BGBACKGROUND	=	29;
franta-hg@1
    59
var PADX		=	30; // PADX2 out
franta-hg@1
    60
var PADY		=	31; // PADY2 out
franta-hg@1
    61
var FULLHTML		=	34;
franta-hg@1
    62
var ABOVE		=	35;
franta-hg@1
    63
var BELOW		=	36;
franta-hg@1
    64
var CAPICON		=	37;
franta-hg@1
    65
var TEXTFONT		=	38;
franta-hg@1
    66
var CAPTIONFONT		=	39;
franta-hg@1
    67
var CLOSEFONT		=	40;
franta-hg@1
    68
var TEXTSIZE		=	41;
franta-hg@1
    69
var CAPTIONSIZE		=	42;
franta-hg@1
    70
var CLOSESIZE		=	43;
franta-hg@1
    71
var FRAME		=	44;
franta-hg@1
    72
var TIMEOUT		=	45;
franta-hg@1
    73
var FUNCTION		=	46;
franta-hg@1
    74
var DELAY		=	47;
franta-hg@1
    75
var HAUTO		=	48;
franta-hg@1
    76
var VAUTO		=	49;
franta-hg@1
    77
var CLOSECLICK		=	50;
franta-hg@1
    78
var CSSOFF		=	51;
franta-hg@1
    79
var CSSSTYLE		=	52;
franta-hg@1
    80
var CSSCLASS		=	53;
franta-hg@1
    81
var FGCLASS		=	54;
franta-hg@1
    82
var BGCLASS		=	55;
franta-hg@1
    83
var TEXTFONTCLASS	=	56;
franta-hg@1
    84
var CAPTIONFONTCLASS	=	57;
franta-hg@1
    85
var CLOSEFONTCLASS	=	58;
franta-hg@1
    86
var PADUNIT		=	59;
franta-hg@1
    87
var HEIGHTUNIT		=	60;
franta-hg@1
    88
var WIDTHUNIT		=	61;
franta-hg@1
    89
var TEXTSIZEUNIT	=	62;
franta-hg@1
    90
var TEXTDECORATION	=	63;
franta-hg@1
    91
var TEXTSTYLE		=	64;
franta-hg@1
    92
var TEXTWEIGHT		=	65;
franta-hg@1
    93
var CAPTIONSIZEUNIT	=	66;
franta-hg@1
    94
var CAPTIONDECORATION	=	67;
franta-hg@1
    95
var CAPTIONSTYLE	=	68;
franta-hg@1
    96
var CAPTIONWEIGHT	=	69;
franta-hg@1
    97
var CLOSESIZEUNIT	=	70;
franta-hg@1
    98
var CLOSEDECORATION	=	71;
franta-hg@1
    99
var CLOSESTYLE		=	72;
franta-hg@1
   100
var CLOSEWEIGHT		=	73;
franta-hg@1
   101
franta-hg@1
   102
franta-hg@1
   103
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   104
// DEFAULT CONFIGURATION
franta-hg@1
   105
// You don't have to change anything here if you don't want to. All of this can be
franta-hg@1
   106
// changed on your html page or through an overLIB call.
franta-hg@1
   107
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   108
franta-hg@1
   109
// Main background color (the large area)
franta-hg@1
   110
// Usually a bright color (white, yellow etc)
franta-hg@1
   111
if (typeof ol_fgcolor == 'undefined') { var ol_fgcolor = "#CCCCFF";}
franta-hg@1
   112
	
franta-hg@1
   113
// Border color and color of caption
franta-hg@1
   114
// Usually a dark color (black, brown etc)
franta-hg@1
   115
if (typeof ol_bgcolor == 'undefined') { var ol_bgcolor = "#333399";}
franta-hg@1
   116
	
franta-hg@1
   117
// Text color
franta-hg@1
   118
// Usually a dark color
franta-hg@1
   119
if (typeof ol_textcolor == 'undefined') { var ol_textcolor = "#000000";}
franta-hg@1
   120
	
franta-hg@1
   121
// Color of the caption text
franta-hg@1
   122
// Usually a bright color
franta-hg@1
   123
if (typeof ol_capcolor == 'undefined') { var ol_capcolor = "#FFFFFF";}
franta-hg@1
   124
	
franta-hg@1
   125
// Color of "Close" when using Sticky
franta-hg@1
   126
// Usually a semi-bright color
franta-hg@1
   127
if (typeof ol_closecolor == 'undefined') { var ol_closecolor = "#9999FF";}
franta-hg@1
   128
franta-hg@1
   129
// Font face for the main text
franta-hg@1
   130
if (typeof ol_textfont == 'undefined') { var ol_textfont = "Verdana,Arial,Helvetica";}
franta-hg@1
   131
franta-hg@1
   132
// Font face for the caption
franta-hg@1
   133
if (typeof ol_captionfont == 'undefined') { var ol_captionfont = "Verdana,Arial,Helvetica";}
franta-hg@1
   134
franta-hg@1
   135
// Font face for the close text
franta-hg@1
   136
if (typeof ol_closefont == 'undefined') { var ol_closefont = "Verdana,Arial,Helvetica";}
franta-hg@1
   137
franta-hg@1
   138
// Font size for the main text
franta-hg@1
   139
// When using CSS this will be very small.
franta-hg@1
   140
if (typeof ol_textsize == 'undefined') { var ol_textsize = "1";}
franta-hg@1
   141
franta-hg@1
   142
// Font size for the caption
franta-hg@1
   143
// When using CSS this will be very small.
franta-hg@1
   144
if (typeof ol_captionsize == 'undefined') { var ol_captionsize = "1";}
franta-hg@1
   145
franta-hg@1
   146
// Font size for the close text
franta-hg@1
   147
// When using CSS this will be very small.
franta-hg@1
   148
if (typeof ol_closesize == 'undefined') { var ol_closesize = "1";}
franta-hg@1
   149
franta-hg@1
   150
// Width of the popups in pixels
franta-hg@1
   151
// 100-300 pixels is typical
franta-hg@1
   152
if (typeof ol_width == 'undefined') { var ol_width = "200";}
franta-hg@1
   153
franta-hg@1
   154
// How thick the ol_border should be in pixels
franta-hg@1
   155
// 1-3 pixels is typical
franta-hg@1
   156
if (typeof ol_border == 'undefined') { var ol_border = "1";}
franta-hg@1
   157
franta-hg@1
   158
// How many pixels to the right/left of the cursor to show the popup
franta-hg@1
   159
// Values between 3 and 12 are best
franta-hg@1
   160
if (typeof ol_offsetx == 'undefined') { var ol_offsetx = 10;}
franta-hg@1
   161
	
franta-hg@1
   162
// How many pixels to the below the cursor to show the popup
franta-hg@1
   163
// Values between 3 and 12 are best
franta-hg@1
   164
if (typeof ol_offsety == 'undefined') { var ol_offsety = 10;}
franta-hg@1
   165
franta-hg@1
   166
// Default text for popups
franta-hg@1
   167
// Should you forget to pass something to overLIB this will be displayed.
franta-hg@1
   168
if (typeof ol_text == 'undefined') { var ol_text = "Default Text"; }
franta-hg@1
   169
franta-hg@1
   170
// Default caption
franta-hg@1
   171
// You should leave this blank or you will have problems making non caps popups.
franta-hg@1
   172
if (typeof ol_cap == 'undefined') { var ol_cap = ""; }
franta-hg@1
   173
franta-hg@1
   174
// Decides if sticky popups are default.
franta-hg@1
   175
// 0 for non, 1 for stickies.
franta-hg@1
   176
if (typeof ol_sticky == 'undefined') { var ol_sticky = 0; }
franta-hg@1
   177
franta-hg@1
   178
// Default background image. Better left empty unless you always want one.
franta-hg@1
   179
if (typeof ol_background == 'undefined') { var ol_background = ""; }
franta-hg@1
   180
franta-hg@1
   181
// Text for the closing sticky popups.
franta-hg@1
   182
// Normal is "Close".
franta-hg@1
   183
if (typeof ol_close == 'undefined') { var ol_close = "Close"; }
franta-hg@1
   184
franta-hg@1
   185
// Default vertical alignment for popups.
franta-hg@1
   186
// It's best to leave RIGHT here. Other options are LEFT and CENTER.
franta-hg@1
   187
if (typeof ol_hpos == 'undefined') { var ol_hpos = RIGHT; }
franta-hg@1
   188
franta-hg@1
   189
// Default status bar text when a popup is invoked.
franta-hg@1
   190
if (typeof ol_status == 'undefined') { var ol_status = ""; }
franta-hg@1
   191
franta-hg@1
   192
// If the status bar automatically should load either text or caption.
franta-hg@1
   193
// 0=nothing, 1=text, 2=caption
franta-hg@1
   194
if (typeof ol_autostatus == 'undefined') { var ol_autostatus = 0; }
franta-hg@1
   195
franta-hg@1
   196
// Default height for popup. Often best left alone.
franta-hg@1
   197
if (typeof ol_height == 'undefined') { var ol_height = -1; }
franta-hg@1
   198
franta-hg@1
   199
// Horizontal grid spacing that popups will snap to.
franta-hg@1
   200
// 0 makes no grid, anything else will cause a snap to that grid spacing.
franta-hg@1
   201
if (typeof ol_snapx == 'undefined') { var ol_snapx = 0; }
franta-hg@1
   202
franta-hg@1
   203
// Vertical grid spacing that popups will snap to.
franta-hg@1
   204
// 0 makes no grid, andthing else will cause a snap to that grid spacing.
franta-hg@1
   205
if (typeof ol_snapy == 'undefined') { var ol_snapy = 0; }
franta-hg@1
   206
franta-hg@1
   207
// Sets the popups horizontal position to a fixed column.
franta-hg@1
   208
// Anything above -1 will cause fixed position.
franta-hg@1
   209
if (typeof ol_fixx == 'undefined') { var ol_fixx = -1; }
franta-hg@1
   210
franta-hg@1
   211
// Sets the popups vertical position to a fixed row.
franta-hg@1
   212
// Anything above -1 will cause fixed position.
franta-hg@1
   213
if (typeof ol_fixy == 'undefined') { var ol_fixy = -1; }
franta-hg@1
   214
franta-hg@1
   215
// Background image for the popups inside.
franta-hg@1
   216
if (typeof ol_fgbackground == 'undefined') { var ol_fgbackground = ""; }
franta-hg@1
   217
franta-hg@1
   218
// Background image for the popups frame.
franta-hg@1
   219
if (typeof ol_bgbackground == 'undefined') { var ol_bgbackground = ""; }
franta-hg@1
   220
franta-hg@1
   221
// How much horizontal left padding text should get by default when BACKGROUND is used.
franta-hg@1
   222
if (typeof ol_padxl == 'undefined') { var ol_padxl = 1; }
franta-hg@1
   223
franta-hg@1
   224
// How much horizontal right padding text should get by default when BACKGROUND is used.
franta-hg@1
   225
if (typeof ol_padxr == 'undefined') { var ol_padxr = 1; }
franta-hg@1
   226
franta-hg@1
   227
// How much vertical top padding text should get by default when BACKGROUND is used.
franta-hg@1
   228
if (typeof ol_padyt == 'undefined') { var ol_padyt = 1; }
franta-hg@1
   229
franta-hg@1
   230
// How much vertical bottom padding text should get by default when BACKGROUND is used.
franta-hg@1
   231
if (typeof ol_padyb == 'undefined') { var ol_padyb = 1; }
franta-hg@1
   232
franta-hg@1
   233
// If the user by default must supply all html for complete popup control.
franta-hg@1
   234
// Set to 1 to activate, 0 otherwise.
franta-hg@1
   235
if (typeof ol_fullhtml == 'undefined') { var ol_fullhtml = 0; }
franta-hg@1
   236
franta-hg@1
   237
// Default vertical position of the popup. Default should normally be BELOW.
franta-hg@1
   238
// ABOVE only works when HEIGHT is defined.
franta-hg@1
   239
if (typeof ol_vpos == 'undefined') { var ol_vpos = BELOW; }
franta-hg@1
   240
franta-hg@1
   241
// Default height of popup to use when placing the popup above the cursor.
franta-hg@1
   242
if (typeof ol_aboveheight == 'undefined') { var ol_aboveheight = 0; }
franta-hg@1
   243
franta-hg@1
   244
// Default icon to place next to the popups caption.
franta-hg@1
   245
if (typeof ol_caption == 'undefined') { var ol_capicon = ""; }
franta-hg@1
   246
franta-hg@1
   247
// Default frame. We default to current frame if there is no frame defined.
franta-hg@1
   248
if (typeof ol_frame == 'undefined') { var ol_frame = self; }
franta-hg@1
   249
franta-hg@1
   250
// Default timeout. By default there is no timeout.
franta-hg@1
   251
if (typeof ol_timeout == 'undefined') { var ol_timeout = 0; }
franta-hg@1
   252
franta-hg@1
   253
// Default javascript funktion. By default there is none.
franta-hg@1
   254
if (typeof ol_function == 'undefined') { var ol_function = Function(); }
franta-hg@1
   255
franta-hg@1
   256
// Default timeout. By default there is no timeout.
franta-hg@1
   257
if (typeof ol_delay == 'undefined') { var ol_delay = 0; }
franta-hg@1
   258
franta-hg@1
   259
// If overLIB should decide the horizontal placement.
franta-hg@1
   260
if (typeof ol_hauto == 'undefined') { var ol_hauto = 0; }
franta-hg@1
   261
franta-hg@1
   262
// If overLIB should decide the vertical placement.
franta-hg@1
   263
if (typeof ol_vauto == 'undefined') { var ol_vauto = 0; }
franta-hg@1
   264
franta-hg@1
   265
franta-hg@1
   266
franta-hg@1
   267
// If the user has to click to close stickies.
franta-hg@1
   268
if (typeof ol_closeclick == 'undefined') { var ol_closeclick = 0; }
franta-hg@1
   269
franta-hg@1
   270
// This variable determines if you want to use CSS or inline definitions.
franta-hg@1
   271
// CSSOFF=no CSS    CSSSTYLE=use CSS inline styles    CSSCLASS=use classes
franta-hg@1
   272
if (typeof ol_css == 'undefined') { var ol_css = CSSOFF; }
franta-hg@1
   273
franta-hg@1
   274
// Main background class (eqv of fgcolor)
franta-hg@1
   275
// This is only used if CSS is set to use classes (ol_css = CSSCLASS)
franta-hg@1
   276
if (typeof ol_fgclass == 'undefined') { var ol_fgclass = ""; }
franta-hg@1
   277
franta-hg@1
   278
// Frame background class (eqv of bgcolor)
franta-hg@1
   279
// This is only used if CSS is set to use classes (ol_css = CSSCLASS)
franta-hg@1
   280
if (typeof ol_bgclass == 'undefined') { var ol_bgclass = ""; }
franta-hg@1
   281
franta-hg@1
   282
// Main font class
franta-hg@1
   283
// This is only used if CSS is set to use classes (ol_css = CSSCLASS)
franta-hg@1
   284
if (typeof ol_textfontclass == 'undefined') { var ol_textfontclass = ""; }
franta-hg@1
   285
franta-hg@1
   286
// Caption font class
franta-hg@1
   287
// This is only used if CSS is set to use classes (ol_css = CSSCLASS)
franta-hg@1
   288
if (typeof ol_captionfontclass == 'undefined') { var ol_captionfontclass = ""; }
franta-hg@1
   289
franta-hg@1
   290
// Close font class
franta-hg@1
   291
// This is only used if CSS is set to use classes (ol_css = CSSCLASS)
franta-hg@1
   292
if (typeof ol_closefontclass == 'undefined') { var ol_closefontclass = ""; }
franta-hg@1
   293
franta-hg@1
   294
// Unit to be used for the text padding above
franta-hg@1
   295
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   296
// Options include "px", "%", "in", "cm" and more
franta-hg@1
   297
if (typeof ol_padunit == 'undefined') { var ol_padunit = "px";}
franta-hg@1
   298
franta-hg@1
   299
// Unit to be used for height of popup
franta-hg@1
   300
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   301
// Options include "px", "%", "in", "cm" and more
franta-hg@1
   302
if (typeof ol_heightunit == 'undefined') { var ol_heightunit = "px";}
franta-hg@1
   303
franta-hg@1
   304
// Unit to be used for width of popup
franta-hg@1
   305
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   306
// Options include "px", "%", "in", "cm" and more
franta-hg@1
   307
if (typeof ol_widthunit == 'undefined') { var ol_widthunit = "px";}
franta-hg@1
   308
franta-hg@1
   309
// Font size unit for the main text
franta-hg@1
   310
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   311
if (typeof ol_textsizeunit == 'undefined') { var ol_textsizeunit = "px";}
franta-hg@1
   312
franta-hg@1
   313
// Decoration of the main text ("none", "underline", "line-through" or "blink")
franta-hg@1
   314
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   315
if (typeof ol_textdecoration == 'undefined') { var ol_textdecoration = "none";}
franta-hg@1
   316
franta-hg@1
   317
// Font style of the main text ("normal" or "italic")
franta-hg@1
   318
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   319
if (typeof ol_textstyle == 'undefined') { var ol_textstyle = "normal";}
franta-hg@1
   320
franta-hg@1
   321
// Font weight of the main text ("normal", "bold", "bolder", "lighter", ect.)
franta-hg@1
   322
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   323
if (typeof ol_textweight == 'undefined') { var ol_textweight = "normal";}
franta-hg@1
   324
franta-hg@1
   325
// Font size unit for the caption
franta-hg@1
   326
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   327
if (typeof ol_captionsizeunit == 'undefined') { var ol_captionsizeunit = "px";}
franta-hg@1
   328
franta-hg@1
   329
// Decoration of the caption ("none", "underline", "line-through" or "blink")
franta-hg@1
   330
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   331
if (typeof ol_captiondecoration == 'undefined') { var ol_captiondecoration = "none";}
franta-hg@1
   332
franta-hg@1
   333
// Font style of the caption ("normal" or "italic")
franta-hg@1
   334
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   335
if (typeof ol_captionstyle == 'undefined') { var ol_captionstyle = "normal";}
franta-hg@1
   336
franta-hg@1
   337
// Font weight of the caption ("normal", "bold", "bolder", "lighter", ect.)
franta-hg@1
   338
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   339
if (typeof ol_captionweight == 'undefined') { var ol_captionweight = "bold";}
franta-hg@1
   340
franta-hg@1
   341
// Font size unit for the close text
franta-hg@1
   342
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   343
if (typeof ol_closesizeunit == 'undefined') { var ol_closesizeunit = "px";}
franta-hg@1
   344
franta-hg@1
   345
// Decoration of the close text ("none", "underline", "line-through" or "blink")
franta-hg@1
   346
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   347
if (typeof ol_closedecoration == 'undefined') { var ol_closedecoration = "none";}
franta-hg@1
   348
franta-hg@1
   349
// Font style of the close text ("normal" or "italic")
franta-hg@1
   350
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   351
if (typeof ol_closestyle == 'undefined') { var ol_closestyle = "normal";}
franta-hg@1
   352
franta-hg@1
   353
// Font weight of the close text ("normal", "bold", "bolder", "lighter", ect.)
franta-hg@1
   354
// Only used if CSS inline styles are being used (ol_css = CSSSTYLE)
franta-hg@1
   355
if (typeof ol_closeweight == 'undefined') { var ol_closeweight = "normal";}
franta-hg@1
   356
franta-hg@1
   357
franta-hg@1
   358
franta-hg@1
   359
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   360
// ARRAY CONFIGURATION
franta-hg@1
   361
// You don't have to change anything here if you don't want to. The following
franta-hg@1
   362
// arrays can be filled with text and html if you don't wish to pass it from
franta-hg@1
   363
// your html page.
franta-hg@1
   364
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   365
franta-hg@1
   366
// Array with texts.
franta-hg@1
   367
if (typeof ol_texts == 'undefined') { var ol_texts = new Array("Text 0", "Text 1"); }
franta-hg@1
   368
franta-hg@1
   369
// Array with captions.
franta-hg@1
   370
if (typeof ol_caps == 'undefined') { var ol_caps = new Array("Caption 0", "Caption 1"); }
franta-hg@1
   371
franta-hg@1
   372
franta-hg@1
   373
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   374
// END CONFIGURATION
franta-hg@1
   375
// Don't change anything below this line, all configuration is above.
franta-hg@1
   376
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   377
franta-hg@1
   378
franta-hg@1
   379
franta-hg@1
   380
franta-hg@1
   381
franta-hg@1
   382
franta-hg@1
   383
franta-hg@1
   384
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   385
// INIT
franta-hg@1
   386
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   387
franta-hg@1
   388
// Runtime variables init. Used for runtime only, don't change, not for config!
franta-hg@1
   389
var o3_text = "";
franta-hg@1
   390
var o3_cap = "";
franta-hg@1
   391
var o3_sticky = 0;
franta-hg@1
   392
var o3_background = "";
franta-hg@1
   393
var o3_close = "Close";
franta-hg@1
   394
var o3_hpos = RIGHT;
franta-hg@1
   395
var o3_offsetx = 2;
franta-hg@1
   396
var o3_offsety = 2;
franta-hg@1
   397
var o3_fgcolor = "";
franta-hg@1
   398
var o3_bgcolor = "";
franta-hg@1
   399
var o3_textcolor = "";
franta-hg@1
   400
var o3_capcolor = "";
franta-hg@1
   401
var o3_closecolor = "";
franta-hg@1
   402
var o3_width = 100;
franta-hg@1
   403
var o3_border = 1;
franta-hg@1
   404
var o3_status = "";
franta-hg@1
   405
var o3_autostatus = 0;
franta-hg@1
   406
var o3_height = -1;
franta-hg@1
   407
var o3_snapx = 0;
franta-hg@1
   408
var o3_snapy = 0;
franta-hg@1
   409
var o3_fixx = -1;
franta-hg@1
   410
var o3_fixy = -1;
franta-hg@1
   411
var o3_fgbackground = "";
franta-hg@1
   412
var o3_bgbackground = "";
franta-hg@1
   413
var o3_padxl = 0;
franta-hg@1
   414
var o3_padxr = 0;
franta-hg@1
   415
var o3_padyt = 0;
franta-hg@1
   416
var o3_padyb = 0;
franta-hg@1
   417
var o3_fullhtml = 0;
franta-hg@1
   418
var o3_vpos = BELOW;
franta-hg@1
   419
var o3_aboveheight = 0;
franta-hg@1
   420
var o3_capicon = "";
franta-hg@1
   421
var o3_textfont = "Verdana,Arial,Helvetica";
franta-hg@1
   422
var o3_captionfont = "Verdana,Arial,Helvetica";
franta-hg@1
   423
var o3_closefont = "Verdana,Arial,Helvetica";
franta-hg@1
   424
var o3_textsize = "1";
franta-hg@1
   425
var o3_captionsize = "1";
franta-hg@1
   426
var o3_closesize = "1";
franta-hg@1
   427
var o3_frame = self;
franta-hg@1
   428
var o3_timeout = 0;
franta-hg@1
   429
var o3_timerid = 0;
franta-hg@1
   430
var o3_allowmove = 0;
franta-hg@1
   431
var o3_function = Function();
franta-hg@1
   432
var o3_delay = 0;
franta-hg@1
   433
var o3_delayid = 0;
franta-hg@1
   434
var o3_hauto = 0;
franta-hg@1
   435
var o3_vauto = 0;
franta-hg@1
   436
var o3_closeclick = 0;
franta-hg@1
   437
franta-hg@1
   438
var o3_css = CSSOFF;
franta-hg@1
   439
var o3_fgclass = "";
franta-hg@1
   440
var o3_bgclass = "";
franta-hg@1
   441
var o3_textfontclass = "";
franta-hg@1
   442
var o3_captionfontclass = "";
franta-hg@1
   443
var o3_closefontclass = "";
franta-hg@1
   444
var o3_padunit = "px";
franta-hg@1
   445
var o3_heightunit = "px";
franta-hg@1
   446
var o3_widthunit = "px";
franta-hg@1
   447
var o3_textsizeunit = "px";
franta-hg@1
   448
var o3_textdecoration = "";
franta-hg@1
   449
var o3_textstyle = "";
franta-hg@1
   450
var o3_textweight = "";
franta-hg@1
   451
var o3_captionsizeunit = "px";
franta-hg@1
   452
var o3_captiondecoration = "";
franta-hg@1
   453
var o3_captionstyle = "";
franta-hg@1
   454
var o3_captionweight = "";
franta-hg@1
   455
var o3_closesizeunit = "px";
franta-hg@1
   456
var o3_closedecoration = "";
franta-hg@1
   457
var o3_closestyle = "";
franta-hg@1
   458
var o3_closeweight = "";
franta-hg@1
   459
franta-hg@1
   460
franta-hg@1
   461
franta-hg@1
   462
// Display state variables
franta-hg@1
   463
var o3_x = 0;
franta-hg@1
   464
var o3_y = 0;
franta-hg@1
   465
var o3_allow = 0;
franta-hg@1
   466
var o3_showingsticky = 0;
franta-hg@1
   467
var o3_removecounter = 0;
franta-hg@1
   468
franta-hg@1
   469
// Our layer
franta-hg@1
   470
var over = null;
franta-hg@1
   471
franta-hg@1
   472
franta-hg@1
   473
// Decide browser version
franta-hg@1
   474
var ns4 = (document.layers)? true:false;
franta-hg@1
   475
var ns6 = (document.getElementById)? true:false;
franta-hg@1
   476
var ie4 = (document.all)? true:false;
franta-hg@1
   477
var ie5 = false;
franta-hg@1
   478
franta-hg@1
   479
// Microsoft Stupidity Check(tm).
franta-hg@1
   480
if (ie4) {
franta-hg@1
   481
	if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
franta-hg@1
   482
		ie5 = true;
franta-hg@1
   483
	}
franta-hg@1
   484
	if (ns6) {
franta-hg@1
   485
		ns6 = false;
franta-hg@1
   486
	}
franta-hg@1
   487
}
franta-hg@1
   488
franta-hg@1
   489
franta-hg@1
   490
// Capture events, alt. diffuses the overlib function.
franta-hg@1
   491
if ( (ns4) || (ie4) || (ns6)) {
franta-hg@1
   492
	document.onmousemove = mouseMove
franta-hg@1
   493
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
franta-hg@1
   494
} else {
franta-hg@1
   495
	overlib = no_overlib;
franta-hg@1
   496
	nd = no_overlib;
franta-hg@1
   497
	ver3fix = true;
franta-hg@1
   498
}
franta-hg@1
   499
franta-hg@1
   500
franta-hg@1
   501
// Fake function for 3.0 users.
franta-hg@1
   502
function no_overlib() {
franta-hg@1
   503
	return ver3fix;
franta-hg@1
   504
}
franta-hg@1
   505
franta-hg@1
   506
franta-hg@1
   507
franta-hg@1
   508
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   509
// PUBLIC FUNCTIONS
franta-hg@1
   510
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   511
franta-hg@1
   512
franta-hg@1
   513
// overlib(arg0, ..., argN)
franta-hg@1
   514
// Loads parameters into global runtime variables.
franta-hg@1
   515
function overlib() {
franta-hg@1
   516
	
franta-hg@1
   517
	// Load defaults to runtime.
franta-hg@1
   518
	o3_text = ol_text;
franta-hg@1
   519
	o3_cap = ol_cap;
franta-hg@1
   520
	o3_sticky = ol_sticky;
franta-hg@1
   521
	o3_background = ol_background;
franta-hg@1
   522
	o3_close = ol_close;
franta-hg@1
   523
	o3_hpos = ol_hpos;
franta-hg@1
   524
	o3_offsetx = ol_offsetx;
franta-hg@1
   525
	o3_offsety = ol_offsety;
franta-hg@1
   526
	o3_fgcolor = ol_fgcolor;
franta-hg@1
   527
	o3_bgcolor = ol_bgcolor;
franta-hg@1
   528
	o3_textcolor = ol_textcolor;
franta-hg@1
   529
	o3_capcolor = ol_capcolor;
franta-hg@1
   530
	o3_closecolor = ol_closecolor;
franta-hg@1
   531
	o3_width = ol_width;
franta-hg@1
   532
	o3_border = ol_border;
franta-hg@1
   533
	o3_status = ol_status;
franta-hg@1
   534
	o3_autostatus = ol_autostatus;
franta-hg@1
   535
	o3_height = ol_height;
franta-hg@1
   536
	o3_snapx = ol_snapx;
franta-hg@1
   537
	o3_snapy = ol_snapy;
franta-hg@1
   538
	o3_fixx = ol_fixx;
franta-hg@1
   539
	o3_fixy = ol_fixy;
franta-hg@1
   540
	o3_fgbackground = ol_fgbackground;
franta-hg@1
   541
	o3_bgbackground = ol_bgbackground;
franta-hg@1
   542
	o3_padxl = ol_padxl;
franta-hg@1
   543
	o3_padxr = ol_padxr;
franta-hg@1
   544
	o3_padyt = ol_padyt;
franta-hg@1
   545
	o3_padyb = ol_padyb;
franta-hg@1
   546
	o3_fullhtml = ol_fullhtml;
franta-hg@1
   547
	o3_vpos = ol_vpos;
franta-hg@1
   548
	o3_aboveheight = ol_aboveheight;
franta-hg@1
   549
	o3_capicon = ol_capicon;
franta-hg@1
   550
	o3_textfont = ol_textfont;
franta-hg@1
   551
	o3_captionfont = ol_captionfont;
franta-hg@1
   552
	o3_closefont = ol_closefont;
franta-hg@1
   553
	o3_textsize = ol_textsize;
franta-hg@1
   554
	o3_captionsize = ol_captionsize;
franta-hg@1
   555
	o3_closesize = ol_closesize;
franta-hg@1
   556
	o3_timeout = ol_timeout;
franta-hg@1
   557
	o3_function = ol_function;
franta-hg@1
   558
	o3_delay = ol_delay;
franta-hg@1
   559
	o3_hauto = ol_hauto;
franta-hg@1
   560
	o3_vauto = ol_vauto;
franta-hg@1
   561
	o3_closeclick = ol_closeclick;
franta-hg@1
   562
	
franta-hg@1
   563
	o3_css = ol_css;
franta-hg@1
   564
	o3_fgclass = ol_fgclass;
franta-hg@1
   565
	o3_bgclass = ol_bgclass;
franta-hg@1
   566
	o3_textfontclass = ol_textfontclass;
franta-hg@1
   567
	o3_captionfontclass = ol_captionfontclass;
franta-hg@1
   568
	o3_closefontclass = ol_closefontclass;
franta-hg@1
   569
	o3_padunit = ol_padunit;
franta-hg@1
   570
	o3_heightunit = ol_heightunit;
franta-hg@1
   571
	o3_widthunit = ol_widthunit;
franta-hg@1
   572
	o3_textsizeunit = ol_textsizeunit;
franta-hg@1
   573
	o3_textdecoration = ol_textdecoration;
franta-hg@1
   574
	o3_textstyle = ol_textstyle;
franta-hg@1
   575
	o3_textweight = ol_textweight;
franta-hg@1
   576
	o3_captionsizeunit = ol_captionsizeunit;
franta-hg@1
   577
	o3_captiondecoration = ol_captiondecoration;
franta-hg@1
   578
	o3_captionstyle = ol_captionstyle;
franta-hg@1
   579
	o3_captionweight = ol_captionweight;
franta-hg@1
   580
	o3_closesizeunit = ol_closesizeunit;
franta-hg@1
   581
	o3_closedecoration = ol_closedecoration;
franta-hg@1
   582
	o3_closestyle = ol_closestyle;
franta-hg@1
   583
	o3_closeweight = ol_closeweight;
franta-hg@1
   584
	
franta-hg@1
   585
franta-hg@1
   586
	// Special for frame support, over must be reset...
franta-hg@1
   587
	if ( (ns4) || (ie4) || (ns6) ) {
franta-hg@1
   588
		o3_frame = ol_frame;
franta-hg@1
   589
		if (ns4) over = o3_frame.document.overDiv
franta-hg@1
   590
		if (ie4) over = o3_frame.overDiv.style
franta-hg@1
   591
		if (ns6) over = o3_frame.document.getElementById("overDiv");
franta-hg@1
   592
	}
franta-hg@1
   593
	
franta-hg@1
   594
	
franta-hg@1
   595
	// What the next argument is expected to be.
franta-hg@1
   596
	var parsemode = -1;
franta-hg@1
   597
	
franta-hg@1
   598
	var ar = arguments;
franta-hg@1
   599
franta-hg@1
   600
	for (i = 0; i < ar.length; i++) {
franta-hg@1
   601
franta-hg@1
   602
		if (parsemode < 0) {
franta-hg@1
   603
			// Arg is maintext, unless INARRAY
franta-hg@1
   604
			if (ar[i] == INARRAY) {
franta-hg@1
   605
				o3_text = ol_texts[ar[++i]];
franta-hg@1
   606
			} else {
franta-hg@1
   607
				o3_text = ar[i];
franta-hg@1
   608
			}
franta-hg@1
   609
franta-hg@1
   610
			parsemode = 0;
franta-hg@1
   611
		} else {
franta-hg@1
   612
			// Note: NS4 doesn't like switch cases with vars.
franta-hg@1
   613
			if (ar[i] == INARRAY) { o3_text = ol_texts[ar[++i]]; continue; }
franta-hg@1
   614
			if (ar[i] == CAPARRAY) { o3_cap = ol_caps[ar[++i]]; continue; }
franta-hg@1
   615
			if (ar[i] == STICKY) { o3_sticky = 1; continue; }
franta-hg@1
   616
			if (ar[i] == BACKGROUND) { o3_background = ar[++i]; continue; }
franta-hg@1
   617
			if (ar[i] == NOCLOSE) { o3_close = ""; continue; }
franta-hg@1
   618
			if (ar[i] == CAPTION) { o3_cap = ar[++i]; continue; }
franta-hg@1
   619
			if (ar[i] == CENTER || ar[i] == LEFT || ar[i] == RIGHT) { o3_hpos = ar[i]; continue; }
franta-hg@1
   620
			if (ar[i] == OFFSETX) { o3_offsetx = ar[++i]; continue; }
franta-hg@1
   621
			if (ar[i] == OFFSETY) { o3_offsety = ar[++i]; continue; }
franta-hg@1
   622
			if (ar[i] == FGCOLOR) { o3_fgcolor = ar[++i]; continue; }
franta-hg@1
   623
			if (ar[i] == BGCOLOR) { o3_bgcolor = ar[++i]; continue; }
franta-hg@1
   624
			if (ar[i] == TEXTCOLOR) { o3_textcolor = ar[++i]; continue; }
franta-hg@1
   625
			if (ar[i] == CAPCOLOR) { o3_capcolor = ar[++i]; continue; }
franta-hg@1
   626
			if (ar[i] == CLOSECOLOR) { o3_closecolor = ar[++i]; continue; }
franta-hg@1
   627
			if (ar[i] == WIDTH) { o3_width = ar[++i]; continue; }
franta-hg@1
   628
			if (ar[i] == BORDER) { o3_border = ar[++i]; continue; }
franta-hg@1
   629
			if (ar[i] == STATUS) { o3_status = ar[++i]; continue; }
franta-hg@1
   630
			if (ar[i] == AUTOSTATUS) { o3_autostatus = 1; continue; }
franta-hg@1
   631
			if (ar[i] == AUTOSTATUSCAP) { o3_autostatus = 2; continue; }
franta-hg@1
   632
			if (ar[i] == HEIGHT) { o3_height = ar[++i]; o3_aboveheight = ar[i]; continue; } // Same param again.
franta-hg@1
   633
			if (ar[i] == CLOSETEXT) { o3_close = ar[++i]; continue; }
franta-hg@1
   634
			if (ar[i] == SNAPX) { o3_snapx = ar[++i]; continue; }
franta-hg@1
   635
			if (ar[i] == SNAPY) { o3_snapy = ar[++i]; continue; }
franta-hg@1
   636
			if (ar[i] == FIXX) { o3_fixx = ar[++i]; continue; }
franta-hg@1
   637
			if (ar[i] == FIXY) { o3_fixy = ar[++i]; continue; }
franta-hg@1
   638
			if (ar[i] == FGBACKGROUND) { o3_fgbackground = ar[++i]; continue; }
franta-hg@1
   639
			if (ar[i] == BGBACKGROUND) { o3_bgbackground = ar[++i]; continue; }
franta-hg@1
   640
			if (ar[i] == PADX) { o3_padxl = ar[++i]; o3_padxr = ar[++i]; continue; }
franta-hg@1
   641
			if (ar[i] == PADY) { o3_padyt = ar[++i]; o3_padyb = ar[++i]; continue; }
franta-hg@1
   642
			if (ar[i] == FULLHTML) { o3_fullhtml = 1; continue; }
franta-hg@1
   643
			if (ar[i] == BELOW || ar[i] == ABOVE) { o3_vpos = ar[i]; continue; }
franta-hg@1
   644
			if (ar[i] == CAPICON) { o3_capicon = ar[++i]; continue; }
franta-hg@1
   645
			if (ar[i] == TEXTFONT) { o3_textfont = ar[++i]; continue; }
franta-hg@1
   646
			if (ar[i] == CAPTIONFONT) { o3_captionfont = ar[++i]; continue; }
franta-hg@1
   647
			if (ar[i] == CLOSEFONT) { o3_closefont = ar[++i]; continue; }
franta-hg@1
   648
			if (ar[i] == TEXTSIZE) { o3_textsize = ar[++i]; continue; }
franta-hg@1
   649
			if (ar[i] == CAPTIONSIZE) { o3_captionsize = ar[++i]; continue; }
franta-hg@1
   650
			if (ar[i] == CLOSESIZE) { o3_closesize = ar[++i]; continue; }
franta-hg@1
   651
			if (ar[i] == FRAME) { opt_FRAME(ar[++i]); continue; }
franta-hg@1
   652
			if (ar[i] == TIMEOUT) { o3_timeout = ar[++i]; continue; }
franta-hg@1
   653
			if (ar[i] == FUNCTION) { opt_FUNCTION(ar[++i]); continue; }
franta-hg@1
   654
			if (ar[i] == DELAY) { o3_delay = ar[++i]; continue; }
franta-hg@1
   655
			if (ar[i] == HAUTO) { o3_hauto = (o3_hauto == 0) ? 1 : 0; continue; }
franta-hg@1
   656
			if (ar[i] == VAUTO) { o3_vauto = (o3_vauto == 0) ? 1 : 0; continue; }
franta-hg@1
   657
			if (ar[i] == CLOSECLICK) { o3_closeclick = (o3_closeclick == 0) ? 1 : 0; continue; }
franta-hg@1
   658
			if (ar[i] == CSSOFF) { o3_css = ar[i]; continue; }
franta-hg@1
   659
			if (ar[i] == CSSSTYLE) { o3_css = ar[i]; continue; }
franta-hg@1
   660
			if (ar[i] == CSSCLASS) { o3_css = ar[i]; continue; }
franta-hg@1
   661
			if (ar[i] == FGCLASS) { o3_fgclass = ar[++i]; continue; }
franta-hg@1
   662
			if (ar[i] == BGCLASS) { o3_bgclass = ar[++i]; continue; }
franta-hg@1
   663
			if (ar[i] == TEXTFONTCLASS) { o3_textfontclass = ar[++i]; continue; }
franta-hg@1
   664
			if (ar[i] == CAPTIONFONTCLASS) { o3_captionfontclass = ar[++i]; continue; }
franta-hg@1
   665
			if (ar[i] == CLOSEFONTCLASS) { o3_closefontclass = ar[++i]; continue; }
franta-hg@1
   666
			if (ar[i] == PADUNIT) { o3_padunit = ar[++i]; continue; }
franta-hg@1
   667
			if (ar[i] == HEIGHTUNIT) { o3_heightunit = ar[++i]; continue; }
franta-hg@1
   668
			if (ar[i] == WIDTHUNIT) { o3_widthunit = ar[++i]; continue; }
franta-hg@1
   669
			if (ar[i] == TEXTSIZEUNIT) { o3_textsizeunit = ar[++i]; continue; }
franta-hg@1
   670
			if (ar[i] == TEXTDECORATION) { o3_textdecoration = ar[++i]; continue; }
franta-hg@1
   671
			if (ar[i] == TEXTSTYLE) { o3_textstyle = ar[++i]; continue; }
franta-hg@1
   672
			if (ar[i] == TEXTWEIGHT) { o3_textweight = ar[++i]; continue; }
franta-hg@1
   673
			if (ar[i] == CAPTIONSIZEUNIT) { o3_captionsizeunit = ar[++i]; continue; }
franta-hg@1
   674
			if (ar[i] == CAPTIONDECORATION) { o3_captiondecoration = ar[++i]; continue; }
franta-hg@1
   675
			if (ar[i] == CAPTIONSTYLE) { o3_captionstyle = ar[++i]; continue; }
franta-hg@1
   676
			if (ar[i] == CAPTIONWEIGHT) { o3_captionweight = ar[++i]; continue; }
franta-hg@1
   677
			if (ar[i] == CLOSESIZEUNIT) { o3_closesizeunit = ar[++i]; continue; }
franta-hg@1
   678
			if (ar[i] == CLOSEDECORATION) { o3_closedecoration = ar[++i]; continue; }
franta-hg@1
   679
			if (ar[i] == CLOSESTYLE) { o3_closestyle = ar[++i]; continue; }
franta-hg@1
   680
			if (ar[i] == CLOSEWEIGHT) { o3_closeweight = ar[++i]; continue; }
franta-hg@1
   681
		}
franta-hg@1
   682
	}
franta-hg@1
   683
franta-hg@1
   684
	if (o3_delay == 0) {
franta-hg@1
   685
		return overlib350();
franta-hg@1
   686
	} else {
franta-hg@1
   687
		o3_delayid = setTimeout("overlib350()", o3_delay);
franta-hg@1
   688
franta-hg@1
   689
		if (o3_sticky) {
franta-hg@1
   690
			return false;
franta-hg@1
   691
		} else {
franta-hg@1
   692
			return true;
franta-hg@1
   693
		}
franta-hg@1
   694
	}
franta-hg@1
   695
}
franta-hg@1
   696
franta-hg@1
   697
franta-hg@1
   698
franta-hg@1
   699
// Clears popups if appropriate
franta-hg@1
   700
function nd() {
franta-hg@1
   701
	if ( o3_removecounter >= 1 ) { o3_showingsticky = 0 };
franta-hg@1
   702
	if ( (ns4) || (ie4) || (ns6) ) {
franta-hg@1
   703
		if ( o3_showingsticky == 0 ) {
franta-hg@1
   704
			o3_allowmove = 0;
franta-hg@1
   705
			if (over != null) hideObject(over);
franta-hg@1
   706
		} else {
franta-hg@1
   707
			o3_removecounter++;
franta-hg@1
   708
		}
franta-hg@1
   709
	}
franta-hg@1
   710
	
franta-hg@1
   711
	return true;
franta-hg@1
   712
}
franta-hg@1
   713
franta-hg@1
   714
franta-hg@1
   715
franta-hg@1
   716
franta-hg@1
   717
franta-hg@1
   718
franta-hg@1
   719
franta-hg@1
   720
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   721
// OVERLIB 3.50 FUNCTION
franta-hg@1
   722
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   723
franta-hg@1
   724
franta-hg@1
   725
// This function decides what it is we want to display and how we want it done.
franta-hg@1
   726
function overlib350() {
franta-hg@1
   727
franta-hg@1
   728
	// Make layer content
franta-hg@1
   729
	var layerhtml;
franta-hg@1
   730
franta-hg@1
   731
	if (o3_background != "" || o3_fullhtml) {
franta-hg@1
   732
		// Use background instead of box.
franta-hg@1
   733
		layerhtml = ol_content_background(o3_text, o3_background, o3_fullhtml);
franta-hg@1
   734
	} else {
franta-hg@1
   735
		// They want a popup box.
franta-hg@1
   736
franta-hg@1
   737
		// Prepare popup background
franta-hg@1
   738
		if (o3_fgbackground != "" && o3_css == CSSOFF) {
franta-hg@1
   739
			o3_fgbackground = "BACKGROUND=\""+o3_fgbackground+"\"";
franta-hg@1
   740
		}
franta-hg@1
   741
		if (o3_bgbackground != "" && o3_css == CSSOFF) {
franta-hg@1
   742
			o3_bgbackground = "BACKGROUND=\""+o3_bgbackground+"\"";
franta-hg@1
   743
		}
franta-hg@1
   744
franta-hg@1
   745
		// Prepare popup colors
franta-hg@1
   746
		if (o3_fgcolor != "" && o3_css == CSSOFF) {
franta-hg@1
   747
			o3_fgcolor = "BGCOLOR=\""+o3_fgcolor+"\"";
franta-hg@1
   748
		}
franta-hg@1
   749
		if (o3_bgcolor != "" && o3_css == CSSOFF) {
franta-hg@1
   750
			o3_bgcolor = "BGCOLOR=\""+o3_bgcolor+"\"";
franta-hg@1
   751
		}
franta-hg@1
   752
franta-hg@1
   753
		// Prepare popup height
franta-hg@1
   754
		if (o3_height > 0 && o3_css == CSSOFF) {
franta-hg@1
   755
			o3_height = "HEIGHT=" + o3_height;
franta-hg@1
   756
		} else {
franta-hg@1
   757
			o3_height = "";
franta-hg@1
   758
		}
franta-hg@1
   759
franta-hg@1
   760
		// Decide which kinda box.
franta-hg@1
   761
		if (o3_cap == "") {
franta-hg@1
   762
			// Plain
franta-hg@1
   763
			layerhtml = ol_content_simple(o3_text);
franta-hg@1
   764
		} else {
franta-hg@1
   765
			// With caption
franta-hg@1
   766
			if (o3_sticky) {
franta-hg@1
   767
				// Show close text
franta-hg@1
   768
				layerhtml = ol_content_caption(o3_text, o3_cap, o3_close);
franta-hg@1
   769
			} else {
franta-hg@1
   770
				// No close text
franta-hg@1
   771
				layerhtml = ol_content_caption(o3_text, o3_cap, "");
franta-hg@1
   772
			}
franta-hg@1
   773
		}
franta-hg@1
   774
	}
franta-hg@1
   775
	
franta-hg@1
   776
	// We want it to stick!
franta-hg@1
   777
	if (o3_sticky) {
franta-hg@1
   778
		o3_showingsticky = 1;
franta-hg@1
   779
		o3_removecounter = 0;
franta-hg@1
   780
	}
franta-hg@1
   781
	
franta-hg@1
   782
	// Write layer
franta-hg@1
   783
	layerWrite(layerhtml);
franta-hg@1
   784
	
franta-hg@1
   785
	// Prepare status bar
franta-hg@1
   786
	if (o3_autostatus > 0) {
franta-hg@1
   787
		o3_status = o3_text;
franta-hg@1
   788
		if (o3_autostatus > 1) {
franta-hg@1
   789
			o3_status = o3_cap;
franta-hg@1
   790
		}
franta-hg@1
   791
	}
franta-hg@1
   792
franta-hg@1
   793
	// When placing the layer the first time, even stickies may be moved.
franta-hg@1
   794
	o3_allowmove = 0;
franta-hg@1
   795
franta-hg@1
   796
	// Initiate a timer for timeout
franta-hg@1
   797
	if (o3_timeout > 0) {          
franta-hg@1
   798
		if (o3_timerid > 0) clearTimeout(o3_timerid);
franta-hg@1
   799
		o3_timerid = setTimeout("cClick()", o3_timeout);
franta-hg@1
   800
	}
franta-hg@1
   801
franta-hg@1
   802
	// Show layer
franta-hg@1
   803
	disp(o3_status);
franta-hg@1
   804
franta-hg@1
   805
	// Stickies should stay where they are.	
franta-hg@1
   806
	if (o3_sticky) {
franta-hg@1
   807
		o3_allowmove = 0;
franta-hg@1
   808
		return false;
franta-hg@1
   809
	} else {
franta-hg@1
   810
		return true;
franta-hg@1
   811
	}
franta-hg@1
   812
}
franta-hg@1
   813
franta-hg@1
   814
franta-hg@1
   815
franta-hg@1
   816
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   817
// LAYER GENERATION FUNCTIONS
franta-hg@1
   818
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   819
franta-hg@1
   820
// Makes simple table without caption
franta-hg@1
   821
function ol_content_simple(text) {
franta-hg@1
   822
	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>";
franta-hg@1
   823
	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>";
franta-hg@1
   824
	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>";
franta-hg@1
   825
franta-hg@1
   826
	set_background("");
franta-hg@1
   827
	return txt;
franta-hg@1
   828
}
franta-hg@1
   829
franta-hg@1
   830
franta-hg@1
   831
franta-hg@1
   832
franta-hg@1
   833
// Makes table with caption and optional close link
franta-hg@1
   834
function ol_content_caption(text, title, close) {
franta-hg@1
   835
	closing = "";
franta-hg@1
   836
	closeevent = "onMouseOver";
franta-hg@1
   837
franta-hg@1
   838
	if (o3_closeclick == 1) closeevent = "onClick";
franta-hg@1
   839
	if (o3_capicon != "") o3_capicon = "<IMG SRC=\""+o3_capicon+"\"> ";
franta-hg@1
   840
franta-hg@1
   841
	if (close != "") {
franta-hg@1
   842
		if (o3_css == CSSCLASS) closing = "<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" class=\""+o3_closefontclass+"\">"+close+"</A></TD>";
franta-hg@1
   843
		if (o3_css == CSSSTYLE) closing = "<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return 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>";
franta-hg@1
   844
		if (o3_css == CSSOFF) closing = "<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+o3_closecolor+"\" FACE=\""+o3_closefont+"\" SIZE=\""+o3_closesize+"\">"+close+"</FONT></A></TD>";
franta-hg@1
   845
	}
franta-hg@1
   846
franta-hg@1
   847
	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>";
franta-hg@1
   848
	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+";\">"+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>";
franta-hg@1
   849
	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>";
franta-hg@1
   850
franta-hg@1
   851
	set_background("");
franta-hg@1
   852
	return txt;
franta-hg@1
   853
}
franta-hg@1
   854
franta-hg@1
   855
// Sets the background picture, padding and lots more. :)
franta-hg@1
   856
function ol_content_background(text, picture, hasfullhtml) {
franta-hg@1
   857
	if (hasfullhtml) {
franta-hg@1
   858
		txt = text;
franta-hg@1
   859
	} else {
franta-hg@1
   860
		if (o3_css == CSSCLASS) txt = "<TABLE WIDTH="+o3_width+o3_widthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+o3_height+o3_heightunit+"><TR><TD COLSPAN=3 HEIGHT="+o3_padyt+o3_padunit+"></TD></TR><TR><TD WIDTH="+o3_padxl+o3_padunit+"></TD><TD VALIGN=TOP WIDTH="+(o3_width-o3_padxl-o3_padxr)+o3_padunit+"><FONT class=\""+o3_textfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+o3_padxr+o3_padunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+o3_padyb+o3_padunit+"></TD></TR></TABLE>";
franta-hg@1
   861
		if (o3_css == CSSSTYLE) txt = "<TABLE WIDTH="+o3_width+o3_widthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+o3_height+o3_heightunit+"><TR><TD COLSPAN=3 HEIGHT="+o3_padyt+o3_padunit+"></TD></TR><TR><TD WIDTH="+o3_padxl+o3_padunit+"></TD><TD VALIGN=TOP WIDTH="+(o3_width-o3_padxl-o3_padxr)+o3_padunit+"><FONT style=\"font-family: "+o3_textfont+"; color: "+o3_textcolor+"; font-size: "+o3_textsize+o3_textsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+o3_padxr+o3_padunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+o3_padyb+o3_padunit+"></TD></TR></TABLE>";
franta-hg@1
   862
		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>";
franta-hg@1
   863
	}
franta-hg@1
   864
	set_background(picture);
franta-hg@1
   865
	return txt;
franta-hg@1
   866
}
franta-hg@1
   867
franta-hg@1
   868
// Loads a picture into the div.
franta-hg@1
   869
function set_background(pic) {
franta-hg@1
   870
	if (pic == "") {
franta-hg@1
   871
		if (ie4) over.backgroundImage = "none";
franta-hg@1
   872
		if (ns6) over.style.backgroundImage = "none";
franta-hg@1
   873
	} else {
franta-hg@1
   874
		if (ns4) {
franta-hg@1
   875
			over.background.src = pic;
franta-hg@1
   876
		} else if (ie4) {
franta-hg@1
   877
			over.backgroundImage = "url("+pic+")";
franta-hg@1
   878
		} else if (ns6) {
franta-hg@1
   879
			over.style.backgroundImage = "url("+pic+")";
franta-hg@1
   880
		}
franta-hg@1
   881
	}
franta-hg@1
   882
}
franta-hg@1
   883
franta-hg@1
   884
franta-hg@1
   885
franta-hg@1
   886
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   887
// HANDLING FUNCTIONS
franta-hg@1
   888
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
   889
franta-hg@1
   890
franta-hg@1
   891
// Displays the popup
franta-hg@1
   892
function disp(statustext) {
franta-hg@1
   893
	if ( (ns4) || (ie4) || (ns6) ) {
franta-hg@1
   894
		if (o3_allowmove == 0) 	{
franta-hg@1
   895
			placeLayer();
franta-hg@1
   896
			showObject(over);
franta-hg@1
   897
			o3_allowmove = 1;
franta-hg@1
   898
		}
franta-hg@1
   899
	}
franta-hg@1
   900
franta-hg@1
   901
	if (statustext != "") {
franta-hg@1
   902
		self.status = statustext;
franta-hg@1
   903
	}
franta-hg@1
   904
}
franta-hg@1
   905
franta-hg@1
   906
// Decides where we want the popup.
franta-hg@1
   907
function placeLayer() {
franta-hg@1
   908
	var placeX, placeY;
franta-hg@1
   909
	
franta-hg@1
   910
	// HORIZONTAL PLACEMENT
franta-hg@1
   911
	if (o3_fixx > -1) {
franta-hg@1
   912
		// Fixed position
franta-hg@1
   913
		placeX = o3_fixx;
franta-hg@1
   914
	} else {
franta-hg@1
   915
		winoffset = (ie4) ? o3_frame.document.body.scrollLeft : o3_frame.pageXOffset;
franta-hg@1
   916
		if (ie4) iwidth = o3_frame.document.body.clientWidth;
franta-hg@1
   917
		if (ns4) iwidth = o3_frame.innerWidth; // was screwed in mozilla, fixed now?
franta-hg@1
   918
		if (ns6) iwidth = o3_frame.outerWidth;
franta-hg@1
   919
		
franta-hg@1
   920
		// If HAUTO, decide what to use.
franta-hg@1
   921
		if (o3_hauto == 1) {
franta-hg@1
   922
			if ( (o3_x - winoffset) > ((eval(iwidth)) / 2)) {
franta-hg@1
   923
				o3_hpos = LEFT;
franta-hg@1
   924
			} else {
franta-hg@1
   925
				o3_hpos = RIGHT;
franta-hg@1
   926
			}
franta-hg@1
   927
		}
franta-hg@1
   928
		
franta-hg@1
   929
		// From mouse
franta-hg@1
   930
		if (o3_hpos == CENTER) { // Center
franta-hg@1
   931
			placeX = o3_x+o3_offsetx-(o3_width/2);
franta-hg@1
   932
		}
franta-hg@1
   933
		if (o3_hpos == RIGHT) { // Right
franta-hg@1
   934
			placeX = o3_x+o3_offsetx;
franta-hg@1
   935
			if ( (eval(placeX) + eval(o3_width)) > (winoffset + iwidth) ) {
franta-hg@1
   936
				placeX = iwidth + winoffset - o3_width;
franta-hg@1
   937
				if (placeX < 0) placeX = 0;
franta-hg@1
   938
			}
franta-hg@1
   939
		}
franta-hg@1
   940
		if (o3_hpos == LEFT) { // Left
franta-hg@1
   941
			placeX = o3_x-o3_offsetx-o3_width;
franta-hg@1
   942
			if (placeX < winoffset) placeX = winoffset;
franta-hg@1
   943
		}
franta-hg@1
   944
	
franta-hg@1
   945
		// Snapping!
franta-hg@1
   946
		if (o3_snapx > 1) {
franta-hg@1
   947
			var snapping = placeX % o3_snapx;
franta-hg@1
   948
			if (o3_hpos == LEFT) {
franta-hg@1
   949
				placeX = placeX - (o3_snapx + snapping);
franta-hg@1
   950
			} else {
franta-hg@1
   951
				// CENTER and RIGHT
franta-hg@1
   952
				placeX = placeX + (o3_snapx - snapping);
franta-hg@1
   953
			}
franta-hg@1
   954
			if (placeX < winoffset) placeX = winoffset;
franta-hg@1
   955
		}
franta-hg@1
   956
	}
franta-hg@1
   957
franta-hg@1
   958
	
franta-hg@1
   959
	
franta-hg@1
   960
	// VERTICAL PLACEMENT
franta-hg@1
   961
	if (o3_fixy > -1) {
franta-hg@1
   962
		// Fixed position
franta-hg@1
   963
		placeY = o3_fixy;
franta-hg@1
   964
	} else {
franta-hg@1
   965
		scrolloffset = (ie4) ? o3_frame.document.body.scrollTop : o3_frame.pageYOffset;
franta-hg@1
   966
franta-hg@1
   967
		// If VAUTO, decide what to use.
franta-hg@1
   968
		if (o3_vauto == 1) {
franta-hg@1
   969
			if (ie4) iheight = o3_frame.document.body.clientHeight;
franta-hg@1
   970
			if (ns4) iheight = o3_frame.innerHeight;
franta-hg@1
   971
			if (ns6) iheight = o3_frame.outerHeight;
franta-hg@1
   972
franta-hg@1
   973
			iheight = (eval(iheight)) / 2;
franta-hg@1
   974
			if ( (o3_y - scrolloffset) > iheight) {
franta-hg@1
   975
				o3_vpos = ABOVE;
franta-hg@1
   976
			} else {
franta-hg@1
   977
				o3_vpos = BELOW;
franta-hg@1
   978
			}
franta-hg@1
   979
		}
franta-hg@1
   980
franta-hg@1
   981
franta-hg@1
   982
		// From mouse
franta-hg@1
   983
		if (o3_vpos == ABOVE) {
franta-hg@1
   984
			if (o3_aboveheight == 0) {
franta-hg@1
   985
				var divref = (ie4) ? o3_frame.document.all['overDiv'] : over;
franta-hg@1
   986
				o3_aboveheight = (ns4) ? divref.clip.height : divref.offsetHeight;
franta-hg@1
   987
			}
franta-hg@1
   988
franta-hg@1
   989
			placeY = o3_y - (o3_aboveheight + o3_offsety);
franta-hg@1
   990
			if (placeY < scrolloffset) placeY = scrolloffset;
franta-hg@1
   991
		} else {
franta-hg@1
   992
			// BELOW
franta-hg@1
   993
			placeY = o3_y + o3_offsety;
franta-hg@1
   994
		}
franta-hg@1
   995
franta-hg@1
   996
		// Snapping!
franta-hg@1
   997
		if (o3_snapy > 1) {
franta-hg@1
   998
			var snapping = placeY % o3_snapy;
franta-hg@1
   999
			
franta-hg@1
  1000
			if (o3_aboveheight > 0 && o3_vpos == ABOVE) {
franta-hg@1
  1001
				placeY = placeY - (o3_snapy + snapping);
franta-hg@1
  1002
			} else {
franta-hg@1
  1003
				placeY = placeY + (o3_snapy - snapping);
franta-hg@1
  1004
			}
franta-hg@1
  1005
			
franta-hg@1
  1006
			if (placeY < scrolloffset) placeY = scrolloffset;
franta-hg@1
  1007
		}
franta-hg@1
  1008
	}
franta-hg@1
  1009
franta-hg@1
  1010
franta-hg@1
  1011
	// Actually move the object.	
franta-hg@1
  1012
	repositionTo(over, placeX, placeY);
franta-hg@1
  1013
}
franta-hg@1
  1014
franta-hg@1
  1015
franta-hg@1
  1016
// Moves the layer
franta-hg@1
  1017
function mouseMove(e) {
franta-hg@1
  1018
	if ( (ns4) || (ns6) ) {o3_x=e.pageX; o3_y=e.pageY;}
franta-hg@1
  1019
	if (ie4) {o3_x=event.x; o3_y=event.y;}
franta-hg@1
  1020
	if (ie5) {o3_x=event.x+o3_frame.document.body.scrollLeft; o3_y=event.y+o3_frame.document.body.scrollTop;}
franta-hg@1
  1021
	
franta-hg@1
  1022
	if (o3_allowmove == 1) {
franta-hg@1
  1023
		placeLayer();
franta-hg@1
  1024
	}
franta-hg@1
  1025
}
franta-hg@1
  1026
franta-hg@1
  1027
// The Close onMouseOver function for stickies
franta-hg@1
  1028
function cClick() {
franta-hg@1
  1029
	hideObject(over);
franta-hg@1
  1030
	o3_showingsticky = 0;
franta-hg@1
  1031
	
franta-hg@1
  1032
	return false;
franta-hg@1
  1033
}
franta-hg@1
  1034
franta-hg@1
  1035
franta-hg@1
  1036
// Makes sure target frame has overLIB
franta-hg@1
  1037
function compatibleframe(frameid) {        
franta-hg@1
  1038
	if (ns4) {
franta-hg@1
  1039
		if (typeof frameid.document.overDiv =='undefined') return false;
franta-hg@1
  1040
	} else if (ie4) {
franta-hg@1
  1041
		if (typeof frameid.document.all["overDiv"] =='undefined') return false;
franta-hg@1
  1042
	} else if (ns6) {
franta-hg@1
  1043
		if (frameid.document.getElementById('overDiv') == null) return false;
franta-hg@1
  1044
	}
franta-hg@1
  1045
franta-hg@1
  1046
	return true;
franta-hg@1
  1047
}
franta-hg@1
  1048
franta-hg@1
  1049
franta-hg@1
  1050
franta-hg@1
  1051
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
  1052
// LAYER FUNCTIONS
franta-hg@1
  1053
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
  1054
franta-hg@1
  1055
franta-hg@1
  1056
// Writes to a layer
franta-hg@1
  1057
function layerWrite(txt) {
franta-hg@1
  1058
	txt += "\n";
franta-hg@1
  1059
	
franta-hg@1
  1060
        if (ns4) {
franta-hg@1
  1061
                var lyr = o3_frame.document.overDiv.document
franta-hg@1
  1062
franta-hg@1
  1063
                lyr.write(txt)
franta-hg@1
  1064
                lyr.close()
franta-hg@1
  1065
        } else if (ie4) {
franta-hg@1
  1066
		o3_frame.document.all["overDiv"].innerHTML = txt
franta-hg@1
  1067
	} else if (ns6) {
franta-hg@1
  1068
		range = o3_frame.document.createRange();
franta-hg@1
  1069
		range.setStartBefore(over);
franta-hg@1
  1070
		domfrag = range.createContextualFragment(txt);
franta-hg@1
  1071
		while (over.hasChildNodes()) {
franta-hg@1
  1072
			over.removeChild(over.lastChild);
franta-hg@1
  1073
		}
franta-hg@1
  1074
		over.appendChild(domfrag);
franta-hg@1
  1075
	}
franta-hg@1
  1076
}
franta-hg@1
  1077
franta-hg@1
  1078
// Make an object visible
franta-hg@1
  1079
function showObject(obj) {
franta-hg@1
  1080
        if (ns4) obj.visibility = "show";
franta-hg@1
  1081
        else if (ie4) obj.visibility = "visible";
franta-hg@1
  1082
	else if (ns6) obj.style.visibility = "visible";
franta-hg@1
  1083
}
franta-hg@1
  1084
franta-hg@1
  1085
// Hides an object
franta-hg@1
  1086
function hideObject(obj) {
franta-hg@1
  1087
        if (ns4) obj.visibility = "hide";
franta-hg@1
  1088
        else if (ie4) obj.visibility = "hidden";
franta-hg@1
  1089
	else if (ns6) obj.style.visibility = "hidden";
franta-hg@1
  1090
        
franta-hg@1
  1091
	if (o3_timerid > 0) clearTimeout(o3_timerid);
franta-hg@1
  1092
	if (o3_delayid > 0) clearTimeout(o3_delayid);
franta-hg@1
  1093
	o3_timerid = 0;
franta-hg@1
  1094
	o3_delayid = 0;
franta-hg@1
  1095
        self.status = "";
franta-hg@1
  1096
}
franta-hg@1
  1097
franta-hg@1
  1098
// Move a layer
franta-hg@1
  1099
function repositionTo(obj,xL,yL) {
franta-hg@1
  1100
	if ( (ns4) || (ie4) ) {
franta-hg@1
  1101
	        obj.left = xL;
franta-hg@1
  1102
	        obj.top = yL;
franta-hg@1
  1103
	} else if (ns6) {
franta-hg@1
  1104
		obj.style.left = xL + "px";
franta-hg@1
  1105
		obj.style.top = yL+ "px";
franta-hg@1
  1106
	}
franta-hg@1
  1107
}
franta-hg@1
  1108
franta-hg@1
  1109
franta-hg@1
  1110
franta-hg@1
  1111
franta-hg@1
  1112
franta-hg@1
  1113
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
  1114
// PARSER FUNCTIONS
franta-hg@1
  1115
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
  1116
franta-hg@1
  1117
franta-hg@1
  1118
// Defines which frame we should point to.
franta-hg@1
  1119
function opt_FRAME(frm) {
franta-hg@1
  1120
        o3_frame = compatibleframe(frm) ? frm : ol_frame;
franta-hg@1
  1121
franta-hg@1
  1122
	if ( (ns4) || (ie4 || (ns6)) ) {
franta-hg@1
  1123
		if (ns4) over = o3_frame.document.overDiv;
franta-hg@1
  1124
		if (ie4) over = o3_frame.overDiv.style;
franta-hg@1
  1125
		if (ns6) over = o3_frame.document.getElementById("overDiv");
franta-hg@1
  1126
	}
franta-hg@1
  1127
franta-hg@1
  1128
	return 0;
franta-hg@1
  1129
}
franta-hg@1
  1130
franta-hg@1
  1131
// Calls an external function
franta-hg@1
  1132
function opt_FUNCTION(callme) {
franta-hg@1
  1133
	o3_text = callme()
franta-hg@1
  1134
	return 0;
franta-hg@1
  1135
}
franta-hg@1
  1136
franta-hg@1
  1137
franta-hg@1
  1138
franta-hg@1
  1139
franta-hg@1
  1140
//end (For internal purposes.)
franta-hg@1
  1141
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
  1142
// OVERLIB 2 COMPATABILITY FUNCTIONS
franta-hg@1
  1143
// If you aren't upgrading you can remove the below section.
franta-hg@1
  1144
////////////////////////////////////////////////////////////////////////////////////
franta-hg@1
  1145
franta-hg@1
  1146
// Converts old 0=left, 1=right and 2=center into constants.
franta-hg@1
  1147
function vpos_convert(d) {
franta-hg@1
  1148
	if (d == 0) {
franta-hg@1
  1149
		d = LEFT;
franta-hg@1
  1150
	} else {
franta-hg@1
  1151
		if (d == 1) {
franta-hg@1
  1152
			d = RIGHT;
franta-hg@1
  1153
		} else {
franta-hg@1
  1154
			d = CENTER;
franta-hg@1
  1155
		}
franta-hg@1
  1156
	}
franta-hg@1
  1157
	
franta-hg@1
  1158
	return d;
franta-hg@1
  1159
}
franta-hg@1
  1160
franta-hg@1
  1161
// Simple popup
franta-hg@1
  1162
function dts(d,text) {
franta-hg@1
  1163
	o3_hpos = vpos_convert(d);
franta-hg@1
  1164
	overlib(text, o3_hpos, CAPTION, "");
franta-hg@1
  1165
}
franta-hg@1
  1166
franta-hg@1
  1167
// Caption popup
franta-hg@1
  1168
function dtc(d,text, title) {
franta-hg@1
  1169
	o3_hpos = vpos_convert(d);
franta-hg@1
  1170
	overlib(text, CAPTION, title, o3_hpos);
franta-hg@1
  1171
}
franta-hg@1
  1172
franta-hg@1
  1173
// Sticky
franta-hg@1
  1174
function stc(d,text, title) {
franta-hg@1
  1175
	o3_hpos = vpos_convert(d);
franta-hg@1
  1176
	overlib(text, CAPTION, title, o3_hpos, STICKY);
franta-hg@1
  1177
}
franta-hg@1
  1178
franta-hg@1
  1179
// Simple popup right
franta-hg@1
  1180
function drs(text) {
franta-hg@1
  1181
	dts(1,text);
franta-hg@1
  1182
}
franta-hg@1
  1183
franta-hg@1
  1184
// Caption popup right
franta-hg@1
  1185
function drc(text, title) {
franta-hg@1
  1186
	dtc(1,text,title);
franta-hg@1
  1187
}
franta-hg@1
  1188
franta-hg@1
  1189
// Sticky caption right
franta-hg@1
  1190
function src(text,title) {
franta-hg@1
  1191
	stc(1,text,title);
franta-hg@1
  1192
}
franta-hg@1
  1193
franta-hg@1
  1194
// Simple popup left
franta-hg@1
  1195
function dls(text) {
franta-hg@1
  1196
	dts(0,text);
franta-hg@1
  1197
}
franta-hg@1
  1198
franta-hg@1
  1199
// Caption popup left
franta-hg@1
  1200
function dlc(text, title) {
franta-hg@1
  1201
	dtc(0,text,title);
franta-hg@1
  1202
}
franta-hg@1
  1203
franta-hg@1
  1204
// Sticky caption left
franta-hg@1
  1205
function slc(text,title) {
franta-hg@1
  1206
	stc(0,text,title);
franta-hg@1
  1207
}
franta-hg@1
  1208
franta-hg@1
  1209
// Simple popup center
franta-hg@1
  1210
function dcs(text) {
franta-hg@1
  1211
	dts(2,text);
franta-hg@1
  1212
}
franta-hg@1
  1213
franta-hg@1
  1214
// Caption popup center
franta-hg@1
  1215
function dcc(text, title) {
franta-hg@1
  1216
	dtc(2,text,title);
franta-hg@1
  1217
}
franta-hg@1
  1218
franta-hg@1
  1219
// Sticky caption center
franta-hg@1
  1220
function scc(text,title) {
franta-hg@1
  1221
	stc(2,text,title);
franta-hg@1
  1222
}