$(document).ready(function() {   
  
    //get all link with class panel   
    $('a.panel').click(function () {   
  
                //reset and highlight the clicked link   
        $('a.panel').removeClass('selected');   
        $(this).addClass('selected');   
           
        //grab the current item, to be used in resize function   
        current = $(this);   
           
                //scroll it to the destination   
        $('#wrapper').scrollTo($(this).attr('href'), 500);         
           
                //cancel the link default behavior   
        return false;   
    });   
  
  
    //resize all the items according to the new browser size   
    $(window).resize(function () {   
           
        //call the resizePanel function   
        resizePanel();   
    });   
       
});  

function resizePanel() {   
  
    //get the browser width and height   
    width = $(window).width();   
    height = $(window).height();   
  
    //get the mask height: height * total of items   
    mask_height = height * $('.item').length;   
           
    //set the dimension        
    $('#wrapper, .item').css({width: width, height: height});   
    $('#mask').css({width: width, height: mask_height});   
  
    //if the item is displayed incorrectly, set it to the corrent pos   
    $('#wrapper').scrollTo($('a.selected').attr('href'), 0);   
           
}  



    //DOCK

$(document).ready(function() {

	var top = '-' + $('#slidedown_content .content_slide').css('height');
	var easing = 'easeOutBounce';
	
	$('#slidedown_top').mouseover(function() {
		$('#slidedown_content').animate({'top' : 0}, {queue:false, duration:1000, easing: easing});
	});
	
	$('#slidedown_bottom').mouseover(function() {
		$('#slidedown_content').animate({'top' : top}, {queue:false, duration:500, easing: easing});
	});

});



    //Fenster nach ZEit einblenden
function timedDiv()
{
var t=setTimeout("showDiv()",600);
}


function showDiv()
{
      document.getElementById("eins").style.visibility = 'visible';
}



onerror = stopError;
 function stopError()

{
 return true;
 }




