// 	Vladimir Kagan General API(JavaScript)
// 	Author : EJFIIIWebDesign.com

//	Script to load in stylesheet which makes home page elements invisible and
//	then fades those elements onto the screen.  Non-Script enabled browsers 
//	will never load this script making home page elements always visible.

//	Load in Home Page Specific Style Sheet
	document.write("<link rel='stylesheet' href='vkHomeStyle.css' type='text/css' />");

// 	Home Page Fade Routine
	function homeFade() {
		window.setTimeout("imageFade()",500);
		window.setTimeout("logoFade()", 2600);
		window.setTimeout("textFade()", 3300);
		window.setTimeout("hide_siteMenuMask()", 4800);
		}
	// 	Fade in Portrait Image
	function imageFade() {
		opacity('portrait', 0, 99, 2600);
		}
	// 	Fade in Portrait Image with Logo
	function logoFade() {
		opacity('portraitLogo', 0, 99, 2200);
		}
	// 	Fade in Links
	function textFade() {
		opacity('siteMenu_mask', 99, 0, 1500);
		opacity('contact', 0, 50, 1500);
		}

	function hide_siteMenuMask() {
		document.getElementById('siteMenu').style.zIndex = 100;
		}