<!--

/* **********************************************************
remember: Reproduction without
written permission of the
author is strictly prohibited.

01. openBrWindow(theURL,winName)
02. goTo(page) 
03. navOver(img)
04. navOff(img)
05. chgClass(className)
06. className(className)
07. pageOver(page)
08. pageOff(page)
09. changeVid(videosrc)
10. rollOver(imgName,trueFalse)

********************************************************** */


function goHome() {

	document.location="http://nanochromatic.com/index_1.php";

}


/* 1 */
function openBrWindow(theURL,winName) { //v2.0
  window.open(theURL,winName);
}

/* 2 */
function goTo(url) {
	document.location="http://nanochromatic.com/"+page+".php";
}

/* 3 */
function navOver(img){
	document.getElementById(img).src="http://www.nanochromatic.com/images/buttons/"+img+"_on.gif";
}

/* 4 */
function navOff(img){
	document.getElementById(img).src="http://www.nanochromatic.com/images/buttons/"+img+"_off.gif";
}

/* 5 */
function chgClass(className) {
	document.getElementById(this.id).className=className;
}

/* 6 */
function className(className) {
	document.getElementById(this).className=className;
}

/* 7 */
function pageOver(page) {
	document.getElementById(page).className=page+'on';
}

/* 8 */
function pageOff(page) {
	document.getElementById(page).className=page;
}

/* 9 */
function changeVid(videosrc) {
	document.getElementById('video_ob').src="http://nanochromatic.com/video/"+videosrc+".wmv";
}

/* 10 
Rollover buttons. Pass name of image and a boolean indicating
if the rollOver state of the button should be shown or not. */
function rollOver(imgName,trueFalse) {
	if (document.images && trueFalse==true) {
    	document[imgName].src = eval(imgName+"_on.src");
    }else if (document.images && trueFalse==false) {
		document[imgName].src = eval(imgName+"_off.src");
	}
}

/* 11 */


function viewPresent() {

	alert('It will take a moment or two while the Presentation\n downloads to your web browser.');
}

//-->
