

$(document).ready(function(){$(".toggle").css("display","block");});
$(document).ready(function(){$("#my-carousel-1").css("display","block");});




$(document).ready(function() {
	$('body').removeClass('no-js');
	$('#my-carousel-1').carousel({
		itemsPerPage: 4,
		itemsPerTransition: 4,
		speed: 500,
		pagination: false
	});
	$('#my-carousel-2').carousel({
		itemsPerPage: 2,
		itemsPerTransition: 2,
		speed: 500,
		pagination: false
	});
	$('#my-carousel-3').carousel({
		itemsPerPage: 3,
		itemsPerTransition: 3,
		easing: 'linear',
		noOfRows: 2,
		pagination: false
	});
	$('#my-carousel-4').carousel({
		itemsPerPage: 2,
		itemsPerTransition: 2,
		easing: 'linear',
		noOfRows: 2,
		pagination: false
	});
	$('#my-carousel-5').carousel({
		itemsPerPage: 4,
		itemsPerTransition: 3,
		easing: 'linear',
		pagination: false
	});
	$('#my-carousel-6').carousel({
		itemsPerPage: 1,
		itemsPerTransition: 1,
		easing: 'linear',
		pagination: false
	});
});




// this tells jquery to run the function below once the DOM is read
$(document).ready(function() {

// choose text for the show/hide link
var showText="<p class='show'>Show</p>";
var hideText="<p class='hide'>Hide</p>";

// append show/hide links to the element directly preceding the element with a class of "toggle"
$(".toggle").prev().append('<a href="#lsb" class="toggleLink"><div class="OpenClose"><img src="/images/ico-p.gif" ></div></a>');


// hide all of the elements with a class of 'toggle'
$('.toggle').hide();

// capture clicks on the toggle links
$('a.toggleLink').click(function() {

// change the link depending on whether the element is shown or hidden
if ($(this).html()==hideText) {
$(this).html(showText);
}
else {
$(this).html(hideText);
}

// toggle the display
$(this).parent().next('.toggle').toggle('fast');

// return false so any link destination is not followed
return false;

});
});
