stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'content-box', //class of panel DIVs each holding content
autostep: {enable:false, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, persist:false},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
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() {
	$('a#email-us').fancybox({
		'frameHeight': 518,
		'frameWidth': 593,
		'hideOnContentClick': false
	});

	$('a#awards, a#showreel, a#awards2, a#showreel2, a#awards3, a#showreel3, a#awards4, a#showreel4, a#awards5, a#showreel5, a#awards6, a#showreel6, a#awards7, a#showreel7, a#marshalls, a#senate, a#diageo1, a#diageo2, a#diageo3, a#wf, a#bosch, a#legrand, a#mk1, a#mk2, a#dulux1, a#dulux2, a#dulux3, a#adobe1, a#adobe2, a#pathclear, a#roundup1, a#roundup2, a#monsanto, a#britax, a#homedics, a#akzo1, a#akzo2, a#cisco1, a#cisco2, a#gilbeys, a#robinsons, a#honda,').fancybox({
		'frameHeight': 500,
		'frameWidth': 950,
		'hideOnContentClick': false
	});
	
	$('div.scrollable').scrollable({size: 1, vertical: true}).circular().autoscroll({interval: 7000, autoplay: true});
	$('div.scrollable2').scrollable({size: 1, vertical: true}).circular().autoscroll({interval: 2000, autoplay: true});
	$('a#testimonials1,a#testimonials2,a#testimonials3,a#testimonials4,a#testimonials5,a#testimonials6,a#testimonials7').tooltip({ effect: 'slide', tip: '.tooltip'});
});

function checkpostcode() {
	if (document.searchform.saddr.value == '') {
		document.searchform.saddr.value = 'Enter your postcode to get your shortest route to Platform HQ';
	}
}
