function OpenPopUp(sURL)
{
	var newWindow
	newWindow=open(sURL,"newWindow","scrollbars,resizable=yes,width=600,height=500");
	newWindow.focus();
}

function ClosePopUp()
{
	if (newWindow && !newWindow.closed) 
	{
		newWindow.close();
	}
}


function nextImage() {
		if (currentImage == imageList.length-1) {
			currentImage = 0;
		} else {
			currentImage++;
		}
		document.slideimage.src = imageList[currentImage];
}

function prevImage() {
		if (currentImage == 0) {
			currentImage = imageList.length-1;
		} else {
			currentImage--;
		}
		document.slideimage.src = imageList[currentImage];
}
//end of functions for slideshow

var browser = navigator.appName;
var version = navigator.appVersion.substring(0,1);

function redirectTopNav(dest) {
  window.location=dest;
}

function changeFontColor(loc, color) {
  if (browser == "Microsoft Internet Explorer") {
	  window[loc].style.color=color;
	} 
}

function changeBGColor(loc, color) {
  if (browser == "Microsoft Internet Explorer") {
    window[loc].style.backgroundColor=color;
	} 
}

function changeImage(loc, image) {
  if (browser == "Microsoft Internet Explorer") {
	 //window[loc].src = image;, this line gives problem use getElementById
	 document.getElementById(loc).src = image;
	} else if (browser == "Netscape" && version>=5) {
    document.getElementById(loc).src = image;
  }
}


function mOvrElem(src, clrOver) 
{ 
	//if (!src.contains(event.fromElement)) 
	//{ 
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver; 
		src.borderColor = clrOver;
	//}
}

function mOutElem(src, clrIn) 
{ 
	//if (!src.contains(event.toElement)) 
	//{ 
		src.style.cursor = 'default'; 
		src.bgColor = clrIn; 
		src.borderColor = clrIn; 
	// }
}
