//Cufon.replace(".hauptnav a", {hover: {color: '#a6cb11'}});

Cufon.replace(".leftcol h2");
Cufon.replace(".rightcol .box h2");
Cufon.replace(".maincontentbox h1");
Cufon.replace(".footercontent ol li");
Cufon.replace(".footercontent .text h1");
Cufon.replace(".hauptnav li");

$(document).ready(function(){
    $(".bigslideshowlink").click(function(event){
        event.preventDefault();
        $(".imgbox img").attr("src", $(this).attr("href"));
        var $thisParent = $(this).parent();
        $thisParent.siblings().attr("class", "inactive");
        $thisParent.attr("class", "active");
    });
    $("#bild1").attr("class", "active");
    
    var scrolldowninterval;
    var scrollupinterval;
    var ihelp;
    
    $('.box div.imgscrollbottom').bind('mouseenter', function(){
        scrolldowninterval = setInterval(function(){
            $('.box div.imgbox').scrollTop($('.box div.imgbox').scrollTop()+2);
        },0.0001);
    });
    
    $('.box div.imgscrollbottom').bind('mouseleave', function(){
        clearInterval(scrolldowninterval);    
    });
    
    $('.box div.imgscrolltop').bind('mouseenter', function(){
        scrollupinterval = setInterval(function(){
            $('.box div.imgbox').scrollTop($('.box div.imgbox').scrollTop()-2);
            console.log($('.box div.imgbox').scrollTop()); 
        },1);
    });
    
    $('.box div.imgscrolltop').bind('mouseleave', function(){
        clearInterval(scrollupinterval);    
    });    
   
    

    $('div.hinterlegt').corner("3px");
    $('div.hinterlegt2').corner("3px");
    $('div.footercontent').corner("3px");
    $('div.threecols div.box').corner("3px");
    $('ul.ziffern li').corner("3px");
});

//$(this).parent().get(0).tagName;



