flashMovie = null;
flashMovieSecond = null;
flashMovieThird = null;

$(document).ready(
	function () {
		flashMovie = $('#firstanimation');
		flashMovie.flash({
				swf: '/media/second.swf',
				width: 928,
				height: 280,
				wmode: 'transparent',
				play: false
			}
		);
	}
);
$(document).ready(
	function () {
		flashMovieSecond = $('#secondanimation');

		flashMovieSecond.flash({
				swf: '/media/first.swf',
				width: 928,
				height: 280,
				wmode: 'transparent',
				play: false
			}
		);
	}
);

$(document).ready(
	function () {
		flashMovieThird = $('#thirdanimation');
		flashMovieThird.flash({
				swf: '/media/third.swf',
				width: 928,
				height: 280,
				wmode: 'transparent',
				play: false
			}
		);
	}
);

function playFirst() {
	flashMovie.flash(
		function() {
			this.GotoFrame(2);
			if (currentFrame = 2) {
				this.Play();
			}
		}
	);
}

function playSecond(){
	flashMovieSecond.flash(
		function() {
			this.GotoFrame(2);
			if (currentFrame = 2) {
				this.Play();
			}
		}
	);
}

function playThird() {
	flashMovieThird.flash(
		function() {
			this.GotoFrame(2);
			if (currentFrame = 2) {
				this.Play();
			}
		}
	);
}


$(document).ready(function(){ 
	
	/* display div */
	$(".flashanimation div.second").hide();
	$(".flashanimation div.third").hide();
	
	$('.linee a.first').mouseover(function() {
		$('.flashanimation div.first').show();
		$('.flashanimation div.second').hide();
		$('.flashanimation div.third').hide();
		playFirst();
	});
	
	$('.linee a.second').mouseover(function() {
		$('.flashanimation div.second').show();
		$('.flashanimation div.first').hide();
		$('.flashanimation div.third').hide();
		playSecond();
	});
	
	$('.linee a.third').mouseover(function() {
		$('.flashanimation div.third').show();
		$('.flashanimation div.first').hide();
		$('.flashanimation div.second').hide();
		playThird();
	});
});		
