var UA_TOP_LOGO_SWITCHED = 0; var UA_DIVTEXT_SWITCHED = 0; function stopEventPropOnParent_NN6() { // NN6 : Check to see if the TextObject has already gotten the event if ( bw.ns6 ) { var ret_val = true; // Yup : reset our flag to throw it out. if ( UA_TOP_LOGO_SWITCHED == 1 ) { UA_TOP_LOGO_SWITCHED = 0; ret_val = false; } if ( UA_DIVTEXT_SWITCHED == 1 ) { UA_DIVTEXT_SWITCHED = 0; ret_val = false; } return ret_val; } } /* * hide the div (a. strauss 08.19.02) */ function ua_hideDIV(divIDstr) { var hide_div = ua_getObj( divIDstr ); if ( hide_div ) { if ( hide_div.style.visibility == "visible" ) { hide_div.style.visibility = "hidden"; } } } /* * hide the div (a. strauss 08.19.02) */ function ua_showDIV(divShowIDstr, arrayDivHideIDstr) { var show_div = ua_getObj( divShowIDstr ); // check to see if it already visible.. if ( show_div.style.visibility == "visible" ) { return }; /* * if we are in netscape 6.X, we need to stop the event propagation * otherwise we get lots of flashing of underlying divs shifting zIndices */ if ( bw.ns6 ) { // UA_DIVTEXT_SWITCHED = 1; } // hide them all var hide_div; for ( var i = 0; i < arrayDivHideIDstr.length; i++ ) { hide_div = ua_getObj(arrayDivHideIDstr[i]); if ( hide_div ) hide_div.style.visibility = "hidden"; } // show the selected image div show_div.style.visibility = "visible"; } function ua_switchTopLogo(divTopIDstr, arrayDivBottomIDstr ) { var BOTTOM_INDEX_START = 3500; var BOTTOM_INDEX_INC = 10; var TOP_INDEX = 3590; /* * if we are in netscape 6.X, we need to stop the event propagation * otherwise we get lots of flashing of underlying divs shifting zIndices */ if ( bw.ns6 ) { return; // UA_TOP_LOGO_SWITCHED = 1; } var top_div = ua_getObj( divTopIDstr ); //slide them all to the bottom var tmp_div; var tmp_zindex = BOTTOM_INDEX_START; for ( var i = 0; i < arrayDivBottomIDstr.length; i++ ) { tmp_div = ua_getObj(arrayDivBottomIDstr[i]); tmp_zindex = tmp_zindex + BOTTOM_INDEX_INC; if ( tmp_div ) { tmp_div.style.zIndex = tmp_zindex; } } // show the selected image div if ( top_div ) top_div.style.zIndex = TOP_INDEX; /* if ( bw.ns6 ) { // ie: // window.event.cancelBubble = true; // ns6 : none of these are fixing the flashing // top_div.captureEvents; // top_div.stopPropagation(); // basically the document is getting the event and passing it up -- looks like the // bottom div gets it, then the one on top of that then the next one. // need a better reference on NS6 events... audrey 08.27.02 } */ } //-->
(Please note that the mediatruck v1.0 study was designed and developed in-house @ mediatruck by Ms. Strauss.)
[ Slide you mouse over the logos to view each study ]