[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/js/ -> overlib_mini.js (source)

   1  //\//////////////////////////////////////////////////////////////////////////////////
   2  //\  overLIB 3.51  --  This notice must remain untouched at all times.
   3  //\  Copyright Erik Bosrup 1998-2002. All rights reserved.
   4  //\
   5  //\  By Erik Bosrup (erik@bosrup.com).  Last modified 2002-11-01.
   6  //\  Portions by Dan Steinman (dansteinman.com). Additions by other people are
   7  //\  listed on the overLIB homepage.
   8  //\
   9  //\  Get the latest version at http://www.bosrup.com/web/overlib/
  10  //\
  11  //\  This script is published under an open source license. Please read the license
  12  //\  agreement online at: http://www.bosrup.com/web/overlib/license.html
  13  //\  If you have questions regarding the license please contact erik@bosrup.com.
  14  //\
  15  //\  This script library was originally created for personal use. By request it has
  16  //\  later been made public. This is free software. Do not sell this as your own
  17  //\  work, or remove this copyright notice. For full details on copying or changing
  18  //\  this script please read the license agreement at the link above.
  19  //\
  20  //\  Please give credit on sites that use overLIB and submit changes of the script
  21  //\  so other people can use them as well. This script is free to use, don't abuse.
  22  //\//////////////////////////////////////////////////////////////////////////////////
  23  
  24  //\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!
  25  
  26  var INARRAY=1;
  27  var CAPARRAY=2;
  28  var STICKY=3;
  29  var BACKGROUND=4;
  30  var NOCLOSE=5;
  31  var CAPTION=6;
  32  var LEFT=7;
  33  var RIGHT=8;
  34  var CENTER=9;
  35  var OFFSETX=10;
  36  var OFFSETY=11;
  37  var FGCOLOR=12;
  38  var BGCOLOR=13;
  39  var TEXTCOLOR=14;
  40  var CAPCOLOR=15;
  41  var CLOSECOLOR=16;
  42  var WIDTH=17;
  43  var BORDER=18;
  44  var STATUS=19;
  45  var AUTOSTATUS=20;
  46  var AUTOSTATUSCAP=21;
  47  var HEIGHT=22;
  48  var CLOSETEXT=23;
  49  var SNAPX=24;
  50  var SNAPY=25;
  51  var FIXX=26;
  52  var FIXY=27;
  53  var FGBACKGROUND=28;
  54  var BGBACKGROUND=29;
  55  var PADX=30;// PADX2 out
  56  var PADY=31;// PADY2 out
  57  var FULLHTML=34;
  58  var ABOVE=35;
  59  var BELOW=36;
  60  var CAPICON=37;
  61  var TEXTFONT=38;
  62  var CAPTIONFONT=39;
  63  var CLOSEFONT=40;
  64  var TEXTSIZE=41;
  65  var CAPTIONSIZE=42;
  66  var CLOSESIZE=43;
  67  var FRAME=44;
  68  var TIMEOUT=45;
  69  var FUNCTION=46;
  70  var DELAY=47;
  71  var HAUTO=48;
  72  var VAUTO=49;
  73  var CLOSECLICK=50;
  74  var CSSOFF=51;
  75  var CSSSTYLE=52;
  76  var CSSCLASS=53;
  77  var FGCLASS=54;
  78  var BGCLASS=55;
  79  var TEXTFONTCLASS=56;
  80  var CAPTIONFONTCLASS=57;
  81  var CLOSEFONTCLASS=58;
  82  var PADUNIT=59;
  83  var HEIGHTUNIT=60;
  84  var WIDTHUNIT=61;
  85  var TEXTSIZEUNIT=62;
  86  var TEXTDECORATION=63;
  87  var TEXTSTYLE=64;
  88  var TEXTWEIGHT=65;
  89  var CAPTIONSIZEUNIT=66;
  90  var CAPTIONDECORATION=67;
  91  var CAPTIONSTYLE=68;
  92  var CAPTIONWEIGHT=69;
  93  var CLOSESIZEUNIT=70;
  94  var CLOSEDECORATION=71;
  95  var CLOSESTYLE=72;
  96  var CLOSEWEIGHT=73;
  97  if(typeof ol_fgcolor=='undefined'){var ol_fgcolor="#CCCCFF";}
  98  if(typeof ol_bgcolor=='undefined'){var ol_bgcolor="#333399";}
  99  if(typeof ol_textcolor=='undefined'){var ol_textcolor="#000000";}
 100  if(typeof ol_capcolor=='undefined'){var ol_capcolor="#FFFFFF";}
 101  if(typeof ol_closecolor=='undefined'){var ol_closecolor="#9999FF";}
 102  if(typeof ol_textfont=='undefined'){var ol_textfont="Verdana,Arial,Helvetica";}
 103  if(typeof ol_captionfont=='undefined'){var ol_captionfont="Verdana,Arial,Helvetica";}
 104  if(typeof ol_closefont=='undefined'){var ol_closefont="Verdana,Arial,Helvetica";}
 105  if(typeof ol_textsize=='undefined'){var ol_textsize="1";}
 106  if(typeof ol_captionsize=='undefined'){var ol_captionsize="1";}
 107  if(typeof ol_closesize=='undefined'){var ol_closesize="1";}
 108  if(typeof ol_width=='undefined'){var ol_width="200";}
 109  if(typeof ol_border=='undefined'){var ol_border="1";}
 110  if(typeof ol_offsetx=='undefined'){var ol_offsetx=10;}
 111  if(typeof ol_offsety=='undefined'){var ol_offsety=10;}
 112  if(typeof ol_text=='undefined'){var ol_text="Default Text";}
 113  if(typeof ol_cap=='undefined'){var ol_cap="";}
 114  if(typeof ol_sticky=='undefined'){var ol_sticky=0;}
 115  if(typeof ol_background=='undefined'){var ol_background="";}
 116  if(typeof ol_close=='undefined'){var ol_close="Close";}
 117  if(typeof ol_hpos=='undefined'){var ol_hpos=8;}
 118  if(typeof ol_status=='undefined'){var ol_status="";}
 119  if(typeof ol_autostatus=='undefined'){var ol_autostatus=0;}
 120  if(typeof ol_height=='undefined'){var ol_height=-1;}
 121  if(typeof ol_snapx=='undefined'){var ol_snapx=0;}
 122  if(typeof ol_snapy=='undefined'){var ol_snapy=0;}
 123  if(typeof ol_fixx=='undefined'){var ol_fixx=-1;}
 124  if(typeof ol_fixy=='undefined'){var ol_fixy=-1;}
 125  if(typeof ol_fgbackground=='undefined'){var ol_fgbackground="";}
 126  if(typeof ol_bgbackground=='undefined'){var ol_bgbackground="";}
 127  if(typeof ol_padxl=='undefined'){var ol_padxl=1;}
 128  if(typeof ol_padxr=='undefined'){var ol_padxr=1;}
 129  if(typeof ol_padyt=='undefined'){var ol_padyt=1;}
 130  if(typeof ol_padyb=='undefined'){var ol_padyb=1;}
 131  if(typeof ol_fullhtml=='undefined'){var ol_fullhtml=0;}
 132  if(typeof ol_vpos=='undefined'){var ol_vpos=36;}
 133  if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;}
 134  if(typeof ol_capicon=='undefined'){var ol_capicon="";}
 135  if(typeof ol_frame=='undefined'){var ol_frame=self;}
 136  if(typeof ol_timeout=='undefined'){var ol_timeout=0;}
 137  if(typeof ol_function=='undefined'){var ol_function=null;}
 138  if(typeof ol_delay=='undefined'){var ol_delay=0;}
 139  if(typeof ol_hauto=='undefined'){var ol_hauto=0;}
 140  if(typeof ol_vauto=='undefined'){var ol_vauto=0;}
 141  if(typeof ol_closeclick=='undefined'){var ol_closeclick=0;}
 142  if(typeof ol_css=='undefined'){var ol_css=51;}
 143  if(typeof ol_fgclass=='undefined'){var ol_fgclass="";}
 144  if(typeof ol_bgclass=='undefined'){var ol_bgclass="";}
 145  if(typeof ol_textfontclass=='undefined'){var ol_textfontclass="";}
 146  if(typeof ol_captionfontclass=='undefined'){var ol_captionfontclass="";}
 147  if(typeof ol_closefontclass=='undefined'){var ol_closefontclass="";}
 148  if(typeof ol_padunit=='undefined'){var ol_padunit="px";}
 149  if(typeof ol_heightunit=='undefined'){var ol_heightunit="px";}
 150  if(typeof ol_widthunit=='undefined'){var ol_widthunit="px";}
 151  if(typeof ol_textsizeunit=='undefined'){var ol_textsizeunit="px";}
 152  if(typeof ol_textdecoration=='undefined'){var ol_textdecoration="none";}
 153  if(typeof ol_textstyle=='undefined'){var ol_textstyle="normal";}
 154  if(typeof ol_textweight=='undefined'){var ol_textweight="normal";}
 155  if(typeof ol_captionsizeunit=='undefined'){var ol_captionsizeunit="px";}
 156  if(typeof ol_captiondecoration=='undefined'){var ol_captiondecoration="none";}
 157  if(typeof ol_captionstyle=='undefined'){var ol_captionstyle="normal";}
 158  if(typeof ol_captionweight=='undefined'){var ol_captionweight="bold";}
 159  if(typeof ol_closesizeunit=='undefined'){var ol_closesizeunit="px";}
 160  if(typeof ol_closedecoration=='undefined'){var ol_closedecoration="none";}
 161  if(typeof ol_closestyle=='undefined'){var ol_closestyle="normal";}
 162  if(typeof ol_closeweight=='undefined'){var ol_closeweight="normal";}
 163  if(typeof ol_texts=='undefined'){var ol_texts=new Array("Text 0", "Text 1");}
 164  if(typeof ol_caps=='undefined'){var ol_caps=new Array("Caption 0", "Caption 1");}
 165  var otext="";
 166  var ocap="";
 167  var osticky=0;
 168  var obackground="";
 169  var oclose="Close";
 170  var ohpos=8;
 171  var ooffsetx=2;
 172  var ooffsety=2;
 173  var ofgcolor="";
 174  var obgcolor="";
 175  var otextcolor="";
 176  var ocapcolor="";
 177  var oclosecolor="";
 178  var owidth=100;
 179  var oborder=1;
 180  var ostatus="";
 181  var oautostatus=0;
 182  var oheight=-1;
 183  var osnapx=0;
 184  var osnapy=0;
 185  var ofixx=-1;
 186  var ofixy=-1;
 187  var ofgbackground="";
 188  var obgbackground="";
 189  var opadxl=0;
 190  var opadxr=0;
 191  var opadyt=0;
 192  var opadyb=0;
 193  var ofullhtml=0;
 194  var ovpos=36;
 195  var oaboveheight=0;
 196  var ocapicon="";
 197  var otextfont="Verdana,Arial,Helvetica";
 198  var ocaptionfont="Verdana,Arial,Helvetica";
 199  var oclosefont="Verdana,Arial,Helvetica";
 200  var otextsize="1";
 201  var ocaptionsize="1";
 202  var oclosesize="1";
 203  var oframe=self;
 204  var otimeout=0;
 205  var otimerid=0;
 206  var oallowmove=0;
 207  var ofunction=null;
 208  var odelay=0;
 209  var odelayid=0;
 210  var ohauto=0;
 211  var ovauto=0;
 212  var ocloseclick=0;
 213  var ocss=51;
 214  var ofgclass="";
 215  var obgclass="";
 216  var otextfontclass="";
 217  var ocaptionfontclass="";
 218  var oclosefontclass="";
 219  var opadunit="px";
 220  var oheightunit="px";
 221  var owidthunit="px";
 222  var otextsizeunit="px";
 223  var otextdecoration="";
 224  var otextstyle="";
 225  var otextweight="";
 226  var ocaptionsizeunit="px";
 227  var ocaptiondecoration="";
 228  var ocaptionstyle="";
 229  var ocaptionweight="";
 230  var oclosesizeunit="px";
 231  var oclosedecoration="";
 232  var oclosestyle="";
 233  var ocloseweight="";
 234  var ox=0;
 235  var oy=0;
 236  var oallow=0;
 237  var oshowingsticky=0;
 238  var oremovecounter=0;
 239  var over=null;
 240  var fnRef;
 241  var ns4=(navigator.appName=='Netscape' && parseInt(navigator.appVersion)==4);
 242  var ns6=(document.getElementById)? true:false;
 243  var ie4=(document.all)? true:false;
 244  if(ie4)var docRoot='document.body';
 245  var ie5=false;
 246  if(ns4){
 247  var oW=window.innerWidth;
 248  var oH=window.innerHeight;
 249  window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight)location.reload();}
 250  }
 251  if(ie4){
 252  if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
 253  if(document.compatMode && document.compatMode=='CSS1Compat')docRoot='document.documentElement';
 254  ie5=true;
 255  }
 256  if(ns6){
 257  ns6=false;
 258  }
 259  }
 260  if((ns4)||(ie4)||(ns6)){
 261  document.onmousemove=mouseMove
 262  if(ns4)document.captureEvents(Event.MOUSEMOVE)
 263  }else{
 264  overlib=no_overlib;
 265  nd=no_overlib;
 266  ver3fix=true;
 267  }
 268  function no_overlib(){
 269  return ver3fix;
 270  }
 271  function overlib(){
 272  otext=ol_text;
 273  ocap=ol_cap;
 274  osticky=ol_sticky;
 275  obackground=ol_background;
 276  oclose=ol_close;
 277  ohpos=ol_hpos;
 278  ooffsetx=ol_offsetx;
 279  ooffsety=ol_offsety;
 280  ofgcolor=ol_fgcolor;
 281  obgcolor=ol_bgcolor;
 282  otextcolor=ol_textcolor;
 283  ocapcolor=ol_capcolor;
 284  oclosecolor=ol_closecolor;
 285  owidth=ol_width;
 286  oborder=ol_border;
 287  ostatus=ol_status;
 288  oautostatus=ol_autostatus;
 289  oheight=ol_height;
 290  osnapx=ol_snapx;
 291  osnapy=ol_snapy;
 292  ofixx=ol_fixx;
 293  ofixy=ol_fixy;
 294  ofgbackground=ol_fgbackground;
 295  obgbackground=ol_bgbackground;
 296  opadxl=ol_padxl;
 297  opadxr=ol_padxr;
 298  opadyt=ol_padyt;
 299  opadyb=ol_padyb;
 300  ofullhtml=ol_fullhtml;
 301  ovpos=ol_vpos;
 302  oaboveheight=ol_aboveheight;
 303  ocapicon=ol_capicon;
 304  otextfont=ol_textfont;
 305  ocaptionfont=ol_captionfont;
 306  oclosefont=ol_closefont;
 307  otextsize=ol_textsize;
 308  ocaptionsize=ol_captionsize;
 309  oclosesize=ol_closesize;
 310  otimeout=ol_timeout;
 311  ofunction=ol_function;
 312  odelay=ol_delay;
 313  ohauto=ol_hauto;
 314  ovauto=ol_vauto;
 315  ocloseclick=ol_closeclick;
 316  ocss=ol_css;
 317  ofgclass=ol_fgclass;
 318  obgclass=ol_bgclass;
 319  otextfontclass=ol_textfontclass;
 320  ocaptionfontclass=ol_captionfontclass;
 321  oclosefontclass=ol_closefontclass;
 322  opadunit=ol_padunit;
 323  oheightunit=ol_heightunit;
 324  owidthunit=ol_widthunit;
 325  otextsizeunit=ol_textsizeunit;
 326  otextdecoration=ol_textdecoration;
 327  otextstyle=ol_textstyle;
 328  otextweight=ol_textweight;
 329  ocaptionsizeunit=ol_captionsizeunit;
 330  ocaptiondecoration=ol_captiondecoration;
 331  ocaptionstyle=ol_captionstyle;
 332  ocaptionweight=ol_captionweight;
 333  oclosesizeunit=ol_closesizeunit;
 334  oclosedecoration=ol_closedecoration;
 335  oclosestyle=ol_closestyle;
 336  ocloseweight=ol_closeweight;
 337  fnRef='';
 338  if((ns4)||(ie4)||(ns6)){
 339  if(over)cClick();
 340  oframe=ol_frame;
 341  if(ns4)over=oframe.document.overDiv
 342  if(ie4)over=oframe.overDiv.style
 343  if(ns6)over=oframe.document.getElementById("overDiv");
 344  }
 345  var c=-1, udf, v=null;
 346  var ar=arguments;
 347  udf=(!ar.length ? 1 : 0);
 348  for(i=0;i < ar.length;i++){
 349  if(c < 0){
 350  if(typeof ar[i]=='number'){
 351  udf=(ar[i]==46 ? 0 : 1);
 352  i--;
 353  }else{
 354  otext=ar[i];
 355  }
 356  c=0;
 357  }else{
 358  if(ar[i]==1){udf=0;otext=ol_texts[ar[++i]];continue;}
 359  if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;}
 360  if(ar[i]==3){osticky=1;continue;}
 361  if(ar[i]==4){obackground=ar[++i];continue;}
 362  if(ar[i]==NOCLOSE){oclose="";continue;}
 363  if(ar[i]==6){ocap=ar[++i];continue;}
 364  if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;}
 365  if(ar[i]==10){ooffsetx=ar[++i];continue;}
 366  if(ar[i]==11){ooffsety=ar[++i];continue;}
 367  if(ar[i]==12){ofgcolor=ar[++i];continue;}
 368  if(ar[i]==13){obgcolor=ar[++i];continue;}
 369  if(ar[i]==14){otextcolor=ar[++i];continue;}
 370  if(ar[i]==15){ocapcolor=ar[++i];continue;}
 371  if(ar[i]==16){oclosecolor=ar[++i];continue;}
 372  if(ar[i]==17){owidth=ar[++i];continue;}
 373  if(ar[i]==18){oborder=ar[++i];continue;}
 374  if(ar[i]==19){ostatus=ar[++i];continue;}
 375  if(ar[i]==20){oautostatus=(oautostatus==1)? 0 : 1;continue;}
 376  if(ar[i]==21){oautostatus=(oautostatus==2)? 0 : 2;continue;}
 377  if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again.
 378  if(ar[i]==23){oclose=ar[++i];continue;}
 379  if(ar[i]==24){osnapx=ar[++i];continue;}
 380  if(ar[i]==25){osnapy=ar[++i];continue;}
 381  if(ar[i]==26){ofixx=ar[++i];continue;}
 382  if(ar[i]==27){ofixy=ar[++i];continue;}
 383  if(ar[i]==28){ofgbackground=ar[++i];continue;}
 384  if(ar[i]==29){obgbackground=ar[++i];continue;}
 385  if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;}
 386  if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;}
 387  if(ar[i]==34){ofullhtml=1;continue;}
 388  if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;}
 389  if(ar[i]==37){ocapicon=ar[++i];continue;}
 390  if(ar[i]==38){otextfont=ar[++i];continue;}
 391  if(ar[i]==39){ocaptionfont=ar[++i];continue;}
 392  if(ar[i]==40){oclosefont=ar[++i];continue;}
 393  if(ar[i]==41){otextsize=ar[++i];continue;}
 394  if(ar[i]==42){ocaptionsize=ar[++i];continue;}
 395  if(ar[i]==43){oclosesize=ar[++i];continue;}
 396  if(ar[i]==44){opt_FRAME(ar[++i]);continue;}
 397  if(ar[i]==45){otimeout=ar[++i];continue;}
 398  if(ar[i]==46){udf=0;if(typeof ar[i+1] !='number')v=ar[++i];opt_FUNCTION(v);continue;}
 399  if(ar[i]==47){odelay=ar[++i];continue;}
 400  if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;}
 401  if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;}
 402  if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;}
 403  if(ar[i]==51){ocss=ar[i];continue;}
 404  if(ar[i]==52){ocss=ar[i];continue;}
 405  if(ar[i]==53){ocss=ar[i];continue;}
 406  if(ar[i]==54){ofgclass=ar[++i];continue;}
 407  if(ar[i]==55){obgclass=ar[++i];continue;}
 408  if(ar[i]==56){otextfontclass=ar[++i];continue;}
 409  if(ar[i]==57){ocaptionfontclass=ar[++i];continue;}
 410  if(ar[i]==58){oclosefontclass=ar[++i];continue;}
 411  if(ar[i]==59){opadunit=ar[++i];continue;}
 412  if(ar[i]==60){oheightunit=ar[++i];continue;}
 413  if(ar[i]==61){owidthunit=ar[++i];continue;}
 414  if(ar[i]==62){otextsizeunit=ar[++i];continue;}
 415  if(ar[i]==63){otextdecoration=ar[++i];continue;}
 416  if(ar[i]==64){otextstyle=ar[++i];continue;}
 417  if(ar[i]==65){otextweight=ar[++i];continue;}
 418  if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;}
 419  if(ar[i]==67){ocaptiondecoration=ar[++i];continue;}
 420  if(ar[i]==68){ocaptionstyle=ar[++i];continue;}
 421  if(ar[i]==69){ocaptionweight=ar[++i];continue;}
 422  if(ar[i]==70){oclosesizeunit=ar[++i];continue;}
 423  if(ar[i]==71){oclosedecoration=ar[++i];continue;}
 424  if(ar[i]==72){oclosestyle=ar[++i];continue;}
 425  if(ar[i]==73){ocloseweight=ar[++i];continue;}
 426  }
 427  }
 428  if(udf && ofunction)otext=ofunction();
 429  if(odelay==0){
 430  return overlib351();
 431  }else{
 432  odelayid=setTimeout("overlib351()", odelay);
 433  return false;
 434  }
 435  }
 436  function nd(){
 437  if(oremovecounter >=1){oshowingsticky=0};
 438  if((ns4)||(ie4)||(ns6)){
 439  if(oshowingsticky==0){
 440  oallowmove=0;
 441  if(over !=null)hideObject(over);
 442  }else{
 443  oremovecounter++;
 444  }
 445  }
 446  return true;
 447  }
 448  function overlib351(){
 449  var layerhtml;
 450  if(obackground !="" || ofullhtml){
 451  layerhtml=ol_content_background(otext, obackground, ofullhtml);
 452  }else{
 453  if(ofgbackground !="" && ocss==CSSOFF){
 454  ofgbackground="BACKGROUND=\""+ofgbackground+"\"";
 455  }
 456  if(obgbackground !="" && ocss==CSSOFF){
 457  obgbackground="BACKGROUND=\""+obgbackground+"\"";
 458  }
 459  if(ofgcolor !="" && ocss==CSSOFF){
 460  ofgcolor="BGCOLOR=\""+ofgcolor+"\"";
 461  }
 462  if(obgcolor !="" && ocss==CSSOFF){
 463  obgcolor="BGCOLOR=\""+obgcolor+"\"";
 464  }
 465  if(oheight > 0 && ocss==51){
 466  oheight="HEIGHT=" + oheight;
 467  }else{
 468  oheight="";
 469  }
 470  if(ocap==""){
 471  layerhtml=ol_content_simple(otext);
 472  }else{
 473  if(osticky){
 474  layerhtml=ol_content_caption(otext, ocap, oclose);
 475  }else{
 476  layerhtml=ol_content_caption(otext, ocap, "");
 477  }
 478  }
 479  }
 480  if(osticky){
 481  if(otimerid > 0){
 482  clearTimeout(otimerid);
 483  otimerid=0;
 484  }
 485  oshowingsticky=1;
 486  oremovecounter=0;
 487  }
 488  layerWrite(layerhtml);
 489  if(oautostatus > 0){
 490  ostatus=otext;
 491  if(oautostatus > 1){
 492  ostatus=ocap;
 493  }
 494  }
 495  oallowmove=0;
 496  if(otimeout > 0){
 497  if(otimerid > 0)clearTimeout(otimerid);
 498  otimerid=setTimeout("cClick()", otimeout);
 499  }
 500  disp(ostatus);
 501  if(osticky)oallowmove=0;
 502  return(ostatus !='');
 503  }
 504  function ol_content_simple(text){
 505  if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 506  if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 507  if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 508  set_background("");
 509  return txt;
 510  }
 511  function ol_content_caption(text, title, close){
 512  closing="";
 513  closeevent="onMouseOver";
 514  if(ocloseclick==1)closeevent="onClick";
 515  if(ocapicon !="")ocapicon="<IMG SRC=\""+ocapicon+"\"> ";
 516  if(close !=""){
 517  if(ocss==CSSCLASS)closing="<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\" class=\""+oclosefontclass+"\">"+close+"</A></TD>";
 518  if(ocss==CSSSTYLE)closing="<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\" style=\"color: "+oclosecolor+";font-family: "+oclosefont+";font-size: "+oclosesize+oclosesizeunit+";text-decoration: "+oclosedecoration+";font-weight: "+ocloseweight+";font-style:"+oclosestyle+";\">"+close+"</A></TD>";
 519  if(ocss==CSSOFF)closing="<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\"><FONT COLOR=\""+oclosecolor+"\" FACE=\""+oclosefont+"\" SIZE=\""+oclosesize+"\">"+close+"</FONT></A></TD>";
 520  }
 521  if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT class=\""+ocaptionfontclass+"\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 522  if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";background-image: url("+obgbackground+");height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT style=\"font-family: "+ocaptionfont+";color: "+ocapcolor+";font-size: "+ocaptionsize+ocaptionsizeunit+";font-weight: "+ocaptionweight+";font-style: "+ocaptionstyle+";text-decoration: " + ocaptiondecoration + ";\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 523  if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+obgbackground+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+ocapcolor+"\" FACE=\""+ocaptionfont+"\" SIZE=\""+ocaptionsize+"\">"+ocapicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT COLOR=\""+otextcolor+"\" FACE=\""+otextfont+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 524  set_background("");
 525  return txt;
 526  }
 527  function ol_content_background(text, picture, hasfullhtml){
 528  var txt;
 529  if(hasfullhtml){
 530  txt=text;
 531  }else{
 532  var pU, hU, wU;
 533  pU=(opadunit=='%' ? '%' : '');
 534  hU=(oheightunit=='%' ? '%' : '');
 535  wU=(owidthunit=='%' ? '%' : '');
 536  if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+"></TD></TR><TR><TD WIDTH="+opadxl+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+"><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+"></TD></TR></TABLE>";
 537  if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+wU+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+hU+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+pU+"></TD></TR><TR><TD WIDTH="+opadxl+pU+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+pU+"><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+opadxr+pU+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+pU+"></TD></TR></TABLE>";
 538  if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+"></TD></TR><TR><TD WIDTH="+opadxl+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+"><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+"></TD></TR></TABLE>";
 539  }
 540  set_background(picture);
 541  return txt;
 542  }
 543  function set_background(pic){
 544  if(pic==""){
 545  if(ns4)over.background.src=null;
 546  if(ie4)over.backgroundImage="none";
 547  if(ns6)over.style.backgroundImage="none";
 548  }else{
 549  if(ns4){
 550  over.background.src=pic;
 551  }else if(ie4){
 552  over.backgroundImage="url("+pic+")";
 553  }else if(ns6){
 554  over.style.backgroundImage="url("+pic+")";
 555  }
 556  }
 557  }
 558  function disp(statustext){
 559  if((ns4)||(ie4)||(ns6)){
 560  if(oallowmove==0){
 561  placeLayer();
 562  showObject(over);
 563  oallowmove=1;
 564  }
 565  }
 566  if(statustext !=""){
 567  self.status=statustext;
 568  }
 569  }
 570  function placeLayer(){
 571  var placeX, placeY;
 572  if(ofixx > -1){
 573  placeX=ofixx;
 574  }else{
 575  winoffset=(ie4)? eval('oframe.'+docRoot+'.scrollLeft'): oframe.pageXOffset;
 576  if(ie4)iwidth=eval('oframe.'+docRoot+'.clientWidth');
 577  if(ns4 || ns6)iwidth=oframe.innerWidth;
 578  if(ohauto==1){
 579  if((ox - winoffset)>((eval(iwidth))/ 2)){
 580  ohpos=7;
 581  }else{
 582  ohpos=8;
 583  }
 584  }
 585  if(ohpos==9){// Center
 586  placeX=ox+ooffsetx-(owidth/2);
 587  if(placeX < winoffset)placeX=winoffset;
 588  }
 589  if(ohpos==8){// Right
 590  placeX=ox+ooffsetx;
 591  if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){
 592  placeX=iwidth + winoffset - owidth;
 593  if(placeX < 0)placeX=0;
 594  }
 595  }
 596  if(ohpos==7){// Left
 597  placeX=ox-ooffsetx-owidth;
 598  if(placeX < winoffset)placeX=winoffset;
 599  }
 600  if(osnapx > 1){
 601  var snapping=placeX % osnapx;
 602  if(ohpos==7){
 603  placeX=placeX -(osnapx + snapping);
 604  }else{
 605  placeX=placeX +(osnapx - snapping);
 606  }
 607  if(placeX < winoffset)placeX=winoffset;
 608  }
 609  }
 610  if(ofixy > -1){
 611  placeY=ofixy;
 612  }else{
 613  scrolloffset=(ie4)? eval('oframe.'+docRoot+'.scrollTop'): oframe.pageYOffset;
 614  if(ovauto==1){
 615  if(ie4)iheight=eval('oframe.'+docRoot+'.clientHeight');
 616  if(ns4 || ns6)iheight=oframe.innerHeight;
 617  iheight=(eval(iheight))/ 2;
 618  if((oy - scrolloffset)> iheight){
 619  ovpos=35;
 620  }else{
 621  ovpos=36;
 622  }
 623  }
 624  if(ovpos==35){
 625  if(oaboveheight==0){
 626  var divref=(ie4)? oframe.document.all['overDiv'] : over;
 627  oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight;
 628  }
 629  placeY=oy -(oaboveheight + ooffsety);
 630  if(placeY < scrolloffset)placeY=scrolloffset;
 631  }else{
 632  placeY=oy + ooffsety;
 633  }
 634  if(osnapy > 1){
 635  var snapping=placeY % osnapy;
 636  if(oaboveheight > 0 && ovpos==35){
 637  placeY=placeY -(osnapy + snapping);
 638  }else{
 639  placeY=placeY +(osnapy - snapping);
 640  }
 641  if(placeY < scrolloffset)placeY=scrolloffset;
 642  }
 643  }
 644  repositionTo(over, placeX, placeY);
 645  }
 646  function mouseMove(e){
 647  if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;}
 648  if(ie4){ox=event.x;oy=event.y;}
 649  if(ie5){ox=eval('event.x+oframe.'+docRoot+'.scrollLeft');oy=eval('event.y+oframe.'+docRoot+'.scrollTop');}
 650  if(oallowmove==1){
 651  placeLayer();
 652  }
 653  }
 654  function cClick(){
 655  if (showComboBoxes != null) {
 656  showComboBoxes();
 657  }
 658  hideObject(over);
 659  oshowingsticky=0;
 660  return false;
 661  }
 662  function compatibleframe(frameid){
 663  if(ns4){
 664  if(typeof frameid.document.overDiv=='undefined')return false;
 665  }else if(ie4){
 666  if(typeof frameid.document.all["overDiv"]=='undefined')return false;
 667  }else if(ns6){
 668  if(frameid.document.getElementById('overDiv')==null)return false;
 669  }
 670  return true;
 671  }
 672  function layerWrite(txt){
 673  txt +="\n";
 674  if(ns4){
 675  var lyr=oframe.document.overDiv.document
 676  lyr.write(txt)
 677  lyr.close()
 678  }else if(ie4){
 679  oframe.document.all["overDiv"].innerHTML=txt
 680  }else if(ns6){
 681  range=oframe.document.createRange();
 682  range.setStartBefore(over);
 683  domfrag=range.createContextualFragment(txt);
 684  while(over.hasChildNodes()){
 685  over.removeChild(over.lastChild);
 686  }
 687  over.appendChild(domfrag);
 688  }
 689  }
 690  function showObject(obj){
 691  if(ns4)obj.visibility="show";
 692  else if(ie4)obj.visibility="visible";
 693  else if(ns6)obj.style.visibility="visible";
 694  }
 695  function hideObject(obj){
 696  if(ns4)obj.visibility="hide";
 697  else if(ie4)obj.visibility="hidden";
 698  else if(ns6)obj.style.visibility="hidden";
 699  if(otimerid > 0)clearTimeout(otimerid);
 700  if(odelayid > 0)clearTimeout(odelayid);
 701  otimerid=0;
 702  odelayid=0;
 703  self.status="";
 704  }
 705  function repositionTo(obj,xL,yL){
 706  if((ns4)||(ie4)){
 707  obj.left=(ie4 ? xL + 'px' : xL);
 708  obj.top=(ie4 ? yL + 'px' : yL);
 709  }else if(ns6){
 710  obj.style.left=xL + "px";
 711  obj.style.top=yL+ "px";
 712  }
 713  }
 714  function getFrameRef(thisFrame, ofrm){
 715  var retVal='';
 716  for(var i=0;i<thisFrame.length;i++){
 717  if(thisFrame[i].length > 0){
 718  retVal=getFrameRef(thisFrame[i],ofrm);
 719  if(retVal=='')continue;
 720  }else if(thisFrame[i] !=ofrm)continue;
 721  retVal='['+i+']' + retVal;
 722  break;
 723  }
 724  return retVal;
 725  }
 726  function opt_FRAME(frm){
 727  oframe=compatibleframe(frm)? frm : ol_frame;
 728  if(oframe !=ol_frame){
 729  var tFrm=getFrameRef(top.frames, oframe);
 730  var sFrm=getFrameRef(top.frames, ol_frame);
 731  if(sFrm.length==tFrm.length){
 732  l=tFrm.lastIndexOf('[');
 733  if(l){
 734  while(sFrm.substring(0,l)!=tFrm.substring(0,l))l=tFrm.lastIndexOf('[',l-1);
 735  tFrm=tFrm.substr(l);
 736  sFrm=sFrm.substr(l);
 737  }
 738  }
 739  var cnt=0, p='', str=tFrm;
 740  while((k=str.lastIndexOf('['))!=-1){
 741  cnt++;
 742  str=str.substring(0,k);
 743  }
 744  for(var i=0;i<cnt;i++)p=p + 'parent.';
 745  fnRef=p + 'frames' + sFrm + '.';
 746  }
 747  if((ns4)||(ie4 ||(ns6))){
 748  if(ns4)over=oframe.document.overDiv;
 749  if(ie4)over=oframe.overDiv.style;
 750  if(ns6)over=oframe.document.getElementById("overDiv");
 751  }
 752  return 0;
 753  }
 754  function opt_FUNCTION(callme){
 755  otext=(callme ? callme():(ofunction ? ofunction(): 'No Function'));
 756  return 0;
 757  }


Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7