jQuery(document).ready(function($) {
    
    $(window).load(function () {
    $('#arrows .left').addClass('hidden');
    $('#arrows .left').addClass('hidden');
    
    $("#arrows .right").fadeOut(2000, function () {
        $("#arrows .right").fadeIn(2000);
      }); 
	});
    
    $(".question a").hover(function() {
	$(this).next("p").animate({opacity: "show", top: "60"}, "slow");
	}, function() {
	$(this).next("p").animate({opacity: "hide", top: "70"}, "fast");
	});
	
	$('div.project_menu a.button').mouseover(function(){
	$('.project_menu div').show();
	}).mouseout(function(){
    $('.project_menu div').hide();
    });
    
    $('div.project_menu').mouseover(function(){
	$('.project_menu div').show();
	}).mouseout(function(){
    $('.project_menu div').hide();
    });
      
	$('#menu a.highlight').click(function(){
	$('#menu a.highlight').removeClass('active');
	$('.project_menu a').next("div").animate({opacity: "hide", top: "-130"}, "fast");
	$(this).toggleClass('active');
	$('#arrows .left').removeClass('hidden');
	});
	
	$('#logo a').click(function(){
	$('#arrows .left').addClass('hidden');
	$('.project_menu a').next("div").animate({opacity: "hide", top: "-130"}, "fast");
	});
	
	$('.left').click(function(){
	$('a.highlight').removeClass('active');
	$('.project_menu a').next("div").animate({opacity: "hide", top: "-130"}, "fast");
	});
	
	$('.right').click(function(){
	$('a.highlight').removeClass('active');
	$('#arrows .left').removeClass('hidden');
	$('.project_menu a').next("div").animate({opacity: "hide", top: "-130"}, "fast");
	});
	
	$('#logo a').click(function(){
	$('a.highlight').removeClass('active');
	$('.project_menu a').next("div").animate({opacity: "hide", top: "-130"}, "fast");
	});
	
	$('.project_menu a').click(function(){
	$('a.highlight').removeClass('active');
	});
	
	$('.project_menu div a').click(function(){
	$('.project_menu div').animate({opacity: "hide", top: "-130"}, "fast");
	});

	$("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    
    $("a#Marianne_Bailey").mouseover(function() {
    	$("div#display_contact").hide();
		$("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
	});
	
/*
	$("a#Manabu_Kawada").mouseover(function() {
		$("a#Manabu_Kawada").addClass('border');
		$("div#display_contact").show().addClass("border").html("<h2>Manabu Kawada</h2><br/><p>General Manager<br/>Yamaha Product Design Laboratory<br/><a href=\"http://www.global.yamaha.com/design\" target=\"_blank\">http://www.global.yamaha.com/design</a></p>");
	});
*/

	
    $("a#Manabu_Kawada").mouseover(function(){
      $("a#Manabu_Kawada").addClass('border');
		$("div#display_contact").show().html("<h2>Manabu Kawada</h2><br/><p>General Manager<br/>Yamaha Product Design Laboratory<br/><a href=\"http://www.global.yamaha.com/design\" target=\"_blank\">http://www.global.yamaha.com/design</a></p>");
    }).mouseout(function(){
      $("a#Manabu_Kawada").removeClass('border');
      $("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    });

	
/*
	$("a#Adrian_Berry").mouseover(function() {
		$("div#display_contact").hide();
		$("div#display_contact").show().html("<h2>Adrian Berry</h2><br/><p>Creative Director<br/><a href=\"http://www.factorydesign.co.uk\" target=\"_blank\">www.factorydesign.co.uk</a></p>");
	});
*/
	
    $("a#Adrian_Berry").mouseover(function(){
      $("a#Adrian_Berry").addClass('border');
		$("div#display_contact").show().html("<h2>Adrian Berry</h2><br/><p>Creative Director<br/><a href=\"http://www.factorydesign.co.uk\" target=\"_blank\">www.factorydesign.co.uk</a></p>");
    }).mouseout(function(){
      $("a#Adrian_Berry").removeClass('border');
      $("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    });	
	
	
/*
	$("a#Lee_Bazalgette").mouseover(function() {
		$("div#display_contact").hide();
		$("div#display_contact").show().html("<h2>Lee Bazalgette</h2><br/><p>Green Champion Engineer<br/><a href=\"http://www.leebaz.blogspot.com\" target=\"_blank\">www.leebaz.blogspot.com</a></p>");
	});
*/

    $("a#Lee_Bazalgette").mouseover(function(){
      $("a#Lee_Bazalgette").addClass('border');
		$("div#display_contact").show().html("<h2>Lee Bazalgette</h2><br/><p>Green Champion Engineer<br/><a href=\"http://www.leebaz.blogspot.com\" target=\"_blank\">www.leebaz.blogspot.com</a></p>");
    }).mouseout(function(){
      $("a#Lee_Bazalgette").removeClass('border');
      $("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    });	
	
/*
	$("a#Atsushi_Imai").mouseover(function() {
		$("div#display_contact").hide();
		$("div#display_contact").show().html("<h2>Atsushi Imai</h2><br/><p>Artist<br/><a href=\"http://www.aisbrain.blogspot.com\" target=\"_blank\">www.aisbrain.blogspot.com</a></p>");
	});
*/

    $("a#Atsushi_Imai").mouseover(function(){
      $("a#Atsushi_Imai").addClass('border');
		$("div#display_contact").show().html("<h2>Atsushi Imai</h2><br/><p>Artist<br/><a href=\"http://www.aisbrain.blogspot.com\" target=\"_blank\">www.aisbrain.blogspot.com</a></p>");
    }).mouseout(function(){
      $("a#Atsushi_Imai").removeClass('border');
      $("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    });	
	
/*
	$("a#Benjamin_Thomas").mouseover(function() {
		$(this).addClass("border");
		$("div#display_contact").show().html("<h2>Benjamin Thomas</h2><br/><p>Art Direction / Web / Graphics<br/><a href=\"http://www.bentographics.com\" target=\"_blank\">www.BentoGraphics.com</a></p>");
	});
*/

    $("a#Benjamin_Thomas").mouseover(function(){
      $("a#Benjamin_Thomas").addClass('border');
		$("div#display_contact").show().html("<h2>Benjamin Thomas</h2><br/><p>Art Direction / Web / Graphics<br/><a href=\"http://www.bentographics.com\" target=\"_blank\">www.BentoGraphics.com</a></p>");
    }).mouseout(function(){
      $("a#Benjamin_Thomas").removeClass('border');
      $("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    });	
	
/*
	$("a#Verena_Dauerer").mouseover(function() {
		$("div#display_contact").hide();
		$("div#display_contact").show().html("<h2>Verena Dauerer</h2><br/><p>Editor<br/><a href=\"http://www.pingmag.jp\" target=\"_blank\">www.pingmag.jp</a></p>");
	});
*/

    $("a#Verena_Dauerer").mouseover(function(){
      $("a#Verena_Dauerer").addClass('border');
		$("div#display_contact").show().html("<h2>Verena Dauerer</h2><br/><p>Editor<br/><a href=\"http://www.pingmag.jp\" target=\"_blank\">www.pingmag.jp</a></p>");
    }).mouseout(function(){
      $("a#Verena_Dauerer").removeClass('border');
      $("div#display_contact").show().html("<h2>Marianne Bailey</h2><br/><p>Senior Designer<br/><a href=\"mailto:marianne@mariannebailey.com\">marianne@mariannebailey.com</a></p>");
    });	

		
})
	
	stepcarousel.setup({
	galleryid: 'mygallery', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
	})