$(document).ready(function () {
	var homeClients = new Array();
	$('#home-clients').children('div').each(function () {
		homeClients.push($(this));
	});
	if(homeClients[0] == undefined){
		return;
	}
	var i = 0;
	setInterval(function () {
		if(i == (homeClients.length - 1)){
			homeClients[i].fadeOut('slow');
			homeClients[0].fadeIn('slow');
			i = 0;
		}else{
			homeClients[i].fadeOut('slow');
			homeClients[i+1].fadeIn('slow');
			i++;
		}
	}, 7000);
	/*$('#drtv').addClass('open');
	function closeOpen(box){
		if(box.hasClass('open')){
			box.removeClass('open');
			box.addClass('closed');
			box.children('a').css('display', 'none');
			$('#cards').children('div').each(function(){
				$(this).children('a').css('display', 'none');
			});
		}else{
			box.removeClass('closed');
			box.addClass('open');
		}
	}
	$('.slider-box').mouseover(function(){
		if($(this).hasClass('closed')){
			$(this).animate({
				width: '500px'
			}, {duration : 100, queue: false, complete: function(){
					$('.open').children('a').fadeIn('fast');
			}});
			$('.open').animate({
				width: '120px'
			}, {duration : 100, queue: false});
			closeOpen($('.open'));
			closeOpen($(this));
		}

	});*/
});
