2 Do not remove or change this notice.
3 overlibmws.js core module - Copyright Foteos Macrides 2002-2005. All rights reserved.
4 Initial: August 18, 2002 - Last Revised: January 12, 2005
5 This module is subject to the same terms of usage as for Erik Bosrup's overLIB,
6 though only a minority of the code and API now correspond with Erik's version.
7 See the overlibmws Change History and Command Reference via:
9 http://www.macridesweb.com/oltest/
11 Published under an open source license: http://www.macridesweb.com/oltest/license.html
12 Give credit on sites that use overlibmws and submit changes so others can use them as well.
13 You can get Erik's version via: http://www.bosrup.com/web/overlib/
16 // PRE-INIT -- Ignore these lines, configuration is below.
17 var OLloaded
=0,pmCnt
=1,pMtr
=new Array(),OLv
,OLudf
,OLrefXY
;
18 var OLpct
=new Array("83%","67%","83%","100%","117%","150%","200%","267%");
19 var OLbubblePI
=0,OLcrossframePI
=0,OLdebugPI
=0,OLdraggablePI
=0,OLexclusivePI
=0,OLfilterPI
=0;
20 var OLfunctionPI
=0,OLhidePI
=0,OLiframePI
=0,OLovertwoPI
=0,OLscrollPI
=0,OLshadowPI
=0;
21 if(typeof OLgateOK
=='undefined')var OLgateOK
=1;
23 'inarray,caparray,caption,sticky,nofollow,background,noclose,mouseoff,offdelay,right,left,'
24 +'center,offsetx,offsety,fgcolor,bgcolor,cgcolor,textcolor,capcolor,closecolor,width,wrap,'
25 +'wrapmax,height,border,base,status,autostatus,autostatuscap,snapx,snapy,fixx,fixy,relx,rely,'
26 +'midx,midy,ref,refc,refp,refx,refy,fgbackground,bgbackground,cgbackground,padx,pady,fullhtml,'
27 +'below,above,vcenter,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,'
28 +'timeout,delay,hauto,vauto,nojustx,nojusty,closetext,closeclick,closetitle,fgclass,bgclass,'
29 +'cgclass,capbelow,textpadding,textfontclass,captionpadding,captionfontclass,closefontclass,'
32 function OLud(v
){return eval('typeof ol_'+v
+'=="undefined"')?1:0;}
34 // DEFAULT CONFIGURATION -- See overlibConfig.txt for descriptions.
35 if(OLud('fgcolor'))var ol_fgcolor
="#CCCCFF";
36 if(OLud('bgcolor'))var ol_bgcolor
="#333399";
37 if(OLud('cgcolor'))var ol_cgcolor
="#333399";
38 if(OLud('textcolor'))var ol_textcolor
="#000000";
39 if(OLud('capcolor'))var ol_capcolor
="#FFFFFF";
40 if(OLud('closecolor'))var ol_closecolor
="#EEEEFF";
41 if(OLud('textfont'))var ol_textfont
="Verdana,Arial,Helvetica";
42 if(OLud('captionfont'))var ol_captionfont
="Verdana,Arial,Helvetica";
43 if(OLud('closefont'))var ol_closefont
="Verdana,Arial,Helvetica";
44 if(OLud('textsize'))var ol_textsize
=1;
45 if(OLud('captionsize'))var ol_captionsize
=1;
46 if(OLud('closesize'))var ol_closesize
=1;
47 if(OLud('fgclass'))var ol_fgclass
="";
48 if(OLud('bgclass'))var ol_bgclass
="";
49 if(OLud('cgclass'))var ol_cgclass
="";
50 if(OLud('textpadding'))var ol_textpadding
=2;
51 if(OLud('textfontclass'))var ol_textfontclass
="";
52 if(OLud('captionpadding'))var ol_captionpadding
=2;
53 if(OLud('captionfontclass'))var ol_captionfontclass
="";
54 if(OLud('closefontclass'))var ol_closefontclass
="";
55 if(OLud('close'))var ol_close
="Close";
56 if(OLud('closeclick'))var ol_closeclick
=0;
57 if(OLud('closetitle'))var ol_closetitle
="Click to Close";
58 if(OLud('text'))var ol_text
="Default Text";
59 if(OLud('cap'))var ol_cap
="";
60 if(OLud('capbelow'))var ol_capbelow
=0;
61 if(OLud('background'))var ol_background
="";
62 if(OLud('width'))var ol_width
=200;
63 if(OLud('wrap'))var ol_wrap
=0;
64 if(OLud('wrapmax'))var ol_wrapmax
=0;
65 if(OLud('height'))var ol_height
= -1;
66 if(OLud('border'))var ol_border
=1;
67 if(OLud('base'))var ol_base
=0;
68 if(OLud('offsetx'))var ol_offsetx
=10;
69 if(OLud('offsety'))var ol_offsety
=10;
70 if(OLud('sticky'))var ol_sticky
=0;
71 if(OLud('nofollow'))var ol_nofollow
=0;
72 if(OLud('noclose'))var ol_noclose
=0;
73 if(OLud('mouseoff'))var ol_mouseoff
=0;
74 if(OLud('offdelay'))var ol_offdelay
=300;
75 if(OLud('hpos'))var ol_hpos
=RIGHT
;
76 if(OLud('vpos'))var ol_vpos
=BELOW
;
77 if(OLud('status'))var ol_status
="";
78 if(OLud('autostatus'))var ol_autostatus
=0;
79 if(OLud('snapx'))var ol_snapx
=0;
80 if(OLud('snapy'))var ol_snapy
=0;
81 if(OLud('fixx'))var ol_fixx
= -1;
82 if(OLud('fixy'))var ol_fixy
= -1;
83 if(OLud('relx'))var ol_relx
=null;
84 if(OLud('rely'))var ol_rely
=null;
85 if(OLud('midx'))var ol_midx
=null;
86 if(OLud('midy'))var ol_midy
=null;
87 if(OLud('ref'))var ol_ref
="";
88 if(OLud('refc'))var ol_refc
='UL';
89 if(OLud('refp'))var ol_refp
='UL';
90 if(OLud('refx'))var ol_refx
=0;
91 if(OLud('refy'))var ol_refy
=0;
92 if(OLud('fgbackground'))var ol_fgbackground
="";
93 if(OLud('bgbackground'))var ol_bgbackground
="";
94 if(OLud('cgbackground'))var ol_cgbackground
="";
95 if(OLud('padxl'))var ol_padxl
=1;
96 if(OLud('padxr'))var ol_padxr
=1;
97 if(OLud('padyt'))var ol_padyt
=1;
98 if(OLud('padyb'))var ol_padyb
=1;
99 if(OLud('fullhtml'))var ol_fullhtml
=0;
100 if(OLud('capicon'))var ol_capicon
="";
101 if(OLud('frame'))var ol_frame
=self
;
102 if(OLud('timeout'))var ol_timeout
=0;
103 if(OLud('delay'))var ol_delay
=0;
104 if(OLud('hauto'))var ol_hauto
=0;
105 if(OLud('vauto'))var ol_vauto
=0;
106 if(OLud('nojustx'))var ol_nojustx
=0;
107 if(OLud('nojusty'))var ol_nojusty
=0;
108 if(OLud('label'))var ol_label
="";
109 // ARRAY CONFIGURATION - See overlibConfig.txt for descriptions.
110 if(OLud('texts'))var ol_texts
=new Array("Text 0","Text 1");
111 if(OLud('caps'))var ol_caps
=new Array("Caption 0","Caption 1");
112 // END CONFIGURATION -- Don't change anything below, all configuration is above.
114 // INIT -- Runtime variables.
115 var o3_text
="",o3_cap
="",o3_sticky
=0,o3_nofollow
=0,o3_background
="",o3_noclose
=0,o3_mouseoff
=0;
116 var o3_offdelay
=300,o3_hpos
=RIGHT
,o3_offsetx
=10,o3_offsety
=10,o3_fgcolor
="",o3_bgcolor
="";
117 var o3_cgcolor
="",o3_textcolor
="",o3_capcolor
="",o3_closecolor
="",o3_width
=200,o3_wrap
=0;
118 var o3_wrapmax
=0,o3_height
= -1,o3_border
=1,o3_base
=0,o3_status
="",o3_autostatus
=0,o3_snapx
=0;
119 var o3_snapy
=0,o3_fixx
= -1,o3_fixy
= -1,o3_relx
=null,o3_rely
=null,o3_midx
=null,o3_midy
=null;
120 var o3_ref
="",o3_refc
='UL',o3_refp
='UL',o3_refx
=0,o3_refy
=0,o3_fgbackground
="";
121 var o3_bgbackground
="",o3_cgbackground
="",o3_padxl
=0,o3_padxr
=0,o3_padyt
=0,o3_padyb
=0;
122 var o3_fullhtml
=0,o3_vpos
=BELOW
,o3_capicon
="",o3_textfont
="Verdana,Arial,Helvetica";
123 var o3_captionfont
="Verdana,Arial,Helvetica",o3_closefont
="Verdana,Arial,Helvetica";
124 var o3_textsize
=1,o3_captionsize
=1,o3_closesize
=1,o3_frame
=self
,o3_timeout
=0,o3_delay
=0;
125 var o3_hauto
=0,o3_vauto
=0,o3_nojustx
=0,o3_nojusty
=0,o3_close
="Close",o3_closeclick
=0;
126 var o3_closetitle
="",o3_fgclass
="",o3_bgclass
="",o3_cgclass
="",o3_textpadding
=2;
127 var o3_textfontclass
="",o3_captionpadding
=2,o3_captionfontclass
="",o3_closefontclass
="";
128 var o3_capbelow
=0,o3_label
="",CSSOFF
=DONOTHING
,CSSCLASS
=DONOTHING
;
129 var OLx
=0,OLy
=0,OLshowingsticky
=0,OLallowmove
=0,OLremovecounter
=0;
130 var OLdelayid
=0,OLtimerid
=0,OLshowid
=0,OLndt
=0;
131 var over
=null,OLfnRef
="",OLhover
=0;
132 var OLua
=navigator
.userAgent
.toLowerCase();
133 var OLns4
=(navigator
.appName
=='Netscape'&&parseInt(navigator
.appVersion
)==4);
134 var OLns6
=(document
.getElementById
)?1:0;
135 var OLie4
=(document
.all
)?1:0;
136 var OLgek
=(OLv
=OLua
.match(/gecko\/(\d{8})/i))?parseInt(OLv
[1]):0;
137 var OLmac
=(OLua
.indexOf('mac')>=0)?1:0;
138 var OLsaf
=(OLua
.indexOf('safari')>=0)?1:0;
139 var OLkon
=(OLua
.indexOf('konqueror')>=0)?1:0;
140 var OLkht
=(OLsaf
||OLkon
)?1:0;
141 var OLopr
=(OLua
.indexOf('opera')>=0)?1:0;
142 var OLop7
=(OLopr
&&document
.createTextNode
)?1:0;
143 if(OLopr
){OLns4
=OLns6
=0;if(!OLop7
)OLie4
=0;}
144 var OLieM
=((OLie4
&&OLmac
)&&!(OLkht
||OLopr
))?1:0;
145 var OLie5
=0,OLie55
=0;if(OLie4
&&!OLop7
){
146 if((OLv
=OLua
.match(/msie (\d\.\d+)\.*/i))&&(OLv
=parseFloat(OLv
[1]))>=5.0){
147 OLie5
=1;OLns6
=0;if(OLv
>=5.5)OLie55
=1;}if(OLns6
)OLie4
=0;}
148 if(OLns4
)window
.onresize=function(){location
.reload();}
150 if(OLns4
||OLie4
||OLns6
)OLmh();
151 else{overlib
=nd
=cClick
=OLpageDefaults
=no_overlib
;}
156 // Loads defaults then args into runtime variables.
158 if(!(OLloaded
&&OLgateOK
))return;
159 if((OLexclusivePI
)&&OLisExclusive(overlib
.arguments
))return true;
161 if(OLndt
&&!OLtimerid
)OLndt
=0;if(over
)cClick();
162 OLloadP1or2();OLload('close,closeclick,closetitle,noclose,mouseoff,offdelay,sticky,'
163 +'closecolor,closefont,closesize,closefontclass,frame,label');OLfnRef
="";OLhover
=0;
165 OLparseTokens('o3_',overlib
.arguments
);
166 if(!(over
=OLmkLyr()))return false;
167 if(OLbubblePI
)OLchkForBubbleEffect();
168 if(OLdebugPI
)OLsetDebugCanShow();
169 if(OLshadowPI
)OLinitShadow();
170 if(OLiframePI
)OLinitIfs();
171 if(OLfilterPI
)OLinitFilterLyr();
172 if(OLexclusivePI
&&o3_exclusive
&&o3_exclusivestatus
!="")o3_status
=o3_exclusivestatus
;
173 else if(o3_autostatus
==2&&o3_cap
!="")o3_status
=o3_cap
;
174 else if(o3_autostatus
==1&&o3_text
!="")o3_status
=o3_text
;
175 if(o3_delay
==0){return OLmain();
176 }else{OLdelayid
=setTimeout("OLmain()",o3_delay
);
177 if(o3_status
!=""){self
.status
=o3_status
;return true;}
178 else if(!(OLop7
&&event
&&event
.type
=='mouseover'))return false;}
181 // Clears popups if appropriate
183 if(!(OLloaded
&&OLgateOK
))return;
184 if((OLexclusivePI
)&&OLisExclusive())return true;
185 if(time
&&over
&&!o3_delay
){if(OLtimerid
>0)clearTimeout(OLtimerid
);
186 OLtimerid
=(OLhover
&&o3_frame
==self
&&!OLcursorOff())?0:
187 setTimeout("cClick()",(o3_timeout
=OLndt
=time
));
188 }else{if(OLremovecounter
>=1)OLshowingsticky
=0;if(!OLshowingsticky
){
189 OLallowmove
=0;if(over
)OLhideObject(over
);}else{OLremovecounter
++;}}
193 // Close function for stickies
195 if(OLloaded
&&OLgateOK
){OLhover
=0;if(over
)OLhideObject(over
);OLshowingsticky
=0;}
199 // Sets page-specific defaults.
200 function OLpageDefaults(){
201 OLparseTokens('ol_',OLpageDefaults
.arguments
);
204 // For unsupported browsers.
205 function no_overlib(){return false;}
208 OVERLIB MAIN FUNCTION SET
212 if(o3_frame
==self
){if(o3_noclose
)OLoptMOUSEOFF(0);else if(o3_mouseoff
)OLoptMOUSEOFF(1);}
214 OLallowmove
=0;if(o3_timeout
>0){
215 if(OLtimerid
>0)clearTimeout(OLtimerid
);OLtimerid
=setTimeout("cClick()",o3_timeout
);}
216 if(o3_ref
){OLrefXY
=OLgetRefXY(o3_ref
);if(OLrefXY
[0]==null){o3_ref
="";o3_midx
=0;o3_midy
=0;}}
218 if(OLdraggablePI
)OLcheckDrag();
219 if(o3_status
!="")return true;else if(!(OLop7
&&event
&&event
.type
=='mouseover'))return false;
222 // Loads defaults for primaries or secondaries
223 function OLloadP1or2(){
224 OLload('text,cap,capbelow,textpadding,captionpadding,border,base,status,autostatus,nofollow,'
225 +'width,wrap,wrapmax,height,hpos,vpos,offsetx,offsety,snapx,snapy,relx,rely,midx,midy,ref,'
226 +'refc,refp,refx,refy,fixx,fixy,nojustx,nojusty,hauto,vauto,timeout,delay,fgcolor,bgcolor,'
227 +'cgcolor,textcolor,capcolor,textfont,captionfont,textsize,captionsize,fgbackground,'
228 +'bgbackground,cgbackground,capicon,background,padxl,padxr,padyt,padyb,fullhtml,fgclass,'
229 +'bgclass,cgclass,textfontclass,captionfontclass');
231 function OLload(c
){var i
,m
=c
.split(',');for(i
=0;i
<m
.length
;i
++)eval('o3_'+m
[i
]+'=ol_'+m
[i
]);}
235 return (o3_background
!=''||o3_fullhtml
)?OLcontentBackground(o3_text
,o3_background
,o3_fullhtml
):
236 (o3_cap
=="")?OLcontentSimple(o3_text
):
237 (o3_sticky
)?OLcontentCaption(o3_text
,o3_cap
,o3_close
):OLcontentCaption(o3_text
,o3_cap
,'');
241 function OLmkLyr(id
,f
,z
){
242 id
=(id
||'overDiv');f
=(f
||o3_frame
);z
=(z
||1000);var fd
=f
.document
,d
=OLgetRefById(id
,fd
);
243 if(!d
){if(OLns4
)d
=fd
.layers
[id
]=new Layer(1024,f
);else if(OLie4
&&!document
.getElementById
){
244 fd
.body
.insertAdjacentHTML('BeforeEnd','<div id="'+id
+'"></div>');d
=fd
.all
[id
];
245 }else{d
=fd
.createElement('div');if(d
){d
.id
=id
;fd
.body
.appendChild(d
);}}if(!d
)return null;
246 if(OLns4
)d
.zIndex
=z
;else{var o
=d
.style
;o
.position
='absolute';o
.visibility
='hidden';o
.zIndex
=z
;}}
250 // Creates and writes layer content
252 if(o3_background
==''&&!o3_fullhtml
){
253 if(o3_fgbackground
!='')o3_fgbackground
=' background="'+o3_fgbackground
+'"';
254 if(o3_bgbackground
!='')o3_bgbackground
=' background="'+o3_bgbackground
+'"';
255 if(o3_cgbackground
!='')o3_cgbackground
=' background="'+o3_cgbackground
+'"';
256 if(o3_fgcolor
!='')o3_fgcolor
=' bgcolor="'+o3_fgcolor
+'"';
257 if(o3_bgcolor
!='')o3_bgcolor
=' bgcolor="'+o3_bgcolor
+'"';
258 if(o3_cgcolor
!='')o3_cgcolor
=' bgcolor="'+o3_cgcolor
+'"';
259 if(o3_height
>0)o3_height
=' height="'+o3_height
+'"';else o3_height
='';}
260 if(!OLns4
)OLrepositionTo(over
,(OLns6
?20:0),0);var lyrHtml
=OLdoLGF();
261 if(o3_sticky
){if(OLtimerid
>0){clearTimeout(OLtimerid
);OLtimerid
=0;}
262 OLshowingsticky
=1;OLremovecounter
=0;}
263 if(o3_wrap
&&!o3_fullhtml
){OLlayerWrite(lyrHtml
);
264 o3_width
=(OLns4
?over
.clip
.width
:over
.offsetWidth
);
265 if(OLns4
&&o3_wrapmax
<1)o3_wrapmax
=o3_frame
.innerWidth
-40;
266 o3_wrap
=0;if(o3_wrapmax
>0&&o3_width
>o3_wrapmax
)o3_width
=o3_wrapmax
;lyrHtml
=OLdoLGF();}
267 OLlayerWrite(lyrHtml
);o3_width
=(OLns4
?over
.clip
.width
:over
.offsetWidth
);
268 if(OLbubblePI
)OLgenerateBubble(lyrHtml
);
272 LAYER GENERATION FUNCTIONS
274 // Makes simple table without caption
275 function OLcontentSimple(txt
){
276 var t
=OLbgLGF()+OLfgLGF(txt
)+OLbaseLGF();
277 OLsetBackground('');return t
;
280 // Makes table with caption and optional close link
281 function OLcontentCaption(txt
,title
,close
){
282 var closing
='',closeevent
='onmouseover',caption
,t
;
283 if(o3_closeclick
==1)closeevent
=(o3_closetitle
?'title="'+o3_closetitle
+'" ':'')+'onclick';
284 if(o3_capicon
!='')o3_capicon
='<img src="'+o3_capicon
+'" /> ';
285 if(close
!=''){closing
='<td align="right"><a href="javascript:return '+OLfnRef
+'cClick();" '
286 +closeevent
+'="return '+OLfnRef
+'cClick();"'+(o3_closefontclass
?' class="'+o3_closefontclass
287 +'">':'>'+OLlgfUtil(0,'','span',o3_closecolor
,o3_closefont
,o3_closesize
))+close
288 +(o3_closefontclass
?'':OLlgfUtil(1,'','span'))+'</a></td>';}
289 caption
='<table'+OLwd(0)+' border="0" cellpadding="'+o3_captionpadding
+'" cellspacing="0"'
290 +(o3_cgclass
?' class="'+o3_cgclass
+'"':o3_cgcolor
+o3_cgbackground
)+'><tr><td'+OLwd(0)
291 +(o3_cgclass
?' class="'+o3_cgclass
+'">':'>')+(o3_captionfontclass
?'<div class="'
292 +o3_captionfontclass
+'">':'<strong>'
293 +OLlgfUtil(0,'','div',o3_capcolor
,o3_captionfont
,o3_captionsize
))+o3_capicon
+title
294 +OLlgfUtil(1,'','div')+(o3_captionfontclass
?'':'</strong>')+'</td>'+closing
+'</tr></table>';
295 t
=OLbgLGF()+(o3_capbelow
?OLfgLGF(txt
)+caption
:caption
+OLfgLGF(txt
))+OLbaseLGF();
296 OLsetBackground('');return t
;
299 // For BACKGROUND and FULLHTML commands
300 function OLcontentBackground(txt
, image
, hasfullhtml
){
301 var t
;if(hasfullhtml
){t
=txt
;}else{t
='<table'+OLwd(1)
302 +' border="0" cellpadding="0" cellspacing="0" '+'height="'+o3_height
303 +'"><tr><td colspan="3" height="'+o3_padyt
+'"></td></tr><tr><td width="'
304 +o3_padxl
+'"></td><td valign="top"'+OLwd(2)+'>'
305 +OLlgfUtil(0,o3_textfontclass
,'div',o3_textcolor
,o3_textfont
,o3_textsize
)+txt
+
306 OLlgfUtil(1,'','div')+'</td><td width="'+o3_padxr
+'"></td></tr><tr><td colspan="3" height="'
307 +o3_padyb
+'"></td></tr></table>';}
308 OLsetBackground(image
);return t
;
313 return '<table'+OLwd(1)+o3_height
+' border="0" cellpadding="'+o3_border
+'" cellspacing="0"'
314 +(o3_bgclass
?' class="'+o3_bgclass
+'"':o3_bgcolor
+o3_bgbackground
)+'><tr><td>';
317 return '<table'+OLwd(0)+o3_height
+' border="0" cellpadding="'+o3_textpadding
318 +'" cellspacing="0"'+(o3_fgclass
?' class="'+o3_fgclass
+'"':o3_fgcolor
+o3_fgbackground
)
319 +'><tr><td valign="top"'+(o3_fgclass
?' class="'+o3_fgclass
+'"':'')+'>'
320 +OLlgfUtil(0,o3_textfontclass
,'div',o3_textcolor
,o3_textfont
,o3_textsize
)+t
321 +OLlgfUtil(1,'','div')+'</td></tr></table>';
323 function OLlgfUtil(end
,tfc
,ele
,col
,fac
,siz
){
324 if(end
)return ('</'+(OLns4
?'font':ele
)+'>');else return (tfc
?'<div class="'+tfc
+'">':
325 ('<'+(OLns4
?'font color="'+col
+'" face="'+OLquoteMultiNameFonts(fac
)+'" size="'+siz
:ele
326 +' style="color:'+col
+';font-family:'+OLquoteMultiNameFonts(fac
)+';font-size:'+siz
+';'
327 +(ele
=='span'?'text-decoration:underline;':''))+'">'));
329 function OLquoteMultiNameFonts(f
){
330 var i
,v
,pM
=f
.split(',');
331 for(i
=0;i
<pM
.length
;i
++){v
=pM
[i
];v
=v
.replace(/^\s+/,'').replace(/\s+$/,'');
332 if(/\s/.test(v
) && !/['"]/.test(v
)){v
="\'"+v
+"\'";pM
[i
]=v
;}}
335 function OLbaseLGF(){
336 return ((o3_base
>0&&!o3_wrap
)?('<table width="100%" border="0" cellpadding="0" cellspacing="0"'
337 +(o3_bgclass
?' class="'+o3_bgclass
+'"':'')+'><tr><td height="'+o3_base
338 +'"></td></tr></table>'):'')+'</td></tr></table>';
341 return(o3_wrap
?'':' width="'+(!a
?'100%':(a
==1?o3_width
:(o3_width
-o3_padxl
-o3_padxr
)))+'"');
344 // Loads image into the div.
345 function OLsetBackground(i
){
346 if(i
==''){if(OLns4
)over
.background
.src
=null;
347 else{if(OLns6
)over
.style
.width
='';over
.style
.backgroundImage
='none';}
348 }else{if(OLns4
)over
.background
.src
=i
;
349 else{if(OLns6
)over
.style
.width
=o3_width
+'px';over
.style
.backgroundImage
='url('+i
+')';}}
357 if(OLallowmove
==0){if(OLshadowPI
)OLdispShadow();if(OLiframePI
)OLdispIfs();OLplaceLayer();
358 if(OLndt
)OLshowObject(over
);else OLshowid
=setTimeout("OLshowObject(over)",1);
359 OLallowmove
=(o3_sticky
||o3_nofollow
)?0:1;}OLndt
=0;if(s
!="")self
.status
=s
;
362 // Decides placement of layer.
363 function OLplaceLayer(){
364 var snp
,X
,Y
,pgLeft
,pgTop
,pWd
=o3_width
,pHt
,iWd
=100,iHt
=100,SB
=0,LM
=0,CX
=0,TM
=0,BM
=0,CY
=0;
365 var o
=OLfd(),nsb
=(OLgek
>=20010505&&!o3_frame
.scrollbars
.visible
)?1:0;
366 if(!OLkht
&&o
&&o
.clientWidth
)iWd
=o
.clientWidth
;
367 else if(o3_frame
.innerWidth
){SB
=Math
.ceil(1.4*(o3_frame
.outerWidth
-o3_frame
.innerWidth
));
368 if(SB
>20)SB
=20;iWd
=o3_frame
.innerWidth
;}
369 pgLeft
=(OLie4
)?o
.scrollLeft
:o3_frame
.pageXOffset
;
370 if(OLie55
&&OLfilterPI
&&o3_filtershadow
)SB
=CX
=5;else
371 if((OLshadowPI
)&&bkdrop
&&o3_shadow
&&o3_shadowx
){SB
+=((o3_shadowx
>0)?o3_shadowx
:0);
372 LM
=((o3_shadowx
<0)?Math
.abs(o3_shadowx
):0);CX
=Math
.abs(o3_shadowx
);}
373 if(o3_ref
!=""||o3_fixx
> -1||o3_relx
!=null||o3_midx
!=null){
375 X
=OLrefXY
[0];if(OLie55
&&OLfilterPI
&&o3_filtershadow
){if(o3_refp
=='UR'||o3_refp
=='LR')X
-= 5;}
376 else if((OLshadowPI
)&&bkdrop
&&o3_shadow
&&o3_shadowx
){
377 if(o3_shadowx
<0&&(o3_refp
=='UL'||o3_refp
=='LL'))X
+= o3_shadowx
;
378 else if(o3_shadowx
>0&&(o3_refp
=='UR'||o3_refp
=='LR'))X
-= o3_shadowx
;}
379 }else{if(o3_midx
!=null){
380 X
=parseInt(pgLeft
+((iWd
-pWd
-SB
-LM
)/2)+o3_midx
);
381 }else{if(o3_relx
!=null){
382 if(o3_relx
>=0)X
=pgLeft
+o3_relx
+LM
;else X
=pgLeft
+o3_relx
+iWd
-pWd
-SB
;
387 if(o3_hpos
==LEFT
&&OLx
-pgLeft
<iWd
/2&&OLx
-pWd
-o3_offsetx
<pgLeft
+LM
)o3_hpos
=RIGHT
;else
388 if(o3_hpos
==RIGHT
&&OLx
-pgLeft
>iWd
/2&&OLx
+pWd
+o3_offsetx
>pgLeft
+iWd
-SB
)o3_hpos
=LEFT
;}
389 X
=(o3_hpos
==CENTER
)?parseInt(OLx
-((pWd
+CX
)/2)+o3_offsetx
):
390 (o3_hpos
==LEFT
)?OLx
-o3_offsetx
-pWd
:OLx
+o3_offsetx
;
393 if(o3_hpos
==LEFT
){X
=X
-(o3_snapx
+snp
);}else{X
=X
+(o3_snapx
-snp
);}}}
394 if(!o3_nojustx
&&X
+pWd
>pgLeft
+iWd
-SB
)
395 X
=iWd
+pgLeft
-pWd
-SB
;if(!o3_nojustx
&&X
-LM
<pgLeft
)X
=pgLeft
+LM
;
396 pgTop
=OLie4
?o
.scrollTop
:o3_frame
.pageYOffset
;
397 if(!OLkht
&&!nsb
&&o
&&o
.clientHeight
)iHt
=o
.clientHeight
;
398 else if(o3_frame
.innerHeight
)iHt
=o3_frame
.innerHeight
;
399 if(OLbubblePI
&&o3_bubble
)pHt
=OLbubbleHt
;else pHt
=OLns4
?over
.clip
.height
:over
.offsetHeight
;
400 if((OLshadowPI
)&&bkdrop
&&o3_shadow
&&o3_shadowy
){TM
=(o3_shadowy
<0)?Math
.abs(o3_shadowy
):0;
401 if(OLie55
&&OLfilterPI
&&o3_filtershadow
)BM
=CY
=5;else
402 BM
=(o3_shadowy
>0)?o3_shadowy
:0;CY
=Math
.abs(o3_shadowy
);}
403 if(o3_ref
!=""||o3_fixy
> -1||o3_rely
!=null||o3_midy
!=null){
405 Y
=OLrefXY
[1];if(OLie55
&&OLfilterPI
&&o3_filtershadow
){if(o3_refp
=='LL'||o3_refp
=='LR')Y
-= 5;}
406 else if((OLshadowPI
)&&bkdrop
&&o3_shadow
&&o3_shadowy
){
407 if(o3_shadowy
<0&&(o3_refp
=='UL'||o3_refp
=='UR'))Y
+=o3_shadowy
;else
408 if(o3_shadowy
>0&&(o3_refp
=='LL'||o3_refp
=='LR'))Y
-=o3_shadowy
;}
409 }else{if(o3_midy
!=null){
410 Y
=parseInt(pgTop
+((iHt
-pHt
-CY
)/2)+o3_midy
);
411 }else{if(o3_rely
!=null){
412 if(o3_rely
>=0)Y
=pgTop
+o3_rely
+TM
;else Y
=pgTop
+o3_rely
+iHt
-pHt
-BM
;}else{
416 if(o3_vpos
==ABOVE
&&OLy
-pgTop
<iHt
/2&&OLy
-pHt
-o3_offsety
<pgTop
)o3_vpos
=BELOW
;else
417 if(o3_vpos
==BELOW
&&OLy
-pgTop
>iHt
/2&&OLy
+pHt
+o3_offsety
+((OLns4
||OLkht
)?17:0)>pgTop
+iHt
-BM
)
418 o3_vpos
=ABOVE
;}Y
=(o3_vpos
==VCENTER
)?parseInt(OLy
-((pHt
+CY
)/2)+o3_offsety
):
419 (o3_vpos
==ABOVE
)?OLy
-(pHt
+o3_offsety
+BM
):OLy
+o3_offsety
+TM
;
422 if(pHt
>0&&o3_vpos
==ABOVE
){Y
=Y
-(o3_snapy
+snp
);}else{Y
=Y
+(o3_snapy
-snp
);}}}
423 if(!o3_nojusty
&&Y
+pHt
+BM
>pgTop
+iHt
)Y
=pgTop
+iHt
-pHt
-BM
;if(!o3_nojusty
&&Y
-TM
<pgTop
)Y
=pgTop
+TM
;
424 OLrepositionTo(over
,X
,Y
);
425 if(OLshadowPI
)OLrepositionShadow(X
,Y
);if(OLiframePI
)OLrepositionIfs(X
,Y
);
426 if(OLns6
&&o3_frame
.innerHeight
){iHt
=o3_frame
.innerHeight
;OLrepositionTo(over
,X
,Y
);}
427 if(OLscrollPI
)OLchkScroll(X
-pgLeft
,Y
-pgTop
);
430 // Chooses body or documentElement
432 var fd
=((f
)?f
:o3_frame
).document
,fdc
=fd
.compatMode
,fdd
=fd
.documentElement
;
433 return (!OLop7
&&fdc
&&fdc
!='BackCompat'&&fdd
&&fdd
.clientWidth
)?fd
.documentElement
:fd
.body
;
436 // Gets location of REFerence object
437 function OLgetRefXY(r
){
438 var mn
=r
,mr
=OLgetRef(mn
),o
,of,rXY
;
439 if(!mr
)return [null,null];
440 o
=mr
;rXY
=[o3_refx
,o3_refy
];
441 if(OLns4
){if(typeof mr
.length
!='undefined'&&mr
.length
>1){
442 o
=mr
[0];rXY
[0]+=mr
[0].x
+mr
[1].pageX
;rXY
[1]+=mr
[0].y
+mr
[1].pageY
;
443 }else{if((mr
.toString().indexOf('Image')!= -1)||(mr
.toString().indexOf('Anchor')!= -1)){
444 rXY
[0]+=mr
.x
;rXY
[1]+=mr
.y
;}else{rXY
[0]+=mr
.pageX
;rXY
[1]+=mr
.pageY
;}}
445 }else{rXY
[0]+=OLpageLoc(mr
,'Left');rXY
[1]+=OLpageLoc(mr
,'Top');}
446 of=OLgetRefOffsets(o
);rXY
[0]+=of[0];rXY
[1]+=of[1];
449 function OLgetRef(l
){var r
=OLgetRefById(l
);return (r
)?r
:OLgetRefByName(l
);}
451 // Seeks REFerence by id
452 function OLgetRefById(l
,d
){
453 var r
="",j
;l
=(l
||'overDiv');d
=(d
||o3_frame
.document
);
454 if(OLie4
&&d
.all
){return d
.all
[l
];}else if(d
.getElementById
){return d
.getElementById(l
);
455 }else if(d
.layers
&&d
.layers
.length
>0){if(d
.layers
[l
])return d
.layers
[l
];
456 for(j
=0;j
<d
.layers
.length
;j
++){r
=OLgetRefById(l
,d
.layers
[j
].document
);if(r
)return r
;}}
460 // Seeks REFerence by name (for img and a)
461 function OLgetRefByName(l
,d
){
462 var r
=null,j
;d
=(d
||o3_frame
.document
);
463 if(typeof d
.images
[l
]!='undefined'&&d
.images
[l
]){return d
.images
[l
];
464 }else if(typeof d
.anchors
[l
]!='undefined'&&d
.anchors
[l
]){return d
.anchors
[l
];
465 }else if(d
.layers
&&d
.layers
.length
>0){
466 for(j
=0;j
<d
.layers
.length
;j
++){r
=OLgetRefByName(l
,d
.layers
[j
].document
);
467 if(r
&&r
.length
>0)return r
;else if(r
)return [r
,d
.layers
[j
]];}}
471 // Gets layer vs REFerence offsets
472 function OLgetRefOffsets(o
){
473 var mc
=o3_refc
.toUpperCase(),mp
=o3_refp
.toUpperCase(),mW
=0,mH
=0,pW
=0,pH
=0,off
=[0,0];
474 pW
=(OLbubblePI
&&o3_bubble
)?o3_width
:OLns4
?over
.clip
.width
:over
.offsetWidth
;
475 pH
=(OLbubblePI
&&o3_bubble
)?OLbubbleHt
:OLns4
?over
.clip
.height
:over
.offsetHeight
;
476 if((!OLop7
)&&o
.toString().indexOf('Image')!= -1){mW
=o
.width
;mH
=o
.height
;
477 }else if((!OLop7
)&&o
.toString().indexOf('Anchor')!= -1){mc
=o3_refc
='UL';}else{
478 mW
=(OLns4
)?o
.clip
.width
:o
.offsetWidth
;mH
=(OLns4
)?o
.clip
.height
:o
.offsetHeight
;}
479 if(mc
=='UL'){off
=(mp
=='UR')?[-pW
,0]:(mp
=='LL')?[0,-pH
]:(mp
=='LR')?[-pW
,-pH
]:[0,0];
480 }else if(mc
=='UR'){off
=(mp
=='UR')?[mW
-pW
,0]:(mp
=='LL')?[mW
,-pH
]:(mp
=='LR')?[mW
-pW
,-pH
]:[mW
,0];
481 }else if(mc
=='LL'){off
=(mp
=='UR')?[-pW
,mH
]:(mp
=='LL')?[0,mH
-pH
]:(mp
=='LR')?[-pW
,mH
-pH
]:[0,mH
];
482 }else if(mc
=='LR'){off
=(mp
=='UR')?[mW
-pW
,mH
]:(mp
=='LL')?[mW
,mH
-pH
]:(mp
=='LR')?[mW
-pW
,mH
-pH
]:
487 // Gets x or y location of object
488 function OLpageLoc(o
,t
){
489 var l
=0;while(o
.offsetParent
&&o
.offsetParent
.tagName
.toLowerCase()!='html'){
490 l
+=o
['offset'+t
];o
=o
.offsetParent
;}l
+=o
['offset'+t
];
495 function OLmouseMove(e
){
497 OLx
=(e
.pageX
||e
.clientX
+OLfd().scrollLeft
);OLy
=(e
.pageY
||e
.clientY
+OLfd().scrollTop
);
498 if((OLallowmove
&&over
)&&(o3_frame
==self
||over
==OLgetRefById())){
499 OLplaceLayer();if(OLhidePI
)OLhideUtil(0,1,1,0,0,0);}
500 if(OLhover
&&over
&&o3_frame
==self
&&OLcursorOff())if(o3_offdelay
<1)cClick();else
501 {if(OLtimerid
>0)clearTimeout(OLtimerid
);OLtimerid
=setTimeout("cClick()",o3_offdelay
);}
504 // Capture mouse and chain other scripts.
506 var fN
,f
,j
,k
,s
,mh
=OLmouseMove
,re
=/function[ ]*(\w*)\(/;OLdw
=document
;
507 if(document
.onmousemove
||(!OLie4
&&window
.onmousemove
)){
508 if(window
.onmousemove
)OLdw
=window
;f
=OLdw
.onmousemove
.toString();
509 fN
=f
.match(re
);if(!fN
||fN
[1]=='anonymous'||fN
[1]=='OLmouseMove'){
510 OLchkMh
=0;return;}if(fN
[1])s
=fN
[1]+'(e)';else{j
=f
.indexOf('{');
511 k
=f
.lastIndexOf('}')+1;s
=f
.substring(j
,k
);}
512 s
+=';OLmouseMove(e);';mh
=new Function('e',s
);}
513 OLdw
.onmousemove
=mh
;if(OLns4
)OLdw
.captureEvents(Event
.MOUSEMOVE
);
519 function OLparseTokens(pf
,ar
){
520 var i
,v
,md
= -1,par
=(pf
!='ol_'),e
=eval
,p
=OLpar
,q
=OLparQuo
,t
=OLtoggle
;OLudf
=(par
&&!ar
.length
?1:0);
521 for(i
=0;i
< ar
.length
;i
++){if(md
<0){if(typeof ar
[i
]=='number'){OLudf
=(par
?1:0);i
--;}
522 else{switch(pf
){case 'ol_':ol_text
=ar
[i
];break;default:o3_text
=ar
[i
];}}md
=0;
524 if(ar
[i
]==INARRAY
){OLudf
=0;e(pf
+'text=ol_texts['+ar
[++i
]+']');continue;}
525 if(ar
[i
]==CAPARRAY
){e(pf
+'cap=ol_caps['+ar
[++i
]+']');continue;}
526 if(ar
[i
]==CAPTION
){q(ar
[++i
],pf
+'cap');continue;}
527 if(Math
.abs(ar
[i
])==STICKY
){t(ar
[i
],pf
+'sticky');continue;}
528 if(Math
.abs(ar
[i
])==NOFOLLOW
){t(ar
[i
],pf
+'nofollow');continue;}
529 if(ar
[i
]==BACKGROUND
){q(ar
[++i
],pf
+'background');continue;}
530 if(Math
.abs(ar
[i
])==NOCLOSE
){t(ar
[i
],pf
+'noclose');continue;}
531 if(Math
.abs(ar
[i
])==MOUSEOFF
){t(ar
[i
],pf
+'mouseoff');continue;}
532 if(ar
[i
]==OFFDELAY
){p(ar
[++i
],pf
+'offdelay');continue;}
533 if(ar
[i
]==RIGHT
||ar
[i
]==LEFT
||ar
[i
]==CENTER
){p(ar
[i
],pf
+'hpos');continue;}
534 if(ar
[i
]==OFFSETX
){p(ar
[++i
],pf
+'offsetx');continue;}
535 if(ar
[i
]==OFFSETY
){p(ar
[++i
],pf
+'offsety');continue;}
536 if(ar
[i
]==FGCOLOR
){q(ar
[++i
],pf
+'fgcolor');continue;}
537 if(ar
[i
]==BGCOLOR
){q(ar
[++i
],pf
+'bgcolor');continue;}
538 if(ar
[i
]==CGCOLOR
){q(ar
[++i
],pf
+'cgcolor');continue;}
539 if(ar
[i
]==TEXTCOLOR
){q(ar
[++i
],pf
+'textcolor');continue;}
540 if(ar
[i
]==CAPCOLOR
){q(ar
[++i
],pf
+'capcolor');continue;}
541 if(ar
[i
]==CLOSECOLOR
){q(ar
[++i
],pf
+'closecolor');continue;}
542 if(ar
[i
]==WIDTH
){p(ar
[++i
],pf
+'width');continue;}
543 if(Math
.abs(ar
[i
])==WRAP
){t(ar
[i
],pf
+'wrap');continue;}
544 if(ar
[i
]==WRAPMAX
){p(ar
[++i
],pf
+'wrapmax');continue;}
545 if(ar
[i
]==HEIGHT
){p(ar
[++i
],pf
+'height');continue;}
546 if(ar
[i
]==BORDER
){p(ar
[++i
],pf
+'border');continue;}
547 if(ar
[i
]==BASE
){p(ar
[++i
],pf
+'base');continue;}
548 if(ar
[i
]==STATUS
){q(ar
[++i
],pf
+'status');continue;}
549 if(Math
.abs(ar
[i
])==AUTOSTATUS
){v
=pf
+'autostatus';
550 e(v
+'=('+ar
[i
]+'<0)?('+v
+'==2?2:0):('+v
+'==1?0:1)');continue;}
551 if(Math
.abs(ar
[i
])==AUTOSTATUSCAP
){v
=pf
+'autostatus';
552 e(v
+'=('+ar
[i
]+'<0)?('+v
+'==1?1:0):('+v
+'==2?0:2)');continue;}
553 if(ar
[i
]==CLOSETEXT
){q(ar
[++i
],pf
+'close');continue;}
554 if(ar
[i
]==SNAPX
){p(ar
[++i
],pf
+'snapx');continue;}
555 if(ar
[i
]==SNAPY
){p(ar
[++i
],pf
+'snapy');continue;}
556 if(ar
[i
]==FIXX
){p(ar
[++i
],pf
+'fixx');continue;}
557 if(ar
[i
]==FIXY
){p(ar
[++i
],pf
+'fixy');continue;}
558 if(ar
[i
]==RELX
){p(ar
[++i
],pf
+'relx');continue;}
559 if(ar
[i
]==RELY
){p(ar
[++i
],pf
+'rely');continue;}
560 if(ar
[i
]==MIDX
){p(ar
[++i
],pf
+'midx');continue;}
561 if(ar
[i
]==MIDY
){p(ar
[++i
],pf
+'midy');continue;}
562 if(ar
[i
]==REF
){q(ar
[++i
],pf
+'ref');continue;}
563 if(ar
[i
]==REFC
){q(ar
[++i
],pf
+'refc');continue;}
564 if(ar
[i
]==REFP
){q(ar
[++i
],pf
+'refp');continue;}
565 if(ar
[i
]==REFX
){p(ar
[++i
],pf
+'refx');continue;}
566 if(ar
[i
]==REFY
){p(ar
[++i
],pf
+'refy');continue;}
567 if(ar
[i
]==FGBACKGROUND
){q(ar
[++i
],pf
+'fgbackground');continue;}
568 if(ar
[i
]==BGBACKGROUND
){q(ar
[++i
],pf
+'bgbackground');continue;}
569 if(ar
[i
]==CGBACKGROUND
){q(ar
[++i
],pf
+'cgbackground');continue;}
570 if(ar
[i
]==PADX
){p(ar
[++i
],pf
+'padxl');p(ar
[++i
],pf
+'padxr');continue;}
571 if(ar
[i
]==PADY
){p(ar
[++i
],pf
+'padyt');p(ar
[++i
],pf
+'padyb');continue;}
572 if(Math
.abs(ar
[i
])==FULLHTML
){t(ar
[i
],pf
+'fullhtml');continue;}
573 if(ar
[i
]==BELOW
||ar
[i
]==ABOVE
||ar
[i
]==VCENTER
){p(ar
[i
],pf
+'vpos');continue;}
574 if(ar
[i
]==CAPICON
){q(ar
[++i
],pf
+'capicon');continue;}
575 if(ar
[i
]==TEXTFONT
){q(ar
[++i
],pf
+'textfont');continue;}
576 if(ar
[i
]==CAPTIONFONT
){q(ar
[++i
],pf
+'captionfont');continue;}
577 if(ar
[i
]==CLOSEFONT
){q(ar
[++i
],pf
+'closefont');continue;}
578 if(ar
[i
]==TEXTSIZE
){q(ar
[++i
],pf
+'textsize');continue;}
579 if(ar
[i
]==CAPTIONSIZE
){q(ar
[++i
],pf
+'captionsize');continue;}
580 if(ar
[i
]==CLOSESIZE
){q(ar
[++i
],pf
+'closesize');continue;}
581 if(ar
[i
]==TIMEOUT
){p(ar
[++i
],pf
+'timeout');continue;}
582 if(ar
[i
]==DELAY
){p(ar
[++i
],pf
+'delay');continue;}
583 if(Math
.abs(ar
[i
])==HAUTO
){t(ar
[i
],pf
+'hauto');continue;}
584 if(Math
.abs(ar
[i
])==VAUTO
){t(ar
[i
],pf
+'vauto');continue;}
585 if(Math
.abs(ar
[i
])==NOJUSTX
){t(ar
[i
],pf
+'nojustx');continue;}
586 if(Math
.abs(ar
[i
])==NOJUSTY
){t(ar
[i
],pf
+'nojusty');continue;}
587 if(Math
.abs(ar
[i
])==CLOSECLICK
){t(ar
[i
],pf
+'closeclick');continue;}
588 if(ar
[i
]==CLOSETITLE
){q(ar
[++i
],pf
+'closetitle');continue;}
589 if(ar
[i
]==FGCLASS
){q(ar
[++i
],pf
+'fgclass');continue;}
590 if(ar
[i
]==BGCLASS
){q(ar
[++i
],pf
+'bgclass');continue;}
591 if(ar
[i
]==CGCLASS
){q(ar
[++i
],pf
+'cgclass');continue;}
592 if(ar
[i
]==TEXTPADDING
){p(ar
[++i
],pf
+'textpadding');continue;}
593 if(ar
[i
]==TEXTFONTCLASS
){q(ar
[++i
],pf
+'textfontclass');continue;}
594 if(ar
[i
]==CAPTIONPADDING
){p(ar
[++i
],pf
+'captionpadding');continue;}
595 if(ar
[i
]==CAPTIONFONTCLASS
){q(ar
[++i
],pf
+'captionfontclass');continue;}
596 if(ar
[i
]==CLOSEFONTCLASS
){q(ar
[++i
],pf
+'closefontclass');continue;}
597 if(Math
.abs(ar
[i
])==CAPBELOW
){t(ar
[i
],pf
+'capbelow');continue;}
598 if(ar
[i
]==LABEL
){q(ar
[++i
],pf
+'label');continue;}
599 if(ar
[i
]==DONOTHING
){continue;}
600 i
=OLparseCmdLine(pf
,i
,ar
);}}
601 if((OLfunctionPI
)&&OLudf
&&o3_function
)o3_text
=o3_function();
602 if(pf
=='o3_')OLfontSize();
604 function OLpar(a
,v
){eval(v
+'='+a
);}
605 function OLparQuo(a
,v
){eval(v
+"='"+OLescSglQt(a
)+"'");}
606 function OLescSglQt(s
){return s
.toString().replace(/'/g,"\\'");}
607 function OLtoggle(a,v){eval(v+'=('+v+'==0&&'+a+'>=0)?1:0');}
608 function OLhasDims(s){return /[%\-a-z]+$/.test(s);}
609 function OLfontSize(){
610 var i;if(OLhasDims(o3_textsize)){if(OLns4)o3_textsize="2";}else
611 if(!OLns4){i=parseInt(o3_textsize);o3_textsize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
612 if(OLhasDims(o3_captionsize)){if(OLns4)o3_captionsize="2";}else
613 if(!OLns4){i=parseInt(o3_captionsize);o3_captionsize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
614 if(OLhasDims(o3_closesize)){if(OLns4)o3_closesize="2";}else
615 if(!OLns4){i=parseInt(o3_closesize);o3_closesize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
622 function OLlayerWrite(t){
624 if(OLns4){over.document.write(t);over.document.close();
625 }else if(typeof over.innerHTML!='undefined'){if(OLieM)over.innerHTML='';over.innerHTML=t;
626 }else{range=o3_frame.document.createRange();range.setStartAfter(over);
627 domfrag=range.createContextualFragment(t);
628 while(over.hasChildNodes()){over.removeChild(over.lastChild);}
629 over.appendChild(domfrag);}
632 // Makes object visible
633 function OLshowObject(o){
634 OLshowid=0;o=(OLns4)?o:o.style;
635 if(((OLfilterPI)&&!OLchkFilter(o))||!OLfilterPI)o.visibility="visible
";
636 if(OLshadowPI)OLshowShadow();if(OLiframePI)OLshowIfs();if(OLhidePI)OLhideUtil(1,1,0);
640 function OLhideObject(o){
641 if(OLshowid>0){clearTimeout(OLshowid);OLshowid=0;}
642 if(OLtimerid>0)clearTimeout(OLtimerid);if(OLdelayid>0)clearTimeout(OLdelayid);
643 OLtimerid=0;OLdelayid=0;self.status="";o3_label=ol_label;
644 if(o3_frame!=self)o=OLgetRefById();
645 if(o){if(o.onmouseover)o.onmouseover=null;
646 if(OLscrollPI&&o==over)OLclearScroll();
647 if(OLdraggablePI)OLclearDrag();
648 if(OLfilterPI)OLcleanupFilter(o);if(OLshadowPI)OLhideShadow();
649 var os=(OLns4)?o:o.style;os.visibility="hidden
";
650 if(OLhidePI&&o==over)OLhideUtil(0,0,1);if(OLiframePI)OLhideIfs(o);}
654 function OLrepositionTo(o,xL,yL){
656 o.left=(OLns4?xL:xL+'px');
657 o.top=(OLns4?yL:yL+'px');
660 // Handle NOCLOSE-MOUSEOFF
661 function OLoptMOUSEOFF(c){
663 over.onmouseover=function(){OLhover=1;if(OLtimerid>0){clearTimeout(OLtimerid);OLtimerid=0;}}
665 function OLcursorOff(){
666 if(OLovertwoPI&&over==over2)return false;
667 var o=(OLns4?over:over.style),pHt=OLns4?over.clip.height:over.offsetHeight;
668 var left=parseInt(o.left),top=parseInt(o.top);
669 var right=left+o3_width,bottom=top+((OLbubblePI&&o3_bubble)?OLbubbleHt:pHt);
670 if(OLx<left||OLx>right||OLy<top||OLy>bottom)return true;
677 var OLcmdLine=null,OLrunTime=null;
678 function OLsetRunTimeVar(){
679 if(OLrunTime&&OLrunTime.length)for(var k=0;k<OLrunTime.length;k++)OLrunTime[k]();
681 function OLparseCmdLine(pf,i,ar){
682 if(OLcmdLine&&OLcmdLine.length){for(var k=0;k<OLcmdLine.length;k++){
683 var j=OLcmdLine[k](pf,i,ar);if(j>-1){i=j;break;}}}
686 function OLisFunc(f){
688 if(typeof f=='object'){for(var i=0;i<f.length;i++){
689 if(typeof f[i]=='function')continue;r=0;break;}
690 }else if(typeof f!='function')r=0;
693 function OLregCmds(c){
694 if(typeof c!='string')return;
695 var pM=c.split(',');pMtr=pMtr.concat(pM);
696 for(var i=0;i<pM.length;i++)eval(pM[i].toUpperCase()+'='+pmCnt++);
698 function OLregRunTimeFunc(f){
700 if(!OLrunTime)OLrunTime=new Array();
701 if(typeof f=='object')OLrunTime=OLrunTime.concat(f);
702 else OLrunTime[OLrunTime.length++]=f;}
704 function OLregCmdLineFunc(f){
706 if(!OLcmdLine)OLcmdLine=new Array();
707 if(typeof f=='object')OLcmdLine=OLcmdLine.concat(f);
708 else OLcmdLine[OLcmdLine.length++]=f;}