<!--
//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";
	
	lines16on = new Image();
	lines16on.src = "gallery/nav/landinglines_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";
	
	picture16on = new Image();
	picture16on.src = "gallery/nav/landingpicture_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','sitesurvey');
		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();
}

function nowshowing(URL){
aWindow=window.open(URL,"nowshowing","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=300");
}	

var today=new Date();
var expires=new Date();
expires.setTime(today.getTime() + 60*60*24*365*1000);

function setCookie(name, value) 
{
        document.cookie=name + "=" + value + "; expires=" + expires.toGMTString() +";";
}



function getCookie(Name) 
{ 
        var search = Name + "=";
        if (document.cookie.length>0) 
        {
                offset=document.cookie.indexOf(search);
                if (offset!=-1) 
                {
                        offset+=search.length;
                        end=document.cookie.indexOf(";",offset);   
                        if (end==-1) 
                        {
                                end=document.cookie.length;
                        } 
                        return unescape(document.cookie.substring(offset,end));
                } 
                else 
                {
                        return null;
                } 
        } 
        else 
        {
                return null;
        }
}

// This function checks the user's HBPopup cookie.  If it doesn't
// Exist, this is the user's first visit to the page so set the cookie
// with an initial value of "2".  If the cookie does exists,
// call a popup window if the value is "0".  Otherwise decrement the
// value of the cookie.  This causes the popup window to appear
// every 3rd visit to the page.
function checkStatus()
{
        var value = -2;

        // Check to see if the cookie exists.  if not, create it
        if (getCookie("HBPopup") == null)
        {
                setCookie("HBPopup", "2");
                return;
        }

        //If we get here, the cookie exists.  Check to see if its time to
        //pop up the survey window, otherwise, decrement the value of the cookie
        //and set it again.
        value  = getCookie("HBPopup");

        // A value of -1 means that the user never needs to see the popup
        // again.
        if (value == -1)
                return;


        if (value == 0)
        {
                setCookie("HBPopup", "2");
                doPopup();
                return;
        }

        value -= 1;
        setCookie("HBPopup", value);


}

function doPopup()
{
        open("surveywindow.html", "Popup", "width=430, height=250, toolbar=no, dependent=yes");
}


function surveyPop(URL) {
	window.open(URL, "WhatYouThink", "width=500,height=448,status=0,toolbar=0,menubar=0,location=0,scrollbars=0,resizable=0");
}

//-->
