function getProps(obj, objName) { // initialize output string var result = "" for (var i in obj) { result += objName + "." + i + " = " + obj[i] + "
" } // add horizontal rule to output string result += "
" return(result) } function show_layers(strLayers) { if (is_ie) {return} var aryLayers = strLayers.split(",") var intLayerCount = aryLayers.length var obj var v = "show" for (i = 0; i < intLayerCount; i++) { if ((obj = MM_findObj(aryLayers[i])) != null) { if (obj.style) { obj = obj.style; v = (v == 'show')?'visible':(v='hide')?'hidden':v; } obj.visibility = v } } } function ShowLayers(strLayers) { if (is_ie) {return} var aryLayers = strLayers.split(",") var intLayerCount = aryLayers.length var obj var v = "show" for (i = 0; i < intLayerCount; i++) { if ((obj = MM_findObj(aryLayers[i])) != null) { if (obj.style) { obj = obj.style; v = (v == 'show')?'visible':(v='hide')?'hidden':v; } obj.visibility = v } } } function hide_layers(strLayers) { if (is_ie) {return} var aryLayers = strLayers.split(",") var intLayerCount = aryLayers.length var obj var v = "hide" for (i = 0; i < intLayerCount; i++) { if ((obj = MM_findObj(aryLayers[i])) != null) { if (obj.style) { obj = obj.style; v = (v == 'show')?'visible':(v='hide')?'hidden':v; } obj.visibility = v } } } function HideLayers(strLayers) { if (is_ie) {return} var aryLayers = strLayers.split(",") var intLayerCount = aryLayers.length var obj var v = "hide" for (i = 0; i < intLayerCount; i++) { if ((obj = MM_findObj(aryLayers[i])) != null) { if (obj.style) { obj = obj.style; v = (v == 'show')?'visible':(v='hide')?'hidden':v; } obj.visibility = v } } } function MM_reloadPage(init) //added by Mark Collins (10/29/01) //reloads the window if Nav4 resized { if (init == true) with (navigator) { if ((appName == "Netscape") && (parseInt(appVersion) == 4)) { document.MM_pgW = innerWidth; document.MM_pgH = innerHeight; onresize = MM_reloadPage; } } else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) { location.reload(); } } MM_reloadPage(true); // Documented by Bob Martinka (08/07/01): function MM_preloadImages() // (v3.0) // { var d = document // current document; used to basically shorten the nomenclature if (d.images) // if any images exist in the current document, then { if (!d.MM_p) // ... 1) if the MM_p array does not yet exist, then { d.MM_p = new Array() // ... create it as an object in the current document } // 2) declare variables: var i // - loop counter var j = d.MM_p.length // - number of preloaded images in the MM_p array var a = MM_preloadImages.arguments // - list of incoming arguments from calling routine for (i = 0; i < a.length; i++) // 3) loop thru array of arguments, executing once for each argument { if (a[i].indexOf("#") != 0) // if the argument has the character "#" in its string, then { d.MM_p[j] = new Image // ... a) create new image idx position in preloaded images array d.MM_p[j++].src=a[i] // b) save the argument into that newly created image index } } } } function MM_swapImgRestore() // (v3.0) // Restores the image(s) swapped in earlier call to MM_swapImge function { var i // loop counter var x // variable to save off ? var a = document.MM_sr // array of images; created in MM_swapImage() function for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) // loop thru the array of images as long as an array { // of imgs exists and an orig img exists x.src = x.oSrc // ... restore the img source to the original img } } function MM_swapImage() // (v3.0) // Swaps the existing named original image(s) on the document for new image(s) { var i // loop counter var j = 0 // index for arguments/parameters array (initialized to 0) var x // reference to specific object in doc var a = MM_swapImage.arguments // list of incoming arguments/parms from calling routine, generally: // ... 1) name of object to be swapped out // 2) initially empty (null); to hold object reference to orig img // 3) specific location and name of new image // 4) generally unused (?) document.MM_sr = new Array // create an empty array as an object in current doc for (i = 0; i < (a.length - 2); i += 3) // loop thru array, executing once for every 4th(?) parm passed in, { // which seems to allow for multiple image swap at one time if ((x = MM_findObj(a[i])) != null) // capture specific object reference (1st arg) and if it has a value, then { document.MM_sr[j++] = x // ... 1) set 2nd parm of array list = to object ref of current img if (!x.oSrc) // 2) if original image has not yet been saved off, then { x.oSrc = x.src // ... set it = to current source file } x.src = a[i + 2] // 3) set img source = to the 3rd parm (new img) } } } function MM_findObj(n, d) // (v4.01) // Finds the specific object on the page based upon the parameters passed in: // name of the object (n), and the owning document (d; not always passed in) { var p // simply used as a temporary value holder var i // loop counter var x // to save off object attribute information if (!d) // if no 2nd parameter (doc) passed in (d) from calling routine, then { d = document // ... save reference to current doc } if ((p = n.indexOf("?")) > 0 && parent.frames.length) // if object passed in (n) has a "?" in it, and at least { // one frame used in the parent window, then d = parent.frames[n.substring(p + 1)].document // ... 1) save reference to specific frame passed in (n) n = n.substring(0, p) // 2) save off 1st parameter up until the "?" character } if (!(x = d[n]) && d.all) // if object passed in (n) not a doc and there is a doc, then { x = d.all[n] // ... save reference to the specific object owned by current doc } // if object passed (n) in is not a doc or a frame (i.e., !x), then for (i = 0; !x && i < d.forms.length; i++) // ... loop thru all forms on current doc until one is found { // with same name as 1st parameter passed in (n), and then x = d.forms[i][n] // ... save reference to specific form object } // if object passed in (n) is not a doc, frame, or form (i.e., !x), then for (i = 0; !x && d.layers && i < d.layers.length; i++) // ... loop thru all layers on current doc until { // one is found w/ same name as (n) x = MM_findObj(n,d.layers[i].document) // ... save reference to this object on newly identified } // doc object via recursive call to this function if (!x && d.getElementById) // if object passed in (n) is not a doc, frame, form, or, and this { // browser supports the getElementByID method at the doc level, then x = d.getElementById(n) // ... save reference to the element id for the object passed in (n) } return x // return newly saved reference to calling routine }