// Headstrong Design v1.0
// chris@headstrongdesign.co.uk

var a = new Array();
a[0] = "<h1>Flavours</h1>";
a[0] = a[0] + "<p>Where my head is and which way it faces. Metophorically speaking. Or written. ...or something</p>";

a[1] = "<h1>Diet</h1>";
a[1] = a[1] +"<p>Here's a bunch of stuff I love to look at or think about.</p>";

a[2] = "<h1>Toolset</h1>";
a[2] = a[2] + "<p>Kinda like a technical breakdown of what I can do and how I implement those skills.</p>";

a[3] = "<h1>Portfolio</h1>";
a[3] = a[3] + "<p>See things from my point of view</p>";



function navrollover(n,s) 
{
if (n == "doll") {nb = "0"};
if (n == "noodles") {nb = "1"};
if (n == "bag") {nb = "2"};
if (n == "book") {nb = "3"};

if (s == 1)
  {
    document.getElementById(n+"switch").src="site_images/nav_"+n+".gif";
    document.getElementById("header").src="site_images/header_"+n+".gif";
    document.getElementById("content").style.visibility = "visible";
    document.getElementById('actualcontent').innerHTML = a[""+nb+""];
  }
else 
  {
    document.getElementById(n+"switch").src="site_images/spacer.gif";
    document.getElementById("header").src="site_images/spacer.gif";
    document.getElementById("content").style.visibility = "hidden";
  }
}

function showHide(idName,showHide) {

document.getElementById(idName).style.visibility==""&showHide&""	
}

function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false;}
else {return true}
}
}
function validate_form(thisform)
{
with (thisform)
{
if (validate_required(email,"Email must be filled out!")==false)
  {email.focus();return false;}
}
}

