self.name = "main"; // 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; // Preload internal rollovers + descriptions function preload_siteInternal() { if(document.images) { var ImgArray = new Array(); for (var i = 0; i < 38; i++) { ImgArray[i] = new Image(); } ImgArray[0].src = "../subimages/top_off.gif"; ImgArray[1].src = "../subimages/top_home.gif"; ImgArray[2].src = "../subimages/top_filmmore.gif"; ImgArray[3].src = "../subimages/top_whomade.gif"; ImgArray[4].src = "../subimages/top_tournament.gif"; ImgArray[5].src = "../subimages/top_discussion.gif"; ImgArray[6].src = "../subimages/top_tguide.gif"; ImgArray[7].src = "../subimages/nav_filmmore.jpg"; ImgArray[8].src = "../subimages/nav_filmmore_over.jpg"; ImgArray[9].src = "../subimages/nav_filmmore_off.gif"; ImgArray[10].src = "../subimages/nav_filmmore_on.gif"; ImgArray[11].src = "../subimages/nav_filmmore_s1.gif"; ImgArray[12].src = "../subimages/nav_filmmore_s1_over.gif"; ImgArray[13].src = "../subimages/nav_filmmore_s2.gif"; ImgArray[14].src = "../subimages/nav_filmmore_s2_over.gif"; ImgArray[15].src = "../subimages/nav_filmmore_s3.gif"; ImgArray[16].src = "../subimages/nav_filmmore_s3_over.gif"; ImgArray[17].src = "../subimages/nav_filmmore_s4.gif"; ImgArray[18].src = "../subimages/nav_filmmore_s4_over.gif"; ImgArray[19].src = "../subimages/nav_filmmore_bts.gif"; ImgArray[20].src = "../subimages/nav_filmmore_bts_over.gif"; ImgArray[21].src = "../subimages/nav_filmmore_ab.gif"; ImgArray[22].src = "../subimages/nav_filmmore_ab_over.gif"; ImgArray[23].src = "../subimages/nav_filmmore_ps.gif"; ImgArray[24].src = "../subimages/nav_filmmore_ps_over.gif"; ImgArray[25].src = "../subimages/nav_filmmore_fr.gif"; ImgArray[26].src = "../subimages/nav_filmmore_fr_over.gif"; ImgArray[27].src = "../subimages/nav_whomade.jpg"; ImgArray[28].src = "../subimages/nav_whomade_over.jpg"; ImgArray[29].src = "../subimages/nav_tournament.jpg"; ImgArray[30].src = "../subimages/nav_tournament_over.jpg"; ImgArray[31].src = "../subimages/nav_discussion.jpg"; ImgArray[32].src = "../subimages/nav_discussion_over.jpg"; ImgArray[33].src = "../subimages/nav_tguide.jpg"; ImgArray[34].src = "../subimages/nav_tguide_over.jpg"; ImgArray[35].src = "../subimages/arrow_next_over.gif"; ImgArray[36].src = "../subimages/arrow_prev_over.gif"; ImgArray[37].src = "../subimages/rollover_shadow.gif"; } } // 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.gif'; //#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.gif'; //#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" // 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.gif'; // 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.gif'; // 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 + '.gif'; //#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.gif'; // 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 + '.gif'; //#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 + '.gif'; //#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.gif'; // 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.gif'; // imgShadowUrl = '../subimages/rollover_shadow.jpg'; document.top_rollover.src=imgTurl; // document.top_rollover_shadow.src=imgShadowUrl; } else if (thisNav == 'smx_head') { 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.gif'; // 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 + '.gif'; //#spec_img_type_top# // 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.gif'; // 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 == 'smx_head') { 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); } 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 + '.gif'; //#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 + '.gif'; //#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 + '.gif'; //#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 + '.gif'; //#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.gif'; // 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.gif'; // 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 + '.gif'; //#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_NavXandRollText(\"" + thissection + "\")",10); } else if (thisNav == 'm_sub_head') { objStr = 'document.m_' + imgName; obj = eval(objStr); imgRurl = '../subimages/nav_' + imgName + '_off.gif'; 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_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; } } function whomade_pop(filename) { if(navigator.userAgent.indexOf('MSIE') != -1 && navigator.userAgent.indexOf('Mac') != -1) { whomade = window.open(filename, "whomade",'toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=0,width=725,height=550'); } else { whomade = window.open(filename, "whomade",'toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=0,width=741,height=550'); } whomade.focus(); }