function right(e) {
		 if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
						alert("© Copyright 2006\nDelaware State Police\nwww.state.de.us\dsp ");
						e.which = 0;
						return false;
		 }
		else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)){
						alert("© Copyright 20006\nDelaware State Police\nwww.state.de.us\dsp");
						return false;
				}
				return true;
			}
document.onmousedown=right;
		if (document.layers) window.captureEvents(Event.MOUSEDOWN);
				window.onmousedown=right;

<!--

/* Timer Functions
*  Author: David Zwarg
*  Copyright 2000 SponduLinx, LLC
*
*  This has a few functions to control countdown timers and update timers
*  for a webpage.  This script works in conjunction with the graphics named
*  dg*.gif, corresponding to 0-9, a colon, and AM/PM graphic.
*/


//Duration is the time the window should be open
var Duration = window.location.hash.substr(1,(window.location.hash.length - 1));

//County is the county to display the time for
var County = window.location.search.substr(1,(window.location.search.length - 1));

//Dstart == ??
var Dstart = Duration;

//If Duration wasn't entered, use 30 seconds as the default
if (Duration == "") { Duration = 30; } else { Duration = parseInt(Duration); }

//Make an array for the digital numbers
var Digitals = MakeArray(13);

//Load the images dg0 to dg9 into the array
for (var i = 0; i <= 9; i++)
{
Digitals[i].src = "imgs/dg" + i.toString() + ".gif";
}
//Load the colon image
Digitals[10].src = "imgs/dgc.gif";

//Load the am image
Digitals[11].src = "imgs/dgam.gif";

//Load the pm image
Digitals[12].src = "imgs/dgpm.gif";

//Make an image array
function MakeArray(n)
{
	var a = new Array(n);

	for (var i = 0; i<=n; i++)
	{
		a[i] = new Image();
	}
	return a;
}

//Load the time and display it with this function (called by body/onload="" )
function DisplayTime()
{
	//Declare all variables:
	var AMPM;
//	var now = new Date.parse(<!--#echo var="DATE_GMT" -->);

	//Now is the date/time right now!!
	var now = new Date();
	
	//Then is now + the duration * 1000 (because now.valueOf() returns milliseconds)
	var then = new Date(now.valueOf() + (1000 * Duration));
	
	//Save the value of then into the page, to read again.
	window.document.forms.page.elements.milli.value=then.valueOf();
	
	then = new Date(then.valueOf() - now.valueOf());

	//Get the hours from now
	var nh = now.getHours()
	
	//If hours are greater than 11 or less than 24, then it's AM, else PM
	if (nh > 11 && nh < 24) { AMPM = 1; } else { AMPM = 0; }

	//Don't use 24 hour clock, so modulo with 12 to make sure we get # from 0-11
	nh = nh % 12;
	
	if (nh == 0) nh = 12;
	
	//If hours are less than 10, we need an additional digit!!
	if (nh < 10)
	{
		nh = "0" + nh.toString();
	}
	else
	{
		nh = nh.toString();
	}	
	var nm = now.getMinutes();	
	if (nm < 10)
	{ nm = "0" + nm.toString(); }
	else
	{ nm = nm.toString(); }
	
	var tm = then.getMinutes();
	if (tm < 10)
	{ tm = "0" + tm.toString(); }
	else
	{ tm = tm.toString(); }
	
	var ns = now.getSeconds();
	if (ns < 10)
	{ ns = "0" + ns.toString(); }
	else
	{ ns = ns.toString(); }
	
	var ts = then.getSeconds();
	if (ts < 10)
	{ ts = "0" + ts.toString(); }
	else
	{ ts = ts.toString(); }

	// This line is not used, since the text boxes were removed/hidden
	//window.document.forms.page.elements.open.value= nh + ":" + nm + ":" + ns;

	window.document.lh.src = Digitals[parseInt(nh.substr(0,1))].src;
	window.document.rh.src = Digitals[parseInt(nh.substr(1,1))].src;

	window.document.lm.src = Digitals[parseInt(nm.substr(0,1))].src;
	window.document.rm.src = Digitals[parseInt(nm.substr(1,1))].src;
	
	window.document.close_lm.src = Digitals[parseInt(tm.substr(0,1))].src;
	window.document.close_rm.src = Digitals[parseInt(tm.substr(1,1))].src;

	window.document.ls.src = Digitals[parseInt(ns.substr(0,1))].src;
	window.document.rs.src = Digitals[parseInt(ns.substr(1,1))].src;

	window.document.close_ls.src = Digitals[parseInt(ts.substr(0,1))].src;
	window.document.close_rs.src = Digitals[parseInt(ts.substr(1,1))].src;
	
	window.document.ap.src = Digitals[11 + AMPM].src;

	
	setTimeout("UpdateTime()", 1000);
}
function UpdateTime()
{
	var now = new Date();
	var diff = new Date(window.document.forms.page.elements.milli.value - now.valueOf());

	var h = now.getHours();
	if (h > 11 && h < 24) { AMPM = 1; } else { AMPM = 0; }
	h = h % 12;
	
	if (h == 0) h = 12;
	
	if (h < 10)
	{
		h = "0" + h.toString();
	}
	else
	{
		h = h.toString();
	}

	var m = now.getMinutes();	
	if (m < 10)
	{ m = "0" + m.toString(); }
	else
	{ m = m.toString(); }
	
	var close_m = diff.getMinutes();
	if (close_m < 10)
	{ close_m = "0" + close_m.toString(); }
	else
	{ close_m = close_m.toString(); }
	
	var s = now.getSeconds();
	if (s < 10)
	{ s = "0" + s.toString(); }
	else
	{ s = s.toString(); }
	
	var close_s = diff.getSeconds();
	if (close_s < 10)
	{ close_s = "0" + close_s.toString(); }
	else
	{ close_s = close_s.toString(); }

	// This line is not used, since the text boxes were removed/hidden
	//window.document.forms.page.elements.open.value = h + ":" + m + ":" + s;

	window.document.lh.src = Digitals[parseInt(h.substr(0,1))].src;
	window.document.rh.src = Digitals[parseInt(h.substr(1,1))].src;

	window.document.lm.src = Digitals[parseInt(m.substr(0,1))].src;
	window.document.rm.src = Digitals[parseInt(m.substr(1,1))].src;
	
	window.document.close_lm.src = Digitals[parseInt(close_m.substr(0,1))].src;
	window.document.close_rm.src = Digitals[parseInt(close_m.substr(1,1))].src;

	window.document.ls.src = Digitals[parseInt(s.substr(0,1))].src;
	window.document.rs.src = Digitals[parseInt(s.substr(1,1))].src;
	
	window.document.close_ls.src = Digitals[parseInt(close_s.substr(0,1))].src;
	window.document.close_rs.src = Digitals[parseInt(close_s.substr(1,1))].src;

	window.document.ap.src = Digitals[11 + AMPM].src;

	if (now.valueOf() >= window.document.forms.page.elements.milli.value)
	{
		if (window.location.search == "")
		// window will close after the default time out
		{ 	window.close(); }
		else
		// will reload the start window after hash time has expired
		{  location.replace('<!--#echo var="SCRIPT_NAME" -->'); }
	}	
	else
	{
		setTimeout("UpdateTime()", 1000);
	}
}


//-->
