stepcarousel.setup({
	galleryid: 'clients', //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
	panelbehavior: {speed:300, wraparound:false, persist:true},
	defaultbuttons: {enable: true, moveby: 1, leftnav: ['/i/tv_left_arrow.gif', -30, 50], rightnav: ['/i/tv_right_arrow.gif', 0, 50]},
	onslide:function(){
		$("#clients div.belt .panel").each(
			function (i) {
				if (parseInt($("#clients div.belt").css("left")) == parseInt('-'+$(this).css("left"))) {
					$(this).find("img").attr("src",$(this).children("input[name='normal']").attr("value"));
				} else {
					$(this).find("img").attr("src",$(this).children("input[name='grey']").attr("value"));
				}
			}
		);
	},
	contenttype: ['inline'] // content type
})

$(document).ready(	
	function() {
		
		$("#tv div.play").click(
			function() {
				$("#tv div.image").show();
				$("#tv .trigger").show();
				
				$('#tv_box').cycle({
					fx: 'slideY',
					timeout: 4000,
					next: "#tv_next",
				    prev: "#tv_prev",
					height: "128px"
				});
			}
		)
		
		$("#clients div.belt img").hover(
			function() {
				$(this).attr("src",$(this).parent().siblings("input[name='normal']").attr("value"));
			},
			function() {
				$(this).attr("src",$(this).parent().siblings("input[name='grey']").attr("value"));
			}
		);
		
	}
);

$(document).ready(	
	function() {
		$("#block_services .content").hover(
			function() { $(this).find("span.hidden").fadeIn(); $(this).find("span.dots").hide(); },
			function() { $(this).find("span.hidden").fadeOut(); $(this).find("span.dots").show(); }
		)
	}
);
