if(document.images) {
	homeOff = new Image
	homeOver = new Image
	homeOff.src = "images/home_off.gif"
	homeOver.src = "images/home_over.gif"
	
	biographyOff = new Image
	biographyOver = new Image
	biographyOff.src = "images/biography_off.gif"
	biographyOver.src = "images/biography_over.gif"
	
	articlesOff = new Image
	articlesOver = new Image
	articlesOff.src = "images/articles_off.gif"
	articlesOver.src = "images/articles_over.gif"

	creditsOff = new Image
	creditsOver = new Image
	creditsOff.src = "images/credits_off.gif"
	creditsOver.src = "images/credits_over.gif"

	photo_albumOff = new Image
	photo_albumOver = new Image
	photo_albumOff.src = "images/photo_album_off.gif"
	photo_albumOver.src = "images/photo_album_over.gif"
	
	artworkOff = new Image
	artworkOver = new Image
	artworkOff.src = "images/artwork_off.gif"
	artworkOver.src = "images/artwork_over.gif"

	trentiniOff = new Image
	trentiniOver = new Image
	trentiniOff.src = "images/trentini_off.gif"
	trentiniOver.src = "images/trentini_over.gif"

	emailOff = new Image
	emailOver = new Image
	emailOff.src = "images/email_off.gif"
	emailOver.src = "images/email_over.gif"

}
else {
	homeOff = ""
	homeOver = ""
	document.home = ""
	
	biographyOff = ""
	biographyOver = ""
	document.biography = ""
	
	articlesOff = ""
	articlesOver = ""
	document.articles = ""

	creditsOff = ""
	creditsOver = ""
	document.credits = ""
	
	photo_albumOff = ""
	photo_albumOver = ""
	document.photo_album = ""

	artworkOff = ""
	artworkOver = ""
	document.artwork = ""

	trentiniOff = ""
	trentiniOver = ""
	document.trentini = ""

	emailOff = ""
	emailOver = ""
	document.email = ""

}


function imgOver(thisImg) {
	document[thisImg].src="images/" + thisImg + "_over.gif"
}

function imgOut(thisImg) {
	document[thisImg].src="images/" + thisImg + "_off.gif"
}

function openurl(urlname) {
	urlWindow = window.open(urlname);
} 

function loadimage(imagename) {
	//arg1 = "D:/Websites/giovannaeghenter/v2/credits/" + imagename + ".html";
	arg1 = "credits/" + imagename + ".html";
	arg2 = 'imagename';
	if(imagename=="Lettera_Console") {
		arg3 = 'width=750,height=700';
	}
	else {
		arg3 = 'width=350,height=350';
	}
	imageWindow = window.open(arg1, arg2, arg3);
} 

function toggleMenu(currMenu, numMenus) {
	allMenus = new Array("menu1", "menu2", "menu3", "menu4");
	var numMenus;
	//thisMenu = eval("document.all." + currMenu + ".style");
	var thisMenu = document.getElementById( currMenu );
		if(thisMenu.style.display == "block") {
			thisMenu.style.display = "none";
		}
		else {
			thisMenu.style.display = "block";
			for(i=0; i<numMenus; i++) {
				if(allMenus[i]!=currMenu) {
					//otherMenu = eval("document.all." + allMenus[i] + ".style");
					var otherMenu = document.getElementById( allMenus[i] );
					if(otherMenu) {
						otherMenu.style.display = "none";
					}
				}
			}
		}
		//return false;
	//}
	//else {
	//	return true;
	//}
}

function hideMenus(numMenus) {
	allMenus = new Array("menu1", "menu2", "menu3", "menu4")
	//if(document.all) {
		for(i=0; i<numMenus; i++) {
			currMenu = eval("document.all." + allMenus[i] + ".style");
			if(currMenu) {
				currMenu.display = "none";
			}
		}
	//}
}
