/* author: PIXEL TRADER LTD. */
/* Creation date: 27.07.2008 */
<!--
function newImage(arg) {
        if (document.images) {
                rslt = new Image();
                rslt.src = arg;
                return rslt;
        }
}

function changeImages() {
        if (document.images && (preloadFlag == true)) {
                for (var i=0; i<changeImages.arguments.length; i+=2) {
                        document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
                }
        }
}

var preloadFlag = false;
function preloadImages() {
        if (document.images) {
                index_03_over = newImage("http://www.bloggerei.de/Bilder/index_03-over.gif");
                index_04_over = newImage("http://www.bloggerei.de/Bilder/index_04-over.gif");
                index_05_over = newImage("http://www.bloggerei.de/Bilder/index_05-over.gif");
                index_06_over = newImage("http://www.bloggerei.de/Bilder/index_06-over.gif");
                index_07_over = newImage("http://www.bloggerei.de/Bilder/index_07-over.gif");
                index_08_over = newImage("http://www.bloggerei.de/Bilder/index_08-over.gif");
                preloadFlag = true;
        }
}


function updateServerTime(){
    var hours, minutes, seconds;
    var intHours, intMinutes, intSeconds;
    var dayofweek, day, month, year;
    var intDayOfWeek, intDay, intMonth, intYear;
    var today;
    today = new Date();
    intDayOfWeek = today.getDay();

    intDay = today.getDate();
    intMonth = today.getMonth();
    intYear = today.getYear()+1900;
    if( intYear>3000 ) intYear-=1900;

    intHours = today.getHours();
    intMinutes = today.getMinutes();
    intSeconds = today.getSeconds();
    if (intDayOfWeek == 0) dayofweek = "Sonntag";
    if (intDayOfWeek == 1) dayofweek = "Montag";
    if (intDayOfWeek == 2) dayofweek = "Dienstag";
    if (intDayOfWeek == 3) dayofweek = "Mittwoch";
    if (intDayOfWeek == 4) dayofweek = "Donnerstag";
    if (intDayOfWeek == 5) dayofweek = "Freitag";
    if (intDayOfWeek == 6) dayofweek = "Samstag";
    day = intDay+".";
    if (intMonth == 0) month = "Januar";
    if (intMonth == 1) month = "Februar";
    if (intMonth == 2) month = "Maerz";
    if (intMonth == 3) month = "April";
    if (intMonth == 4) month = "Mai";
    if (intMonth == 5) month = "Juni";
    if (intMonth == 6) month = "Juli";
    if (intMonth == 7) month = "August";
    if (intMonth == 8) month = "September";
    if (intMonth == 9) month = "Oktober";
    if (intMonth == 10) month = "November";
    if (intMonth == 11) month = "Dezember";
    dateString = dayofweek+", "+day+" "+month+" "+intYear;

    if( intHours < 10 ) {
        hours =  "0"+intHours+":";
    } else {
        hours =  intHours+":";
    }
    if (intMinutes < 10) {
        minutes = "0"+intMinutes+" ";
    } else {
        minutes = intMinutes+" ";
    }
    if (intSeconds < 10) {
        seconds = "0"+intSeconds+" ";
    } else {
        seconds = intSeconds+" ";
    }

    timeString = hours+minutes+"Uhr";
    document.getElementById('servertime').firstChild.nodeValue=dateString+" "+timeString;

    //window.setTimeout("updateServerTime();", 1000);
}


function checkVis(){
    req = new iqRequest();
    req.add('action','php');
        document.getElementById('anzvis').innerHTML = unescape(req.execute('http://www.bloggerei.de/nbconnectes.php','GET'));

    //req2 = new iqRequest();
        //document.getElementById('anzwait').innerHTML = unescape(req2.execute('anzwait.php','GET'));

        window.setTimeout("checkVis();", 60000);
}
window.setTimeout("checkVis();", 60000);

        function showLoad(t){
                document.getElementById('loading').style.display='block';
        window.setTimeout("hideLoad()",t);
    }
    function hideLoad(){
                document.getElementById('loading').style.display='none';
    }

        function showMember(t){
                document.getElementById('nomember').style.display='block';
        window.setTimeout("hideMember()",t);
    }
    function hideMember(){
                document.getElementById('nomember').style.display='none';
    }

        var aktOpen;

        function toggle(obj,lid){
            contObj=document.getElementById(obj);
        if( contObj.style.height=='auto' ){
                contObj.style.height='18px';
            contObj.style.backgroundImage='url(http://www.bloggerei.de/images/p.gif)';

            aktOpen='';

        } else {
                        contObj.style.height='auto';
            contObj.style.backgroundImage='url(http://www.bloggerei.de/images/postback.jpg)'
            if( aktOpen ){
                    aktOpen.style.height='18px';
                    aktOpen.style.backgroundImage='url(http://www.bloggerei.de/images/p.gif)';
            }
            aktOpen = contObj;
            window.setTimeout("countPreview('"+lid+"');",50);
        }
    }

    function countPreview(lid) {
                req = new iqRequest();
        req.add("lid",lid);
        dummy = req.execute('http://www.bloggerei.de/tprv.php','GET');
    }

    function r_showall(){
            for( i=1; i<11; i++ ) {
                    if( eGet('bloginfos'+i.toString())) eGet('bloginfos'+i.toString()).style.display='block';
                    if( eGet('blogposts'+i.toString())) eGet('blogposts'+i.toString()).style.display='block';
        }
    }

    function r_showblogs(){
            for( i=1; i<11; i++ ) {
                    if( eGet('bloginfos'+i.toString())) eGet('bloginfos'+i.toString()).style.display='block';
                    if( eGet('blogposts'+i.toString())) eGet('blogposts'+i.toString()).style.display='none';
        }
    }
-->