$(document).ready(function(){

	$(".ftrbox").children("div").children(".text").hide();
	$(".ftrbox")
		.css("cursor","pointer")
		.click(function() {  
			window.location = $(this).find("a:first").attr("href");  
		})		
		.hover(function(){
			$(this).children("div").children(".text").fadeIn(225);
		},function(){
			$(this).children("div").children(".text").fadeOut(225);
		})

	// ----------------
	// Scrolling Images

	// Duplicate Scroll Container Contents (for seamless looping)
	$("#scrollingarea").append($("#scrollingarea").html());
	// Number of Scroll Items
	var v_scrl_itm = $("#scrollingarea .scrollitem").length;
	// Width of Each Scroll Item
	var v_scrl_itm_w = 70;
	$("#scrollingarea .scrollitem").css({width:v_scrl_itm_w+"px",margin:"0px"});
	// Width of Scroll Container
	var v_scrl_cnt_w = (v_scrl_itm)*v_scrl_itm_w;
	$("#scrollingarea")
		.css({width:v_scrl_cnt_w+"px"})
		.hover(function(){
			// Stop Scrolling
			$(this).stop();
		},function(){
			// Restart Scrolling
			f_scrl();
	});
		
	function f_scrl() {
		// animate left starts at 0px scrolls left until left = width-(width*2), then restart at 0px
		$("#scrollingarea").animate({left:((v_scrl_cnt_w/2)-v_scrl_cnt_w)+"px"},((v_scrl_itm/2)*3500),"linear",function(){
			$(this).css({left:"0px"});
			f_scrl();
		});
	}
	f_scrl();

});