// JavaScript Document

<!--//SHOW HIDE CODE
var state = 'none';
function showhide(layer_ref) {
	state = document.getElementById(layer_ref).style.display;
	if (state == 'block') {
			state = 'none'; 
	} else {
			state = 'block';
	}
	
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all." + layer_ref + ".style.display = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
		document.layers[layer_ref].display = state; 
	}
	if (document.getElementById &&!document.all) {
		hza = document.getElementById(layer_ref);
		hza.style.display = state; 
	}
}
//-->

<!--//PORTFOLIO SHOW/HIDE CODE
function portshowhide(id) {
	// CONTENT IS HIDDEN
	if (document.getElementById('content'+id).style.display == 'none') {
		if (document.all) { //IS IE 4 or 5 (or 6 beta)
			eval( "document.all.content"+id+".style.display = 'block'");
			eval( "document.all.titleshow_"+id+".style.display = 'none'");
			eval( "document.all.titlehide_"+id+".style.display = 'block'");
			eval( "document.all.clientshow_"+id+".style.display = 'none'");
			eval( "document.all.clienthide_"+id+".style.display = 'block'");
		}
		if (document.layers) { //IS NETSCAPE 4 or below
			document.layers["content"+id].display = "block";
			document.layers["titleshow_"+id].display = "none"; 
			document.layers["titlehide_"+id].display = "block"; 
			document.layers["clientshow_"+id].display = "none"; 
			document.layers["clienthide_"+id].display = "block"; 
		}
		if (document.getElementById &&!document.all) {
			content = document.getElementById("content"+id);
			content.style.display = "block";
			titleshow = document.getElementById("titleshow_"+id);
			titleshow.style.display = "none"; 
			titlehide = document.getElementById("titlehide_"+id);
			titlehide.style.display = "block"; 
			clientshow = document.getElementById("clientshow_"+id);
			clientshow.style.display = "none"; 
			clienthide = document.getElementById("clienthide_"+id);
			clienthide.style.display = "block"; 
		}
	// CONTENT IS DISPLAYED
	} else {
		if (document.all) { //IS IE 4 or 5 (or 6 beta)
			eval( "document.all.content"+id+".style.display = 'none'");
			eval( "document.all.titleshow_"+id+".style.display = 'block'");
			eval( "document.all.titlehide_"+id+".style.display = 'none'");
			eval( "document.all.clientshow_"+id+".style.display = 'block'");
			eval( "document.all.clienthide_"+id+".style.display = 'none'");
		}
		if (document.layers) { //IS NETSCAPE 4 or below
			document.layers["content"+id].display = "none";
			document.layers["titleshow_"+id].display = "block"; 
			document.layers["titlehide_"+id].display = "none"; 
			document.layers["clientshow_"+id].display = "block"; 
			document.layers["clienthide_"+id].display = "none"; 
		}
		if (document.getElementById &&!document.all) {
			content = document.getElementById("content"+id);
			content.style.display = "none";
			titleshow = document.getElementById("titleshow_"+id);
			titleshow.style.display = "block"; 
			titlehide = document.getElementById("titlehide_"+id);
			titlehide.style.display = "none"; 
			clientshow = document.getElementById("clientshow_"+id);
			clientshow.style.display = "block"; 
			clienthide = document.getElementById("clienthide_"+id);
			clienthide.style.display = "none"; 
		}
	}
}
//-->

<!--//SCROLL CODE
var scrollupt;
var scrolldownt;
function scrollup(obj){
	if (window.scrolldown) clearTimeout(scrolldownt)
	var div = document.getElementById(obj);
	div.scrollTop--;
	scrollupt = setTimeout("scrollup('"+obj+"')", 10);
}
function scrolldown(obj){
	if (window.scrollup) clearTimeout(scrollupt)
	var div = document.getElementById(obj);
	div.scrollTop++;
	scrolldownt = setTimeout("scrolldown('"+obj+"')", 10);
}
function stopscroll(){
	if (window.scrollup) clearTimeout(scrollupt)
	if (window.scrolldown) clearTimeout(scrolldownt)
}
//->

<!--//EMAIL VERIFICATION CODE
function email_verify(){
	if (document.email.name.value == ""){
		alert("Please fill in the 'your name' field.");
		document.email.name.focus();
		return (false);
	} else if (document.email.name.value == "Your Name"){
		alert("Please put something other than 'Your Name'...");
		document.email.name.focus();
		return (false);
	} else if (document.email.email.value == ""){
		alert("Please enter your email address");
		document.email.email.focus();
		return (false);
	} else if (document.email.email.value == "Your Email Address"){
		alert("Please enter your email address");
		document.email.email.focus();
		return (false);
	} else if (document.email.subject.value == ""){
		alert("Please fill in the 'Subject' Field");
		document.email.subject.focus();
		return (false);
	} else if (document.email.subject.value == "Subject"){
		alert("Please write something other than 'Subject'");
		document.email.subject.focus();
		return (false);
	} else if (document.email.message.value == "Subject"){
		alert("Please write a message");
		document.email.message.focus();
		return (false);
	} else {
		return (true);
	}
}
//->
