var vml = jQuery.noConflict(); vml(document).ready(function() { vml("a#logo > img").attr("border", "0"); vml("a.internal").click(function() { window.open(this.href); return false; }) vml("#userNavigation ul.menu li:first").css("border", "none"); vml("#footer ul.menu li:first").css("border", "none"); vml(".tabs > ul").tabs(); vml(Exp_init); }); function GetCacheFile(targ, pageName) { vml(document).ready(function() { vml(targ).load("/CacheHTMLFiles/" + pageName, function() { vml(".tabs > ul").tabs(); vml(Exp_init); }); }); } var useSsl = false; function toggleSsl() { if (document.location.href.indexOf("1234") > 0) return; var isSsl = document.location.href.indexOf("https") == 0; if (useSsl && !isSsl) { document.location.href = document.location.href.replace("http", "https"); } else if (!useSsl && isSsl) { document.location.href = document.location.href.replace("https", "http"); } } vml.fn.labelOver = function(overClass) { return this.each(function() { var label = vml(this); var f = label.attr('for'); if (f) { var input = vml('#' + f); this.hide = function() { label.css({ textIndent: -10000 }) } this.show = function() { if (input.val() == '') label.css({ textIndent: 0 }) } input.focus(this.hide); input.blur(this.show); label.addClass(overClass).click(function() { input.focus() }); if (input.val() != '') this.hide(); } }); } function getParam(name) { var start = location.search.indexOf("?" + name + "="); if (start < 0) start = location.search.indexOf("&" + name + "="); if (start < 0) return ''; start += name.length + 2; var end = location.search.indexOf("&", start) - 1; if (end < 0) end = location.search.length; var result = ''; for (var i = start; i <= end; i++) { var c = location.search.charAt(i); result = result + (c == '+' ? ' ' : c); } return unescape(result); } function limitChars(textid, limit, countid) { var text = vml('#' + textid).val(); var textlength = text.length; if (textlength > limit) { vml('#' + countid).html(limit + ' character limit reached.'); vml('#' + textid).val(text.substr(0, limit)); return false; } else { vml('#' + countid).html((limit - textlength) + '/' + limit + ' characters left.'); return true; } } function newWindow(mypage, myname, w, h, scroll, pos) { if (pos == "random") { LeftPosition = (screen.width) ? Math.floor(Math.random() * (screen.width - w)) : 100; TopPosition = (screen.height) ? Math.floor(Math.random() * ((screen.height - h) - 75)) : 100; } if (pos == "center") { LeftPosition = (screen.width) ? (screen.width - w) / 2 : 100; TopPosition = (screen.height) ? (screen.height - h) / 2 : 100; } if (pos == 'topCenter') { LeftPosition = (screen.width) ? (screen.width - w) / 2 : 100; TopPosition = 0; } else if ((pos != "center" && pos != "random" && pos != "topCenter") || pos == null) { LeftPosition = 25; TopPosition = 25; } settings = 'width=' + w + ',height=' + h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',location=no,directories=no,status=yes,menubar=yes,toolbar=no,resizable=yes'; win = window.open(mypage, myname, settings); if (win.focus) { win.focus(); } } function popup(divid) { var block = document.getElementById(divid); block.style.display = "block"; } function windowClose(divid) { var block = document.getElementById(divid); block.style.display = "none"; } function searchKeypress(e) { var keynum = 0; if (window.event) { keynum = window.event.keyCode } else if (e.which) { keynum = e.which } if (keynum == 13) { doSearch("Search.aspx"); return false; } return true; } function doSearch(resultsPage) { var searchText = escape(document.getElementById("txtSearch").value); var url = resultsPage + "?q=" + searchText; document.location.href = url; } if (document.images) { img2 = new Image(); img4 = new Image(); img6 = new Image(); img8 = new Image(); img2.src = "/Images/bw_button_smallOff.gif" img4.src = "/Images/bw_button_medOff.gif" img6.src = "/Images/bw_button_largeOff.gif" img8.src = "/Images/bw_button_hugeOff.gif" }