stepcarousel.setup({
	galleryid: 'portfolio-cycle',  //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
	autostep: {enable:true,  moveby:1,  pause:3000}, 
	panelbehavior: {speed:500,  wraparound:false,  persist:true}, 
	defaultbuttons: {enable: true,  moveby: 1,  leftnav: ['images/arrow-left.gif',  -10,  55],  rightnav: ['images/arrow-right.gif',  0,  55]}, 
	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']
})
//}

$(document).ready(function(){
	if(document.getElementById("myForm") != null ) {
			$('#myForm').ajaxForm(function(data) {
				if (data==1){
					$('#success').fadeIn("slow");
					$('#myForm').resetForm();
				}
				else if (data==2){
					$('#badserver').fadeIn("slow");
				}
				else if (data==3)
				{
					$('#bademail').fadeIn("slow");
				}
			});
	}
});

jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
})
