$(document).ready(function () {
	
<!-- image cycle -->
$('#image-slide').cycle({
    fx:     'scrollLeft', 
    speed: 800,
	timeout: 7000,
	random: 1
});
<!-- end -->
	


<!-- contact -->

$("#contactform").submit(function(){

var str = $(this).serialize();
   $.ajax({
   type: "POST",
   url: "http://www.chardonabbott.com.au/php/contactForm.php",
   data: str,
   success: function(msg){
$("#note").ajaxComplete(function(event, request, settings){
if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
$("#contactform").hide();
$("#thanks").show();
$("#note").hide();
}
else
{
$('#note').show();
result = msg;
}
$(this).html(result);
});
}
});
return false;
});

<!-- end contact -->

<!-- css3 fixes -->
$("#left-col li:nth-child(1)").css('border-top','0');
$("#right-col-serv div:nth-child(1)").css('border-top','0');
<!-- end css3 fixes -->

$.easing.custom = function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},


<!-- scrollable -->
$("#browsable").scrollable({easing: 'custom', speed: 700}).navigator({

		// select #flowtabs to be used as navigator
		navi: "#flowtabs",

		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',

		// assign "current" class name for the active A tag inside navigator
		activeClass: 'current',

		// make browser's back button work
		history: true
		
		

	});
<!-- end scrollable -->

<!-- hide loan calc forms -->
$('.layerbg').hide();
$('#LayerQ1').show();
<!-- end hide loan calc forms -->
$('#flowtabs li a').click( function(){
	$('#flowtabs li a').removeClass('activeState');
	$(this).addClass('activeState');
	clearAll(document.mainform);

});
});
