$(document).ready(function(){
	// for css
	$("#spotlight .spot:last").addClass('last');

	// menu
	$("#menu").lavaLamp();


  	// spotlight
  	$("#spotlight .spot").hover(
	function () {
		$(this).find(".greentrans").stop().animate( { backgroundColor:"#aa707e", color: "#fff"}, 300 );
	},
	function () {
		$(this).find(".greentrans").stop().animate( { backgroundColor:"#462435", color: "#bbb"}, 300 );
	});


  	$("#side-col a.button, h2 a, #navigation a, #main-col ul#testimonials-nav a").hover(
	function () {
		$(this).stop().animate( { color: "#333"}, 300 );
	},
	function () {
		$(this).stop().animate( { color: "#b67"}, 300 );
	});
		
	// masonry
	$("#default #main-col ul").masonry();
	
	// faq
	$("#faq-nav a").click(function(){
		var toLoad = $(this).attr("href");
		$("#faq-nav li").attr('class','');
		$(this).parent().attr('class','current');
		$("#answer").fadeTo(300,0, function(){
			$(this).html($(toLoad).clone());
		}).fadeTo(300, 0).fadeTo(300, 1);
		return false;
	});
	$("#faq-nav a:first").each(function(){
		var toLoad = $(this).attr("href");
		$("#faq-nav li").attr('class','');
		$(this).parent().attr('class','current');
		$("#answer").fadeTo(300,0, function(){
			$(this).html($(toLoad).clone());
		}).fadeTo(300, 0).fadeTo(300, 1);
		return false;
	});

	// testimonials
	$("#the-testimonials").cycle({
		timeout: 0,
		prev: "#prev",
		cleartype: $.support.opacity,
		next: "#next"
	});
  		
});