/* markblasius.com global.js */

$(document).ready(function(){ 
	
	$("#frontnav li a").hover(function() {
    	$(this).animate({ color: '#a58930' }, 800);
    },
    function() {
    	$(this).animate({ color: '#282828' }, 600);
	});	
	
	// arbeitsproben	
	$(".portfoliolisting").hover(function() {
    	$(this).find('p').animate({ color:'#282828' }, 600);    
    },    	
    function() {
    	$(this).find('p').animate({ color:'#999999' }, 400);    
	});
	
	$(".portfoliolisting h3 a").hover(function() {    
   		$(this).animate({ color:'#a58930' }, 800);
    },    	
    function() {   	
    	$(this).animate({ color:'#282828' }, 600);
	});   
		
		
	$("#recentleft span:last-child").css({display:"none" });	

	//slider
	$.fn.cycle.defaults.speed   = 900;
			$.fn.cycle.defaults.timeout = 6000;

			$(function() {
			// run the code in the markup!
			$('#recentslides pre code').each(function() {
			eval($(this).text());
			});
		});
	$('#slide').cycle({ fx: 'fade', delay: -8000, next: '#next', prev: '#previous', pause: 1 });	
	
	// footer essentials
	$("#btn_essentials").click(function(){
	$("#footer p").slideToggle("slow");
	$(this).toggleClass("active"); return false;
	});        
        
});