﻿function HandleRequest(a) { if (a.GetText().length < 1) { return false } } function showForgotForm() { $("#forgotLink").slideUp(); $("#ctl00_divValidate").slideUp(); $("#ctl00_divLoggedOut").slideUp(); $("#forgotForm").slideDown() } var SECFilings = {}; $(function() { $("#UcBasicSearch1_comboCompanyTicker_Input").focus(); SECFilings.tickerError(); SECFilings.bookMarks(); SECFilings.toolTips("#actionsForBookmark", "a"); SECFilings.toolTips(".alertIncludes", "label"); SECFilings.inputFocusRemoveText("#loginForm", ".email", "email"); SECFilings.inputFocusRemoveText("#loginForm", ".password", "password"); SECFilings.inputFocusRemoveText("#changeTickerSymbol", ".enterTicker", "Enter Ticker"); SECFilings.friendsMessage(".emailAFriend", "#ucEmailAFriend", "#emailSuccess", "#emailError"); SECFilings.friendsMessage(".emailAFriend", ".myInboxEmailAFriend", "#emailSuccess", "#emailError"); SECFilings.friendsMessage(".FLemailAFriend", "#filingEmailAFriend", "#emailSuccess", "#emailError"); SECFilings.createEmailAlertSuccess(); SECFilings.addToAlerts(); SECFilings.loginError(); SECFilings.documentDownload(".downloadPDF", 0, "#SECdocumentDownload"); SECFilings.documentDownload(".downloadRTF", 1, "#SECdocumentDownload"); SECFilings.documentDownload(".inboxDownloadPDF", 0, ".documentDownload"); SECFilings.documentDownload(".inboxDownloadRTF", 1, ".documentDownload"); SECFilings.documentDownload(".downLoadFilingButton", 0, ".documentDownload"); SECFilings.documentDownload(".downLoadFilingButton", 1, ".documentDownload"); SECFilings.emailAlertCallBacks(); closeDocDownload(); myAlertSuccess(); closeAlertSuccess(".closeAlert"); SECFilings.forgotPassword(); SECFilings.companySecTabs(); closemyAlertInvalid(); SECFilings.selectBoxIE6Hack(".ComboBoxInput_advancedSearch", "#UcAdvancedSearch2_lstbCompanyFormTypes"); SECFilings.selectBoxIE6Hack("#UcAdvancedSearch2_comboIndustry_Input", "#UcAdvancedSearch2_lstbIndustryFormType"); SECFilings.selectBoxIE6Hack("#UcAdvancedSearch1_comboCIK_Input", "#UcAdvancedSearch1_lstbCompanyFormTypes"); SECFilings.selectBoxIE6Hack("#UcAdvancedSearch1_comboCompanyTicker_Input", "#UcAdvancedSearch1_lstbCompanyFormTypes"); SECFilings.selectBoxIE6Hack("#UcAlertAdmin1_comboCompanyTicker_Input", "#UcAlertAdmin1_lbxCompaniesInAlert, #UcAlertAdmin1_ddlSelectFormTypes, #UcAlertAdmin1_lbxFormTypesInAlert"); SECFilings.selectBoxIE6Hack("#UcAlertAdmin1_comboIndustry_Input", "#UcAlertAdmin1_lbxIndustruesInAlert2, #UcAlertAdmin1_ddlSelectFormTypes, #UcAlertAdmin1_lbxFormTypesInAlert"); SECFilings.selectBoxIE6Hack("#UcAlertAdmin1_comboPersonName_Input", "#UcAlertAdmin1_lbxPeopleInalert") }); SECFilings.emailAlertCallBacks = function() { SECFilings.popupRegis(".headertabCreateAlertRegis", "#createAlertWrap", ".closeLogInNow"); SECFilings.popupRegis(".tabCreateAlertRegis", "#createAlertWrap", ".closeLogInNow"); SECFilings.popupRegis(".actionOpenAlertsRegis", "#createAlertWrap", ".closeLogInNow"); SECFilings.popupRegis("#btnCreateAlertRegis", "#createAlertWrap", ".closeLogInNow"); SECFilings.emailAlertParameters(".CompanyCreateAlert", "#NewsAlertParameters", ".closeNewsPara"); SECFilings.emailAlertParameters("#btnCreateAlert", "#alertParameters", ".closeAlertPara"); SECFilings.emailAlertParameters(".tabCreateAlert", "#filingAlertParameters", ".closeFilingAlertPara"); SECFilings.emailAlertParameters(".headertabCreateAlert", ".filingHeaderalertParameters", ".closeFilingHeaderPara"); SECFilings.emailAlertParameters(".actionOpenAlerts", ".actionAlertParameters", ".closeActionPara"); SECFilings.emailAlertParameters(".NewsReaderAlert", "#NewsReaderAlertParameters", ".closeNewReaderAlert"); closeAlertSuccess(".closeAddToAlertsSuccess"); SECFilings.emailSuccess() }; callBackLoad = function() { SECFilings.emailSuccess(); SECFilings.inviteSuccess(); SECFilings.emailAlertParameters(".actionOpenAlerts", ".actionAlertParameters", ".closeActionPara"); $(document).find("select, iframe").css({ visibility: "visible" }); closeDocDownload(); SECFilings.addToAlerts(); SECFilings.createEmailAlertSuccess(); SECFilings.bookMarks(); SECFilings.closeFriend("#ucInviteAFriend"); SECFilings.closeFriend("#ucEmailAFriend"); SECFilings.toolTips("#actionsForBookmark", "a"); SECFilings.friendsMessage(".emailAFriend", ".myInboxEmailAFriend", "#emailSuccess", "#emailError"); SECFilings.documentDownload(".inboxDownloadPDF", 0, ".documentDownload"); SECFilings.documentDownload(".inboxDownloadRTF", 1, ".documentDownload") }; callBackLoadFilingsList = function() { SECFilings.addToAlerts(); SECFilings.documentDownload(".downloadPDF", 0, "#SECdocumentDownload"); SECFilings.documentDownload(".downloadRTF", 1, "#SECdocumentDownload"); closeDocDownload(); closeDownloadComplete(); closeEmailAFriend(); SECFilings.emailSuccess() }; SECFilings.popupRegis = function(b, a, c) { $(b).click(function() { if (jQuery.browser.version == 6) { $(document).find("select, iframe, .tabstrip").css({ visibility: "hidden" }) } $(a).slideDown("slow", function() { $("#smallRegLogin").css({ display: "block" }); $(c).click(function() { $(a).slideUp("slow"); if (jQuery.browser.version == 6) { $(document).find("select, iframe, .tabstrip").css({ visibility: "visible" }) } }) }); return false }) }; closeLogInNow = function() { $("#smallRegLogin").parent("div").slideUp("slow", function() { SECFilings.emailAlertParameters("#btnCreateAlert", "#alertParameters", ".closeAlertPara") }) }; SECFilings.documentDownload = function(b, a, c) { $(b).click(function() { DLID = $(this).attr("title"); $(".documentId").attr({ value: DLID }); if (jQuery.browser.version == 6) { $(document).find("select").css({ visibility: "hidden" }) } $(".radioList").find("input:eq(" + a + ")").attr("checked", "checked"); $(c).css({ display: "block", opacity: 0.2 }).animate({ left: 100, top: 50 }, "slow", function() { $(this).fadeTo("slow", 1, function() { cancelDownload("#SECdocumentDownload"); cancelDownload(".documentDownload"); $(".button").click(function() { $(c).css({ display: "none" }); if (jQuery.browser.version == 6) { $(document).find("select").css({ visibility: "visible" }) } }) }) }) }) }; cancelDownload = function(a) { $("#cancelDownload").click(function() { $(a).fadeOut("slow") }) }; closeDocDownload = function() { $("#cancelDownload").click(function() { $("#docDownload").slideUp("slow") }) }; helpCloseDocDownload = function() { $(".documentDownload").slideUp("slow") }; closeDownloadComplete = function() { $(".closeDownLoadComplete").click(function() { $("#DocumentDownloadResult").slideUp("slow") }) }; SECFilings.emailAlertParameters = function(a, c, b) { $(a).click(function() { if (a == "#btnCreateAlert") { var d = $("#UcCreateEmailAlert1_CoName").val(); $("#UcCreateEmailAlert1_UcAlertOptions1_tbAlertName").val(d) } if (jQuery.browser.version == 6) { $(document).find("select, iframe").css({ visibility: "hidden" }) } $(c).slideDown("slow", function() { $(b).click(function() { $(c).slideUp("slow"); if (jQuery.browser.version == 6) { $(document).find("select, iframe").css({ visibility: "visible" }) } }) }); return false }) }; closeAlertSuccess = function(a) { $(a).click(function() { $(this).parent("div").slideUp("slow") }) }; SECFilings.closeFriend = function(a) { $(".cancel").click(function() { $(a).slideUp("slow") }) }; closeEmailAFriend = function() { $("#filingEmailAFriend").find(".cancel").click(function() { $("#filingEmailAFriend").slideUp("slow") }) }; SECFilings.createEmailAlertSuccess = function() { $("#emailAlertSuccess").fadeIn("slow", function() { closeEmailAlertSuccess() }) }; myAlertSuccess = function() { $("#myAlertSuccess").fadeIn("slow", function() { $(".closemyAlertSuccess").click(function() { $(this).parent("div").slideUp("slow") }) }) }; closemyAlertSuccess = function() { $(".closemyAlertSuccess" || ".closemyAlertInvalid").click(function() { $(this).parent("div").slideUp("slow"); if (jQuery.browser.version == 6) { $(document).find("select, iframe").css({ visibility: "visible" }) } }) }; closemyAlertInvalid = function() { $(".closemyAlertInvalid").click(function() { $(this).parent("div").slideUp("slow"); if (jQuery.browser.version == 6) { $(document).find("select, iframe").css({ visibility: "visible" }) } }) }; closeEmailAlertSuccess = function() { $(".closeEmailAlertSuccess").click(function() { $("#emailAlertSuccess").slideUp("slow"); if (jQuery.browser.version == 6) { $(document).find("select, iframe").css({ visibility: "visible" }) } }) }; SECFilings.emailSuccess = function() { $("#emailSuccess").click(function() { $(this).fadeOut("slow") }) }; SECFilings.inviteSuccess = function() { $("#inviteSuccess").fadeIn("slow", function() { $(this).click(function() { $(this).fadeOut("slow") }) }) }; SECFilings.friendsMessage = function(c, b, d, a) { $(c).click(function() { if (jQuery.browser.version == 6) { $(document).find("select").css({ visibility: "hidden" }) } $(b).css({ display: "block", opacity: 0.2 }).animate({ left: 220, top: 40, width: 415, height: 160 }, "slow", function() { $(this).fadeTo("slow", 1) }); return false }); $(b).find(".cancel").click(function() { $(b).slideUp("slow", function() { if (jQuery.browser.version == 6) { $(document).find("select").css({ visibility: "visible" }) } }); $(a + ":visible").slideUp("slow") }); $(d).click(function() { $(this).fadeOut(6000) }); $(a).animate({ top: 0, left: 205 }, 3000, function() { $(b).css({ display: "block" }).animate({ left: 220, top: 100, width: 415, height: 160 }, "slow") }) }; SECFilings.bookMarks = function() { $("#openBookMarks").click(function() { if (jQuery.browser.version == 6) { $(document).find("select").css({ visibility: "hidden" }) } $("#ucBookMarks").css({ display: "block", opacity: 0.2 }).animate({ left: 220, top: 100, width: 400 }, "slow", function() { $(this).fadeTo("slow", 1) }); return false }); $(".closeBookMarks").click(function() { $("#ucBookMarks").slideUp("slow", function() { if (jQuery.browser.version == 6) { $(document).find("select").css({ visibility: "visible" }) } }); return false }) }; SECFilings.addToAlerts = function() { $("#addToAlertsSuccess").click(function() { $(this).fadeOut("slow"); SECFilings.emailAlertCallBacks(); if (jQuery.browser.version == 6) { $(document).find("select, iframe").css({ visibility: "visible" }) } }) }; SECFilings.companySecTabs = function() { $(".btnSearchAgain").click(function() { $(this).css({ background: "#eee url(/img/nav-button-search-by-form-type-or-date-on.gif) left top no-repeat" }); $(".btnFilingsList").css({ background: "#eee url(/img/nav-button-sec-filing-list-off.gif) left top no-repeat" }); $("#tabWrapper").slideDown("slow"); $(".RadGrid_filingList").slideUp("slow") }); $(".btnFilingsList").click(function() { $(this).css({ background: "#eee url(/img/nav-button-sec-filing-list-on.gif) left top no-repeat" }); $(".btnSearchAgain").css({ background: "#eee url(/img/nav-button-search-by-form-type-or-date-off.gif) left top no-repeat" }); $("#tabWrapper").slideUp("slow"); $(".RadGrid_filingList").slideDown("slow") }) }; SECFilings.loginError = function() { $(".loginError").fadeIn(3500, function() { $(this).click(function() { $(this).fadeOut(1500) }) }) }; SECFilings.toolTips = function(b, a) { $(b).find(a).hover(function() { tip = $(this).attr("title"); $(b).find(".toolTipBox").css({ display: "block" }).html(tip); $(this).removeAttr("title") }, function() { $(this).attr("title", tip); $(".toolTipBox").css({ display: "none" }).html() }) }; SECFilings.tickerError = function() { $("#tickerError").click(function() { $(this).slideUp("slow") }) }; SECFilings.inputFocusRemoveText = function(d, b, c, a) { $(d).find(b).focus(function() { $(this).addClass("focus"); if ($(b).val() == c) { $(this).val("") } }); $(d).find(b).blur(function() { $(this).removeClass("focus"); if ($(b).val() == "") { $(this).val(c) } }) }; SECFilings.forgotPassword = function() { $(".openForgotPassword").click(function() { $("#retrievePasswordWrap").slideDown("slow", function() { $(".closeRetrivevePassword").click(function() { $("#retrievePasswordWrap").slideUp("slow") }) }) }); $(".showmessageGreen").click(function() { $(this).slideUp("slow") }); $(".showmessageRed").click(function() { $(this).slideUp("slow") }) }; $(function() { $(".filterTools").find(".radEnabledCss_Default, img").click(function() { $(".allDates").find("input[@type='checkbox']").attr({ checked: "" }) }); $(".rmpFilterDateRange").find(".radEnabledCss_Default, img").click(function() { $(".searchAllCo").find("input[@type='checkbox']").attr({ checked: "" }) }); $(".filterPersonDate").find(".radEnabledCss_Default, img").click(function() { $(".searchAllPerson").find("input[@type='checkbox']").attr({ checked: "" }) }); $(".industryFilterDateRange").find(".radEnabledCss_Default, img").click(function() { $(".searchAllInd").find("input[@type='checkbox']").attr({ checked: "" }) }); $(".filterDate").find(".radEnabledCss_Default, img").click(function() { $(".filterDate").find("input[@type='checkbox']").attr({ checked: "" }) }) }); SECFilings.selectBoxIE6Hack = function(a, b) { if (jQuery.browser.version == 6) { $(a).focus(function() { $(b).css({ visibility: "hidden" }) }); $(a).blur(function() { $(b).css({ visibility: "visible" }) }) } }; SECFilings.reloadIframe = function(c, a) { var b = $(c).find("iframe").attr("src"); $(c).find("iframe").attr("src", b).fadeTo(a, 1, function() { SECFilings.reloadIframe(c, a) }) };