/*
$(document).ready(function () {
	$('.pictures a').lightBox();
});
*/

$(document).ready(function(){
	$("img.fade").hover(
		function() {
			$(this).stop().animate({"opacity": ".2"}, 300);
		},
		function() {
			$(this).stop().animate({"opacity": "1"}, 300);
	});
	$(".navfade").hover(
		function() {
			$(this).stop().animate({"opacity": "0"}, 200);
		},
		function() {
			$(this).stop().animate({"opacity": "1"}, 200);
	});
 });

function mycarousel_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

    jQuery('.jcarousel-scroll select').bind('change', function() {
        carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
        return false;
    });

    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#mycarousel").jcarousel({
    	wrap: 'circular',
		scroll: 1,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

$(function() {
    $('#footer_button').click(function () {
        $(this).toggleClass("active");
		$('#footer_close').slideToggle();
		$('#footer_content').slideToggle();
    });
	$('#footer_close').click(function () {
        $('#footer_button').removeClass("active");
		$('#footer_content').slideToggle();
		$(this).css("display","none");
    });
});

$(function(){
 	$(window).load(function(){
		$('#loader').hide();
		$('.three_quarters').fadeIn(600);
    });
});$(document).ready(function(){	$(".projects_list").hide(); 	$("a.trigger").click(function () {		$(".projects_list").slideToggle(300);	return false;	});});
