﻿// JavaScript Document


if (document.images) {
	btnAbout_off = new Image();
	btnAbout_off.src = "/specials/48grammys/images/btn_about_off.gif";
	btnAbout_on = new Image();
	btnAbout_on.src = "/specials/48grammys/images/btn_about_on.gif";
	
	btnFeatured_off = new Image();
	btnFeatured_off.src = "/specials/48grammys/images/btn_featured_nominees_off.gif";
	btnFeatured_on = new Image();
	btnFeatured_on.src = "/specials/48grammys/images/btn_featured_nominees_on.gif";
	
	btnVideo_off = new Image();
	btnVideo_off.src = "/specials/48grammys/images/btn_video_off.gif";
	btnVideo_on = new Image();
	btnVideo_on.src = "/specials/48grammys/images/btn_video_on.gif";
	
	btnPhotos_off = new Image();
	btnPhotos_off.src = "/specials/48grammys/images/btn_photos_off.gif";
	btnPhotos_on = new Image();
	btnPhotos_on.src = "/specials/48grammys/images/btn_photos_on.gif";
	
	btnBehind_off = new Image();
	btnBehind_off.src = "/specials/48grammys/images/btn_behind_the_scenes_off.gif";
	btnBehind_on = new Image();
	btnBehind_on.src = "/specials/48grammys/images/btn_behind_the_scenes_on.gif";
}



startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
		
		if (document.getElementById("pGallNav")) {
			navRoot = document.getElementById("pGallNav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
}
window.onload = startList;