// Footer Slider

jQuery(function($) {
		var slide = false;
		var height = $('#footer_content').height();
		$('#footer_button').click(function() {
			var docHeight = $(document).height();
			var windowHeight = $(window).height();
			var scrollPos = docHeight - windowHeight + height;
			$('#footer_content').animate({ height: "toggle"}, 1000);
			if(slide == false) {
				if($.browser.opera) {
					$('html').animate({scrollTop: scrollPos+'px'}, 1000);
				} else {
					$('html, body').animate({scrollTop: scrollPos+'px'}, 1000);
				}
				slide = true;
			} else {
				slide = false;
			}
		});
	});


//FancyBox


		$(document).ready(function() {
	
			$("#various1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});	

	
		});

//Easy Slider Carousel

	
		$(document).ready(function(){
			$(".project-carousel").easySlider({activatesIFR: false, scrollDown: false});
		});
	

//FAQs

		/* accessible */
		$(document).ready(function() {
			$('#faqs h3').each(function() {
				var tis = $(this), state = false, answer = tis.next('div').hide().css('height','auto').slideUp();
				tis.click(function() {
					state = !state;
					answer.slideToggle(state);
					tis.toggleClass('active',state);
				});
			});
		});