Event.observe(window, 'load',initDSGA, false);


function initDSGA() {
    updateHeight();
    initThickbox();
}

function updateHeight(){

    if($('content')){
        $('wrapper').scrollTo();
        new Effect.ResizeTo('wrapper', ($('content').getHeight()+300), {duration:0.5});
    }
    }


function go_upload(theid){
        new Effect.Fade(theid.parentNode, {duration:0.5,afterFinish:function(){location.href='video_hochladen,5.html'}});
        return false;
    }

function update_orte(target, src){
        var url = 'inc/ajax_update_orte.php';
        var pars = 'land='+escape($F(src));
        var myAjax = new Ajax.Updater(target, url, {    method: 'get',    parameters: pars});
        new Effect.Opacity(target, {duration:0.5, from:0, to:1});
    }
    


var sek = false;
function count(anfang){
    if(sek == false){sek = anfang;}
    sek++;
    var mins = parseInt(sek/60);
    var rest = sek - mins*60;

    if (mins < 10) {mins = "0" + mins;}
    if (rest < 10) {rest = "0" + rest;}

    document.getElementById('counter').innerHTML = mins + ":" + rest + "MIN";
    window.setTimeout('count()',1000);
}


