/*        Checks which browser we are running under. Used by many of the utility
        script on this site.
*/
function Browser() {
        var b=navigator.appName;
        if (b=="Netscape") this.b="ns";
        else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
        else if (b=="Microsoft Internet Explorer") this.b="ie";
        if (!b) alert('Unidentified browser./nThis browser is not supported,');
        this.version=navigator.appVersion;
        this.v=parseInt(this.version);
        this.ns=(this.b=="ns" && this.v>=4);
        this.ns4=(this.b=="ns" && this.v==4);
        this.ns6=(this.b=="ns" && this.v==5);
        this.ie=(this.b=="ie" && this.v>=4);
        this.ie4=(this.version.indexOf('MSIE 4')>0);
        this.ie5=(this.version.indexOf('MSIE 5')>0);
        this.ie55=(this.version.indexOf('MSIE 5.5')>0);
        this.opera=(this.b=="opera");
        this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
        this.def=(this.ie||this.dom); // most used browsers, for faster if loops
        var ua=navigator.userAgent.toLowerCase();
        if (ua.indexOf("win")>-1) this.platform="win32";
        else if (ua.indexOf("mac")>-1) this.platform="mac";
        else this.platform="other";
}
is = new Browser();

/*        Open a new search panel window. This window is not named to guarantee that a new window opens on top.
        This has the unfortunate side effect that multiple search panels can be opened and clutter the user's
        screen, but we have to live with that, since otherwise the window may hide below other browser windows
        and confuse the user since he/she can't find it.
*/


/*        Open the Keyword Search window.
*/
function OpenEmailFormular(email)
{
        var varKeywordURL = "http://www.vocalszene.com/kontakt/kontakt.php?id="+email
        var varWindowFeatures = "dependent,width=400,height=350,menubar=0,scrollbars=1,status=0,titlebar=0,toolbar=0";

        window.open(varKeywordURL, "", varWindowFeatures);
}
function OpenOnlineAnmeldung(artikel)
{

        var varKeywordURL = "http://www.vocalszene.com/onlineanmeldung/index.php?artikel="+artikel
        var varWindowFeatures = "dependent,width=400,height=350,menubar=0,scrollbars=1,status=0,titlebar=0,toolbar=0";

        window.open(varKeywordURL, "", varWindowFeatures);
}