// JavaScript Document

// FAQ 'QUESTIONS AND ANSWERS' EXPAND COLLAPSE
jQuery(document).ready(function() {
	jQuery('div.answer').hide();
	
	jQuery('div.question').click(function() {
		// Get associated div
		var answerDiv = jQuery(this).next('div.answer');
		
		if(jQuery(answerDiv).is(':hidden')) {
			jQuery("div.answer:visible").slideUp({
				duration: 400,
				easing: 'easeInOutSine'});
			jQuery(answerDiv).slideDown({
				duration: 400,
				easing: 'easeInOutSine'});						
		}else{
			jQuery(answerDiv).slideUp({
			duration: 400, 
			easing: 'easeInOutSine'});
		}
	});
	
});

$(document).ready(function(){
	$('#clientList').cycle('fade');
	$('#samplesList').cycle('fade');
});

$(document).ready(function(){
	$('.step p').add('#newsletter').add('.answer').corner();
});

$(document).ready(function(){
	$('#samplesList a').lightBox();
});

$(document).ready(function(){
	var sidebarHeight = $('.contentMainDivision').height();
	$('#sidebar').height(sidebarHeight);
});

$(document).ready(function() {
	$("#signupForm").validationEngine({
		promptPosition: "topRight" // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft,  centerRight, bottomRight
	});
});

