function preloadImages(relRoot) { if (imgHoverStorytellers) { imgHoverStorytellers.src = relRoot + "images/nav_storytellers_on.gif"; } if (imgStorytellers) { imgStorytellers.src = relRoot + "images/nav_storytellers_off.gif"; } if (imgHoverVoices) { imgHoverVoices.src = relRoot + "images/nav_voices_on.gif"; } if (imgVoices) { imgVoices.src = relRoot + "images/nav_voices_off.gif"; } if (imgHoverWearehere) { imgHoverWearehere.src = relRoot + "images/nav_wearehere_on.gif"; } if (imgWearehere) { imgWearehere.src = relRoot + "images/nav_wearehere_off.gif"; } if (imgHoverCommunity) { imgHoverCommunity.src = relRoot + "images/nav_community_on.gif"; } if (imgCommunity) { imgCommunity.src = relRoot + "images/nav_community_off.gif"; } if (imgHoverEducators) { imgHoverEducators.src = relRoot + "images/nav_educators_on.gif"; } if (imgEducators) { imgEducators.src = relRoot + "images/nav_educators_off.gif"; } } function preloadImagesStoryteller(relRoot) { if (imgHoverCorbin) { imgHoverCorbin.src = relRoot + "images/subnav_story_corbin_on.gif"; } if (imgCorbin) { imgCorbin.src = relRoot + "images/subnav_story_corbin_off.gif"; } if (imgHoverHoskie) { imgHoverHoskie.src = relRoot + "images/subnav_story_hoskie_on.gif"; } if (imgHoskie) { imgHoskie.src = relRoot + "images/subnav_story_hoskie_off.gif"; } if (imgHoverRosella) { imgHoverRosella.src = relRoot + "images/subnav_story_rosella_on.gif"; } if (imgRosella) { imgRosella.src = relRoot + "images/subnav_story_rosella_off.gif"; } if (imgHoverTchin) { imgHoverTchin.src = relRoot + "images/subnav_story_tchin_on.gif"; } if (imgTchin) { imgTchin.src = relRoot + "images/subnav_story_tchin_off.gif"; } } function swapImage(strElement, objImage) { // check if the objects exists to prevent errors if (document.images && objImage && objImage.src && objImage.src != "") { if (document.images[strElement]) { document.images[strElement].src = objImage.src } } } function popPlacenames(path) { placeWindow = window.open(path,'placePopup','width=740,height=510,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); } function popContent(path) { popWindow = window.open(path,'contentPopup','width=620,height=400,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1'); } function popLesson(path) { popWindow = window.open(path,'lessonPopup','width=580,height=340,toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1'); } function popStories(path) { popWindow = window.open(path,'storyPopup','width=740,height=510,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); } function popMap(path) { popWindow = window.open(path,'mapPopup','width=535,height=456,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); } function popPlayer(filename, fullname, firstname, subject) { playerWindow = window.open('../player.html?file=' + filename + '&fullname=' + fullname + '&firstName=' + firstname + '&subject=' + subject,'audioPopup','width=360,height=130,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); } function popVidHigh(filename, fullname, firstname, subject) { playerWindow = window.open('../vidplayer_hi.html?file=' + filename + '&fullname=' + fullname + '&firstName=' + firstname + '&subject=' + subject,'audioPopup','width=360,height=340,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); } function popVidLow(filename, fullname, firstname, subject) { playerWindow = window.open('../vidplayer_low.html?file=' + filename + '&fullname=' + fullname + '&firstName=' + firstname + '&subject=' + subject,'audioPopup','width=230,height=230,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); }