﻿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" } function showDiv(a) { document.getElementById(a).style.display = "" } function hideDiv(a) { document.getElementById(a).style.display = "none" } var xmlhttpBrowseSearch; function GetBrowseSearchContent(a) { xmlhttpBrowseSearch = null; if (window.XMLHttpRequest) { xmlhttpBrowseSearch = new XMLHttpRequest() } else { if (window.ActiveXObject) { xmlhttpBrowseSearch = new ActiveXObject("Microsoft.XMLHTTP") } } if (xmlhttpBrowseSearch != null) { xmlhttpBrowseSearch.onreadystatechange = handleBrowseSearchResponse; xmlhttpBrowseSearch.open("GET", document.getElementById("hidAjaxHandlerPath").value + "?" + a, true); xmlhttpBrowseSearch.send(null) } else { alert("Your browser does not support AJAX. Functionality will be limited on this site.") } } function handleBrowseSearchResponse() { if (xmlhttpBrowseSearch.readyState == 4) { if (xmlhttpBrowseSearch.status == 200) { var a = xmlhttpBrowseSearch.responseText; document.getElementById("loadingMessage").style.display = "none"; if (a == "-1") { document.getElementById("browseSearchArea").innerHTML = "output is -1" } else { document.getElementById("browseSearchArea").innerHTML = a; document.getElementById("browseSearchArea").style.display = "" } } } } var xmlhttpShortlist; var vacIdGlobal; function addToShortlist(a) { if (document.getElementById("shortlistLoadingMessage") != null) { document.getElementById("shortlistLoadingMessage").style.display = "block" } xmlhttpShortlist = null; vacIdGlobal = null; if (window.XMLHttpRequest) { xmlhttpShortlist = new XMLHttpRequest() } else { if (window.ActiveXObject) { xmlhttpShortlist = new ActiveXObject("Microsoft.XMLHTTP") } } if (xmlhttpShortlist != null) { vacIdGlobal = a; xmlhttpShortlist.onreadystatechange = handleShortlistResponse; xmlhttpShortlist.open("GET", document.getElementById("hidAjaxShortlistHandlerPath").value + "?v=" + a + "&c=add", true); xmlhttpShortlist.send(null) } else { alert("Your browser does not support AJAX. Functionality will be limited on this site.") } } function handleShortlistResponse() { if (xmlhttpShortlist.readyState == 4) { if (xmlhttpShortlist.status == 200) { var a = xmlhttpShortlist.responseText; if (document.getElementById("shortlistLoadingMessage") != null) { document.getElementById("shortlistLoadingMessage").style.display = "none" } if (a == "-1") { if (document.getElementById("shortlistArea") != null) { document.getElementById("shortlistArea").innerHTML = "output is -1" } } else { if (document.getElementById("shortlistArea") != null) { document.getElementById("shortlistArea").innerHTML = a; document.getElementById("shortlistArea").style.display = "" } if (document.getElementById("spanShortlist_" + vacIdGlobal) != null) { document.getElementById("spanShortlist_" + vacIdGlobal).innerHTML = "<span class='added'>Added to shortlist</span>" } } } } } var xmlhttpShortlistRem; function removeFromShortlist(a) { if (document.getElementById("shortlistLoadingMessage")) { document.getElementById("shortlistLoadingMessage").style.display = "block" } xmlhttpShortlistRem = null; if (window.XMLHttpRequest) { xmlhttpShortlistRem = new XMLHttpRequest() } else { if (window.ActiveXObject) { xmlhttpShortlistRem = new ActiveXObject("Microsoft.XMLHTTP") } } if (xmlhttpShortlistRem != null) { vacIdGlobal = a; xmlhttpShortlistRem.onreadystatechange = handleRemoveShortlistItem; xmlhttpShortlistRem.open("GET", document.getElementById("hidAjaxShortlistHandlerPath").value + "?v=" + a + "&c=rem", true); xmlhttpShortlistRem.send(null) } else { alert("Your browser does not support AJAX. Functionality will be limited on this site.") } } function handleRemoveShortlistItem() { if (xmlhttpShortlistRem.readyState == 4) { if (xmlhttpShortlistRem.status == 200) { var a = xmlhttpShortlistRem.responseText; if (document.getElementById("shortlistLoadingMessage") != null) { document.getElementById("shortlistLoadingMessage").style.display = "none" } if (a == "-1") { if (document.getElementById("shortlistArea") != null) { document.getElementById("shortlistArea").innerHTML = "output is -1" } } else { if (document.getElementById("shortlistArea") != null) { document.getElementById("shortlistArea").innerHTML = a; document.getElementById("shortlistArea").style.display = "" } if (document.getElementById("spanShortlist_" + vacIdGlobal) != null) { document.getElementById("spanShortlist_" + vacIdGlobal).innerHTML = "<a href=\"Javascript:addToShortlist('" + vacIdGlobal + "');\" >Add to shortlist</a>" } } } } } function toggleOptionList(b) { var f, g, c, a; f = "divOptionList" + b; g = "lnkBrowseSearch" + b; c = "browseSearchOptionListLinkExpanded"; a = "browseSearchOptionListLinkCollapsed"; var d = document.getElementById(g); var e = document.getElementById(f); if (e.style.display == "none") { e.style.display = "block"; d.className = c; toggleMoreLinks(b, false) } else { e.style.display = "none"; d.className = a } } function toggleMoreLinks(b, c) { var g, h, d, a; g = "divMoreBrowseSearchLinks" + b; h = "lnkMoreBrowseSearchResults" + b; var e = document.getElementById(h); var f = document.getElementById(g); if (e) { if (c) { f.style.display = "block"; e.style.display = "none" } else { f.style.display = "none"; e.style.display = "" } } } 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) } } } function Validator(a) { this.formobj = document.forms[a]; if (!this.formobj) { alert("BUG: couldnot get Form object " + a); return } if (this.formobj.onsubmit) { this.formobj.old_onsubmit = this.formobj.onsubmit; this.formobj.onsubmit = null } else { this.formobj.old_onsubmit = null } this.formobj.onsubmit = form_submit_handler; this.addValidation = add_validation; this.setAddnlValidationFunction = set_addnl_vfunction; this.clearAllValidations = clear_all_validations } function set_addnl_vfunction(a) { this.formobj.addnlvalidation = a } function clear_all_validations() { for (var a = 0; a < this.formobj.elements.length; a++) { this.formobj.elements[a].validationset = null } } function form_submit_handler() { for (var itr = 0; itr < this.elements.length; itr++) { if (this.elements[itr].validationset && !this.elements[itr].validationset.validate()) { return false } } if (this.addnlvalidation) { str = " var ret = " + this.addnlvalidation + "()"; eval(str); if (!ret) { return ret } } return true } function add_validation(d, b, c) { if (!this.formobj) { alert("BUG: the form object is not set properly"); return } var a = this.formobj[d]; if (!a) { alert("BUG: Couldnot get the input object named: " + d); return } if (!a.validationset) { a.validationset = new ValidationSet(a) } a.validationset.add(b, c) } function ValidationDesc(c, b, a) { this.desc = b; this.error = a; this.itemobj = c; this.validate = vdesc_validate } function vdesc_validate() { if (!V2validateData(this.desc, this.itemobj, this.error)) { this.itemobj.focus(); return false } return true } function ValidationSet(a) { this.vSet = new Array(); this.add = add_validationdesc; this.validate = vset_validate; this.itemobj = a } function add_validationdesc(b, a) { this.vSet[this.vSet.length] = new ValidationDesc(this.itemobj, b, a) } function vset_validate() { for (var a = 0; a < this.vSet.length; a++) { if (!this.vSet[a].validate()) { return false } } return true } function validateEmailv2(b) { if (b.length <= 0) { return true } var e = b.match("^(.+)@(.+)$"); if (e == null) { return false } if (e[1] != null) { var d = /^\"?[\w-_\.]*\"?$/; if (e[1].match(d) == null) { return false } } if (e[2] != null) { var c = /^[\w-\.]*\.[A-Za-z]{2,4}$/; if (e[2].match(c) == null) { var a = /^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/; if (e[2].match(a) == null) { return false } } return true } return false } function V2validateData(strValidateStr, objValue, strError) { var epos = strValidateStr.search("="); var command = ""; var cmdvalue = ""; if (epos >= 0) { command = strValidateStr.substring(0, epos); cmdvalue = strValidateStr.substr(epos + 1) } else { command = strValidateStr } switch (command) { case "req": case "required": if (eval(objValue.value.length) == 0) { if (!strError || strError.length == 0) { strError = objValue.name + " : Required Field" } alert(strError); return false } break; case "maxlength": case "maxlen": if (eval(objValue.value.length) > eval(cmdvalue)) { if (!strError || strError.length == 0) { strError = objValue.name + " : " + cmdvalue + " characters maximum " } alert(strError + "\n[Current length = " + objValue.value.length + " ]"); return false } break; case "minlength": case "minlen": if (eval(objValue.value.length) < eval(cmdvalue)) { if (!strError || strError.length == 0) { strError = objValue.name + " : " + cmdvalue + " characters minimum  " } alert(strError + "\n[Current length = " + objValue.value.length + " ]"); return false } break; case "alnum": case "alphanumeric": var charpos = objValue.value.search("[^A-Za-z0-9]"); if (objValue.value.length > 0 && charpos >= 0) { if (!strError || strError.length == 0) { strError = objValue.name + ": Only alpha-numeric characters allowed " } alert(strError + "\n [Error character position " + eval(charpos + 1) + "]"); return false } break; case "num": case "numeric": var charpos = objValue.value.search("[^0-9]"); if (objValue.value.length > 0 && charpos >= 0) { if (!strError || strError.length == 0) { strError = objValue.name + ": Only digits allowed " } alert(strError + "\n [Error character position " + eval(charpos + 1) + "]"); return false } break; case "alphabetic": case "alpha": var charpos = objValue.value.search("[^A-Za-z]"); if (objValue.value.length > 0 && charpos >= 0) { if (!strError || strError.length == 0) { strError = objValue.name + ": Only alphabetic characters allowed " } alert(strError + "\n [Error character position " + eval(charpos + 1) + "]"); return false } break; case "alnumhyphen": var charpos = objValue.value.search("[^A-Za-z0-9-_]"); if (objValue.value.length > 0 && charpos >= 0) { if (!strError || strError.length == 0) { strError = objValue.name + ": characters allowed are A-Z,a-z,0-9,- and _" } alert(strError + "\n [Error character position " + eval(charpos + 1) + "]"); return false } break; case "email": if (!validateEmailv2(objValue.value)) { if (!strError || strError.length == 0) { strError = objValue.name + ": Enter a valid Email address " } alert(strError); return false } break; case "lt": case "lessthan": if (isNaN(objValue.value)) { alert(objValue.name + ": Should be a number "); return false } if (eval(objValue.value) >= eval(cmdvalue)) { if (!strError || strError.length == 0) { strError = objValue.name + " : value should be less than " + cmdvalue } alert(strError); return false } break; case "gt": case "greaterthan": if (isNaN(objValue.value)) { alert(objValue.name + ": Should be a number "); return false } if (eval(objValue.value) <= eval(cmdvalue)) { if (!strError || strError.length == 0) { strError = objValue.name + " : value should be greater than " + cmdvalue } alert(strError); return false } break; case "regexp": if (objValue.value.length > 0) { if (!objValue.value.match(cmdvalue)) { if (!strError || strError.length == 0) { strError = objValue.name + ": Invalid characters found " } alert(strError); return false } } break; case "dontselect": if (objValue.selectedIndex == null) { alert("BUG: dontselect command for non-select Item"); return false } if (objValue.selectedIndex == eval(cmdvalue)) { if (!strError || strError.length == 0) { strError = objValue.name + ": Please Select one option " } alert(strError); return false } break } return true } 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 a = document.getElementsByTagName("a"); for (i = 0; i < a.length; i++) { if (a[i].getAttribute("href") && (a[i].getAttribute("rel"))) { if (a[i].getAttribute("rel").indexOf("zoom:") == 0) { a[i].onclick = function() { zoomClick(this); return false }; a[i].onmouseover = function() { zoomPreload(this) } } } } } function zoomPreload(b) { var a = b.getAttribute("href"); if (imgPreload.src.indexOf(b.getAttribute("href").substr(b.getAttribute("href").lastIndexOf("/"))) == -1) { preloadActive = true; imgPreload = new Image(); imgPreload.onload = function() { preloadActive = false }; imgPreload.src = a } } 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(a) { 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(a) { getSize(); if (preloadActive == true) { preloadFrom = a; preloadAnimStart() } else { zoomIn(a) } } function zoomIn(a) { zoomimg.src = a.getAttribute("href"); if (a.childNodes[0].width) { startW = a.childNodes[0].width; startH = a.childNodes[0].height; startPos = findElementPos(a.childNodes[0]) } else { startW = 50; startH = 12; startPos = findElementPos(a) } 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 (a.getAttribute("title") && includeCaption == 1) { zoomcapd.style.display = "block"; zoomcap.innerHTML = a.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(a, b) { zoomOpen = true; setOpacity(0, "ShadowBox"); setOpacity(0, "ZoomClose"); a = document.getElementById(a); shadowdiv = document.getElementById("ShadowBox"); shadowLeft = parseInt(a.style.left) - 13; shadowTop = parseInt(a.style.top) - 8; shadowWidth = a.offsetWidth + 26; shadowHeight = a.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(a, b) { zoomOpen = false; zoomOrigH[b] = ""; zoomOrigW[b] = ""; document.getElementById(a).style.visibility = "hidden"; zoomActive[b] == 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(a) { if (a.id) { fadeElementSetup(a.id, 100, 0, 10) } } function fadeIn(a) { if (a.id) { fadeElementSetup(a.id, 0, 100, 10) } } var fadeActive = new Array(); var fadeQueue = new Array(); var fadeTimer = new Array(); var fadeClose = new Array(); function fadeElementSetup(c, e, b, a, d) { if (fadeActive[c] == true) { fadeQueue[c] = new Array(c, e, b, a) } else { fadeSteps = a; fadeCurrent = 0; fadeAmount = (e - b) / fadeSteps; fadeTimer[c] = setInterval("fadeElement('" + c + "', '" + fadeCurrent + "', '" + fadeAmount + "', '" + fadeSteps + "')", 15); fadeActive[c] = true; if (d == 1) { fadeClose[c] = true } else { fadeClose[c] = false } } } function fadeElement(b, d, a, c) { if (d == c) { clearInterval(fadeTimer[b]); fadeActive[b] = false; if (fadeClose[b] == true) { document.getElementById(b).style.visibility = "hidden" } if (fadeQueue[b] && fadeQueue[b] != false) { fadeElementSetup(fadeQueue[b][0], fadeQueue[b][1], fadeQueue[b][2], fadeQueue[b][3]); fadeQueue[b] = false } } else { d++; if (a < 0) { setOpacity(Math.abs(d * a), b) } else { setOpacity(100 - (d * a), b) } clearInterval(fadeTimer[b]); fadeTimer[b] = setInterval("fadeElement('" + b + "', '" + d + "', '" + a + "', '" + c + "')", 15) } } function setOpacity(c, a) { var b = document.getElementById(a).style; if (navigator.userAgent.indexOf("Firefox") != -1) { if (c == 100) { c = 99.9999 } } b.filter = "alpha(opacity=" + c + ")"; b.opacity = (c / 100) } function linear(e, a, g, f) { return g * e / f + a } function sineInOut(e, a, g, f) { return -g / 2 * (Math.cos(Math.PI * e / f) - 1) + a } function cubicIn(e, a, g, f) { return g * (e /= f) * e * e + a } function cubicOut(e, a, g, f) { return g * ((e = e / f - 1) * e * e + 1) + a } function cubicInOut(e, a, g, f) { if ((e /= f / 2) < 1) { return g / 2 * e * e * e + a } return g / 2 * ((e -= 2) * e * e + 2) + a } function bounceOut(e, a, g, f) { if ((e /= f) < (1 / 2.75)) { return g * (7.5625 * e * e) + a } else { if (e < (2 / 2.75)) { return g * (7.5625 * (e -= (1.5 / 2.75)) * e + 0.75) + a } else { if (e < (2.5 / 2.75)) { return g * (7.5625 * (e -= (2.25 / 2.75)) * e + 0.9375) + a } else { return g * (7.5625 * (e -= (2.625 / 2.75)) * e + 0.984375) + a } } } } 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(a) { var c = 0; var b = 0; do { c += a.offsetLeft; b += a.offsetTop } while (a = a.offsetParent); return Array(c, b) } function insertZoomHTML() { var n = document.getElementsByTagName("body").item(0); var H = document.createElement("div"); H.setAttribute("id", "ZoomSpin"); H.style.position = "absolute"; H.style.left = "10px"; H.style.top = "10px"; H.style.visibility = "hidden"; H.style.zIndex = "5000"; n.insertBefore(H, n.firstChild); var t = document.createElement("img"); t.setAttribute("id", "SpinImage"); t.setAttribute("src", zoomImageURI + "zoom-spin-1.png"); H.appendChild(t); var m = document.createElement("div"); m.setAttribute("id", "ZoomBox"); m.style.position = "absolute"; m.style.left = "10px"; m.style.top = "10px"; m.style.visibility = "hidden"; m.style.zIndex = "499"; n.insertBefore(m, H.nextSibling); var j = document.createElement("a"); j.setAttribute("href", "javascript:zoomOut();"); m.appendChild(j); var u = document.createElement("img"); u.setAttribute("src", zoomImageURI + "spacer.gif"); u.setAttribute("id", "ZoomImage"); u.setAttribute("border", "0"); u.setAttribute("onMouseOver", "zoomMouseOver();"); u.setAttribute("onMouseOut", "zoomMouseOut();"); u.style.display = "block"; u.style.width = "10px"; u.style.height = "10px"; j.appendChild(u); var q = document.createElement("div"); q.setAttribute("id", "ZoomClose"); q.style.position = "absolute"; q.style.left = "-15px"; q.style.top = "-15px"; q.style.filter = "alpha(opacity=0)"; q.style.MozOpacity = "0"; q.style.opacity = "0"; q.style.visibility = "hidden"; m.appendChild(q); var h = document.createElement("a"); h.setAttribute("href", "javascript:zoomOut(1);"); q.appendChild(h); var s = document.createElement("img"); s.setAttribute("src", zoomImageURI + "closebox.png"); s.setAttribute("width", "30"); s.setAttribute("height", "30"); s.setAttribute("border", "0"); h.appendChild(s); var r = document.createElement("div"); r.setAttribute("id", "ShadowBox"); r.style.position = "absolute"; r.style.left = "50px"; r.style.top = "50px"; r.style.width = "100px"; r.style.height = "100px"; r.style.visibility = "hidden"; r.style.zIndex = "45"; n.insertBefore(r, m.nextSibling); var k = document.createElement("table"); k.setAttribute("border", "0"); k.setAttribute("width", "100%"); k.setAttribute("height", "100%"); k.setAttribute("cellpadding", "0"); k.setAttribute("cellspacing", "0"); r.appendChild(k); var p = document.createElement("tr"); p.style.height = "25px"; k.appendChild(p); var L = document.createElement("td"); L.style.width = "27px"; p.appendChild(L); var E = document.createElement("img"); E.setAttribute("src", zoomImageURI + "zoom-shadow1.png"); E.setAttribute("width", "27"); E.setAttribute("height", "25"); E.style.display = "block"; L.appendChild(E); var K = document.createElement("td"); K.setAttribute("background", zoomImageURI + "zoom-shadow2.png"); p.appendChild(K); var c = document.createElement("img"); c.setAttribute("src", zoomImageURI + "spacer.gif"); c.setAttribute("height", "1"); c.setAttribute("width", "1"); c.style.display = "block"; K.appendChild(c); var J = document.createElement("td"); J.style.width = "27px"; p.appendChild(J); var B = document.createElement("img"); B.setAttribute("src", zoomImageURI + "zoom-shadow3.png"); B.setAttribute("width", "27"); B.setAttribute("height", "25"); B.style.display = "block"; J.appendChild(B); inRow2 = document.createElement("tr"); k.appendChild(inRow2); var I = document.createElement("td"); I.setAttribute("background", zoomImageURI + "zoom-shadow4.png"); inRow2.appendChild(I); var b = document.createElement("img"); b.setAttribute("src", zoomImageURI + "spacer.gif"); b.setAttribute("height", "1"); b.setAttribute("width", "1"); b.style.display = "block"; I.appendChild(b); var G = document.createElement("td"); G.setAttribute("bgcolor", "#ffffff"); inRow2.appendChild(G); var a = document.createElement("img"); a.setAttribute("src", zoomImageURI + "spacer.gif"); a.setAttribute("height", "1"); a.setAttribute("width", "1"); a.style.display = "block"; G.appendChild(a); var F = document.createElement("td"); F.setAttribute("background", zoomImageURI + "zoom-shadow5.png"); inRow2.appendChild(F); var N = document.createElement("img"); N.setAttribute("src", zoomImageURI + "spacer.gif"); N.setAttribute("height", "1"); N.setAttribute("width", "1"); N.style.display = "block"; F.appendChild(N); var o = document.createElement("tr"); o.style.height = "26px"; k.appendChild(o); var D = document.createElement("td"); D.style.width = "27px"; o.appendChild(D); var z = document.createElement("img"); z.setAttribute("src", zoomImageURI + "zoom-shadow6.png"); z.setAttribute("width", "27"); z.setAttribute("height", "26"); z.style.display = "block"; D.appendChild(z); var C = document.createElement("td"); C.setAttribute("background", zoomImageURI + "zoom-shadow7.png"); o.appendChild(C); var M = document.createElement("img"); M.setAttribute("src", zoomImageURI + "spacer.gif"); M.setAttribute("height", "1"); M.setAttribute("width", "1"); M.style.display = "block"; C.appendChild(M); var A = document.createElement("td"); A.style.width = "27px"; o.appendChild(A); var y = document.createElement("img"); y.setAttribute("src", zoomImageURI + "zoom-shadow8.png"); y.setAttribute("width", "27"); y.setAttribute("height", "26"); y.style.display = "block"; A.appendChild(y); if (includeCaption == 1) { var e = document.createElement("div"); e.setAttribute("id", "ZoomCapDiv"); e.style.display = "none"; e.style.marginLeft = "13px"; e.style.marginRight = "13px"; r.appendChild(e); var g = document.createElement("table"); g.setAttribute("border", "0"); g.setAttribute("cellpadding", "0"); g.setAttribute("cellspacing", "0"); g.setAttribute("align", "center"); e.appendChild(g); var l = document.createElement("tr"); g.appendChild(l); var x = document.createElement("td"); l.appendChild(x); var f = document.createElement("img"); f.setAttribute("src", zoomImageURI + "zoom-caption-l.png"); f.setAttribute("width", "13"); f.setAttribute("height", "26"); f.style.display = "block"; x.appendChild(f); var w = document.createElement("td"); w.setAttribute("background", zoomImageURI + "zoom-caption-fill.png"); w.setAttribute("id", "ZoomCaption"); w.setAttribute("valign", "middle"); w.style.fontSize = "14px"; w.style.fontFamily = "Helvetica"; w.style.fontWeight = "bold"; w.style.color = "#ffffff"; w.style.textShadow = "0px 2px 4px #000000"; w.style.whiteSpace = "nowrap"; l.appendChild(w); var v = document.createElement("td"); l.appendChild(v); var d = document.createElement("img"); d.setAttribute("src", zoomImageURI + "zoom-caption-r.png"); d.setAttribute("width", "13"); d.setAttribute("height", "26"); d.style.display = "block"; v.appendChild(d) } } var currentSection = "section1-pane"; var tabTag = "-tab"; var paneTag = "-pane"; function ScrollSection(a, b, c) { if (currentSection == a) { return } lastSection = currentSection; currentSection = a; 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(b); position = findElementPos(document.getElementById(a)); if (c != "") { offsetPos = findElementPos(document.getElementById(c)); position[0] = position[0] - offsetPos[0] } scrollStart(theScroll, theScroll.scrollLeft, position[0], "horiz") } function ScrollArrow(e, c, d, f) { toolbarElem = document.getElementById(c); toolbarNames = new Array(); if (toolbarElem.hasChildNodes()) { var b = toolbarElem.childNodes; for (var a = 0; a < b.length; a++) { if (toolbarElem.childNodes[a].tagName == "LI") { toolbarNames.push(toolbarElem.childNodes[a].id.split("-")[0]) } } } for (var a = 0; a < toolbarNames.length; a++) { if (toolbarNames[a] == currentSection.split("-")[0]) { if (e == "left") { if (a - 1 < 0) { gotoTab = toolbarNames[toolbarNames.length - 1] } else { gotoTab = toolbarNames[a - 1] } } else { if ((a + 1) > (toolbarNames.length - 1)) { gotoTab = toolbarNames[0] } else { gotoTab = toolbarNames[a + 1] } } } } ScrollSection(gotoTab + paneTag, d, f) } var scrollanim = { time: 0, begin: 0, change: 0, duration: 0, element: null, timer: null }; function scrollStart(b, d, a, c) { if (scrollanim.timer != null) { clearInterval(scrollanim.timer); scrollanim.timer = null } scrollanim.time = 0; scrollanim.begin = d; scrollanim.change = a - d; scrollanim.duration = 50; scrollanim.element = b; if (c == "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(b) { var a = document.getElementById("fullscreen"); var c = document.getElementById("largepopup"); document.getElementById("start-download").className = "show"; getSize(); a.style.height = myScrollHeight + "px"; a.style.display = "block"; c.style.left = ((myWidth - c.offsetWidth) / 2) + "px"; c.style.top = (((myHeight - c.offsetHeight) / 2) + myScroll) + "px"; c.style.visibility = "visible"; refreshTimer = setTimeout("setLocation('" + b.getAttribute("href") + "')", 1500) } function setLocation(a) { window.location = a } function hideLargePopup() { var a = document.getElementById("fullscreen"); var b = document.getElementById("largepopup"); b.style.visibility = "hidden"; a.style.display = "none" } var dpopTimer = ""; function showDownloadPopup(c) { var a = document.getElementById("dpop"); var b = document.getElementById("download"); if (moveanim.timer != null) { clearInterval(moveanim.timer); moveanim.timer = null } position = findElementPos(b); a.style.top = (position[1] - (a.offsetHeight - 40)) + "px"; a.style.left = "5px"; if (dpopTimer != "") { clearTimeout(dpopTimer); dpopTimer = "" } else { setOpacity(0, "dpop"); a.style.visibility = "visible"; moveStart(a, parseInt(a.style.left), parseInt(a.style.left), parseInt(a.style.top) + 10, parseInt(a.style.top), 15); fadeElementSetup("dpop", 0, 100, 13) } } function hideDownloadPopup() { dpopTimer = setTimeout("actuallyHide()", 500) } function actuallyHide() { var a = document.getElementById("dpop"); if (dpopTimer != "") { dpopTimer = ""; moveStart(a, parseInt(a.style.left), parseInt(a.style.left), parseInt(a.style.top), parseInt(a.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(e, b, d, a, c, f) { if (moveanim.timer != null) { clearInterval(moveanim.timer); moveanim.timer = null } moveanim.time = 0; moveanim.beginX = b; moveanim.changeX = d - b; moveanim.beginY = a; moveanim.changeY = c - a; moveanim.duration = f; moveanim.element = e; 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++ } } (function(b) { function a(g, p) { var d = g, w = b(d), r = null, t = 0, v = true, q = this, h = b.extend({ pauseTime: 5000, transitionTime: 2000, ignore: null, delayStart: 0, pauseOnMouseOver: false, manualNavigation: false, createNavButtons: false, navButtonContainer: null }, p), j = (h.ignore) ? b("> *:not(" + h.ignore + ")", d) : b("> *", d); function s() { w.css("position", "relative"); j.css("display", "none").css({ left: 0, top: 0, position: "absolute" }); j.filter(":first").css("display", "block"); if (h.createNavButtons) { c(); f() } if (h.pauseOnMouseOver) { w.mouseover(n).mouseout(l); b("a", h.navButtonContainer || d).mouseover(n).mouseout(l) } if (h.delayStart > 0) { setTimeout(m, h.delayStart) } else { m() } } function e(x) { b(j[t]).fadeOut(h.transitionTime); b(j[t = x]).fadeIn(h.transitionTime, o); f() } function k(y) { var x; this.blur(); b(j).stop(true); u(); b(j).css({ opacity: 1, display: "none" }); b(j[t]).css({ display: "block" }); x = b(".fadenav a", d).index(this); e(x); y.preventDefault() } function c() { var x, y = b('<div class="fadenav"></div>'); for (x = 0; x < j.length; x++) { b('<a class="nav' + x + '" id="tab' + x + '" href="#">&nbsp;</a>', h.navButtonContainer || d).click(k).appendTo(y) } y.appendTo(h.navButtonContainer || d) } function f() { if (h.createNavButtons) { b(".fadenav a", h.navButtonContainer || d).removeClass("current"); b(".fadenav a:nth-child(" + (1 + t) + ")", h.navButtonContainer || d).addClass("current") } } function m() { if (h.ignore) { b(h.ignore, d).fadeOut(h.transitionTime); b(j[t]).fadeIn(h.transitionTime); r = setTimeout(q.next, h.pauseTime + h.transitionTime) } else { f(); if (!h.manualNavigation) { r = setTimeout(q.next, h.pauseTime) } } } function n() { v = true; u() } function l() { v = false; o() } function u() { if (r) { window.clearTimeout(r); r = null } } this.show = function(x) { if (typeof (j[x]) !== "undefined") { u(); transition(x) } return this }; this.currentItem = function() { return t }; function o() { if (v || h.manualNavigation || (j.length < 2)) { return false } u(); r = window.setTimeout(q.next, h.pauseTime) } this.next = function() { e((t + 1) % j.length || 0) }; this.prev = function() { e(((t || j.length) - 1) % j.length) }; w.data("Fader", this); s() } b.fn.fadeTransition = function(d) { function c() { if (typeof b(this).data("Fader") === "object") { return b(this).data("Fader") } else { return new a(this, d) } } this.fader = function() { if (typeof b(this).filter(":first").data("Fader") === "object") { return b(this).filter(":first").data("Fader") } return null }; return this.each(c) } } (jQuery)); var tb_pathToImage = "/graphics/Ajaxloading.gif";
/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function() { tb_init("a.thickbox, area.thickbox, input.thickbox"); imgLoader = new Image(); imgLoader.src = tb_pathToImage }); function tb_init(a) { $(a).click(function() { var c = this.title || this.name || null; var b = this.href || this.alt; var d = this.rel || false; tb_show(c, b, d); this.blur(); return false }) } function tb_show(k, b, h) { try { if (typeof document.body.style.maxHeight === "undefined") { $("body", "html").css({ height: "100%", width: "100%" }); $("html").css("overflow", "hidden"); if (document.getElementById("TB_HideSelect") === null) { $("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"); $("#TB_overlay").click(tb_remove) } } else { if (document.getElementById("TB_overlay") === null) { $("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"); $("#TB_overlay").click(tb_remove) } } if (tb_detectMacXFF()) { $("#TB_overlay").addClass("TB_overlayMacFFBGHack") } else { $("#TB_overlay").addClass("TB_overlayBG") } if (k === null) { k = "" } $("body").append("<div id='TB_load'><img src='" + imgLoader.src + "' /></div>"); $("#TB_load").show(); var c; if (b.indexOf("?") !== -1) { c = b.substr(0, b.indexOf("?")) } else { c = b } var f = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; var l = c.toLowerCase().match(f); if (l == ".jpg" || l == ".jpeg" || l == ".png" || l == ".gif" || l == ".bmp") { TB_PrevCaption = ""; TB_PrevURL = ""; TB_PrevHTML = ""; TB_NextCaption = ""; TB_NextURL = ""; TB_NextHTML = ""; TB_imageCount = ""; TB_FoundURL = false; if (h) { TB_TempArray = $("a[@rel=" + h + "]").get(); for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) { var g = TB_TempArray[TB_Counter].href.toLowerCase().match(f); if (!(TB_TempArray[TB_Counter].href == b)) { if (TB_FoundURL) { TB_NextCaption = TB_TempArray[TB_Counter].title; TB_NextURL = TB_TempArray[TB_Counter].href; TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>" } else { TB_PrevCaption = TB_TempArray[TB_Counter].title; TB_PrevURL = TB_TempArray[TB_Counter].href; TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>" } } else { TB_FoundURL = true; TB_imageCount = "Image " + (TB_Counter + 1) + " of " + (TB_TempArray.length) } } } imgPreloader = new Image(); imgPreloader.onload = function() { imgPreloader.onload = null; var o = tb_getPageSize(); var m = o[0] - 150; var r = o[1] - 150; var n = imgPreloader.width; var e = imgPreloader.height; if (n > m) { e = e * (m / n); n = m; if (e > r) { n = n * (r / e); e = r } } else { if (e > r) { n = n * (r / e); e = r; if (n > m) { e = e * (m / n); n = m } } } TB_WIDTH = n + 30; TB_HEIGHT = e + 60; $("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='" + b + "' width='" + n + "' height='" + e + "' alt='" + k + "'/></a><div id='TB_caption'>" + k + "<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); $("#TB_closeWindowButton").click(tb_remove); if (!(TB_PrevHTML === "")) { function q() { if ($(document).unbind("click", q)) { $(document).unbind("click", q) } $("#TB_window").remove(); $("body").append("<div id='TB_window'></div>"); tb_show(TB_PrevCaption, TB_PrevURL, h); return false } $("#TB_prev").click(q) } if (!(TB_NextHTML === "")) { function p() { $("#TB_window").remove(); $("body").append("<div id='TB_window'></div>"); tb_show(TB_NextCaption, TB_NextURL, h); return false } $("#TB_next").click(p) } document.onkeydown = function(s) { if (s == null) { keycode = event.keyCode } else { keycode = s.which } if (keycode == 27) { tb_remove() } else { if (keycode == 190) { if (!(TB_NextHTML == "")) { document.onkeydown = ""; p() } } else { if (keycode == 188) { if (!(TB_PrevHTML == "")) { document.onkeydown = ""; q() } } } } }; tb_position(); $("#TB_load").remove(); $("#TB_ImageOff").click(tb_remove); $("#TB_window").css({ display: "block" }) }; imgPreloader.src = b } else { var a = b.replace(/^[^\?]+\??/, ""); var d = tb_parseQuery(a); TB_WIDTH = (d.width * 1) + 30 || 630; TB_HEIGHT = (d.height * 1) + 40 || 440; ajaxContentW = TB_WIDTH - 30; ajaxContentH = TB_HEIGHT - 45; if (b.indexOf("TB_iframe") != -1) { urlNoQuery = b.split("TB_"); $("#TB_iframeContent").remove(); if (d.modal != "true") { $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>" + k + "</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='" + urlNoQuery[0] + "' id='TB_iframeContent' name='TB_iframeContent" + Math.round(Math.random() * 1000) + "' onload='tb_showIframe()' style='width:" + (ajaxContentW + 29) + "px;height:" + (ajaxContentH + 17) + "px;' > </iframe>") } else { $("#TB_overlay").unbind(); $("#TB_window").append("<iframe frameborder='0' hspace='0' src='" + urlNoQuery[0] + "' id='TB_iframeContent' name='TB_iframeContent" + Math.round(Math.random() * 1000) + "' onload='tb_showIframe()' style='width:" + (ajaxContentW + 29) + "px;height:" + (ajaxContentH + 17) + "px;'> </iframe>") } } else { if ($("#TB_window").css("display") != "block") { if (d.modal != "true") { $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>" + k + "</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:" + ajaxContentW + "px;height:" + ajaxContentH + "px'></div>") } else { $("#TB_overlay").unbind(); $("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:" + ajaxContentW + "px;height:" + ajaxContentH + "px;'></div>") } } else { $("#TB_ajaxContent")[0].style.width = ajaxContentW + "px"; $("#TB_ajaxContent")[0].style.height = ajaxContentH + "px"; $("#TB_ajaxContent")[0].scrollTop = 0; $("#TB_ajaxWindowTitle").html(k) } } $("#TB_closeWindowButton").click(tb_remove); if (b.indexOf("TB_inline") != -1) { $("#TB_ajaxContent").append($("#" + d.inlineId).children()); $("#TB_window").unload(function() { $("#" + d.inlineId).append($("#TB_ajaxContent").children()) }); tb_position(); $("#TB_load").remove(); $("#TB_window").css({ display: "block" }) } else { if (b.indexOf("TB_iframe") != -1) { tb_position(); if ($.browser.safari) { $("#TB_load").remove(); $("#TB_window").css({ display: "block" }) } } else { $("#TB_ajaxContent").load(b += "&random=" + (new Date().getTime()), function() { tb_position(); $("#TB_load").remove(); tb_init("#TB_ajaxContent a.thickbox"); $("#TB_window").css({ display: "block" }) }) } } } if (!d.modal) { document.onkeyup = function(m) { if (m == null) { keycode = event.keyCode } else { keycode = m.which } if (keycode == 27) { tb_remove() } } } } catch (j) { } } function tb_showIframe() { $("#TB_load").remove(); $("#TB_window").css({ display: "block" }) } function tb_remove() { $("#TB_imageOff").unbind("click"); $("#TB_closeWindowButton").unbind("click"); $("#TB_window").fadeOut("fast", function() { $("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove() }); $("#TB_load").remove(); if (typeof document.body.style.maxHeight == "undefined") { $("body", "html").css({ height: "auto", width: "auto" }); $("html").css("overflow", "") } document.onkeydown = ""; document.onkeyup = ""; return false } function tb_position() { $("#TB_window").css({ marginLeft: "-" + parseInt((TB_WIDTH / 2), 10) + "px", width: TB_WIDTH + "px" }); if (!(jQuery.browser.msie && jQuery.browser.version < 7)) { $("#TB_window").css({ marginTop: "-" + parseInt((TB_HEIGHT / 2), 10) + "px" }) } } function tb_parseQuery(d) { var e = {}; if (!d) { return e } var a = d.split(/[;&]/); for (var c = 0; c < a.length; c++) { var g = a[c].split("="); if (!g || g.length != 2) { continue } var b = unescape(g[0]); var f = unescape(g[1]); f = f.replace(/\+/g, " "); e[b] = f } return e } function tb_getPageSize() { var c = document.documentElement; var a = window.innerWidth || self.innerWidth || (c && c.clientWidth) || document.body.clientWidth; var b = window.innerHeight || self.innerHeight || (c && c.clientHeight) || document.body.clientHeight; arrayPageSize = [a, b]; return arrayPageSize } function tb_detectMacXFF() { var a = navigator.userAgent.toLowerCase(); if (a.indexOf("mac") != -1 && a.indexOf("firefox") != -1) { return true } } var resizeDelay = 10; var resizeIncrement = 8; var imgCache = new Object(); function getCacheTag(a) { return a.src + "~" + a.offsetLeft + "~" + a.offsetTop } function cachedImg(d, a) { this.img = d; this.cacheTag = getCacheTag(d); this.originalSrc = d.src; var c = d.height; var b = d.width; this.originalHeight = c; this.originalWidth = b; a = (!a) ? resizeIncrement : a; this.heightIncrement = Math.ceil(Math.min(1, (c / b)) * a); this.widthIncrement = Math.ceil(Math.min(1, (b / c)) * a) } function resizeImg(e, d, h, f) { var c = (d) ? d / 100 : 1; var b = e.getAttribute("cacheTag"); if (!b) { b = getCacheTag(e); e.setAttribute("cacheTag", b) } var a = imgCache[b]; if (!a) { imgCache[b] = new Array(new cachedImg(e), c) } else { a[1] = c } if (h) { if (f) { var g = e.src; g = g.replace(f, h); e.src = g } else { e.src = h } } resizeImgLoop(b); return true } function resizeImgLoop(l) { var p = imgCache[l]; if (!p) { return false } var j = p[0]; var m = j.img; var n = p[1]; var q = (n > 1) ? 1 : -1; var c = q * j.heightIncrement; var k = q * j.widthIncrement; var o = j.originalHeight; var h = j.originalWidth; var f = m.height; var d = m.width; var e = Math.round(o * n); var b = Math.round(h * n); if ((f == e) || (d == b)) { return true } var a = f + c; var g = d + k; if (n > 1) { if ((a >= e) || (g >= b)) { a = e; g = b } } else { if ((a <= e) || (g <= b)) { a = e; g = b } } m.height = a; m.width = g; if ((a == j.originalHeight) || (g == j.originalwidth)) { m.src = j.originalSrc } setTimeout("resizeImgLoop('" + l + "')", resizeDelay) };
