$(document).ready(function(){
						   
if($('#homeimg').length > 0) {
	$('#homeimg').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 5000
		});
}
if($('#slideshow').length > 0) {
	$('#slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 10000
	});
}

/*
$("#l1sub").show();
$("#l2sub").show();
$("#l3sub").show();
$("#l4sub").show();
$("#l5sub").show();
$("#l6sub").show();
$("#l7sub").show();
$("#l8sub").show();
*/
/*
$("#l1").click(function () {
$('#l1sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l2").click(function () {
$('#l2sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l3").click(function () {
$('#l3sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l4").click(function () {
$('#l4sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l5").click(function () {
$('#l5sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l6").click(function () {
$('#l6sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l7").click(function () {
$('#l7sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
$("#l8").click(function () {
$('#l8sub').animate({
    height: 'toggle'
  }, 500, function() {
    // Animation complete.
  });});
*/

if($("[id^='slideHead']").length > 0) {
	$("[id^='slideHead']").click(function () {
		$("#" + this.id + "Sub").animate({
			height: 'toggle'
		}, 500, function() {
			// Animation complete.
		});
	});
}

});


