Cufon.replace('.menu-main-nav-container li, .section-wrap h2', { fontFamily: 'Futura LT', hover : { color : '#BF2F1B'} });
Cufon.replace('.section-wrap h2, div.sidebar h3, .section-wrap h3', { fontFamily: 'Futura Lt BT',  hover : { color : '#BF2F1B'}  });
Cufon.replace('.banners .highlight h3', { fontFamily: 'Futura Lt'  });
$(document).ready(function(){
	$('.footer .side-widget-area li:nth-child(1)').addClass('facebook');
	$('.footer .side-widget-area li:nth-child(2)').addClass('twitter');
	$('.footer .side-widget-area li:nth-child(3)').addClass('youtube');
	$('.footer .side-widget-area li:nth-child(4)').addClass('linkedin');
	$(function(){
	positionFooter(); 
	function positionFooter(){
		var padding_top = $("#footer").css("margin-top").replace("px", "");
		var page_height = $(document.body).height() - padding_top;
		var window_height = $(window).height();
		var difference = window_height - page_height;
		if (difference < 0) 
			difference = 0; 
		$("#footer").css({padding: difference + "px 0 0 0"})
	}
 
	$(window).resize(positionFooter)
});
});

$(window).load(function(){
	$(".banners .item").wrapAll("<div class='wrap-hide'/>");
	$(".banners .item").wrapAll("<div class='wrap'/>");
	$(".banners .item").css({
				float : 'left',
				display : 'block'
				});
	$(".wrap").css({
				width : ($(".banners .item").find("img").outerWidth()) * $(".banners .item").length
		});
	$(".wrap-hide").css({
				width : ($(".banners .item").find("img").outerWidth()),
				overflow : 'hidden'
		});
	
	
	var i = 1;
	var str= "";
	$(".banners .item").each(function(){
		str += "<li class='scrollto' title="+i+">"+i+"</li>"; 
		i++;
		});
		$("<ul class='scrollto'>"+str+"</ul>").insertAfter(".wrap-hide");


	$("li.scrollto").click(function(){

		$(".wrap").animate({ marginLeft : -1*($(this).text()-1)*$(".banners .item").find("img").outerWidth() },'medium');
		});
	
	i = 1;	
	var int = setInterval(function(){
		$("li.scrollto:nth-child("+i+")").trigger('click');
		i++;
		if (i>$("li.scrollto").length) {i=1;}
		},5000);
		
		
	
	
	});


