// for showing and hiding hidden layers function show(object) { if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.visibility='visible'; else if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'visible'; else if (document.all) document.all[object].style.visibility = 'visible'; } function hide(object) { if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.visibility='hidden'; else if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden'; else if (document.all) document.all[object].style.visibility = 'hidden'; } // rollover for all Level 1 Internal Site // One JS file means that it will be cached for all of the site // // Timeoout Used to stop annoying Netscape flicker var timeout_siteInternalId; function preload_siteSfeat_Internal() { } function preload_siteFilm_Internal() { } // Preload internal rollovers + descriptions function preload_siteInternal() { if(document.images) { var ImgArray = new Array(); for (var i = 0; i < 60; i++) { ImgArray[i] = new Image(); } ImgArray[0].src = "../subimages/arrow_next_over.gif"; ImgArray[1].src = "../subimages/arrow_prev_over.gif"; ImgArray[1].src = "../subimages/arrow_next_over.gif"; ImgArray[2].src = "../subimages/arrow_prev_over.gif"; ImgArray[3].src = "../subimages/nav_40acres_over.jpg"; ImgArray[4].src = "../subimages/nav_activism_over.jpg"; ImgArray[5].src = "../subimages/nav_carpetbagger_over.jpg"; ImgArray[6].src = "../subimages/nav_faith_over.jpg"; ImgArray[7].src = "../subimages/nav_kkk_over.jpg"; ImgArray[8].src = "../subimages/nav_nast_over.jpg"; ImgArray[9].src = "../subimages/nav_plantation_over.jpg"; ImgArray[10].src = "../subimages/nav_program_over.jpg"; ImgArray[11].src = "../subimages/nav_schools_over.jpg"; ImgArray[12].src = "../subimages/nav_sharecrop_over.jpg"; ImgArray[13].src = "../subimages/nav_states_over.jpg"; ImgArray[14].src = "../subimages/nav_tguide_over.jpg"; ImgArray[15].src = "../subimages/pop_video_quicktime_over.gif"; ImgArray[16].src = "../subimages/pop_video_read_over.gif"; ImgArray[17].src = "../subimages/pop_video_real_over.gif"; ImgArray[18].src = "../subimages/rollover_shadow_on.jpg"; ImgArray[19].src = "../subimages/nav_40acres.jpg"; ImgArray[20].src = "../subimages/nav_activism.jpg"; ImgArray[21].src = "../subimages/nav_bottom.jpg"; ImgArray[22].src = "../subimages/nav_carpetbagger.jpg"; ImgArray[23].src = "../subimages/nav_faith.jpg"; ImgArray[24].src = "../subimages/nav_kkk.jpg"; ImgArray[25].src = "../subimages/nav_nast.jpg"; ImgArray[26].src = "../subimages/nav_plantation.jpg"; ImgArray[27].src = "../subimages/nav_program.jpg"; ImgArray[28].src = "../subimages/nav_schools.jpg"; ImgArray[29].src = "../subimages/nav_sharecrop.jpg"; ImgArray[30].src = "../subimages/nav_space_01.jpg"; ImgArray[31].src = "../subimages/nav_space_02.jpg"; ImgArray[32].src = "../subimages/nav_states.jpg"; ImgArray[33].src = "../subimages/nav_tguide.jpg"; ImgArray[34].src = "../subimages/top_40acres.jpg"; ImgArray[35].src = "../subimages/top_activism.jpg"; ImgArray[36].src = "../subimages/top_carpetbagger.jpg"; ImgArray[37].src = "../subimages/top_faith.jpg"; ImgArray[38].src = "../subimages/top_home.jpg"; ImgArray[39].src = "../subimages/top_kkk.jpg"; ImgArray[40].src = "../subimages/top_nast.jpg"; ImgArray[41].src = "../subimages/top_off.jpg"; ImgArray[42].src = "../subimages/top_plantation.jpg"; ImgArray[43].src = "../subimages/top_program.jpg"; ImgArray[44].src = "../subimages/top_schools.jpg"; ImgArray[45].src = "../subimages/top_series.jpg"; ImgArray[46].src = "../subimages/top_sharecrop.jpg"; ImgArray[47].src = "../subimages/top_states.jpg"; ImgArray[48].src = "../subimages/top_tguide.jpg"; } } // On MOUSEOUT this function resets the nav bar to "thissecttion" and the // rollover info box to default (no text) // It is called from the off function with time out to avoid annoying flicker function reset_NavandRollText(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_over.jpg'; //#spec_img_type_nav_main# imgTurl = '../subimages/top_off.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow.jpg'; obj.src = imgRurl; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } function reset_NavXandRollText(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_over.gif'; //#spec_img_type_nav_main# imgTurl = '../subimages/top_off.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow.jpg'; obj.src = imgRurl; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } // On MOUSEOUT this function resets the nav bar to "thissecttion" and the // rollover info box to default (no text) // It is called from the off function with time out to avoid annoying flicker // nb// this doesn't change rollover info function reset_Nav(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_over.jpg'; obj.src = imgRurl; } } function reset_NavX(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_over.gif'; obj.src = imgRurl; } } // sections with sub_nav function reset_sub_NavandRollText(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_on.jpg'; //#spec_img_type_nav_sub# imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; obj.src = imgRurl; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } function reset_sub_NavXandRollText(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_on.gif'; //#spec_img_type_nav_sub# imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; obj.src = imgRurl; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } // sections with sub_nav function reset_sub_Nav(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_on.jpg'; obj.src = imgRurl; } } function reset_sub_NavX(thissection) { var imgTurl, obj, objStr, imgRurl; if(document.images) { objStr = 'document.m_' + thissection; obj = eval(objStr); imgRurl = '../subimages/nav_' + thissection + '_on.gif'; obj.src = imgRurl; } } // On MOUSEOUT this function resets the nav bar to "thissecttion" and the // rollover info box to default (no text) // It is called from the off function with time out to avoid annoying flicker // nb// this ONLY rollover info function top_RollText(imgName){ if(document.images){ clearTimeout(timeout_siteInternalId); imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } function reset_RollText() { var imgTurl; if(document.images) { imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } // Functions for onmouseover and mouseout.. // thisNav is there in case more rollovers are added to a page, that have different funtionality // imgName == current rollover, thissection == section that user is in function on_inav(thisNav, imgName, thissection) { var objStr,obj, sec_objStr, sec_obj, imgRurl, sec_imgRurl, imgTurl; if(document.images) { if (thisNav == 'm') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '.jpg'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'mx') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '.gif'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'sm') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '.jpg'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'smx') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.gif'; sec_imgRurl = '../subimages/nav_' + thissection + '.gif'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'nm') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; obj.src = imgRurl; imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'r') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '.jpg'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } } // Functions for mouseout.. // thisNav is there in case more rollovers are added to a page, that have different funtionality // imgName == current rollover, thissection == section that user is in function off_inav(thisNav, imgName, thissection) { var objStr,obj, imgRurl, imgTurl; if(document.images) { if (thisNav == 'm') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_NavandRollText(\"" + thissection + "\")",10); } else if (thisNav == 'mx') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_NavXandRollText(\"" + thissection + "\")",10); } else if (thisNav == 'sm') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_Nav(\"" + thissection + "\")",10); } else if (thisNav == 'smx') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.gif'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_NavX(\"" + thissection + "\")",10); } else if (thisNav == 'nm') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_RollText()",10); } else if (thisNav == 'r') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_roller(\"" + thissection + "\")",10); } } } // Functions for onmouseover and mouseout.. (sections with subnav) // thisNav is there in case more rollovers are added to a page, that have different funtionality // imgName == current rollover, thissection == section that user is in function on_i_sub_nav(thisNav, imgName, thissection) { var objStr,obj, sec_objStr, sec_obj, imgRurl, sec_imgRurl, imgTurl; if(document.images) { if (thisNav == 'm') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '_off.jpg'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'mx') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '_off.gif'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'm_sub') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '_on.gif'; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'm_sub_sec') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_on.gif'; sec_imgRurl = '../subimages/nav_' + thissection + '.gif'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'sm') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; sec_imgRurl = '../subimages/nav_' + thissection + '_off.jpg'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'smx') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); sec_objStr = 'document.m_' + thissection; sec_obj = eval(sec_objStr); imgRurl = '../subimages/nav_' + imgName + '_over.gif'; sec_imgRurl = '../subimages/nav_' + thissection + '_off.gif'; sec_obj.src = sec_imgRurl; obj.src = imgRurl; imgTurl = '../subimages/top_off.jpg'; imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'nm') { clearTimeout(timeout_siteInternalId); objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '_over.jpg'; obj.src = imgRurl; imgTurl = '../subimages/top_' + imgName + '.jpg'; //#spec_img_type_top# imgShadowUrl = '../subimages/rollover_shadow_on.jpg'; document.top_rollover.src=imgTurl; document.top_rollover_shadow.src=imgShadowUrl; } } } // Functions for mouseout.. (sections with subnav) // thisNav is there in case more rollovers are added to a page, that have different funtionality // imgName == current rollover, thissection == section that user is in function off_i_sub_nav(thisNav, imgName, thissection) { var objStr,obj, imgRurl, imgTurl; if(document.images) { if (thisNav == 'm') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_sub_NavandRollText(\"" + thissection + "\")",10); } else if (thisNav == 'mx') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_sub_NavXandRollText(\"" + thissection + "\")",10); } else if (thisNav == 'm_sub') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '_off.gif'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_NavandRollText(\"" + thissection + "\")",10); } else if (thisNav == 'sm') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_sub_Nav(\"" + thissection + "\")",10); } else if (thisNav == 'smx') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.gif'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_sub_NavX(\"" + thissection + "\")",10); } else if (thisNav == 'nm') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '.jpg'; obj.src = imgRurl; timeout_siteInternalId = setTimeout("reset_RollText()",10); } } } function swap(srcName, imgName) { var objStr,obj, imgRurl, imgTurl; if(document.images) { objStr = 'document.' + srcName; obj = eval(objStr); imgTurl = imgName; obj.src=imgTurl; } }