function window_open(url, windowName, width, height) {
  
	var yes = 1;
	var no = 0;
	
	var menubar = no;
	var scrollbars = yes;
	var locationbar = no;
	var directories = no;
	var resizable = yes;
	var statusbar = yes;
	var toolbar = no;
	
	var screenOffset = 200;
	
	if (width == null) 
	    var width = screen.width*.8
	
	if (height == null) 
	    var height = screen.height*.8
	
	var left = (screen.width - width) / 2;
	var top = ((screen.height - height) / 2) - 20;
	
			
	windowprops = "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
	windowprops += (menubar ? ",menubars" : "") + (scrollbars ? ",scrollbars" : "") +
	(locationbar ? ",location" : "") +
	(directories ? ",directories" : "") +
	(resizable ? ",resizable" : "") +
	(statusbar ? ",status" : "") +
	(toolbar ? ",toolbar" : "");	
	
	window.open(url, windowName, windowprops);
	

}


function Animation(img_animated, img_static, img_destination, img_path) {

 	var args = arguments;
 	if (args.length != 4) {
 			alert("animate takes 4 parameters: animated, static, destination, path");
 			return;
 	}

    this.img_animated = img_animated;
    this.img_static = img_static;
    this.img_path = img_path;
    this.img_destination = null;
    this.setDestination(img_destination);


 }

 Animation.prototype.setAnimatedImage = function(image) {
 	this.img_animated = image;
 }

 Animation.prototype.setStaticImage = function(image) {
 	this.img_static = image;
 }

 Animation.prototype.setDestination = function (dest) {
    this.img_destination = document.images[dest];
 }

 Animation.prototype.start = function() {
 		this.img_destination.src = this.img_path + "/" + this.img_animated;
 }

 Animation.prototype.stop = function()  { 	  
 		  this.img_destination.src = this.img_path + "/" + this.img_static;
 }
 
 function highlightrow(elm) {
    if (elm.className == "selected") return;
    elm.className = "highlight";
 }

 function unhighlightrow(elm) {
     if (elm.className == "selected") return;
     elm.className = "normal";

 }

 function clickrow(elm) {
		elmselected = elm;
		elm.className = "selected";
 }
 
 function getCopyrightYear() {
 	return "2007";
}
	
function toggleLayer(whichLayer, sequence){
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		var element1 = document.getElementById(whichLayer + '_1');
		var element2 = document.getElementById(whichLayer + '_2');
		var element3 = document.getElementById(whichLayer + '_3');
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		var element1 = document.all[whichLayer + '_1'];
		var element2 = document.all[whichLayer + '_2'];
		var element3 = document.all[whichLayer + '_3'];
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		var element1 = document.layers[whichLayer + '_1'];
		var element2 = document.layers[whichLayer + '_2'];
		var element3 = document.layers[whichLayer + '_3'];
	}
	
	if ( style2.display != "none" && sequence == "1") {
		style2.display = "none";
		element1.innerHTML = '<img hspace="0" vspace="0" height="29" src="image/LeftBlueTab.png" alt=" " border="0" align="left">';
		element1.className = 'unselectedTab';
		element2.className = 'unselectedTab';
		element3.innerHTML = '<img hspace="0" vspace="0" height="29" src="image/RightBlueTab.png" alt=" " border="0" align="right">';
		element3.className = 'unselectedTab';
	} else if ( style2.display == "none" && sequence == "2") {
		style2.display = "block";
		element1.innerHTML = '<img hspace="0" vspace="0" height="29" src="image/LeftWhiteTab.png" alt=" " border="0" align="left">';
		element1.className = 'selectedWhiteTab';
		element2.className = 'selectedWhiteTab';
		element3.innerHTML = '<img hspace="0" vspace="0" height="29" src="image/RightWhiteTab.png" alt=" " border="0" align="right">';
		element3.className = 'selectedWhiteTab';
	}
		
}


