//NivoSlider

$(window).load(function() {
    $('#slider').nivoSlider({
	effect:'boxRainGrow',
	controlNav:false,
	animSpeed:800,
	pauseTime:5000
    });
});



function menu_mouseover(id){
    $('#'+id).animate({
	bottom:'-130px'
    },1000);
    $('#'+id).clearQueue();
}

function menu_mouseout(id){
    $('#'+id).animate({
	bottom:'0px'
    },1000);
    $('#'+id).clearQueue();
    
}

function cla_mouseover(id){
    $('#'+id).animate({
	backgroundColor:'rgb(130,0,130)'
    },600);
    $('#'+id).clearQueue();
    
}

function cla_mouseout(id){
    $('#'+id).animate({
	backgroundColor:'rgb(85,0,85)'
    },600);
    $('#'+id).clearQueue();
}

function links_click(){
    if($('#linkContent').css("display")=="none"){
	$('#linkContent').show();
	$('#slider').fadeOut(600);
	$('#linkContent').animate({
	    height:'210px'
	},600,function(){
	    $('#arrow_links').css('background-position', 'bottom');
	});
    }else{
	$('#linkContent').animate({
	    height:'0px'
	},600, function(){
	    $('#arrow_links').css('background-position', 'top');
	    $('#linkContent').hide();
	});
	$('#slider').fadeIn(600);
	

    }
   
}

function res_click(){
    if($('#resContent').css("display")=="none"){
	$('#img_line').animate({
	    height:'460px'
	},600);
	$('#resContent').animate({
	    height:'210px'
	},600,function(){
	    $('#arrow_res').css('background-position', 'bottom');
	});
	$('#resContent').show();
    }else{
	$('#img_line').animate({
	    height:'0px'
	},600);
	$('#resContent').animate({
	    height:'0px'
	},600, function(){
	    $('#arrow_res').css('background-position', 'top');
	    $('#resContent').hide();
	});
	

    }
   
}

function catamouseover(){
    $('#catalogue_overlay').animate({
	left:'420px'
    },1000);
    $('#catalogue_overlay').clearQueue();
    $('#catalogue_text').animate({
	color:'white'
    },1000)
    $('#catalogue_text').clearQueue();
        $('#catalogue_text a').animate({
	color:'white'
    },1000)
    $('#catalogue_text a').clearQueue();
}

function catamouseout(){
    $('#catalogue_overlay').animate({
	left:'0px'
    },1000);
    $('#catalogue_overlay').clearQueue();
    $('#catalogue_text').animate({
	color:'rgb(109,97,94)'
    },1000)
    $('#catalogue_text').clearQueue();
        $('#catalogue_text a').animate({
	color:'rgb(109,97,94)'
    },1000)
    $('#catalogue_text a').clearQueue();

    
}
