<!--


/* hide the guestbook form */

function init()
    {
        popup('audio.stream/audio.stream.php', '220', '600', 'heimatpfad', 0 );
    }


/* show the hidden field */

function up(objv,objb)
    {
        var sty = document.getElementById(objv).style;

        var this_height = sty.height == "1px" ? "140px" : "1px";
            sty.height = this_height;

        var this_vis = sty.display == "none" ? "block" : "none";
            sty.display = this_vis;


        var butt = document.images[objb];

        var img = new Image();
        img.src = sty.display == "none" ? "img/b__insert.gif" : "img/b__close.gif";
            butt.src = img.src;

        sty.overflow = sty.display == "none" ? "hidden" : "visible";

    }


/* switching images */

function switchimg(newIMG,imgID)
    {
        var img = new Image();
        img.src = newIMG;

        document.images[imgID].src = img.src;
    }



/* check avatar */

function getAvatar(newIMG,imgID,formID)
    {
        var img = new Image();
        img.src = newIMG;

        document.images[imgID].src = img.src;
        document.getElementById(formID).value = imgID;
    }




/* open pop up */

function popup(argUrl, argWidth, argHeight, argTitle, argScroll )
    {
        if(argScroll=="1" && !is.mac)
            {
                argWidth = parseInt(argWidth) + 26;
            }
        if(argScroll=="1" && is.mac)
            {
                argWidth = parseInt(argWidth) + 10;
            }

        var x = (screen.availWidth - argWidth ) / 2;
        var y = (screen.availHeight - argHeight ) / 2;

        var sFeatures = "width=" + argWidth + "," + "height=" + argHeight + "," + "toolbar=no," + "status=no," + "scrollbars=auto," + "resizable=yes," + "left=" + x + ", top="+ y;

        popWin = window.open(argUrl, argTitle, sFeatures, false);
        
        if (popWin.opener == null) popWin.opener = window;
        popWin.opener.name = "pornOpen";
    }


/* input field counter */

function inputCounter(input, maxlength, output)
    {
        var countValue;

        if (input == "" || input == "0") { countValue = maxlength; }
          else { countValue = maxlength - input.length; }

        document.getElementById(output).innerHTML = countValue;
    }





    /* - - - - - - - - - - - - - - - - */
    /* - no spam by DAKE - - - - - - - */
    /* - info: http://www.dake.dk/ - - */
    /* - v2.0 by D00B13  - - - - - - - */
    /* - - - - - - - - - - - - - - - - */

function NoSpam(NS_adress, NS_domain, NS_showLink, NS_showStatus, NS_cssLink, NS_subject)
    {
        var NS_mailAdress = NS_adress + "@" + NS_domain;
        var NS_showAdress = (!NS_showLink) ? NS_adress + "@" + NS_domain : NS_showLink;
        var NS_statusMess = (!NS_showStatus) ? "Mail" : NS_showStatus;
        var NS_mailClass = (!NS_cssLink) ? "" : "class=\"" + NS_cssLink + "\"";
        var NS_mailSubject = (!NS_subject) ? "" : "?subject=" + NS_subject;
        
        document.write('<a href="mailto:' + NS_mailAdress + NS_mailSubject + '" onMouseover="self.status=\' °° ' + NS_statusMess + ' °° \' ; return true" onMouseout="self.status=\'\' ; return true" ' + NS_mailClass + '>' + NS_showAdress + '</a>');
    }



-->
