// JavaScript Document
$(document).ready(function() {
	runNew(0);
});

function movePhoto() {
	$(".move-right").trigger('click');
}

function abc() {
	$(".slogan .effect:eq("+index+")").hide('drop',(speed2/2),
		function () {
			if (index+1 >= $(".slogan .effect").length) {
				var tempIndex = 0;
			}
			else {
				tempIndex = index+1;
			}
			$(".slogan .effect:eq("+tempIndex+")").show('drop',(speed2/2), function() { setTimeout("abc()",speed); });
		});
	movePhoto();
}

function runNew(num) {
	$('.new-con:visible').hide();
	$('.new-con:eq('+num+')').show(500);
	if (num+1 < $('.new-con').length) {
		num++;
	}
	else {
		num = 0;
	}
	setTimeout("runNew("+num+")", 3000);
}
