﻿var arVersion = navigator.appVersion.split("MSIE"); var version = parseFloat(arVersion[1]); if ((version >= 5.5) && (document.body.filters)) { for (var i = 0; i < document.images.length; i++) { var img = document.images[i]; var imgName = img.src.toUpperCase(); if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : ""; var imgClass = (img.className) ? "class='" + img.className + "' " : ""; var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "; var imgStyle = "display:inline-block;" + img.style.cssText; if (img.align == "left") { imgStyle = "float:left;" + imgStyle } if (img.align == "right") { imgStyle = "float:right;" + imgStyle } if (img.parentElement.href) { imgStyle = "cursor:hand;" + imgStyle } var strNewHTML = "<span " + imgID + imgClass + imgTitle + ' style="width:' + img.width + "px; height:" + img.height + "px;" + imgStyle + ";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src + "', sizingMethod='scale');\"></span>"; img.outerHTML = strNewHTML; i = i - 1 } } } function evakd(h, e, d) { var c = new Date; var f = c.getTime(); evastr0000 += "&evisitanalyst000000000000001872469128461928634tc=" + f; var b = a("evap" + ID_uid_15243615); var g = a("evas" + ID_uid_15243615); evaImage = new Image(); evaImage.src = "http://collect.evisitanalyst.com/eVisit.gif?&evisitanalyst000000000000001872469128461928634userid=" + h + "&evisitanalyst000000000000001872469128461928634tt=k&evisitanalyst000000000000001872469128461928634pcookie=" + b + "&evisitanalyst000000000000001872469128461928634scookie=" + g + "&evisitanalyst000000000000001872469128461928634ctid=" + d + "&evisitanalyst000000000000001872469128461928634ctval=1&evisitanalyst000000000000001872469128461928634tc=" + f + ";"; if (e > 0) { evaImage2 = new Image(); evaImage2.src = "http://collect.evisitanalyst.com/eVisit.gif?&evisitanalyst000000000000001872469128461928634userid=" + e + "&evisitanalyst000000000000001872469128461928634tt=k&evisitanalyst000000000000001872469128461928634pcookie=" + b + "&evisitanalyst000000000000001872469128461928634scookie=" + g + "&evisitanalyst000000000000001872469128461928634ctid=" + d + "&evisitanalyst000000000000001872469128461928634ctval=1&evisitanalyst000000000000001872469128461928634tc=" + f + ";" } function a(l) { var k = document.cookie; var n = l + "="; var m = k.indexOf("; " + n); if (m == -1) { m = k.indexOf(n); if (m != 0) { return null } } else { m += 2 } var j = document.cookie.indexOf(";", m); if (j == -1) { j = k.length } return unescape(k.substring(m + n.length, j)) } } function MM_popupMsg(a) { alert(a) } function MM_openBrWindow(c, a, b) { window.open(c, a, b) } function goHist(b) { history.go(b) } function MM_reloadPage(init) { 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); function MM_preloadImages() { var f = document; if (f.images) { if (!f.MM_p) { f.MM_p = new Array() } var e, c = f.MM_p.length, b = MM_preloadImages.arguments; for (e = 0; e < b.length; e++) { if (b[e].indexOf("#") != 0) { f.MM_p[c] = new Image; f.MM_p[c++].src = b[e] } } } } function MM_swapImgRestore() { var d, b, c = document.MM_sr; for (d = 0; c && d < c.length && (b = c[d]) && b.oSrc; d++) { b.src = b.oSrc } } function MM_findObj(f, e) { var c, b, a; if (!e) { e = document } if ((c = f.indexOf("?")) > 0 && parent.frames.length) { e = parent.frames[f.substring(c + 1)].document; f = f.substring(0, c) } if (!(a = e[f]) && e.all) { a = e.all[f] } for (b = 0; !a && b < e.forms.length; b++) { a = e.forms[b][f] } for (b = 0; !a && e.layers && b < e.layers.length; b++) { a = MM_findObj(f, e.layers[b].document) } if (!a && e.getElementById) { a = e.getElementById(f) } return a } function MM_swapImage() { var e, d = 0, b, c = MM_swapImage.arguments; document.MM_sr = new Array; for (e = 0; e < (c.length - 2); e += 3) { if ((b = MM_findObj(c[e])) != null) { document.MM_sr[d++] = b; if (!b.oSrc) { b.oSrc = b.src } b.src = c[e + 2] } } } function StopPropagation(a) { if (!a) { a = window.event } a.cancelBubble = true } function togglePanel(e, f, b, a) { var c = document.getElementById(f); var d = document.getElementById(e); if (d.style.display == "none") { d.style.display = "block"; c.className = b } else { d.style.display = "none"; c.className = a } } AC_FL_RunContent = 0; DetectFlashVer = 0; var requiredMajorVersion = 7; var requiredMinorVersion = 0; var requiredRevision = 14; function RadEditor_OnClientLoad(a) { a.get_contentArea().className = "RadEditorIframe" } var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function ControlVersion() { var a; var b; var c; try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); a = b.GetVariable("$version") } catch (c) { } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); a = "WIN 6,0,21,0"; b.AllowScriptAccess = "always"; a = b.GetVariable("$version") } catch (c) { } } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); a = b.GetVariable("$version") } catch (c) { } } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); a = "WIN 3,0,18,0" } catch (c) { } } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); a = "WIN 2,0,0,11" } catch (c) { a = -1 } } return a } function GetSwfVer() { var g = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var f = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var a = navigator.plugins["Shockwave Flash" + f].description; var e = a.split(" "); var c = e[2].split("."); var h = c[0]; var b = c[1]; var d = e[3]; if (d == "") { d = e[4] } if (d[0] == "d") { d = d.substring(1) } else { if (d[0] == "r") { d = d.substring(1); if (d.indexOf("d") > 0) { d = d.substring(0, d.indexOf("d")) } } } var g = h + "." + b + "." + d } } else { if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) { g = 4 } else { if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) { g = 3 } else { if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) { g = 2 } else { if (isIE && isWin && !isOpera) { g = ControlVersion() } } } } } return g } function DetectFlashVer(f, d, c) { versionStr = GetSwfVer(); if (versionStr == -1) { return false } else { if (versionStr != 0) { if (isIE && isWin && !isOpera) { tempArray = versionStr.split(" "); tempString = tempArray[1]; versionArray = tempString.split(",") } else { versionArray = versionStr.split(".") } var e = versionArray[0]; var a = versionArray[1]; var b = versionArray[2]; if (e > parseFloat(f)) { return true } else { if (e == parseFloat(f)) { if (a > parseFloat(d)) { return true } else { if (a == parseFloat(d)) { if (b >= parseFloat(c)) { return true } } } } } return false } } } function AC_AddExtension(b, a) { if (b.indexOf("?") != -1) { return b.replace(/\?/, a + "?") } else { return b + a } } function AC_Generateobj(f, e, a) { var d = ""; if (isIE && isWin && !isOpera) { d += "<object "; for (var b in f) { d += b + '="' + f[b] + '" ' } d += ">"; for (var b in e) { d += '<param name="' + b + '" value="' + e[b] + '" /> ' } d += "</object>" } else { d += "<embed "; for (var b in a) { d += b + '="' + a[b] + '" ' } d += "> </embed>" } if (f.divid) { var c = document.getElementById(f.divid); if (c) { c.innerHTML = d } else { document.write(d) } } else { document.write(d) } } function AC_FL_RunContent() { var a = AC_GetArgs(arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash"); AC_Generateobj(a.objAttrs, a.params, a.embedAttrs) } function AC_SW_RunContent() { var a = AC_GetArgs(arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000", null); AC_Generateobj(a.objAttrs, a.params, a.embedAttrs) } function AC_GetArgs(b, e, g, d, h) { var a = new Object(); a.embedAttrs = new Object(); a.params = new Object(); a.objAttrs = new Object(); for (var c = 0; c < b.length; c = c + 2) { var f = b[c].toLowerCase(); switch (f) { case "classid": break; case "pluginspage": a.embedAttrs[b[c]] = b[c + 1]; break; case "src": case "movie": a.embedAttrs.src = b[c + 1]; a.params[g] = b[c + 1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblclick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": case "id": case "divid": a.objAttrs[b[c]] = b[c + 1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "tabindex": a.embedAttrs[b[c]] = a.objAttrs[b[c]] = b[c + 1]; break; default: a.embedAttrs[b[c]] = a.params[b[c]] = b[c + 1] } } a.objAttrs.classid = d; if (h) { a.embedAttrs.type = h } return a } function embedFlashMovieDV3(b, d, j, c, f, g, a, k) { if (a == "") { a = "#FFFFFF" } if (c == "") { c = "window" } if (AC_FL_RunContent == 0 || DetectFlashVer == 0) { alert("This page requires AC_RunActiveContent.js.") } else { var e = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if (e) { AC_FL_RunContent("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0", "width", b, "height", d, "src", j, "quality", "high", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "align", "middle", "play", "true", "loop", "true", "scale", "showall", "wmode", c, "devicefont", "false", "id", f, "bgcolor", a, "name", g, "menu", "true", "allowScriptAccess", "sameDomain", "allowFullScreen", "false", "movie", j, "salign", "", "divid", k) } else { var h = ""; document.write(h) } } } var includeCaption = 1; var zoomTime = 5; var zoomSteps = 15; var fade = 1; var minBorder = 90; var zoomImageURI = "/images-global/zoom/"; var myWidth = 0, myHeight = 0, myScroll = 0; myScrollWidth = 0; myScrollHeight = 0; var zoomOpen = false, preloadFrame = 1, preloadActive = false, preloadTime = 0, imgPreload = new Image(); var zoomActive = new Array(); var zoomTimer = new Array(); var zoomOrigW = new Array(); var zoomOrigH = new Array(); var zoomOrigX = new Array(); var zoomOrigY = new Array(); var zoomID = "ZoomBox"; var theID = "ZoomImage"; var theCap = "ZoomCaption"; var theCapDiv = "ZoomCapDiv"; function setupZoom() { prepZooms(); insertZoomHTML(); zoomdiv = document.getElementById(zoomID); zoomimg = document.getElementById(theID) } function prepZooms() { if (!document.getElementsByTagName) { return } var b = document.getElementsByTagName("a"); for (i = 0; i < b.length; i++) { if (b[i].getAttribute("href") && (b[i].getAttribute("rel"))) { if (b[i].getAttribute("rel").indexOf("zoom:") == 0) { b[i].onclick = function() { zoomClick(this); return false }; b[i].onmouseover = function() { zoomPreload(this) } } } } } function zoomPreload(c) { var d = c.getAttribute("href"); if (imgPreload.src.indexOf(c.getAttribute("href").substr(c.getAttribute("href").lastIndexOf("/"))) == -1) { preloadActive = true; imgPreload = new Image(); imgPreload.onload = function() { preloadActive = false }; imgPreload.src = d } } function preloadAnimStart() { preloadTime = new Date(); document.getElementById("ZoomSpin").style.left = (myWidth / 2) + "px"; document.getElementById("ZoomSpin").style.top = ((myHeight / 2) + myScroll) + "px"; document.getElementById("ZoomSpin").style.visibility = "visible"; preloadFrame = 1; document.getElementById("SpinImage").src = zoomImageURI + "zoom-spin-" + preloadFrame + ".png"; preloadAnimTimer = setInterval("preloadAnim()", 100) } function preloadAnim(b) { if (preloadActive != false) { document.getElementById("SpinImage").src = zoomImageURI + "zoom-spin-" + preloadFrame + ".png"; preloadFrame++; if (preloadFrame > 12) { preloadFrame = 1 } } else { document.getElementById("ZoomSpin").style.visibility = "hidden"; clearInterval(preloadAnimTimer); zoomIn(preloadFrom) } } function zoomClick(b) { getSize(); if (preloadActive == true) { preloadFrom = b; preloadAnimStart() } else { zoomIn(b) } } function zoomIn(b) { zoomimg.src = b.getAttribute("href"); if (b.childNodes[0].width) { startW = b.childNodes[0].width; startH = b.childNodes[0].height; startPos = findElementPos(b.childNodes[0]) } else { startW = 50; startH = 12; startPos = findElementPos(b) } hostX = startPos[0]; hostY = startPos[1]; if (document.getElementById("scroller")) { hostX = hostX - document.getElementById("scroller").scrollLeft } endW = imgPreload.width; endH = imgPreload.height; if (zoomActive[theID] != true) { document.getElementById("ShadowBox").style.visibility = "hidden"; document.getElementById("ZoomClose").style.visibility = "hidden"; if (includeCaption == 1) { zoomcap = document.getElementById(theCap); zoomcapd = document.getElementById(theCapDiv); if (b.getAttribute("title") && includeCaption == 1) { zoomcapd.style.display = "block"; zoomcap.innerHTML = b.getAttribute("title") } else { zoomcapd.style.display = "none" } } zoomOrigW[theID] = startW; zoomOrigH[theID] = startH; zoomOrigX[theID] = hostX; zoomOrigY[theID] = hostY; zoomimg.style.width = startW + "px"; zoomimg.style.height = startH + "px"; zoomdiv.style.left = hostX + "px"; zoomdiv.style.top = hostY + "px"; if (fade == 1) { setOpacity(0, zoomID) } zoomdiv.style.visibility = "visible"; sizeRatio = endW / endH; if (endW > myWidth - minBorder) { endW = myWidth - minBorder; endH = endW / sizeRatio } if (endH > myHeight - minBorder) { endH = myHeight - minBorder; endW = endH * sizeRatio } zoomChangeX = ((myWidth / 2) - (endW / 2) - hostX); zoomChangeY = (((myHeight / 2) - (endH / 2) - hostY) + myScroll); zoomChangeW = (endW - startW); zoomChangeH = (endH - startH); zoomCurrent = 0; if (fade == 1) { fadeCurrent = 0; fadeAmount = (0 - 100) / zoomSteps } else { fadeAmount = 0 } zoomTimer[theID] = setInterval("zoomElement('" + zoomID + "', '" + theID + "', " + zoomCurrent + ", " + startW + ", " + zoomChangeW + ", " + startH + ", " + zoomChangeH + ", " + hostX + ", " + zoomChangeX + ", " + hostY + ", " + zoomChangeY + ", " + zoomSteps + ", " + fade + ", " + fadeAmount + ", 'zoomDoneIn(zoomID)')", zoomTime); zoomActive[theID] = true } } function zoomOut() { if (zoomActive[theID] != true) { document.getElementById("ShadowBox").style.visibility = "hidden"; document.getElementById("ZoomClose").style.visibility = "hidden"; startX = parseInt(zoomdiv.style.left); startY = parseInt(zoomdiv.style.top); startW = zoomimg.width; startH = zoomimg.height; zoomChangeX = zoomOrigX[theID] - startX; zoomChangeY = zoomOrigY[theID] - startY; zoomChangeW = zoomOrigW[theID] - startW; zoomChangeH = zoomOrigH[theID] - startH; zoomCurrent = 0; if (fade == 1) { fadeCurrent = 0; fadeAmount = (100 - 0) / zoomSteps } else { fadeAmount = 0 } zoomTimer[theID] = setInterval("zoomElement('" + zoomID + "', '" + theID + "', " + zoomCurrent + ", " + startW + ", " + zoomChangeW + ", " + startH + ", " + zoomChangeH + ", " + startX + ", " + zoomChangeX + ", " + startY + ", " + zoomChangeY + ", " + zoomSteps + ", " + fade + ", " + fadeAmount + ", 'zoomDone(zoomID, theID)')", zoomTime); zoomActive[theID] = true } } function zoomDoneIn(d, c) { zoomOpen = true; setOpacity(0, "ShadowBox"); setOpacity(0, "ZoomClose"); d = document.getElementById(d); shadowdiv = document.getElementById("ShadowBox"); shadowLeft = parseInt(d.style.left) - 13; shadowTop = parseInt(d.style.top) - 8; shadowWidth = d.offsetWidth + 26; shadowHeight = d.offsetHeight + 26; shadowdiv.style.width = shadowWidth + "px"; shadowdiv.style.height = shadowHeight + "px"; shadowdiv.style.left = shadowLeft + "px"; shadowdiv.style.top = shadowTop + "px"; document.getElementById("ShadowBox").style.visibility = "visible"; fadeElementSetup("ShadowBox", 0, 100, 5); document.getElementById("ZoomClose").style.visibility = "visible"; fadeElementSetup("ZoomClose", 0, 100, 5) } function zoomDone(d, c) { zoomOpen = false; zoomOrigH[c] = ""; zoomOrigW[c] = ""; document.getElementById(d).style.visibility = "hidden"; zoomActive[c] == false } function zoomElement(zoomdiv, theID, zoomCurrent, zoomStartW, zoomChangeW, zoomStartH, zoomChangeH, zoomStartX, zoomChangeX, zoomStartY, zoomChangeY, zoomSteps, fade, fadeAmount, execWhenDone) { if (zoomCurrent == (zoomSteps + 1)) { zoomActive[theID] = false; clearInterval(zoomTimer[theID]); if (execWhenDone != "") { eval(execWhenDone) } } else { if (fade != 0) { if (fadeAmount < 0) { setOpacity(Math.abs(zoomCurrent * fadeAmount), zoomdiv) } else { setOpacity(100 - (zoomCurrent * fadeAmount), zoomdiv) } } moveW = cubicInOut(zoomCurrent, zoomStartW, zoomChangeW, zoomSteps); moveH = cubicInOut(zoomCurrent, zoomStartH, zoomChangeH, zoomSteps); moveX = cubicInOut(zoomCurrent, zoomStartX, zoomChangeX, zoomSteps); moveY = cubicInOut(zoomCurrent, zoomStartY, zoomChangeY, zoomSteps); document.getElementById(zoomdiv).style.left = moveX + "px"; document.getElementById(zoomdiv).style.top = moveY + "px"; zoomimg.style.width = moveW + "px"; zoomimg.style.height = moveH + "px"; zoomCurrent++; clearInterval(zoomTimer[theID]); zoomTimer[theID] = setInterval("zoomElement('" + zoomdiv + "', '" + theID + "', " + zoomCurrent + ", " + zoomStartW + ", " + zoomChangeW + ", " + zoomStartH + ", " + zoomChangeH + ", " + zoomStartX + ", " + zoomChangeX + ", " + zoomStartY + ", " + zoomChangeY + ", " + zoomSteps + ", " + fade + ", " + fadeAmount + ", '" + execWhenDone + "')", zoomTime) } } function zoomMouseOver() { } function zoomMouseOut() { } function fadeOut(b) { if (b.id) { fadeElementSetup(b.id, 100, 0, 10) } } function fadeIn(b) { if (b.id) { fadeElementSetup(b.id, 0, 100, 10) } } var fadeActive = new Array(); var fadeQueue = new Array(); var fadeTimer = new Array(); var fadeClose = new Array(); function fadeElementSetup(k, h, f, g, j) { if (fadeActive[k] == true) { fadeQueue[k] = new Array(k, h, f, g) } else { fadeSteps = g; fadeCurrent = 0; fadeAmount = (h - f) / fadeSteps; fadeTimer[k] = setInterval("fadeElement('" + k + "', '" + fadeCurrent + "', '" + fadeAmount + "', '" + fadeSteps + "')", 15); fadeActive[k] = true; if (j == 1) { fadeClose[k] = true } else { fadeClose[k] = false } } } function fadeElement(e, g, f, h) { if (g == h) { clearInterval(fadeTimer[e]); fadeActive[e] = false; if (fadeClose[e] == true) { document.getElementById(e).style.visibility = "hidden" } if (fadeQueue[e] && fadeQueue[e] != false) { fadeElementSetup(fadeQueue[e][0], fadeQueue[e][1], fadeQueue[e][2], fadeQueue[e][3]); fadeQueue[e] = false } } else { g++; if (f < 0) { setOpacity(Math.abs(g * f), e) } else { setOpacity(100 - (g * f), e) } clearInterval(fadeTimer[e]); fadeTimer[e] = setInterval("fadeElement('" + e + "', '" + g + "', '" + f + "', '" + h + "')", 15) } } function setOpacity(f, e) { var d = document.getElementById(e).style; if (navigator.userAgent.indexOf("Firefox") != -1) { if (f == 100) { f = 99.9999 } } d.filter = "alpha(opacity=" + f + ")"; d.opacity = (f / 100) } function linear(h, b, c, d) { return c * h / d + b } function sineInOut(h, b, c, d) { return -c / 2 * (Math.cos(Math.PI * h / d) - 1) + b } function cubicIn(h, b, c, d) { return c * (h /= d) * h * h + b } function cubicOut(h, b, c, d) { return c * ((h = h / d - 1) * h * h + 1) + b } function cubicInOut(h, b, c, d) { if ((h /= d / 2) < 1) { return c / 2 * h * h * h + b } return c / 2 * ((h -= 2) * h * h + 2) + b } function bounceOut(h, b, c, d) { if ((h /= d) < (1 / 2.75)) { return c * (7.5625 * h * h) + b } else { if (h < (2 / 2.75)) { return c * (7.5625 * (h -= (1.5 / 2.75)) * h + 0.75) + b } else { if (h < (2.5 / 2.75)) { return c * (7.5625 * (h -= (2.25 / 2.75)) * h + 0.9375) + b } else { return c * (7.5625 * (h -= (2.625 / 2.75)) * h + 0.984375) + b } } } } function getSize() { if (document.all) { myWidth = (document.documentElement.clientWidth) ? document.documentElement.clientWidth : document.body.clientWidth; myHeight = (document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.body.clientHeight; myScroll = (document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop } else { myWidth = window.innerWidth; myHeight = window.innerHeight; myScroll = window.pageYOffset } if (window.innerHeight && window.scrollMaxY) { myScrollWidth = document.body.scrollWidth; myScrollHeight = window.innerHeight + window.scrollMaxY } else { if (document.body.scrollHeight > document.body.offsetHeight) { myScrollWidth = document.body.scrollWidth; myScrollHeight = document.body.scrollHeight } else { myScrollWidth = document.body.offsetWidth; myScrollHeight = document.body.offsetHeight } } } function findElementPos(e) { var f = 0; var d = 0; do { f += e.offsetLeft; d += e.offsetTop } while (e = e.offsetParent); return Array(f, d) } function insertZoomHTML() { var ao = document.getElementsByTagName("body").item(0); var U = document.createElement("div"); U.setAttribute("id", "ZoomSpin"); U.style.position = "absolute"; U.style.left = "10px"; U.style.top = "10px"; U.style.visibility = "hidden"; U.style.zIndex = "5000"; ao.insertBefore(U, ao.firstChild); var ai = document.createElement("img"); ai.setAttribute("id", "SpinImage"); ai.setAttribute("src", zoomImageURI + "zoom-spin-1.png"); U.appendChild(ai); var ap = document.createElement("div"); ap.setAttribute("id", "ZoomBox"); ap.style.position = "absolute"; ap.style.left = "10px"; ap.style.top = "10px"; ap.style.visibility = "hidden"; ap.style.zIndex = "499"; ao.insertBefore(ap, U.nextSibling); var at = document.createElement("a"); at.setAttribute("href", "javascript:zoomOut();"); ap.appendChild(at); var ah = document.createElement("img"); ah.setAttribute("src", zoomImageURI + "spacer.gif"); ah.setAttribute("id", "ZoomImage"); ah.setAttribute("border", "0"); ah.setAttribute("onMouseOver", "zoomMouseOver();"); ah.setAttribute("onMouseOut", "zoomMouseOut();"); ah.style.display = "block"; ah.style.width = "10px"; ah.style.height = "10px"; at.appendChild(ah); var al = document.createElement("div"); al.setAttribute("id", "ZoomClose"); al.style.position = "absolute"; al.style.left = "-15px"; al.style.top = "-15px"; al.style.filter = "alpha(opacity=0)"; al.style.MozOpacity = "0"; al.style.opacity = "0"; al.style.visibility = "hidden"; ap.appendChild(al); var au = document.createElement("a"); au.setAttribute("href", "javascript:zoomOut(1);"); al.appendChild(au); var aj = document.createElement("img"); aj.setAttribute("src", zoomImageURI + "closebox.png"); aj.setAttribute("width", "30"); aj.setAttribute("height", "30"); aj.setAttribute("border", "0"); au.appendChild(aj); var ak = document.createElement("div"); ak.setAttribute("id", "ShadowBox"); ak.style.position = "absolute"; ak.style.left = "50px"; ak.style.top = "50px"; ak.style.width = "100px"; ak.style.height = "100px"; ak.style.visibility = "hidden"; ak.style.zIndex = "45"; ao.insertBefore(ak, ap.nextSibling); var ar = document.createElement("table"); ar.setAttribute("border", "0"); ar.setAttribute("width", "100%"); ar.setAttribute("height", "100%"); ar.setAttribute("cellpadding", "0"); ar.setAttribute("cellspacing", "0"); ak.appendChild(ar); var am = document.createElement("tr"); am.style.height = "25px"; ar.appendChild(am); var Q = document.createElement("td"); Q.style.width = "27px"; am.appendChild(Q); var X = document.createElement("img"); X.setAttribute("src", zoomImageURI + "zoom-shadow1.png"); X.setAttribute("width", "27"); X.setAttribute("height", "25"); X.style.display = "block"; Q.appendChild(X); var R = document.createElement("td"); R.setAttribute("background", zoomImageURI + "zoom-shadow2.png"); am.appendChild(R); var az = document.createElement("img"); az.setAttribute("src", zoomImageURI + "spacer.gif"); az.setAttribute("height", "1"); az.setAttribute("width", "1"); az.style.display = "block"; R.appendChild(az); var S = document.createElement("td"); S.style.width = "27px"; am.appendChild(S); var aa = document.createElement("img"); aa.setAttribute("src", zoomImageURI + "zoom-shadow3.png"); aa.setAttribute("width", "27"); aa.setAttribute("height", "25"); aa.style.display = "block"; S.appendChild(aa); inRow2 = document.createElement("tr"); ar.appendChild(inRow2); var T = document.createElement("td"); T.setAttribute("background", zoomImageURI + "zoom-shadow4.png"); inRow2.appendChild(T); var aA = document.createElement("img"); aA.setAttribute("src", zoomImageURI + "spacer.gif"); aA.setAttribute("height", "1"); aA.setAttribute("width", "1"); aA.style.display = "block"; T.appendChild(aA); var V = document.createElement("td"); V.setAttribute("bgcolor", "#ffffff"); inRow2.appendChild(V); var aB = document.createElement("img"); aB.setAttribute("src", zoomImageURI + "spacer.gif"); aB.setAttribute("height", "1"); aB.setAttribute("width", "1"); aB.style.display = "block"; V.appendChild(aB); var W = document.createElement("td"); W.setAttribute("background", zoomImageURI + "zoom-shadow5.png"); inRow2.appendChild(W); var O = document.createElement("img"); O.setAttribute("src", zoomImageURI + "spacer.gif"); O.setAttribute("height", "1"); O.setAttribute("width", "1"); O.style.display = "block"; W.appendChild(O); var an = document.createElement("tr"); an.style.height = "26px"; ar.appendChild(an); var Y = document.createElement("td"); Y.style.width = "27px"; an.appendChild(Y); var ac = document.createElement("img"); ac.setAttribute("src", zoomImageURI + "zoom-shadow6.png"); ac.setAttribute("width", "27"); ac.setAttribute("height", "26"); ac.style.display = "block"; Y.appendChild(ac); var Z = document.createElement("td"); Z.setAttribute("background", zoomImageURI + "zoom-shadow7.png"); an.appendChild(Z); var P = document.createElement("img"); P.setAttribute("src", zoomImageURI + "spacer.gif"); P.setAttribute("height", "1"); P.setAttribute("width", "1"); P.style.display = "block"; Z.appendChild(P); var ab = document.createElement("td"); ab.style.width = "27px"; an.appendChild(ab); var ad = document.createElement("img"); ad.setAttribute("src", zoomImageURI + "zoom-shadow8.png"); ad.setAttribute("width", "27"); ad.setAttribute("height", "26"); ad.style.display = "block"; ab.appendChild(ad); if (includeCaption == 1) { var ax = document.createElement("div"); ax.setAttribute("id", "ZoomCapDiv"); ax.style.display = "none"; ax.style.marginLeft = "13px"; ax.style.marginRight = "13px"; ak.appendChild(ax); var av = document.createElement("table"); av.setAttribute("border", "0"); av.setAttribute("cellpadding", "0"); av.setAttribute("cellspacing", "0"); av.setAttribute("align", "center"); ax.appendChild(av); var aq = document.createElement("tr"); av.appendChild(aq); var ae = document.createElement("td"); aq.appendChild(ae); var aw = document.createElement("img"); aw.setAttribute("src", zoomImageURI + "zoom-caption-l.png"); aw.setAttribute("width", "13"); aw.setAttribute("height", "26"); aw.style.display = "block"; ae.appendChild(aw); var af = document.createElement("td"); af.setAttribute("background", zoomImageURI + "zoom-caption-fill.png"); af.setAttribute("id", "ZoomCaption"); af.setAttribute("valign", "middle"); af.style.fontSize = "14px"; af.style.fontFamily = "Helvetica"; af.style.fontWeight = "bold"; af.style.color = "#ffffff"; af.style.textShadow = "0px 2px 4px #000000"; af.style.whiteSpace = "nowrap"; aq.appendChild(af); var ag = document.createElement("td"); aq.appendChild(ag); var ay = document.createElement("img"); ay.setAttribute("src", zoomImageURI + "zoom-caption-r.png"); ay.setAttribute("width", "13"); ay.setAttribute("height", "26"); ay.style.display = "block"; ag.appendChild(ay) } } var currentSection = "section1-pane"; var tabTag = "-tab"; var paneTag = "-pane"; function ScrollSection(e, d, f) { if (currentSection == e) { return } lastSection = currentSection; currentSection = e; sectionTab = currentSection.split("-")[0] + tabTag; document.getElementById(sectionTab).className = "active"; if (lastSection) { lastTab = lastSection.split("-")[0] + tabTag; document.getElementById(lastTab).className = "inactive" } theScroll = document.getElementById(d); position = findElementPos(document.getElementById(e)); if (f != "") { offsetPos = findElementPos(document.getElementById(f)); position[0] = position[0] - offsetPos[0] } scrollStart(theScroll, theScroll.scrollLeft, position[0], "horiz") } function ScrollArrow(k, m, l, j) { toolbarElem = document.getElementById(m); toolbarNames = new Array(); if (toolbarElem.hasChildNodes()) { var g = toolbarElem.childNodes; for (var h = 0; h < g.length; h++) { if (toolbarElem.childNodes[h].tagName == "LI") { toolbarNames.push(toolbarElem.childNodes[h].id.split("-")[0]) } } } for (var h = 0; h < toolbarNames.length; h++) { if (toolbarNames[h] == currentSection.split("-")[0]) { if (k == "left") { if (h - 1 < 0) { gotoTab = toolbarNames[toolbarNames.length - 1] } else { gotoTab = toolbarNames[h - 1] } } else { if ((h + 1) > (toolbarNames.length - 1)) { gotoTab = toolbarNames[0] } else { gotoTab = toolbarNames[h + 1] } } } } ScrollSection(gotoTab + paneTag, l, j) } var scrollanim = { time: 0, begin: 0, change: 0, duration: 0, element: null, timer: null }; function scrollStart(e, g, f, h) { if (scrollanim.timer != null) { clearInterval(scrollanim.timer); scrollanim.timer = null } scrollanim.time = 0; scrollanim.begin = g; scrollanim.change = f - g; scrollanim.duration = 18; scrollanim.element = e; if (h == "horiz") { scrollanim.timer = setInterval("scrollHorizAnim();", 15) } else { scrollanim.timer = setInterval("scrollVertAnim();", 15) } } function scrollVertAnim() { if (scrollanim.time > scrollanim.duration) { clearInterval(scrollanim.timer); scrollanim.timer = null } else { move = sineInOut(scrollanim.time, scrollanim.begin, scrollanim.change, scrollanim.duration); scrollanim.element.scrollTop = move; scrollanim.time++ } } function scrollHorizAnim() { if (scrollanim.time > scrollanim.duration) { clearInterval(scrollanim.timer); scrollanim.timer = null } else { move = sineInOut(scrollanim.time, scrollanim.begin, scrollanim.change, scrollanim.duration); scrollanim.element.scrollLeft = move; scrollanim.time++ } } function showLargePopup(d) { var e = document.getElementById("fullscreen"); var f = document.getElementById("largepopup"); document.getElementById("start-download").className = "show"; getSize(); e.style.height = myScrollHeight + "px"; e.style.display = "block"; f.style.left = ((myWidth - f.offsetWidth) / 2) + "px"; f.style.top = (((myHeight - f.offsetHeight) / 2) + myScroll) + "px"; f.style.visibility = "visible"; refreshTimer = setTimeout("setLocation('" + d.getAttribute("href") + "')", 1500) } function setLocation(b) { window.location = b } function hideLargePopup() { var d = document.getElementById("fullscreen"); var c = document.getElementById("largepopup"); c.style.visibility = "hidden"; d.style.display = "none" } var dpopTimer = ""; function showDownloadPopup(f) { var e = document.getElementById("dpop"); var d = document.getElementById("download"); if (moveanim.timer != null) { clearInterval(moveanim.timer); moveanim.timer = null } position = findElementPos(d); e.style.top = (position[1] - (e.offsetHeight - 40)) + "px"; e.style.left = "5px"; if (dpopTimer != "") { clearTimeout(dpopTimer); dpopTimer = "" } else { setOpacity(0, "dpop"); e.style.visibility = "visible"; moveStart(e, parseInt(e.style.left), parseInt(e.style.left), parseInt(e.style.top) + 10, parseInt(e.style.top), 15); fadeElementSetup("dpop", 0, 100, 13) } } function hideDownloadPopup() { dpopTimer = setTimeout("actuallyHide()", 500) } function actuallyHide() { var b = document.getElementById("dpop"); if (dpopTimer != "") { dpopTimer = ""; moveStart(b, parseInt(b.style.left), parseInt(b.style.left), parseInt(b.style.top), parseInt(b.style.top) - 10, 15); fadeElementSetup("dpop", 100, 0, 13, 1) } } var moveanim = { time: 0, beginX: 0, changeX: 0, beginY: 0, changeY: 0, duration: 0, element: null, timer: null }; function moveStart(k, g, l, h, m, j) { if (moveanim.timer != null) { clearInterval(moveanim.timer); moveanim.timer = null } moveanim.time = 0; moveanim.beginX = g; moveanim.changeX = l - g; moveanim.beginY = h; moveanim.changeY = m - h; moveanim.duration = j; moveanim.element = k; moveanim.timer = setInterval("moveAnimDo();", 15) } function moveAnimDo() { if (moveanim.time > moveanim.duration) { clearInterval(moveanim.timer); moveanim.timer = null } else { moveX = cubicOut(moveanim.time, moveanim.beginX, moveanim.changeX, moveanim.duration); moveY = cubicOut(moveanim.time, moveanim.beginY, moveanim.changeY, moveanim.duration); moveanim.element.style.left = moveX + "px"; moveanim.element.style.top = moveY + "px"; moveanim.time++ } };
