// JavaScript Document

<!-- Begin references popup script
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=410,height=480');");
}

<!-- Begin references popup script
function openForm(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=600');");
}

<!-- Main Nav Rollover script

image1 = new Image();
image1.src = "images/nav_home_over.jpg";

image2 = new Image();
image2.src = "images/nav_about_over.jpg";

image3 = new Image();
image3.src = "images/nav_is_over.jpg";

image4 = new Image();
image4.src = "images/nav_question_over.jpg";

image5 = new Image();
image5.src = "images/nav_news_over.jpg";

image6 = new Image();
image6.src = "images/nav_contact_over.jpg";

image7 = new Image();
image7.src = "images/nav_buy_over.jpg";

// End Main Nav Rollover -->


function versionCheck() {
	if (!(document.getElementById)) {
		window.location = "index2.php";
	}
}

function ToggleDisplay(id)
{
var elem = document.getElementById('d' + id);
var elem2 = document.getElementById('h' + id);

if (elem) 
{
  if (elem.style.display != 'block') 
  {
	elem.style.display = 'block';
	elem.style.visibility = 'visible';
	
	//elem.style.borderWidth = '0px 1px 1px 1px';
	elem.style.borderWidth = '0px 0px 0px 0px';
  	//elem.style.borderStyle = 'solid';
  	//elem.style.borderColor = '#005897';
	
	//elem2.style.borderWidth = '1px 1px 0px 1px';
	elem2.style.borderWidth = '0px 0px 0px 0px';
  	//elem2.style.borderStyle = 'solid';
  	//elem2.style.borderColor = '#005897';
  } 
  else
  {
	elem.style.display = 'none';
	elem.style.visibility = 'hidden';
	
	elem.style.borderWidth = '0px 0px 0px 0px';
	
	elem2.style.borderWidth = '0px 0px 0px 0px';
  }
}
	
	//for (var i=1; i=30; i++) {
	//	if (document.getElementById('d' + i)) {
	//		if (i != id) {
	//			document.getElementById('d' + i).style.display = 'none';
	//			document.getElementById('d' + i).style.visibility = 'hidden';
	//		}
	//		i++;
	//	}
	//	else {
	//		break;
	//	}
	//}
	
}

function OnBg(id)
{
	var elem = document.getElementById('h' + id);
	//elem.style.backgroundColor = '#ECECEC';
	elem.style.color = '#3c87bd';
}

function OffBg(id)
{
	var elem = document.getElementById('h' + id);
	//elem.style.backgroundColor = '';
	elem.style.color = '#005897';
}

// End -->
