/*ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ|
| @file        plaste.js                                                     |
|                                                                            |
| basic tools for webworking in java script.                                 |
|                                                                            |
|              P - Peter                                                     |
|              L - Lorenz                                                    |
|              A - Abstract                                                  |
|              S - Scripting                                                 |
|              T - Toolbox                                                   |
|              E - Extension                                                 |
|                                                                            |
| thgdhdhghgfhgfhghgfhgfhgfhgfhgfh                                           |
| trteztrzeruzuzuzetuztuzu                                                   |
|____________________________________________________________________________|
|                                                                            |
| @version     00.00.01                                                      |
| @author      Peter Lorenz                                                  |
|                                                                            |
| @copyright   (c) 2001,2002 by Peter Lorenz, all rights reserved.           |
|____________________________________________________________________________|
| @internal                                                                  |
|ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ|
| update plo   ich tu dies
| 21.01.2001
|
| update plo   bug1 fixed
| 20.01.2001
|____________________________________________________________________________|
|                                                                            |
| bug1         bug one
| fixed
|____________________________________________________________________________|
|                                                                            |
| @todo
|__________________________________________________________________________*/


/*===========================================================================|
|   F U N K T I O N   T E M P L A T E                                        |
`==========================================================================*/

/*ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ|
| @fn          bool_isFunctionDummy_param1_param2_throws_Exception
|                                                                            |
|              Die kurze Beschreibung endet mit einem Punkt.
|                                                                            |
| @param       c         a character.
| @param       n         an integer.
|
| @return      true      alles in Ordnung
|              false     Fehler aufgetreten
|                                                                            |
|              Hier kann dann eine ausführliche Beschreibung der
|              Funktionsweise der Funktion erfolgen. Es sollten alle
|              Annahmen (Assumptions)
|              Warnungen (Warnings)
|              sowie eventuell verwendete globale Variablen
|              angegeben werden!
|                                                                            |
|__________________________________________________________________________*/
function template()
{
  return;
}

/*===========================================================================|
|   U N I V E R S A L   T O O L S                                            |
`==========================================================================*/

/*****************************************************************************
Default browsercheck - Leave this one
*****************************************************************************/
function lib_bwcheck()                           /*..Browsercheck (needed) .*/
{ this.ver=navigator.appVersion;
  this.agent=navigator.userAgent;
  this.dom=document.getElementById?1:0;
  this.opera5=this.agent.indexOf("Opera 5")>-1;
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
  this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
  this.ie=this.ie4||this.ie5||this.ie6;
  this.mac=this.agent.indexOf("Mac")>-1;
  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);
  return this;
}
var bw=new lib_bwcheck();              /*..Making browsercheck object ......*/

/******************************************************************************
NS4 resize fix...
******************************************************************************/
if(document.layers)
{ scrX= innerWidth;
  scrY= innerHeight;
  onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}

/******************************************************************************

******************************************************************************/


/* solange StartStop = [false] werden keine JS Befehle ausgefuehrt */
var isIE3Mac = false;
var is;

/* Creator function for brwobj */
function BrowserCheck ()
{
  var agt=navigator.userAgent.toLowerCase();
  /* *** BROWSER VERSION *** */
  /* Note: On IE5, these return 4, so use is.ie5up to detect IE5. */
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);

  this.nav   = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
             && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
             && (agt.indexOf('webtv')==-1));
  this.nav2  = (this.nav && (this.major == 2));
  this.nav3  = (this.nav && (this.major == 3));
  this.nav4  = (this.nav && (this.major == 4));
  this.nav4up= (this.nav && (this.major >= 4));
  this.navonly=(this.nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) );
  this.nav5  = (this.nav && (this.major == 5));
  this.nav5up= (this.nav && (this.major >= 5));
  this.ie    = (agt.indexOf("msie") != -1);
  this.ie3   = (this.ie && (this.major < 4));
  this.ie4   = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1) );
  this.ie4up = (this.ie  && (this.major >= 4));
  this.ie5   = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
  this.ie5up = (this.ie  && !this.ie3 && !this.ie4);

  this.fubbel = (this.ie4 || this.ie4up || this.ie5 || this.ie5up || this.nav3 || this.nav4 || this.nav4up);
  this.onlyfour = (this.ie4 || this.ie4up || this.ie5up || this.ie5 || this.nav4 || this.nav4up );
  this.nsbroken = ( (this.minor == 4.0 || this.minor == 4.01 || this.minor == 4.02   || this.minor == 4.03 || this.minor == 4.04 || this.minor == 4.05) && ! this.ie );
}

/* for ie3 on mac only */
if (((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3)))
{
  isIE3Mac = true;
}
/* for all the other ones */
else
{ is = new BrowserCheck();
}

function ChangeStatus(text)
{ status = text;
}

/*===========================================================================|
|   T I M E   F U N K T I O N S                                              |
`==========================================================================*/

var days = new Array();

/*
days[0] = "December 20, 1999";
msgs[0] = "Thanks for shopping with Swing";

days[1] = "December 21, 1999";
msgs[1] = "Not Christmas yet, it's only the 21st.";

days[2] = "December 22, 1999";
msgs[2] = "Another day closer, almost there!";
*/

var months = new Array("",
"Januar", "Februar", "März", "April", "Mai", "Juni",
"Juli", "August", "September", "Oktober", "November", "Dezember"
);

var today = new Date();
var mon = months[today.getMonth() + 1];
var day = today.getDate();
var year = y2k(today.getYear());

function dateMsg()
{ for (i = 0; i < days.length; i++)
  { tempdate  = new Date(days[i]);
    tempmonth = months[tempdate.getMonth() + 1];
    tempday   = tempdate.getDate();
    tempyear  = y2k(tempdate.getYear());
    if (year == tempyear && mon == tempmonth && day == tempday)
      return("Today is " + days[i] + ".  " + msgs[i]);
  }
  return("Mannheim, " + day + ". " + mon + " " + year); /* returns default */
}

/* Y2K Fix Function */
function y2k(year)
{ if (year < 2000) year = year + 1900;
  return year;
}

/*===========================================================================|
|   E N D   O F   F I L E                                                    |
`==========================================================================*/
