// JavaScript Document

function PageAnimation(){
    //$('#container').css({overflow: "hidden"});
    $("#branding").animate({top:"19px"}, 400);
    $(".erste").css({ opacity: 0.7 });
    $(".zweite").css({ opacity: 0.7 });
    $(".dritte").css({ opacity: 0.7 });
    $(".vierte").css({ opacity: 0.7 });
    $(".fuenfte").css({ opacity: 0.7 });
    $("#n_2_dbi").hide();
    $("#n_2_fp").hide();
    $("#n_2_4u").hide();
    
}

function EMO1(){ 
                               $(".erste").css({ opacity: 1 });
    }
function EMO2(){ 
                               $(".zweite").css({ opacity: 1 });
    }
function EMO3(){ 
                               $(".dritte").css({ opacity: 1 });
    }
function EMO4(){ 
                               $(".vierte").css({ opacity: 1 });
    }
function EMO5(){ 
                               $(".fuenfte").css({ opacity: 1 });
    }
function EMOut(){ 
                               $(".erste").css({ opacity: 0.7 });
                                $(".zweite").css({ opacity: 0.7 });
                                $(".dritte").css({ opacity: 0.7 });
                                $(".vierte").css({ opacity: 0.7 });
                                $(".fuenfte").css({ opacity: 0.7 });
    }
function show_sub1(){ 
                                $("#n_2_dbi").stop().fadeIn();
                                $("#n_2_fp").stop().fadeOut();
                                $("#n_2_4u").stop().fadeOut();
                                setTimeout("hide_sub()",5500);
    }

function show_sub2(){ 
                                $("#n_2_dbi").stop().fadeOut();
                                $("#n_2_fp").stop().fadeIn();
                                $("#n_2_4u").stop().fadeOut();
                                setTimeout("hide_sub()",5500);
    }
function show_sub3(){ 
                                $("#n_2_dbi").stop().fadeOut();
                                $("#n_2_fp").stop().fadeOut();
                                $("#n_2_4u").stop().fadeIn();
                                setTimeout("hide_sub()",5500);
    }
function hide_sub(){ 
                                $("#n_2_dbi").stop().fadeOut();
                                $("#n_2_fp").stop().fadeOut();
                                $("#n_2_4u").stop().fadeOut();
                            
    }   
    
function show_news(){
                                $("#newsbit").animate({top:"-80px"}, 200);
                                $("#news").animate({top:"0"}, 400);
}
function hide_news(){
                                $("#newsbit").animate({top:"0"}, 400);
                                $("#news").animate({top:"-500px"}, 300);
}
