eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('6 c(e,2){5 3=$("#0-1").4("7")-$("#0-1").8();$("#0-1").d({a:2.9*(3/b)},g)}6 f(e,2){5 3=$("#0-1").4("7")-$("#0-1").8();$("#0-1").4({a:2.9*(3/b)})}',17,17,'content|scroll|ui|maxScroll|attr|var|function|scrollWidth|width|value|scrollLeft|100|handleSliderChange|animate||handleSliderSlide|1000'.split('|'),0,{}))


$(document).ready(function () {
    $('#slider').nivoSlider({
        effect: 'boxRandom',
        slices: 15,
        animSpeed: 600,
        pauseTime: 5000,
        startSlide: 0,
        directionNav: true,
        directionNavHide: false,
        controlNav: true,
        directionNavHide: true,
        controlNavThumbs: false,
        controlNavThumbsFromRel: false,
        keyboardNav: true,
        pauseOnHover: true,
        manualAdvance: false
    });
    $('#sliderkompetenzen').nivoSlider({
        effect: 'fade',
        slices: 15,
        animSpeed: 700,
        pauseTime: 5000,
        startSlide: 0,
        directionNav: false,
        directionNavHide: false,
        controlNav: false,
        directionNavHide: true,
        controlNavThumbs: false,
        controlNavThumbsFromRel: false,
        keyboardNav: false,
        pauseOnHover: true,
        manualAdvance: false
    })
    $("#content-slider").slider({
        animate: true,
        value: 8,
        change: handleSliderChange,
        slide: handleSliderSlide
    });
	$('li.portfolio-item a').append(
		$('<div class="portfolio-hover"></div>').css({ opacity: 0, display: 'block' })
	).hover(function() {
		$(this).find('.portfolio-hover').stop().fadeTo(400, 0.6);
	}, function() {
		$(this).find('.portfolio-hover').stop().fadeTo(400, 0.0);
	});
    $('a.topOfPage').click(function(){
        $.scrollTo( 0, 1000);
        return false;
    });
    
});
