/* Scripting done by Markus Klatt && Adrian Brehme © 2002 */

var IE  = (document.all)
var NS6 = (document.getElementById&&!document.all)
var NS  = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

function openFlashAnimation(sizeX,sizeY,flashlocation){
        var winl = (screen.width-sizeX)/2;
        var wint = (screen.height-sizeY)/2;

        var settings  ='height='+sizeY+',';
        settings     +='width='+sizeX+',';
        settings     +='top='+wint+',';
        settings     +='left='+winl+',';
        settings     +='scrollbars=no,';
        settings     +='dependent=yes,';
        settings     +='locationbar=no,';
        settings     +='toolbar=no,';
        settings     +='menubar=no,';
        settings     +='status=no,';
        settings     +='resizable=yes';

        flashanimation = window.open(flashlocation,"flashanimation",settings);

        var extraX;
        var extraY;

        if((NS))
        {
                extraX = sizeX;
                extraY = sizeY;

        }
        else if ((IE))
        {
                extraX = sizeX + 10;
                extraY = sizeY + 30;
        }
        else
        {
                extraX = sizeX + 6;
                extraY = sizeY + 27;
        }

        // Fenster muss noch resized werden, falls Fenster schon mit anderer Groesse geoeffnet war
        flashanimation.resizeTo(extraX,extraY);

        // Holt FlashFenster in den Vordergrund
        flashanimation.focus();

        return false;
}