﻿window.onload = function homeNews() {
    var left = document.getElementById('left');
    if(left) {
        var lastChild = left.lastChild;
        if(window.navigator.appName == "Microsoft Internet Explorer") {
            if(lastChild.className = "newsItem") {
                lastChild.style.background = "none";
                lastChild.style.padding = "0";
                lastChild.style.margin = "0";
            }
        } else {
            if(lastChild.previousSibling.className = "newsItem") {
                lastChild.previousSibling.style.background = "none";
                lastChild.previousSibling.style.padding = "0";
                lastChild.previousSibling.style.margin = "0";
            }
        }
    }
}

//window.onload = function tabBorder() {
//    var appnBox = document.getElementById('ctl00_page_content_frmViewDetails');
//    var rows = appnBox.getElementsByTagName('div');
//    rows[1].style.borderTopStyle = "none";
//}
$(document).ready(function() {
    $("input.q").focus(function() {
        $(this).css({ backgroundImage: "none" });
    });
    $("#searchResults").css({ height: "1200px", overflowY: "hidden" });

    if ($("#copyright_year"))
    {
        var thisYear = (new Date).getFullYear();
        $("#copyright_year").text(thisYear);
    }
});
