// <SCRIPT language=Javascript>
// browser detect
var ie4 = (document.all != null);
var ns4 = (document.layers != null);

function mouseOver(imageName, img, path )
{
	if (path==null)
	{
		path = "";
		img.src = 'images/buttons/' + imageName + '_active.gif';
	}
	else
		img.src = path + '/images/buttons/' + imageName + '_active.gif';		
}
function mouseOut(imageName, img, path) 
{
	if (path==null)
	{
		path = "";
		img.src = 'images/buttons/' + imageName + '_current.gif';
	}
		else
			img.src = path + '/images/buttons/' + imageName + '_current.gif';
}

/*function mouseOver(imageName, divName, imageID)
{
	if (divName == null)
		divName = imageName;
	if (imageID == null)
		imageID = imageName;  	

	var img;
    if (navigator.appName.indexOf("Netscape")!=-1)
		img = document[divName].document.images[imageID];
	else
		img = document.images[imageID];
	if ((imageName.indexOf("rombus")!=-1)||(imageName.indexOf("next")!=-1)||(imageName.indexOf("back")!=-1))
		img.src = '../images/buttons/' + imageName + '_active.gif';
	else	
	img.src = 'images/buttons/' + imageName + '_active.gif';
}
function mouseOut(imageName, divName, imageID ) 
{
	if (divName == null)
		divName = imageName;
	if (imageID ==null)
		imageID = imageName;	

	var img;
    if (navigator.appName.indexOf("Netscape")!=-1)
		img = document[divName].document.images[imageID];
	else
		img = document.images[imageID];
	if ((imageName.indexOf("rombus")!=-1)||(imageName.indexOf("next")!=-1)||(imageName.indexOf("back")!=-1))
		img.src = '../images/buttons/' + imageName + '_current.gif';
	else	
	img.src = 'images/buttons/' + imageName + '_current.gif';
}*/

/////////////////////////////////
// Slide Show
/////////////////////////////////

function SlideShow()
{
	this.currIdx = 0;
	this.lastIdx = 2;
	this.slideImg = null;
	this.interval = 1000;
	this.images = new Array(3);
	this.next = SlideShow_NextSlide;
	
	for (var i = 0; i < this.images.length; i++)
		this.images[i] = new Image();
}
	
function SlideShow_NextSlide()
{
	this.slideImg.src = this.images[this.currIdx].src;

	if (this.lastIdx == this.currIdx)
		this.currIdx = 0;
	else
		this.currIdx++;	
}

/*function Start(next,time)
{
	//setInterval("this.next()", this.interval);

 return window.setInterval(next,time);
//  return window.setInterval(next, time);


}

function Stop()
{
	
	window.clearInterval(Start());
	
}*/


//////////////////////////////////
// More Info Window
/////////////////////////////////


var infoWindow = null;

function openInfoWindow(tag)
{
	if (infoWindow != null && infoWindow.closed == false)
	{
		infoWindow.location = tag.href;
		infoWindow.focus();
		return;
	}
	infoWindow = window.open(tag.href, "MoreInfo", "width=500,height=350,status=no,resizable=yes,scrollbars=yes", true);
}

function closeInfoWindow()
{
	infoWindow.close();
	infoWindow = null;
}

