// Initialize Page and Functions
$(document).ready(function(){
		setTimeout("$('#title').show();", 500);
		$('#title').fadeIn(1000);
		setTimeout("$('#dial').show();", 500);
		$('#dial').fadeIn(2000);
	});

// Preload dial images
	// Main Dial Image
	Image1 = new Image(400,400);
	Image1.src = "images/vCard-Touch-Dial.png";
	// About Mouseover Image
	Image2 = new Image(400,400);
	Image2.src = "images/About-Active.png";
	// Blog Mouseover Image
	Image3 = new Image(400,400);
	Image3.src = "images/Blog-Active.png";
	// Company Mouseover Image
	Image4 = new Image(400,400);
	Image4.src = "images/Company-Active.png";
	// Contact Mouseover Image
	Image5 = new Image(400,400);
	Image5.src = "images/Contact-Active.png";
	// Networks Mouseover Image
	Image6 = new Image(400,400);
	Image6.src = "images/Networks-Active.png";
	// Name Label Image
	Image7 = new Image(55,335);
	Image7.src = "images/Label.png";
	
	// Networks Dial Image
	Image8 = new Image(400,400);
	Image8.src = "images/Networks-Touch-Dial.png";
	// About Mouseover Image
	Image9 = new Image(400,400);
	Image9.src = "images/Twitter-Active.png";
	// Blog Mouseover Image
	Image10 = new Image(400,400);
	Image10.src = "images/Facebook-Active.png";
	// Company Mouseover Image
	Image11 = new Image(400,400);
	Image11.src = "images/Google-Active.png";
	// Contact Mouseover Image
	Image12 = new Image(400,400);
	Image12.src = "images/Flickr-Active.png";
	// Networks Mouseover Image
	Image13 = new Image(400,400);
	Image13.src = "images/LinkedIn-Active.png";

// Site Functions
	// Mouseover Function
	function Active(img_name, filename)
		{
			document[img_name].src = filename;
		};

	// Show About Me Textbox
	function showAbout()
		{
			if ($("#dial").hasClass("about")){ }
			else {
				$("#main").removeClass();
				$("#main").addClass("about");
				document.title = "About - Scott T. Yee - Your Technology Handyman";
				$('#dial').fadeTo(400, 0.33);
				$('#footer').fadeTo(400, 0.33);
				setTimeout("$('#about').show();", 500);
				$('#about').fadeIn(400);
			}
		};

	// Show Contact Information Textbox
	function showContact()
		{
			if ($("#dial").hasClass("contact")){ }
			else {
				document.title = "Contact - Scott T. Yee - Your Technology Handyman";
				$('#dial').fadeTo(400, 0.33);
				$('#footer').fadeTo(400, 0.33);
				setTimeout("$('#contact').show();", 500);
				$('#contact').fadeIn(400);
			}
		};

	// Show Networks Menu
	function showNetworks()
		{
			if ($("#dial").hasClass("networks")){ }
			else {
				document.title = "Networks - Scott T. Yee - Your Technology Handyman";
				$('#dial').fadeOut(400);
				setTimeout("$('#dial').hide();", 500);
				setTimeout("$('#networks').show();", 500);
				$('#networks').fadeIn(1300);
			}
		};

	// Hide ALl Show Dial
	function showDial(object)
		{
			document.title = "Scott T. Yee - Your Technology Handyman";
			$(object).fadeOut(400);
			setTimeout("$(object).hide();", 500);
			setTimeout("$('#dial').show();", 500);
			$('#dial').fadeTo(1800, 1.0);
			$('#footer').fadeTo(400, 1.0);
		};
	
	// Fade and leave page
	function leave()
		{
			$('#dial').fadeTo(400, 0);
			$('#footer').fadeTo(400, 0);
			$('#title').fadeTo(400, 0);
		};
	
