// Handle rollover links in the new (10/2007) version of the site

// Keep track of which one is active
var active="home";

function show(what)	// make this show up 
{
var thing=document.getElementById(what);
thing.style.display="";
}

function hide(what)	// make this go away
{
var thing=document.getElementById(what);
thing.style.display="none";
}

function hideshow(one,two)
{
hide(one);
show(two);
}

function navbut(what)
{
hide(active);
show(what);
active=what;
}

function itson(what)	// replace pictures with this
{
hide("pictures");
show(what);
}

function itsoff(what)	// get rid of this and put pictures back
{
hide(what);
show("pictures");
}

function settick()
{
x=document.getElementById("p1");
//w=document.getElementById("p2");
cycle();
tid=setTimeout("tick()",ticks*2000);
}

function cycle()
{

	if(y<10) a="0"+y.toString();
	else a=y.toString();
	x.src="http://www.aa-automovers.com/pics/nn"+a+".jpg";
	oe=0;
	y++;
	if(y>maxy) y=1;

}

function tick()
{
cycle();
tid=setTimeout("tick()",ticks*1000);
}


