<!--

/* $Id: _tecneeq.js..gtm,v 1.1.1.1 2003/10/04 16:01:42 karsten Exp $ */

/* escape from frames */
if (self != top){
parent.location.href=self.location.href ;
}

/* menu */
function setd(desc){
        document.getElementById("secdesc").firstChild.nodeValue = desc;
        document.getElementById("secdesc2").firstChild.nodeValue = desc;
}
function resetd(){
        document.getElementById("secdesc").firstChild.nodeValue = "Site Menu";
        document.getElementById("secdesc2").firstChild.nodeValue = "Site Menu";
}

/* get a fortune */
function fortune(){
var z=60;
quotes=new Array(z);
quotes[0]="I see dumb people.";
quotes[1]="I was scared by SCO so badly that i dumped core into my pants.";
quotes[2]="Maybe, if this fortune is witty enough, someone will finally love me.";
quotes[3]="I wish the LC line really did contain pizza. Man, I'm hungry... -- Karsten Kruse";
quotes[4]="Calling EMACS an editor is like calling the Earth a hunk of dirt. -- Chris DiBona";
quotes[5]="127.0.0.1 Because home is where the localhost is.";
quotes[6]="Hello, this is God. Whenever I'm online, which is all the time since I'm omnipresent, I surf all the sites on the Web simultaneously, including www.tecneeq.de!";
quotes[7]="People get annoyed when you try to debug them.";
quotes[8]="Stop searching.  Happiness is right next to you.";
quotes[9]="All right, you degenerates!  I want this place evacuated in 20 seconds!";
quotes[10]="Earth is a beta site.";
quotes[11]="Furious activity is no substitute for understanding. -- H. Williams";
quotes[12]="It's not an optical illusion, it just looks like one.";
quotes[13]="I am not a people person.";
quotes[14]="Honk if you hate bumper stickers that say \"Honk if ...\"";
quotes[15]="The moon may be smaller than Earth, but it's further away.";
quotes[16]="How do I type \"for i in *.dvi do xdvi i done\" in a GUI?";
quotes[17]="When you're not looking at it, this fortune is written in FORTRAN.";
quotes[18]="Life is a whim of several billion cells to be you for a while.";
quotes[19]="LILO, you've got me on my knees! -- David Black";
quotes[20]="Linux is obsolete. -- Andrew Tanenbaum, 1991";
quotes[21]="Linux! Guerrilla UNIX Development Venimus, Vidimus, Dolavimus. - Mark A. Horton";
quotes[22]="lp1 on fire -- One of the more obfuscated kernel messages";
quotes[23]="When you are in it up to your ears, keep your mouth shut.";
quotes[24]="The only \"intuitive\" interface is the nipple. After that, it's all learned. -- B. Ediger";
quotes[25]="...Unix, MS-DOS, and Windows NT. Also known as the Good, the Bad, and the Ugly. -- M. Welsh";
quotes[26]="ASHes to ASHes, DOS to DOS.";
quotes[27]="If you never typed :exit in vi this site is not for you.";
quotes[28]="Don't feed the bats tonight.";
quotes[29]="(1) Everything depends. (2) Nothing is always. (3) Everything is sometimes.";
quotes[30]="355/113 -- Not the famous irrational number PI, but an incredible simulation!";
quotes[31]="A city is a large community where people are lonesome together. -- Herbert Prochnow";
quotes[32]="Disc space -- the final frontier!";
quotes[33]="A conclusion is simply the place where someone got tired of thinking.";
quotes[34]="I'd love to go out with you, but the man on television told me to stay tuned.";
quotes[35]="A continuing flow of paper is sufficient to continue the flow of paper. -- Dyer";
quotes[36]="A day without sunshine is like night.";
quotes[37]="A gleekzorp without a tornpee is like a quop without a fertsneet (sort of).";
quotes[38]="All things are possible, except skiing thru a revolving door.";
quotes[39]="If you never changed data on your HD with a magnetized needle,661 this site is not for you.";
quotes[40]="Don't hate yourself in the morning -- sleep till noon.";
quotes[41]="A mathematician is a machine for converting coffee into theorems.";
quotes[42]="A nuclear war can ruin your whole day.";
quotes[43]="A physicist is an atom's way of knowing about atoms.";
quotes[44]="The problem with the gene pool is that there is no lifeguard.";
quotes[45]="A radioactive cat has eighteen half-lives.";
quotes[46]="Every man has his price.  Mine is $3.95.";
quotes[47]="Get Revenge!  Live long enough to be a problem for your children!";
quotes[48]="Overload -- core meltdown sequence initiated.";
quotes[49]="Overflow on /dev/null, please empty the bit bucket.";
quotes[50]="Old programmers never die.  They just branch to a new address.";
quotes[51]="New crypt.  See /usr/news/crypt.";
quotes[52]="Money is the root of all evil, and man needs roots. Send $20 to learn more.";
quotes[53]="Lost interest?  It's so bad I've lost apathy.";
quotes[54]="God is a comic playing to an audience that's afraid to laugh.";
quotes[55]="God made machine language; all the rest is the work of man.";
quotes[56]="God must love the Common Man; He made so many of them.";
quotes[57]="A hacker is a machine for converting coffee into code.";
quotes[58]="Help me, I'm a prisoner in a Fortune cookie file!";
quotes[59]="I void warranties.";
var jetzt=new Date();
var z=(jetzt.getSeconds())%50;
document.write( "" + quotes[z] + "" );
}

/* Apply a Style and set a Cookie */
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);

// -->
