// Set Defaults
$("h2").after("<img src='img/circle-777.gif' border=0 width='300' height='300' class='binary-dot'><img src='img/circle-AAA.gif' border=0 width='300' height='300' class='pixel-dot'>");
$("h2, span.pixel, span.binary").hide();
$(".binary-dot, .pixel-dot, #main").css("opacity","0");

// Anime Start
$("#main").animate({
	width:"19em",
	height:"14.5em",
	top:"50%",
	left:"50%",
	marginTop:"-11.5em",
	marginLeft:"-11.5em",
	opacity:1
}, 1000, function() {
	$(".binary-dot").animate({
		width:"1.5em",
		height:"1.5em",
		top:"3.05em",
		left:"6.3em",
		opacity:1
	}, 500);
	$("span.binary").fadeIn(1000, function() {
		$(".pixel-dot").animate({
			width:"1.5em",
			height:"1.5em",
			top:"9.25em",
			left:"8.4em",
			opacity:1
		}, 500);
		$("span.pixel").fadeIn(1000, function() {
			$("#main").animate({
				height:"19em"
			}, 500);
			$(".ying").html("simple");
			$(".yang").html("elegant");
			$("h2").animate({opacity:1}, 100);
			$("h2").fadeIn(1000, function() {
				$(".contact, .copyright").fadeIn(600);
				// Rotate Text
				$("h2").queue("fx");
				$("h2").animate({opacity:1}, 1000);
				$("h2").fadeOut(600, function() {
					$(".ying").html("code");
					$(".yang").html("design");
				});
				$("h2").fadeIn(1000);
				$("h2").animate({opacity:1}, 1000);
				$("h2").fadeOut(600, function() {
					$(".ying").html("coming");
					$(".amp").html("");
					$(".yang").html("soon");
				});
				$("h2").fadeIn(1000);
			});
		});
	});
});
