$(document).ready(function(){

//hide faulty customer logos
obj = $(".customer-logos a").siblings("div");
obj.hide();
obj.next("a").hide();
 
//$(".top-menu").css("opacity",0);
$(".logo").hide();

//$(".top-menu").show();

//$(".top-menu.active").css({"opacity":0});
//$(".top-menu.first").css({"left":700,"opacity":0});
//$(".top-menu.second").css({"left":900,"opacity":0});
//$(".top-menu.third").css({"left":1100,"opacity":0});

	$(".schild-text-sub").hide();
	$(".top-menu.first").not(".top-menu.active").hover(function(){
		$(this).animate({"left":240-5},600, "easeOutBounce");
		//$(this).find(".schild-text-sub").animate({"opacity":1,"bottom":5},300)
		$(this).find(".schild-text-sub").show();
		},function(){
		//$(this).find(".schild-text-sub").animate({"opacity":0,"bottom":0},300);
		$(this).find(".schild-text-sub").hide();
		$(this).animate({"left":240},600, "easeOutBounce");
	});
		$(".top-menu.second").not(".top-menu.active").hover(function(){
		$(this).animate({"left":416-5},600, "easeOutBounce");
		//$(this).find(".schild-text-sub").animate({"opacity":1,"bottom":5},300)
		$(this).find(".schild-text-sub").show();
		},function(){
		//$(this).find(".schild-text-sub").animate({"opacity":0,"bottom":0},300);
		$(this).find(".schild-text-sub").hide();
		$(this).animate({"left":416},600, "easeOutBounce");
	});
		$(".top-menu.third").not(".top-menu.active").hover(function(){
		$(this).animate({"left":588-5},600, "easeOutBounce");
		//$(this).find(".schild-text-sub").animate({"opacity":1,"bottom":5},300)
		$(this).find(".schild-text-sub").show();
		},function(){
		//$(this).find(".schild-text-sub").animate({"opacity":0,"bottom":0},300);
		$(this).find(".schild-text-sub").hide();
		$(this).animate({"left":588},600, "easeOutBounce");
	});

	$(".top-menu").click(function(){

	});
});

var imageInterval = setInterval('changeImage()', 200);
var a=0;
function changeImage(){
a++;
switch(a){
case 1:
$(".top-menu.active").fadeIn(1000);
break;
case 2:
$(".top-menu.first").fadeIn(1000);
break;
case 3:
$(".top-menu.second").fadeIn(1000);
break;
case 4:
$(".top-menu.third").fadeIn(1000);
break;
case 5:
$(".logo").fadeIn(1500);
break;
case 6:
clearInterval(imageInterval);
break;
}
}
