function Browserweiche(elementName,elementClass) {
    browser = navigator.appName
    ver = navigator.appVersion
    version = ver
    //document.write(version);
    if (browser.indexOf("Explorer") != -1)
    {
        if (version.indexOf("IE8") != -1) {
            document.getElementById(elementName).className = elementClass;
        }else{
            document.getElementById(elementName).className = elementClass + "_ie"
        }
    }else{
        if (version.indexOf("Safari") != -1) {
            document.getElementById(elementName).className = elementClass + "_safari"
        }else {
            document.getElementById(elementName).className = elementClass;
        }
    }
}


function openPopup(strUrl, strName, intHeight, intWidth) {
     new_left = (screen.width-intWidth)/2;
     new_top  = (screen.height-intHeight)/2;

    var strOptions = "height=" + intHeight + ", width=" + intWidth + ", location=no, scrollbars=yes, menubar=no, resizable=yes, status=no, toolbar=no,top=" + new_top + ",left=" + new_left;

    var openpopup = window.open(strUrl, strName, strOptions);
    openpopup.focus();
}

var strActuallyDiv = 'no'

function showdiv(divname) {
    var x = document.getElementById('introduction');
    x.style.display = 'none';
    if (strActuallyDiv != 'no') {
        x = document.getElementById(strActuallyDiv);
        x.style.display = 'none';
    }
    x = document.getElementById(divname);
    x.style.display = 'inline';
    strActuallyDiv = divname;
};

function hidediv(divname) {
    var x = document.getElementById(divname);
    x.style.display = 'none';
};

function SWFDelegate(url,width,height,caption) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','evolution');
   objLink.setAttribute('title',caption);
   if(typeof width != 'undefined') {
      objLink.setAttribute('width',width);
   }
   if(typeof height != 'undefined') {
      objLink.setAttribute('height',height);
   }
   Lightbox.prototype.start(objLink);
}
