
function showNav(idname)

{
	document.getElementById(idname).style.backgroundPosition  =  "0px -28px";
	document.getElementById(idname).style.display  =  "block";
}

function hideNav(idname)

{
	document.getElementById(idname).style.backgroundPosition  =  "0px 0px";
}

function showacNav(idname)

{
	document.getElementById(idname).style.backgroundPosition  =  "0px -28px";
	document.getElementById(idname).style.display  =  "block";
}

function hideacNav(idname)

{
	document.getElementById(idname).style.backgroundPosition  =  "0px -28px";
}


// image randomizer
var ic = 6;

var side = new Array(ic);
side[0] = "images/side/1.gif"
side[1] = "images/side/2.gif"
side[2] = "images/side/3.gif"
side[3] = "images/side/4.gif"
side[4] = "images/side/5.gif"
side[5] = "images/side/6.gif"

function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
var choice = pickRandom(ic);