URL = window.location.href;
var pagename_array = URL.split("/");
var barefile_array = pagename_array[3].split(".");
var result = barefile_array[0];

if	(result == "" || !result)	{
	result = "home";
} else if (result == "_vti_bin") {
	result = "contact";
} else if (result == "subscribe" || result == "unsubscribe") {
	result = "news";
}

var ranNum = '';
var ranNum = Math.round(Math.random()*1);

function getSplash(s) {
  var bg = new Array(2)
     bg[0]="image";
     bg[1]="image1";

  var picture = bg[ranNum];
  document.write(picture);
}

function mouseOver(src,colorOver)	{
if (!src.contains(event.fromElement))	{
	src.style.cursor = 'hand'; src.bgColor = colorOver;
	}
}
function mouseOut(src,colorIn)	{
if (!src.contains(event.toElement))	{
	src.style.cursor = 'default';
	src.bgColor = colorIn;
	}
}
function mouseClk(src)	{
if(event.srcElement.tagName=='TD')	{
	src.children.tags('A')[0].click();
	}
}

function popup(winName,URL,width,height,scroll) {

 var popup = window.open(URL,winName,"height=" + height + ",width=" + width + ",left=28,top=25,status=0,scrollbars=" + scroll + ",toolbar=0,directories=0,menubar=0,location=0");
 NewWindow = popup;
 NewWindow.focus();

}