﻿if (typeof deconcept == "undefined") { var deconcept = new Object() } if (typeof deconcept.util == "undefined") { deconcept.util = new Object() } if (typeof deconcept.SWFObjectUtil == "undefined") { deconcept.SWFObjectUtil = new Object() } deconcept.SWFObject = function(r, b, s, f, m, d, o, k, g, e, p, n) { if (!document.getElementById) { return } this.DETECT_KEY = n ? n : "detectflash"; this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY); this.params = new Object(); this.variables = new Object(); this.attributes = new Array(); if (r) { this.setAttribute("swf", r) } if (b) { this.setAttribute("id", b) } if (s) { this.setAttribute("width", s) } if (f) { this.setAttribute("height", f) } if (m) { this.setAttribute("version", new deconcept.PlayerVersion(m.toString().split("."))) } if (d) { this.setAttribute("wmode", d); this.addParam("wmode", d) } this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(); if (o) { this.addParam("bgcolor", o) } var a = g ? g : "high"; this.addParam("quality", a); this.setAttribute("useExpressInstall", k); this.setAttribute("doExpressInstall", false); var l = (e) ? e : window.location; this.setAttribute("xiRedirectUrl", l); this.setAttribute("redirectUrl", ""); if (p) { this.setAttribute("redirectUrl", p) } }; deconcept.SWFObject.prototype = { setAttribute: function(a, b) { this.attributes[a] = b }, getAttribute: function(a) { return this.attributes[a] }, addParam: function(b, a) { this.params[b] = a }, getParams: function() { return this.params }, addVariable: function(b, a) { this.variables[b] = a }, getVariable: function(a) { return this.variables[a] }, getVariables: function() { return this.variables }, getVariablePairs: function() { var c = new Array(); var b; var a = this.getVariables(); for (b in a) { c.push(b + "=" + a[b]) } return c }, getSWFHTML: function() { var b = ""; if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn") } b = '<embed type="application/x-shockwave-flash" src="' + this.getAttribute("swf") + '"  wmode="' + this.getAttribute("wmode") + '" width="' + this.getAttribute("width") + '" height="' + this.getAttribute("height") + '"'; b += ' id="' + this.getAttribute("id") + '" name="' + this.getAttribute("id") + '" '; var f = this.getParams(); for (var e in f) { b += [e] + '="' + f[e] + '" ' } var d = this.getVariablePairs().join("&"); if (d.length > 0) { b += 'flashvars="' + d + '"' } b += "/>" } else { if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX") } b = '<object id="' + this.getAttribute("id") + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + this.getAttribute("width") + '" height="' + this.getAttribute("height") + '">'; b += '<param name="movie" value="' + this.getAttribute("swf") + '" />'; var c = this.getParams(); for (var e in c) { b += '<param name="' + e + '" value="' + c[e] + '" />' } var a = this.getVariablePairs().join("&"); if (a.length > 0) { b += '<param name="flashvars" value="' + a + '" />' } b += "</object>" } return b }, write: function(b) { if (this.getAttribute("useExpressInstall")) { var a = new deconcept.PlayerVersion([6, 0, 65]); if (this.installedVer.versionIsValid(a) && !this.installedVer.versionIsValid(this.getAttribute("version"))) { this.setAttribute("doExpressInstall", true); this.addVariable("MMredirectURL", escape(this.getAttribute("xiRedirectUrl"))); document.title = document.title.slice(0, 47) + " - Flash Player Installation"; this.addVariable("MMdoctitle", document.title) } } if (this.skipDetect || this.getAttribute("doExpressInstall") || this.installedVer.versionIsValid(this.getAttribute("version"))) { var c = (typeof b == "string") ? document.getElementById(b) : b; c.innerHTML = this.getSWFHTML(); return true } else { if (this.getAttribute("redirectUrl") != "") { document.location.replace(this.getAttribute("redirectUrl")) } } return false } }; deconcept.SWFObjectUtil.getPlayerVersion = function() { var d = new deconcept.PlayerVersion([0, 0, 0]); if (navigator.plugins && navigator.mimeTypes.length) { var a = navigator.plugins["Shockwave Flash"]; if (a && a.description) { d = new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")) } } else { try { var b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7") } catch (c) { try { var b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); d = new deconcept.PlayerVersion([6, 0, 21]); b.AllowScriptAccess = "always" } catch (c) { if (d.major == 6) { return d } } try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash") } catch (c) { } } if (b != null) { d = new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(",")) } } return d }; deconcept.PlayerVersion = function(a) { this.major = a[0] != null ? parseInt(a[0]) : 0; this.minor = a[1] != null ? parseInt(a[1]) : 0; this.rev = a[2] != null ? parseInt(a[2]) : 0 }; deconcept.PlayerVersion.prototype.versionIsValid = function(a) { if (this.major < a.major) { return false } if (this.major > a.major) { return true } if (this.minor < a.minor) { return false } if (this.minor > a.minor) { return true } if (this.rev < a.rev) { return false } return true }; deconcept.util = { getRequestParameter: function(a) { var d = document.location.search || document.location.hash; if (d) { var c = d.substring(1).split("&"); for (var b = 0; b < c.length; b++) { if (c[b].substring(0, c[b].indexOf("=")) == a) { return c[b].substring((c[b].indexOf("=") + 1)) } } } return "" } }; deconcept.SWFObjectUtil.cleanupSWFs = function() { var c = document.getElementsByTagName("OBJECT"); if (c.length > 0) { __flash_unloadHandler = function() { }; __flash_savedUnloadHandler = function() { } } for (var b = 0; b < c.length; b++) { c[b].style.display = "none"; for (var a in c[b]) { if (typeof c[b][a] == "function") { c[b][a] = function() { } } } } }; if (typeof window.onbeforeunload == "function") { var oldBeforeUnload = window.onbeforeunload; window.onbeforeunload = function() { deconcept.SWFObjectUtil.cleanupSWFs(); oldBeforeUnload() } } else { window.onbeforeunload = deconcept.SWFObjectUtil.cleanupSWFs } if (Array.prototype.push == null) { Array.prototype.push = function(a) { this[this.length] = a; return this.length } } var getQueryParamValue = deconcept.util.getRequestParameter; var FlashObject = deconcept.SWFObject; var SWFObject = deconcept.SWFObject; 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 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 lblSelectAll_select(CheckboxID, ControlID, TreeElement, comboBoxTextBox) { var obj = document.getElementById(CheckboxID); var labelId = eval("'" + ControlID + "_lblSelectAll'"); var label = document.getElementById(labelId); if (obj.checked) { selectAllNodes(ControlID, TreeElement); label.innerHTML = "Uncheck all" } else { ResetNodes(ControlID, TreeElement, comboBoxTextBox); label.innerHTML = "Check all" } } function ResetNodes(ControlID, TreeElement, comboBoxTextBox) { var tree = TreeElement; var rootNodes = tree.AllNodes; var i; eval(ControlID + "_sumnodes=0;"); var selectAllCheckbox = document.getElementById(eval("'" + ControlID + "_cbSelectAll'")); for (i = 0; i < rootNodes.length; i++) { node = rootNodes[i]; if (i == 0 && eval(ControlID + "_selectAllNoteActivated")) { eval(ControlID + "_selectAllNoteValue=" + node.Value); expandNode(node) } if (node.Nodes == 0 && node.Value != eval(ControlID + "_selectAllNoteValue")) { eval(ControlID + "_sumnodes++;") } node.UnCheck() } eval(ControlID + "_iteration = 0"); selectAllCheckbox.checked = false; populateTextBox(ControlID) } function selectAllNodes(ControlID, TreeElement) { var tree = TreeElement; var rootNodes = tree.AllNodes; var i; eval(ControlID + "_iteration=0;"); for (i = 0; i < rootNodes.length; i++) { node = rootNodes[i]; expandNode(node); node.Check(); if ((node.Nodes == 0 && node.Value != eval(ControlID + "_selectAllNoteValue"))) { eval(ControlID + "_iteration++;") } } populateTextBox(ControlID) } function evaluateNode(b, a) { if (b.Checked) { calculateNoOfItemsChecked(b, a) } else { calculateNoOfItemsUnChecked(b, a) } } function calculateNoOfItemsChecked(node, ControlID) { var childNodes = node.Nodes; if (childNodes.length > 0) { expandNode(node); for (var u = 0; u < childNodes.length; u++) { if (!childNodes[u].Checked) { subNodes = childNodes[u].Nodes; childNodes[u].Check(); if (subNodes.length > 0) { evaluateNode(childNodes[u], ControlID) } else { eval(ControlID + "_iteration++;") } } } } else { eval(ControlID + "_iteration++;") } checkParent(node, ControlID); populateTextBox(ControlID) } function calculateNoOfItemsUnChecked(node, ControlID) { var childNodes = node.Nodes; if (childNodes.length > 0) { expandNode(node); for (var u = 0; u < childNodes.length; u++) { if (childNodes[u].Checked) { subNodes = childNodes[u].Nodes; childNodes[u].UnCheck(); if (subNodes.length > 0) { evaluateNode(childNodes[u], ControlID) } else { eval(ControlID + "_iteration--;") } } } } else { eval(ControlID + "_iteration--;") } unCheckParent(node, ControlID); populateTextBox(ControlID) } function populateTextBox(ControlID) { if (eval(ControlID + "_ComboTextEnable")) { var txt = document.getElementById(eval("'" + ControlID + "_comboBoxTextBox'")); txt.value = eval(ControlID + "_ComboText").replace("{#}", eval(ControlID + "_iteration.toString()")) } } function checkParent(node, ControlID) { var parent = node.Parent; if (parent) { var childNodes = parent.Nodes; var checkedNodes = 0; for (var u = 0; u < childNodes.length; u++) { node = childNodes[u]; if (node.Checked) { checkedNodes++ } } if (childNodes.length == checkedNodes) { parent.Check(); checkParent(parent, ControlID) } } else { if (eval(ControlID + "_sumnodes") == eval(ControlID + "_iteration")) { if (eval(ControlID + "_selectAllNoteActivated")) { tree = node.TreeView; tree.FindNodeByValue(eval(ControlID + "_selectAllNoteValue")).Check() } else { if (!eval(ControlID + "_selectAllNoteActivated")) { var checkbox = document.getElementById(eval("'" + ControlID + "_cbSelectAll'")); var label = document.getElementById(eval("'" + ControlID + "_lblSelectAll'")); checkbox.checked = true; label.innerHTML = "Uncheck all" } } } } } function unCheckParent(node, ControlID) { parentNode = node.Parent; if (parentNode) { parentNode.UnCheck(); unCheckParent(parentNode, ControlID) } else { if (eval(ControlID + "_sumnodes") != eval(ControlID + "_iteration")) { if (eval(ControlID + "_selectAllNoteActivated")) { tree = node.TreeView; tree.FindNodeByValue(eval(ControlID + "_selectAllNoteValue")).UnCheck() } else { var checkbox = document.getElementById(eval("'" + ControlID + "_cbSelectAll'")); var label = document.getElementById(eval("'" + ControlID + "_lblSelectAll'")); checkbox.checked = false; label.innerHTML = "Check All" } } } } function expandNode(a) { if (!a.Expanded) { a.Expand() } } function toggleCollapse(b) { var a = document.getElementById(b); var c = (a.style.display == "none"); a.style.display = (c ? "block" : "none") } function toggleCollapse(e, c, d, l, b) { if (!b) { var a = document.getElementById(e); var l = (a.style.display == "none"); a.style.display = (l ? "block" : "none") } else { var h = document.getElementById(e); if (currentContent == null) { currentContent = h; var g = (h.style.display == "none"); if ((g && l) || (!g && !l)) { if (l) { h.style.display = "block" } var k = h.offsetHeight; var f = d + (l ? 0 : -k); h.style.height = Math.abs(f) + "px"; setTimeout("togglePannelAnimatingStatus(" + c + "," + d + "," + k + "," + f + ")", c) } else { currentContent = null } } } } function togglePannelAnimatingStatus(a, d, c, e) { var b = Math.abs(e); if (b >= d && b <= (c - d)) { e += d; currentContent.style.height = Math.abs(e) + "px"; setTimeout("togglePannelAnimatingStatus(" + a + "," + d + "," + c + "," + e + ")", a) } else { if (b < d) { currentContent.style.display = "none" } currentContent.style.height = ""; currentContent = null } } var currentContent = null; function getElementsByClass(g, f, a) { var e = new Array(); if (f == null) { f = document } if (a == null) { a = "*" } var c = f.getElementsByTagName(a); var b = c.length; for (i = 0, j = 0; i < b; i++) { var d = c[i].className; if (d.match(g)) { e[j] = c[i]; j++ } } return e } function CloseOpenComboBoxes(c, e, b) { var a = getElementsByClass(e, document, "div"); if (a.length > 0) { for (var d = 0; d < a.length; d++) { node = a[d]; var f = (node.style.display == "block"); if (f && c != node.id) { if (b) { setTimeout("toggleCollapse('" + node.id + "'," + 5 + "," + 50 + "," + false + "," + false + ")", 300) } else { toggleCollapse(node.id, 50, 50, false, false) } } } } };
