function rollover(imgid, filename)
{
	img = document.getElementById(imgid);
	img.src = filename;
}

function popupWindow(pageURL, windowName, w, h, features)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+','+features

	var popupWindow = window.open( pageURL ,windowName,winprops);

	popupWindow.focus();
}



function tourPanelOn(section, textimg)
{
        document.getElementById(section + '-panel').style.cursor = 'pointer';
	if (textimg != undefined) {
	        document.getElementById(section + '-text').src = textimg;
	}
}
function tourPanelOff(section, textimg)
{
        document.getElementById(section + '-panel').style.cursor = 'default';

	if (textimg != undefined) {
	        document.getElementById(section + '-text').src = textimg;
	}
}



function tourThumbOn(section, thumbid, largepic)
{
        image_on = document.getElementById(section + '-' + thumbid).src.replace("-off.jpg", "-on.jpg");
        document.getElementById(section + '-' + thumbid).src = image_on;

        target = document.getElementById(section + '-large');
        target.src = largepic;
}
function tourThumbOff(thumbid)
{
        image_off = document.getElementById(thumbid).src.replace("-on.jpg", "-off.jpg");
        document.getElementById(thumbid).src = image_off;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
