<!--
//main nav rollovers
if (document.images) {
	linesoff = new Image();
	linesoff.src = "/gallery/nav/aboutlines_off.gif";
	
	lines1on = new Image();
	lines1on.src = "/gallery/nav/aboutlines_on.gif";
	
	lines2on = new Image();
	lines2on.src = "/gallery/nav/behindsceneslines_on.gif";
	
	lines3on = new Image();
	lines3on.src = "/gallery/nav/nowshowinglines_on.gif";
	
	lines4on = new Image();
	lines4on.src = "/gallery/nav/inspiringfactslines_on.gif";
	
	lines5on = new Image();
	lines5on.src = "/gallery/nav/multimedialines_on.gif";
	
	lines6on = new Image();
	lines6on.src = "/gallery/nav/teacherslines_on.gif";
	
	lines7on = new Image();
	lines7on.src = "/gallery/nav/moreinfolines_on.gif";
	
	lines8on = new Image();
	lines8on.src = "/gallery/subnav/aboutlines2_on.gif";
	
	lines9on = new Image();
	lines9on.src = "/gallery/subnav/behindsceneslines2_on.gif";
	
	lines10on = new Image();
	lines10on.src = "/gallery/subnav/nowshowinglines2_on.gif";
	
	lines11on = new Image();
	lines11on.src = "/gallery/subnav/inspiringfactslines2_on.gif";
	
	lines12on = new Image();
	lines12on.src = "/gallery/subnav/multimedialines2_on.gif";
	
	lines13on = new Image();
	lines13on.src = "/gallery/subnav/teacherslines2_on.gif";
	
	lines14on = new Image();
	lines14on.src = "/gallery/subnav/moreinfolines2_on.gif";
	
	lines15on = new Image();
	lines15on.src = "/gallery/subnav/homelines2_on.gif";
	
	
	pictureoff = new Image();
	pictureoff.src = "/gallery/nav/aboutpicture_off.gif";

	picture1on = new Image();
	picture1on.src = "/gallery/nav/aboutpicture_on.gif";
	
	picture2on = new Image();
	picture2on.src = "/gallery/nav/behindscenespicture_on.gif";
	
	picture3on = new Image();
	picture3on.src = "/gallery/nav/nowshowingpicture_on.gif";
	
	picture4on = new Image();
	picture4on.src = "/gallery/nav/inspiringfactspicture_on.gif";
	
	picture5on = new Image();
	picture5on.src = "/gallery/nav/multimediapicture_on.gif";
	
	picture6on = new Image();
	picture6on.src = "/gallery/nav/teacherspicture_on.gif";
	
	picture7on = new Image();
	picture7on.src = "/gallery/nav/moreinfopicture_on.gif";
	
	picture8on = new Image();
	picture8on.src = "/gallery/subnav/aboutpicture2_on.gif";
	
	picture9on = new Image();
	picture9on.src = "/gallery/subnav/behindscenespicture2_on.gif";
	
	picture10on = new Image();
	picture10on.src = "/gallery/subnav/nowshowingpicture2_on.gif";
	
	picture11on = new Image();
	picture11on.src = "/gallery/subnav/inspiringfactspicture2_on.gif";
	
	picture12on = new Image();
	picture12on.src = "/gallery/subnav/multimediapicture2_on.gif";
	
	picture13on = new Image();
	picture13on.src = "/gallery/subnav/teacherspicture2_on.gif";
	
	picture14on = new Image();
	picture14on.src = "/gallery/subnav/moreinfopicture2_on.gif";
	
	picture15on = new Image();
	picture15on.src = "/gallery/subnav/homepicture2_on.gif";
	
}

function Glow(num) {
	if (document.images) {
	document["lines"].src = eval("lines" + num + "on.src");
	document["picture"].src = eval("picture" + num + "on.src");
	}
}

function DeGlow(num) {
	if (document.images) {
		if (num == 0) {
			document["lines"].src = linesoff.src;
			document["picture"].src = pictureoff.src;
		}
		
		else {
			document["lines"].src = eval("lines" + num + "on.src");
			document["picture"].src = eval("picture" + num + "on.src");
		}
	}
}
/////////////////////////////////////////////////////


//sub nav rollovers
var gUseImgSwapping = false;
	if (document.images) gUseImgSwapping = true;

	var gWhichSelected="";
	var gWhichOver="";

	if (gUseImgSwapping){

		var mainNavNames = new Array('aboutbody','aboutpartners','aboutprodcompany','background','bios','clip1','clip2','commentfromdir','composer','credits','teacherletter','desktop','dirphoto','dirproducer','dirspecialistphoto','resourceguide','execproducer','featurearticles','filmclips','graphics','heathersjourney','humanbody','images-nav','imagingtechniques','lessonplans','logotreatments','makingclip1','makingclip2','narrator','newsrelease','onlocation','overview','photos','press','proddesign','q&a','quickfacts','screensaver','technologystore','writeproducer');
		var mainNavPath = "/gallery/subnav/"
		var mainNavExtension = ".gif";
		var allMyImages = new Array(mainNavNames.length);
		var curName = "";
		
		for (var i=0; i<mainNavNames.length; i++){
			curName = mainNavNames[i];
			allMyImages[curName] = new Array("off","on");
			allMyImages[curName]["off"] = new Image();
			allMyImages[curName]["off"].src = mainNavPath + curName + "_off" + mainNavExtension;	
			allMyImages[curName]["on"] = new Image();
			allMyImages[curName]["on"].src = mainNavPath + curName + "_on" + mainNavExtension;	
		}
	}

	function subGlow(whichImage){
		if (gUseImgSwapping && (whichImage != gWhichOver)){
			document.images[whichImage].src = allMyImages[whichImage]["on"].src;
			gWhichOver = whichImage;
		}
	}

	function subDeGlow(){
		if (gUseImgSwapping && (gWhichOver != "")){
			document.images[gWhichOver].src = allMyImages[gWhichOver]["off"].src;
			gWhichOver = "";
		}
	}

function popWin(winLoc, winName, winWidth, winHeight) {
	if (navigator.appVersion.indexOf("Mac") != -1) {
		winWidth += 2;
		winHeight += 2;
	}
	var winParams = 'width=' + winWidth + ',height=' + winHeight + ',scrollbars=no';
	
	// center new window on v4 and up browsers
	if (document.all || document.layers) {
		winLeft = (screen.width - winWidth) / 2;
		winTop = (screen.height - winHeight) / 2;
	}
	if (document.all) {
		winParams += ",top=" + winTop + ",left=" + winLeft;
	} else if (document.layers) {
		winParams += ",screenX=" + winLeft + ",screenY=" + winTop;
	}
	
	// Open the new window and focus it
		newWin = window.open(winLoc, winName, winParams);
		newWin.focus();
}
