
this.animateSDCC = function() {

	animateMenu();
}

this.fullAnimateSDCC = function() {
	onloadAnimate();
	animateMenu();
	activateSlideShow();
	animateTextLogoImage();
	animateSloganButton();
	animateSubMenuButtons();
}

this.onloadAnimate= function() {

	$('div.textlogo').animate({paddingLeft: '180px'}, 400);
	$('div.textlogo').animate({paddingLeft: '0px'}, 400);

	$('a.navBtn').animate({paddingLeft: '82px'}, 400);
	$('a.navBtn').animate({backgroundPosition: '-2px'}, 200);
	$('a.navBtn').animate({backgroundPosition: '-0px'}, 50);
	$('a.navBtn').animate({paddingLeft: '62px'}, 300);

	animateCallFor();
}

this.animateMenu = function() {
	$('a.navBtn').mouseenter(function() {
		$(this).animate({paddingLeft: '72px'}, 100);
		$(this).animate({backgroundPosition: '-2px'}, 100);
		$(this).animate({paddingLeft: '62px'}, 100);
		$(this).animate({backgroundPosition: '-0px'}, 100);
	});
}

this.animateSloganButton = function() {
	$('a.slogan_button').mouseenter(function() {
		$(this).hide();
		$(this).fadeIn(500);
	});
}

this.animateCallFor = function() {
	$('div.s1').animate({marginTop: '-10px'}, 100);
	$('div.s1').animate({marginTop: '0px'}, 100);
	$('div.s2').animate({paddingLeft: '10px'}, 300);
	$('div.s2').animate({paddingLeft: '0px'}, 300);
	$('div.s3').animate({marginTop: '10px'}, 500);
	$('div.s3').animate({marginTop: '-13px'}, 500);
	$('a.slogan_button').hide();
	$('a.slogan_button').fadeIn(1200);
}

this.activateSlideShow = function() {

	$('div.slideBox').cycle({
		autostop: 6
	});
}

this.animateDroppingTextLogoImage = function() {
	setTimeout(function(){

		$('#textLogoImg').fadeOut(500).delay(300).slideDown(800);

		setTimeout(function(){
			$('#textLogoImg').slideUp(500).delay(300).fadeIn(800);
		},5000)
	}, 2000);
	setTimeout(function(){
		setInterval(function(){
	
			// heartbeat
			//$('#textLogoImg').animate({height: "67px", width: "84px"}, 1000).animate({height: "57px", width: "74px"}, 1000);
			
			$('#textLogoImg').fadeOut(500).delay(300).slideDown(800);
	
			setTimeout(function(){
				$('#textLogoImg').slideUp(500).delay(300).fadeIn(800);
			},5000)
		}, 9000);
	}, 2000);
}

this.animateTextLogoImage = function() {
	setTimeout(function(){
		$('#textLogoImg').animate({marginLeft: '0px'}, 2500).animate({marginLeft: '-300px'}, 10);
	}, 2000);
	setInterval(function(){
		$('#textLogoImg').animate({marginLeft: '0px'}, 2500).animate({marginLeft: '-300px'}, 10);
	}, 7000);
}

this.animateSubMenuButtons = function() {
	$('div.rollButton').mouseenter(function() {
		$('div.rollButton').fadeOut(500).delay(300).slideDown(800);
	});
}

