[ PHPXref.com ] [ Generated: Sun Jul 20 16:32:03 2008 ] [ ATutor 1.5.2 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> overlib_mini_help.js (source)

   1  //\//////////////////////////////////////////////////////////////////////////////////
   2  //\  overLIB 3.50  --  This notice must remain untouched at all times.
   3  //\  Copyright Erik Bosrup 1998-2001. All rights reserved.
   4  //\
   5  //\  By Erik Bosrup (erik@bosrup.com).  Last modified 2001-08-28.
   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="#EEEEEE";}
  98  if(typeof ol_bgcolor=='undefined'){var ol_bgcolor="#006699";}
  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="2";}
 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=1;}
 132  if(typeof ol_vpos=='undefined'){var ol_vpos=36;}
 133  if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;}
 134  if(typeof ol_caption=='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=Function();}
 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;} /* 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=Function();
 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 ns4=(document.layers)? true:false;
 241  var ns6=(document.getElementById)? true:false;
 242  var ie4=(document.all)? true:false;
 243  var ie5=false;
 244  if(ie4){
 245  if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
 246  ie5=true;
 247  }
 248  if(ns6){
 249  ns6=false;
 250  }
 251  }
 252  if((ns4)||(ie4)||(ns6)){
 253  document.onmousemove=mouseMove
 254  if(ns4)document.captureEvents(Event.MOUSEMOVE)
 255  }else{
 256  overlib=no_overlib;
 257  nd=no_overlib;
 258  ver3fix=true;
 259  }
 260  function no_overlib(){
 261  return ver3fix;
 262  }
 263  function overlib2(){
 264  otext=ol_text;
 265  ocap=ol_cap;
 266  osticky=ol_sticky;
 267  obackground=ol_background;
 268  oclose=ol_close;
 269  ohpos=ol_hpos;
 270  ooffsetx=ol_offsetx;
 271  ooffsety=ol_offsety;
 272  ofgcolor=ol_fgcolor;
 273  obgcolor=ol_bgcolor;
 274  otextcolor=ol_textcolor;
 275  ocapcolor=ol_capcolor;
 276  oclosecolor=ol_closecolor;
 277  owidth=ol_width;
 278  oborder=ol_border;
 279  ostatus=ol_status;
 280  oautostatus=ol_autostatus;
 281  oheight=ol_height;
 282  osnapx=ol_snapx;
 283  osnapy=ol_snapy;
 284  ofixx=ol_fixx;
 285  ofixy=ol_fixy;
 286  ofgbackground=ol_fgbackground;
 287  obgbackground=ol_bgbackground;
 288  opadxl=ol_padxl;
 289  opadxr=ol_padxr;
 290  opadyt=ol_padyt;
 291  opadyb=ol_padyb;
 292  ofullhtml=ol_fullhtml;
 293  ovpos=ol_vpos;
 294  oaboveheight=ol_aboveheight;
 295  ocapicon=ol_capicon;
 296  otextfont=ol_textfont;
 297  ocaptionfont=ol_captionfont;
 298  oclosefont=ol_closefont;
 299  otextsize=ol_textsize;
 300  ocaptionsize=ol_captionsize;
 301  oclosesize=ol_closesize;
 302  otimeout=ol_timeout;
 303  ofunction=ol_function;
 304  odelay=ol_delay;
 305  ohauto=ol_hauto;
 306  ovauto=ol_vauto;
 307  ocloseclick=ol_closeclick;
 308  ocss=ol_css;
 309  ofgclass=ol_fgclass;
 310  obgclass=ol_bgclass;
 311  otextfontclass=ol_textfontclass;
 312  ocaptionfontclass=ol_captionfontclass;
 313  oclosefontclass=ol_closefontclass;
 314  opadunit=ol_padunit;
 315  oheightunit=ol_heightunit;
 316  owidthunit=ol_widthunit;
 317  otextsizeunit=ol_textsizeunit;
 318  otextdecoration=ol_textdecoration;
 319  otextstyle=ol_textstyle;
 320  otextweight=ol_textweight;
 321  ocaptionsizeunit=ol_captionsizeunit;
 322  ocaptiondecoration=ol_captiondecoration;
 323  ocaptionstyle=ol_captionstyle;
 324  ocaptionweight=ol_captionweight;
 325  oclosesizeunit=ol_closesizeunit;
 326  oclosedecoration=ol_closedecoration;
 327  oclosestyle=ol_closestyle;
 328  ocloseweight=ol_closeweight;
 329  if((ns4)||(ie4)||(ns6)){
 330  oframe=ol_frame;
 331  if(ns4)over=oframe.document.overDiv2
 332  if(ie4)over=oframe.overDiv2.style
 333  if(ns6)over=oframe.document.getElementById("overDiv");
 334  }
 335  var c=-1;
 336  var ar=arguments;
 337  for(i=0;i < ar.length;i++){
 338  if(c < 0){
 339  if(ar[i]==1){
 340  otext=ol_texts[ar[++i]];
 341  }else{
 342  otext=ar[i];
 343  }
 344  c=0;
 345  }else{
 346  if(ar[i]==1){otext=ol_texts[ar[++i]];continue;}
 347  if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;}
 348  if(ar[i]==3){osticky=1;continue;}
 349  if(ar[i]==4){obackground=ar[++i];continue;}
 350  if(ar[i]==NOCLOSE){oclose="";continue;}
 351  if(ar[i]==6){ocap=ar[++i];continue;}
 352  if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;}
 353  if(ar[i]==10){ooffsetx=ar[++i];continue;}
 354  if(ar[i]==11){ooffsety=ar[++i];continue;}
 355  if(ar[i]==12){ofgcolor=ar[++i];continue;}
 356  if(ar[i]==13){obgcolor=ar[++i];continue;}
 357  if(ar[i]==14){otextcolor=ar[++i];continue;}
 358  if(ar[i]==15){ocapcolor=ar[++i];continue;}
 359  if(ar[i]==16){oclosecolor=ar[++i];continue;}
 360  if(ar[i]==17){owidth=ar[++i];continue;}
 361  if(ar[i]==18){oborder=ar[++i];continue;}
 362  if(ar[i]==19){ostatus=ar[++i];continue;}
 363  if(ar[i]==20){oautostatus=1;continue;}
 364  if(ar[i]==21){oautostatus=2;continue;}
 365  if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again.
 366  if(ar[i]==23){oclose=ar[++i];continue;}
 367  if(ar[i]==24){osnapx=ar[++i];continue;}
 368  if(ar[i]==25){osnapy=ar[++i];continue;}
 369  if(ar[i]==26){ofixx=ar[++i];continue;}
 370  if(ar[i]==27){ofixy=ar[++i];continue;}
 371  if(ar[i]==28){ofgbackground=ar[++i];continue;}
 372  if(ar[i]==29){obgbackground=ar[++i];continue;}
 373  if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;}
 374  if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;}
 375  if(ar[i]==34){ofullhtml=1;continue;}
 376  if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;}
 377  if(ar[i]==37){ocapicon=ar[++i];continue;}
 378  if(ar[i]==38){otextfont=ar[++i];continue;}
 379  if(ar[i]==39){ocaptionfont=ar[++i];continue;}
 380  if(ar[i]==40){oclosefont=ar[++i];continue;}
 381  if(ar[i]==41){otextsize=ar[++i];continue;}
 382  if(ar[i]==42){ocaptionsize=ar[++i];continue;}
 383  if(ar[i]==43){oclosesize=ar[++i];continue;}
 384  if(ar[i]==44){opt_FRAME(ar[++i]);continue;}
 385  if(ar[i]==45){otimeout=ar[++i];continue;}
 386  if(ar[i]==46){opt_FUNCTION(ar[++i]);continue;}
 387  if(ar[i]==47){odelay=ar[++i];continue;}
 388  if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;}
 389  if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;}
 390  if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;}
 391  if(ar[i]==51){ocss=ar[i];continue;}
 392  if(ar[i]==52){ocss=ar[i];continue;}
 393  if(ar[i]==53){ocss=ar[i];continue;}
 394  if(ar[i]==54){ofgclass=ar[++i];continue;}
 395  if(ar[i]==55){obgclass=ar[++i];continue;}
 396  if(ar[i]==56){otextfontclass=ar[++i];continue;}
 397  if(ar[i]==57){ocaptionfontclass=ar[++i];continue;}
 398  if(ar[i]==58){oclosefontclass=ar[++i];continue;}
 399  if(ar[i]==59){opadunit=ar[++i];continue;}
 400  if(ar[i]==60){oheightunit=ar[++i];continue;}
 401  if(ar[i]==61){owidthunit=ar[++i];continue;}
 402  if(ar[i]==62){otextsizeunit=ar[++i];continue;}
 403  if(ar[i]==63){otextdecoration=ar[++i];continue;}
 404  if(ar[i]==64){otextstyle=ar[++i];continue;}
 405  if(ar[i]==65){otextweight=ar[++i];continue;}
 406  if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;}
 407  if(ar[i]==67){ocaptiondecoration=ar[++i];continue;}
 408  if(ar[i]==68){ocaptionstyle=ar[++i];continue;}
 409  if(ar[i]==69){ocaptionweight=ar[++i];continue;}
 410  if(ar[i]==70){oclosesizeunit=ar[++i];continue;}
 411  if(ar[i]==71){oclosedecoration=ar[++i];continue;}
 412  if(ar[i]==72){oclosestyle=ar[++i];continue;}
 413  if(ar[i]==73){ocloseweight=ar[++i];continue;}
 414  }
 415  }
 416  if(odelay==0){
 417  return overlib350();
 418  }else{
 419  odelayid=setTimeout("overlib350()", odelay);
 420  if(osticky){
 421  return false;
 422  }else{
 423  return true;
 424  }
 425  }
 426  }
 427  function nd2(){
 428  if(oremovecounter >=1){oshowingsticky=0};
 429  if((ns4)||(ie4)||(ns6)){
 430  if(oshowingsticky==0){
 431  oallowmove=0;
 432  if(over !=null)hideObject(over);
 433  }else{
 434  oremovecounter++;
 435  }
 436  }
 437  return true;
 438  }
 439  function overlib350(){
 440  var layerhtml;
 441  if(obackground !="" || ofullhtml){
 442  layerhtml=ol_content_background(otext, obackground, ofullhtml);
 443  }else{
 444  if(ofgbackground !="" && ocss==CSSOFF){
 445  ofgbackground="BACKGROUND=\""+ofgbackground+"\"";
 446  }
 447  if(obgbackground !="" && ocss==CSSOFF){
 448  obgbackground="BACKGROUND=\""+obgbackground+"\"";
 449  }
 450  if(ofgcolor !="" && ocss==CSSOFF){
 451  ofgcolor="BGCOLOR=\""+ofgcolor+"\"";
 452  }
 453  if(obgcolor !="" && ocss==CSSOFF){
 454  obgcolor="BGCOLOR=\""+obgcolor+"\"";
 455  }
 456  if(oheight > 0 && ocss==51){
 457  oheight="HEIGHT=" + oheight;
 458  }else{
 459  oheight="";
 460  }
 461  if(ocap==""){
 462  layerhtml=ol_content_simple(otext);
 463  }else{
 464  if(osticky){
 465  layerhtml=ol_content_caption(otext, ocap, oclose);
 466  }else{
 467  layerhtml=ol_content_caption(otext, ocap, "");
 468  }
 469  }
 470  }
 471  if(osticky){
 472  oshowingsticky=1;
 473  oremovecounter=0;
 474  }
 475  layerWrite(layerhtml);
 476  if(oautostatus > 0){
 477  ostatus=otext;
 478  if(oautostatus > 1){
 479  ostatus=ocap;
 480  }
 481  }
 482  oallowmove=0;
 483  if(otimeout > 0){
 484  if(otimerid > 0)clearTimeout(otimerid);
 485  otimerid=setTimeout("cClick()", otimeout);
 486  }
 487  disp(ostatus);
 488  if(osticky){
 489  oallowmove=0;
 490  return false;
 491  }else{
 492  return true;
 493  }
 494  }
 495  function ol_content_simple(text){
 496  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>";
 497  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>";
 498  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>";
 499  set_background("");
 500  return txt;
 501  }
 502  function ol_content_caption(text, title, close){
 503  closing="";
 504  closeevent="onMouseOver";
 505  if(ocloseclick==1)closeevent="onClick";
 506  if(ocapicon !="")ocapicon="<IMG SRC=\""+ocapicon+"\"> ";
 507  if(close !=""){
 508  if(ocss==CSSCLASS)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" class=\""+oclosefontclass+"\">"+close+"</A></TD>";
 509  if(ocss==CSSSTYLE)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" style=\"color: "+oclosecolor+";font-family: "+oclosefont+";font-size: "+oclosesize+oclosesizeunit+";text-decoration: "+oclosedecoration+";font-weight: "+ocloseweight+";font-style:"+oclosestyle+";\">"+close+"</A></TD>";
 510  if(ocss==CSSOFF)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+oclosecolor+"\" FACE=\""+oclosefont+"\" SIZE=\""+oclosesize+"\">"+close+"</FONT></A></TD>";
 511  }
 512  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>";
 513  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+";\">"+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>";
 514  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>";
 515  set_background("");
 516  return txt;
 517  }
 518  function ol_content_background(text, picture, hasfullhtml){
 519  if(hasfullhtml){
 520  txt=text;
 521  }else{
 522  if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>";
 523  if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>";
 524  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>";
 525  }
 526  set_background(picture);
 527  return txt;
 528  }
 529  function set_background(pic){
 530  if(pic==""){
 531  if(ie4)over.backgroundImage="none";
 532  if(ns6)over.style.backgroundImage="none";
 533  }else{
 534  if(ns4){
 535  over.background.src=pic;
 536  }else if(ie4){
 537  over.backgroundImage="url("+pic+")";
 538  }else if(ns6){
 539  over.style.backgroundImage="url("+pic+")";
 540  }
 541  }
 542  }
 543  function disp(statustext){
 544  if((ns4)||(ie4)||(ns6)){
 545  if(oallowmove==0){
 546  placeLayer();
 547  showObject(over);
 548  oallowmove=1;
 549  }
 550  }
 551  if(statustext !=""){
 552  self.status=statustext;
 553  }
 554  }
 555  function placeLayer(){
 556  var placeX, placeY;
 557  if(ofixx > -1){
 558  placeX=ofixx;
 559  }else{
 560  winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset;
 561  if(ie4)iwidth=oframe.document.body.clientWidth;
 562  if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now?
 563  if(ns6)iwidth=oframe.outerWidth;
 564  if(ohauto==1){
 565  if((ox - winoffset)>((eval(iwidth))/ 2)){
 566  ohpos=7;
 567  }else{
 568  ohpos=8;
 569  }
 570  }
 571  if(ohpos==9){// Center
 572  placeX=ox+ooffsetx-(owidth/2);
 573  }
 574  if(ohpos==8){// Right
 575  placeX=ox+ooffsetx;
 576  if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){
 577  placeX=iwidth + winoffset - owidth;
 578  if(placeX < 0)placeX=0;
 579  }
 580  }
 581  if(ohpos==7){// Left
 582  placeX=ox-ooffsetx-owidth;
 583  if(placeX < winoffset)placeX=winoffset;
 584  }
 585  if(osnapx > 1){
 586  var snapping=placeX % osnapx;
 587  if(ohpos==7){
 588  placeX=placeX -(osnapx + snapping);
 589  }else{
 590  placeX=placeX +(osnapx - snapping);
 591  }
 592  if(placeX < winoffset)placeX=winoffset;
 593  }
 594  }
 595  if(ofixy > -1){
 596  placeY=ofixy;
 597  }else{
 598  scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset;
 599  if(ovauto==1){
 600  if(ie4)iheight=oframe.document.body.clientHeight;
 601  if(ns4)iheight=oframe.innerHeight;
 602  if(ns6)iheight=oframe.outerHeight;
 603  iheight=(eval(iheight))/ 2;
 604  if((oy - scrolloffset)> iheight){
 605  ovpos=35;
 606  }else{
 607  ovpos=36;
 608  }
 609  }
 610  if(ovpos==35){
 611  if(oaboveheight==0){
 612  var divref=(ie4)? oframe.document.all['overDiv2'] : over;
 613  oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight;
 614  }
 615  placeY=oy -(oaboveheight + ooffsety);
 616  if(placeY < scrolloffset)placeY=scrolloffset;
 617  }else{
 618  placeY=oy + ooffsety;
 619  }
 620  if(osnapy > 1){
 621  var snapping=placeY % osnapy;
 622  if(oaboveheight > 0 && ovpos==35){
 623  placeY=placeY -(osnapy + snapping);
 624  }else{
 625  placeY=placeY +(osnapy - snapping);
 626  }
 627  if(placeY < scrolloffset)placeY=scrolloffset;
 628  }
 629  }
 630  repositionTo(over, placeX, placeY);
 631  }
 632  function mouseMove(e){
 633  if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;}
 634  if(ie4){ox=event.x;oy=event.y;}
 635  if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;}
 636  if(oallowmove==1){
 637  placeLayer();
 638  }
 639  }
 640  function cClick(){
 641  hideObject(over);
 642  oshowingsticky=0;
 643  return false;
 644  }
 645  function compatibleframe(frameid){
 646  if(ns4){
 647  if(typeof frameid.document.overDiv2=='undefined')return false;
 648  }else if(ie4){
 649  if(typeof frameid.document.all["overDiv2"]=='undefined')return false;
 650  }else if(ns6){
 651  if(frameid.document.getElementById('overDiv2')==null)return false;
 652  }
 653  return true;
 654  }
 655  function layerWrite(txt){
 656  txt +="\n";
 657  if(ns4){
 658  var lyr=oframe.document.overDiv2.document
 659  lyr.write(txt)
 660  lyr.close()
 661  }else if(ie4){
 662  oframe.document.all["overDiv2"].innerHTML=txt
 663  }else if(ns6){
 664  range=oframe.document.createRange();
 665  range.setStartBefore(over);
 666  domfrag=range.createContextualFragment(txt);
 667  while(over.hasChildNodes()){
 668  over.removeChild(over.lastChild);
 669  }
 670  over.appendChild(domfrag);
 671  }
 672  }
 673  function showObject(obj){
 674  if(ns4)obj.visibility="show";
 675  else if(ie4)obj.visibility="visible";
 676  else if(ns6)obj.style.visibility="visible";
 677  }
 678  function hideObject(obj){
 679  if(ns4)obj.visibility="hide";
 680  else if(ie4)obj.visibility="hidden";
 681  else if(ns6)obj.style.visibility="hidden";
 682  if(otimerid > 0)clearTimeout(otimerid);
 683  if(odelayid > 0)clearTimeout(odelayid);
 684  otimerid=0;
 685  odelayid=0;
 686  self.status="";
 687  }
 688  function repositionTo(obj,xL,yL){
 689  if((ns4)||(ie4)){
 690  obj.left=xL;
 691  obj.top=yL;
 692  }else if(ns6){
 693  obj.style.left=xL + "px";
 694  obj.style.top=yL+ "px";
 695  }
 696  }
 697  function opt_FRAME(frm){
 698  oframe=compatibleframe(frm)? frm : ol_frame;
 699  if((ns4)||(ie4 ||(ns6))){
 700  if(ns4)over=oframe.document.overDiv2;
 701  if(ie4)over=oframe.overDiv.style;
 702  if(ns6)over=oframe.document.getElementById("overDiv");
 703  }
 704  return 0;
 705  }
 706  function opt_FUNCTION(callme){
 707  otext=callme()
 708  return 0;
 709  }


[ Powered by PHPXref - Served by Debian GNU/Linux ]