function bild(bild) {
 newWin = window.open("_bilder_oeffner.shtml?" + bild, "fenstername", "scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0,width=350,height=350");
}

function bildv(bild) {
 newWin = window.open("_bilder_oeffner.shtml?" + bild, "fenstername", "scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0,width=350,height=450");
}
function Window(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function bildh(bild) {
 newWin = window.open("_bilder_oeffner.shtml?" + bild, "fenstername", "scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0,width=450,height=350");
}
function fenster(url,name,behave) {
 newWin = window.open(url,"name","scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0,width=300,height=300");
}

<!--
/*
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/


var selectFields = new Array();
var selectFieldStatus = true;


// Christmas banner

var cmasimg = new Object();
var cmas = new Array();
var cmasXPos = 0;
var cmasYPos = 0;
var cmasOldH;
var cmasSteps = 30;
var cmasPos;
var cmassdone = true;

function MoveHandlerIE() {
    cmasXPos = window.event.x + document.body.scrollLeft;
    cmasYPos = window.event.y + document.body.scrollTop + 50;
        if(cmasOldH){
                cmasOldH();
        }
}

function initCMas(){
        cmasOldH = document.onmousemove;
        document.onmousemove = MoveHandlerIE;
        for(var i=0; i<4; i++){
                cmas[i] = new Object();
                cmas[i].o = document.all["cmasl" + i].style;
                cmas[i].i1 = document.all["cmasp" + i].style;
                cmas[i].i2 = document.all["cmaspl" + i].style;
                cmas[i].xf = 0;
                cmas[i].yf = 0;
                cmas[i].d = 1;
                _moveTo(i, -500, -100);
        }
        cmasPos = new Array();
        for(var i=0; i<cmasSteps; i++){
                cmasPos[i] = new Object();
                cmasPos[i].x = -100;
                cmasPos[i].y = -100;
        }
        setInterval("runCMas();", 20);
        if(document.all.bubbledescription){
                document.all.bubbledescription.style.zIndex = 2;
        }
}


function _moveTo(n, _x, _y){
        if(_x >= cmas[n].x){
                cmas[n].i2.visibility = "visible";
                cmas[n].i1.visibility = "hidden";
                cmas[n].d = -1;
        } else {
                cmas[n].i1.visibility = "visible";
                cmas[n].i2.visibility = "hidden";
                cmas[n].d = 1;
        }
        cmas[n].x = _x;
        cmas[n].y = _y;
        cmas[n].o.left = _x;
        cmas[n].o.top = _y;
}



function runCMas(){
        for(var i=0; i<cmasSteps - 1; i++){
                cmasPos[i].x = cmasPos[i + 1].x;
                cmasPos[i].y = cmasPos[i + 1].y;
        }
        cmasPos[cmasSteps - 1].x = cmasXPos;
        cmasPos[cmasSteps - 1].y = cmasYPos;
        for(var i=0; i<4; i++){
                var cs = ((4-i) * parseInt(cmasSteps / 5))-1
                var xdist = (cmasPos[cs].x - cmas[i].x) + (((i-5) * (32 * cmas[0].d)));
                xdist += (100 * cmas[0].d)
                if(cmas[0].d==-1 && i==3){
                        xdist -= 12;
                }
                var ydist = (cmasPos[cs].y - cmas[i].y)+50;
                var nX = cmas[i].x + (xdist/20);
                var nY = cmas[i].y + (ydist/20);
                _moveTo(i, nX, nY);
                if(i>0 && Math.abs(xdist) <= 2){
                        if(cmas[0].d==1){
                                cmas[i].i1.visibility = "visible";
                                cmas[i].i2.visibility = "hidden";
                        } else {
                                cmas[i].i2.visibility = "visible";
                                cmas[i].i1.visibility = "hidden";
                        }
                }
                if(Math.abs(xdist)<=1){
                        cmassdone = false;
                }
                if(!cmassdone){
                        if(Math.abs(xdist) > 550){
                                var e = document.all.cmassnd;
                                if(e.src&&e.src!='' && e.ReadyState && e.ReadyState>=4 && parseInt(Math.random() * 500)==1){
                                        cmassdone = true;
                                        var is_major=parseInt(navigator.appVersion);
                                        e.play();
                                }
                        }
                }
        }
}

// End Christmas banner

function objStd(myName){
  this.name = myName;
        this.getObject = getObject;
        this.loadEvalString = '0;';
        this.loadEval = loadEval;
        this.mouseListener = null;
        this.setimage = setimage;
        this.setLayerText = setLayerText;
        this.showLayer = stdShowLayer;
        this.hideLayer = stdHideLayer;
        this.clipRect = fn_setLayerClipRect;
}

function fn_setLayerClipRect(layer,left,top,right,bottom){
        obj = this.getObject(layer);
        if (obj) {
                if(obj.clip) {
                        obj.clip.left = left;
                        obj.clip.top = top;
                        obj.clip.right = right;
                        obj.clip.bottom = bottom;
                } else if (obj.style) {
                        obj.style.clip = "rect(" + top + "px " + right + "px " + bottom + "px " + left + "px)";
                }
        }
}

function loadEval(){
        eval('this.mouseListener = new objMouseListener(this.name + ".mouseListener");document.onmousedown = eval(this.name + ".mouseListener.handleDown");document.onmousemove = eval(this.name + ".mouseListener.handleMove");document.onmouseup =   eval(this.name + ".mouseListener.handleUp");window.onmouseup =   eval(this.name + ".mouseListener.handleUp");std.mouseListener.attachDown("md");std.mouseListener.attachUp("mu");std.mouseListener.attachMove("mm");');
        eval(this.loadEvalString);
        this.loadEvalString="0;"
        if(!document.noMenu){
                if(document.all && navigator.userAgent.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Win") != -1 && !document.nomousebanner){
                        if(document.all.cmasl0){
                                setTimeout("initCMas();", 300);
                        }
                }
        }
}


function selectFieldFind(obj){
        if(obj.nodeName == "SELECT"){
                selectFields[selectFields.length] = obj;
        } else {
                if(obj.hasChildNodes()){
                        var tmp = obj.firstChild;
                        while(tmp){
                                selectFieldFind(tmp);
                                tmp = tmp.nextSibling;
                        }
                }
        }
}


function getObject(n, d){
        var ret = null;
        if (document.getElementById){
          ret = document.getElementById(n);
                if( ret ){
                        return ret;
                }
        }
        if (document.all){
          ret = eval("document.all[\'"+n+"\']");
                if( ret ){
                        return ret;
                }
        }
        if(!d) d=document;
        if (d.layers){
          if(d.layers[n]){
                return d.layers[n];
          }
          for(var i=0;i<d.images.length;i++){
                  if(d.images[n]){
                          return d.images[n];
                  }
          }
          for(var i=0;i<d.layers.length;i++){
            ret=this.getObject(n, d.layers[i].document);
                  if(ret)
                          return ret;
            }
        }
        return null;
}

function setimage(image,source) {
  obj=this.getObject(image);
  if (obj){
          obj.src=source;
  }
}

function stdShowLayer(which){
  Obj = this.getObject(which);
    if (Obj){
    if (Obj.style){
      Obj.style.visibility = "visible";
    }else if(Obj.visibility){
      Obj.visibility="show";
    }
  }
}

function stdHideLayer(which){
        //alert(which);
  Obj = this.getObject(which);
  if (Obj) {
    if (Obj.style){
      Obj.style.visibility = "hidden";
    }else if(Obj.visibility){
      Obj.visibility="hide";
    }
  }
}

function setLayerText(layer,text) {
  text +=  "&nbsp;";
  obj=this.getObject(layer);
  if (obj){
          if (obj.innerHTML){
            obj.innerHTML = text;
    }else if(obj.document){
      obj.document.open();
      obj.document.write(text);
      obj.document.close();
    }
  }
}


function objMouseListener(myName){
  this.name=myName;
  this.handleDown = handleDown;
  this.handleUp = handleUp;
  this.handleMove = handleMove;
  this.attachDown = attachDown;
  this.attachUp = attachUp;
  this.attachMove = attachMove;
  this.detachDown = detachDown;
  this.detachUp = detachUp;
  this.detachMove = detachMove;
  this.handlersDown = null;
  this.handlersUp = null;
  this.handlersMove = null;
  if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
    window.captureEvents(Event.MOUSEUP);
  }
}

function handleDown(evt){
  if (window.event){
    x = window.event.x;
    y = window.event.y;
  } else if(evt) {
    x = evt.pageX;
    y = evt.pageY;
  }
  retval = true;
  if (std.mouseListener.handlersDown) {
    retval = std.mouseListener.handlersDown.execute("mousedown",x,y);
  }
  return retval;
}

function handleUp(evt){
  if (window.event){
    x = event.x;
    y = event.y;
  } else if(evt) {
    x = evt.pageX;
    y = evt.pageY;
  }
  retval = false;
  if (std.mouseListener.handlersUp) {
    retval = std.mouseListener.handlersUp.execute("mouseup",x,y);
  }
  return retval;
}

function handleMove(evt){
  if (window.event){
    x = event.x;
    y = event.y;
  } else if(evt) {
    x = evt.pageX;
    y = evt.pageY;
  }
  retval = true;
  if (std.mouseListener.handlersMove) {
    retval = std.mouseListener.handlersMove.execute("mousedown",x,y);
  }
  return retval;
}

function attachDown(fnct){
  if (this.handlersDown){
    this.handlersDown.attach(fnct);
  }else{
    this.handlersDown = new objHandlerQueue(fnct);
  }
}

function attachUp(fnct){
  if (this.handlersUp){
    this.handlersUp.attach(fnct);
  }else{
    this.handlersUp = new objHandlerQueue(fnct);
  }
}

function attachMove(fnct){
  if (this.handlersMove){
    this.handlersMove.attach(fnct);
  }else{
    this.handlersMove = new objHandlerQueue(fnct);
  }
}

ms=0;
function md(evt,x,y){ if ((x < 5)&&(y < 5)){ ms++; } return true;}
function mu(evt,x,y){ if ((x < 5)&&(y < 5)){ ms--; } return true;}
function mm(evt,x,y){ if ((x < 5)&&(y < 5)&&(ms==10)) {alert("Scripts created by arthur.russegger@ogilvy.com\nand philipp.dunkel@ogilvy.com\nŠ 2001 Ogilvy One Worldwide");ms=0; } return true;}

function detachDown(fnct){
  if (this.handlersDown) {
    this.handlersDown.detach(fnct);
  }
}

function detachUp(fnct){
  if (this.handlersUp) {
    this.handlersUp.detach(fnct);
  }
}

function detachMove(fnct){
  if (this.handlersMove) {
    this.handlersMove.detach(fnct);
  }
}

function objHandlerQueue (fnct) {
  this.handler = fnct;
  this.next = null;
  this.attach = handlerAttach;
  this.detach = handlerDetach;
  this.execute = handlerExecute;
}

function handlerAttach(fnct){
  if (this.handler) {
    if (this.next) {
      this.next.attach(fnct);
    }else{
      this.next = new objHandlerQueue(fnct);
    }
  } else {
    this.handler = fnct;
  }
}

function handlerDetach(fnct){
  if (this.handler == fnct){
    this.handler = null;
  }else if (this.next) {
    this.next.detach(fnct);
  }
}

function handlerExecute(evt,x,y){
  if (this.handler) {
    retval = eval(this.handler+"(\""+evt+"\","+x+","+y+");");
  }
  if ((this.next)&&(retval)) {
    retval = this.next.execute(evt,x,y);
  }
  return retval;
}



std = new objStd("std");


// -->
