// JavaScript Document


// HIDE CSS LAYER FUNCTIONS -- COURTESY TOM SCHULTZ //
/* JAVASCRIPT DOCUMENT - Show and hide Css layers on web page
methods: 
	hidediv = hides layer
	showdiv = shows certain layer
	collapseAll() = collapses all layers / must have array of page layers on page

Must also define divs on page with id statement in <style> tags.
*/

function hidediv(layerName) {
	if (document.getElementById) 
	{ // DOM3 = IE5, NS6
		document.getElementById(layerName).style.display = 'none';
	}
	else 
	{
		if (document.layers) 
		{ // Netscape 4
			document.hideshow.display = 'none';
		}
		else 
		{ // IE 4
			document.all.hideshow.style.display = 'none';
		}
	}
}
	
function showdiv(layerName) 
{
	if (document.getElementById) 
	{ // DOM3 = IE5, NS6
		document.getElementById(layerName).style.display = 'block';
	}
	else {
		if (document.layers) 
		{ // Netscape 4
			document.hideshow.display = 'block';
		}
		else 
		{ // IE 4
			document.all.hideshow.style.display = 'block';
		}
	}
}

function loadSplash(splashURL)
{
	parent.frames['imgcontent'].location = splashURL;
}

// MOUSEOVER FUNCTIONS //

if(document.images){
	portfolio_n=new Image();
	portfolio_n.src="images/portfolio_btn_up.jpg";
	
	portfolio_o=new Image();
	portfolio_o.src="images/portfolio_btn_over.jpg";
	
	
	vitae_n=new Image();
	vitae_n.src="images/vitae_btn_up.jpg";
	
	vitae_o=new Image();
	vitae_o.src="images/vitae_btn_over.jpg";
	
	
	contact_n=new Image();
	contact_n.src="images/contact_btn_up.jpg";
	
	contact_o=new Image();
	contact_o.src="images/contact_btn_over.jpg";
	
}


function makeOver(img){
	document[img].src=eval(img +"_o.src");
}

function makeNormal(img){
	document[img].src=eval(img +"_n.src");
}
