//----------------------------------------
var nav = new Object();

function Nav(root,collection,states,id) {
	this.now		= document.images[id];
	this.off		= new Image();
	this.off.src	= document.images[id].src;
	this.on			= new Image();
	this.on.src		= root+id+'On.gif';
	if (states == 3)
	{
		this.sel			= new Image();
		this.sel.src		= root+id+'Sel.gif';
	}
}

Nav.prototype.on_it = function () {this.now.src = this.on.src;}
Nav.prototype.off_it = function () {this.now.src = this.off.src;}
Nav.prototype.sel_it = function () {this.now.src = this.off.src;}

function nav_init() {
	for (var count = 3; count < arguments.length; count++) {
		nav[arguments[count]] = new Nav(arguments[0],arguments[1],arguments[2],arguments[count]);
	}
}

var months = new Array('JANUARY','FEBRUARY','MARCH','APRIL','MAY','JUNE','JULY','AUGUST','SEPTEMBER','OCTOBER','NOVEMBER','DECEMBER');

//----------------------------------------
function Docket (calendar,listing)
{
	this.calendar = calendar;
	this.listing = listing;
	this.month;
	if (document.all)
	{
		this.MHead = document.all['MONTH'];
		this.DHead = document.all['DAY'];
	}
	this.src;
}
Docket.prototype.set_month = function (month) 
{
	this.month = month;
	if ((document.getElementById)||(document.all))
	{
		this.calendar.location = '/LAW/trials.and.cases/court.docket/2000/'+this.month+'/calendar.html';
		this.MHead.innerHTML = months[(parseInt(month))-1];
	}
	else if (document.layers)
	{
		this.calendar.src = '/LAW/trials.and.cases/court.docket/2000/'+this.month+'/calendar.html';
	}
}
Docket.prototype.set_src = function (src) 
{
	this.src = src;
	if ((document.getElementById)||(document.all))
	{
		this.listing.location = '/LAW/trials.and.cases/court.docket/2000/'+this.month+'/'+this.src+'.html';
	}
	else if (document.layers)
	{
		this.listing.src = '/LAW/trials.and.cases/court.docket/2000/'+this.month+'/'+this.src+'.html';
		this.listing.top = 0;
	}
}
Docket.prototype.scroll_up = function ()
{
	if ((document.getElementById)||(document.all))
	{
		this.listing.scrollBy(0,-20);
	}
	else if (document.layers)
	{
		if((this.listing.clip.bottom + this.listing.top) <= this.listing.clip.bottom){this.listing.top = this.listing.top + 20}
	}
}
Docket.prototype.scroll_down = function ()
{
	if ((document.getElementById)||(document.all))
	{
		this.listing.scrollBy(0,20);
	}
	else if (document.layers)
	{
		if((this.listing.clip.bottom + this.listing.top) >= 70){this.listing.top = this.listing.top - 20} 
	}
}
//----------------------------------------
function DN (root,id)
{	
	this.id			= id;
	this.on 		= new Image();
	this.on.src 	= root + id + 'On.gif';
	this.off		= new Image();
	this.off.src	= root + id + 'Off.gif';	
	this.now		= document.images[id];
}

DN.prototype.on_it 	= function ()
{
	this.now.src 	= this.on.src;
}

DN.prototype.off_it = function (ref)
{
	this.now.src 	= this.off.src;
}
//----------------------------------------


