	$(document).ready(function() {
//content
	    $('#content').cycle({
	        fx:   'fade',
	        speed:  1000,
	        timeout: 0,
	        pager:  '#navigation',
	        pagerAnchorBuilder: function(idx, slide) {
	            return '#navigation li:eq(' + (idx) + ') a';
	        }
	    });

//main navigation
	    $('#main').hover(function(){  
            $("#navigation", this).stop().animate({top:'285px'},{queue:false,duration:200});  
	    }, function() {  
        	$("#navigation", this).stop().animate({top:'155px'},{queue:false,duration:200});  
	    }); 

//main-container social
	    $('#main').hover(function(){  
            $("#social", this).stop().animate({top:'506px'},{queue:false,duration:200});  
	    }, function() {  
        	$("#social", this).stop().animate({top:'560px'},{queue:false,duration:200});  
	    }); 

//web-services
	    $('div#web-services> div').hide();  
	    $('div#web-services> h3').click(function() {
	      var $nextDiv = $(this).next();
	      var $visibleSiblings = $nextDiv.siblings('div:visible');

		$(this).toggleClass('dropped');
		$(this).siblings('h3').removeClass('dropped');

		$(this).toggleClass('minimized');
		$(this).siblings('h3').removeClass('minimized');
 
	      if ($visibleSiblings.length ) {
	        $visibleSiblings.slideUp('fast', function() {
	          $nextDiv.slideToggle('fast');
	        });
	      } else {
	         $nextDiv.slideToggle('fast');
	      }
	    });

//samples
	    $('#samples').cycle({
		fx: 'scrollRight',
		speed:    500,
		timeout:  5000, 
		pause:   1,
		easing: 'easeInBack',	
	        pager:  '#portfolio-sample-button-box',
	        pagerAnchorBuilder: function(idx, slide) {
	            // return sel string for existing anchor
	            return '#portfolio-sample-button-box li:eq(' + (idx) + ') a';
	        }
	    });


//portfolio-sample-slide
	    $('#portfolio-sample-1').cycle({ 
		fx:     'fade', 
		speed:   800, 
		timeout: 5000, 
		next:   '#portfolio-sample-1', 
		pause:   0 
	    });

	    $('#portfolio-sample-2').cycle({ 
		fx:     'fade', 
		speed:   800, 
		timeout: 5000, 
		next:   '#portfolio-sample-2', 
		pause:   0 
	    });

	    $('#portfolio-sample-3').cycle({ 
		fx:     'fade', 
		speed:   800, 
		timeout: 3000, 
		next:   '#portfolio-sample-3', 
		pause:   0 
	    });

	    $('#portfolio-sample-4').cycle({ 
		fx:     'fade', 
		speed:   800, 
		timeout: 5000, 
		next:   '#portfolio-sample-4', 
		pause:   0 
	    });

	    $('#portfolio-sample-5').cycle({ 
		fx:     'fade', 
		speed:   800, 
		timeout: 5000, 
		next:   '#portfolio-sample-5', 
		pause:   0 
	    });


//portfolio-sample-caption
	    $('.portfolio-sample').hover(function(){  
            $(".portfolio-sample-caption", this).stop().animate({top:'150px'},{queue:false,duration:160});  
	    }, function() {  
        	$(".portfolio-sample-caption", this).stop().animate({top:'209px'},{queue:false,duration:160});  
	    }); 

//links
	    $('.michael-tumlad').click(function() { 
		$('#navigation li:eq(0) a').trigger('click'); 
		return false; 
	    }); 

	    $('.contact-michael-tumlad').click(function() { 
		$('#navigation li:eq(4) a').trigger('click'); 
		return false; 
	    }); 

	    $('#read-privacy').click(function() { 
		$('#navigation li:eq(5) a').trigger('click'); 
		return false; 
	    }); 

	    $('#read-copyright').click(function() { 
		$('#navigation li:eq(6) a').trigger('click'); 
		return false; 
	    }); 

	});











