﻿function PrintThis(_contentContainer) {
    var content = "";
    try {
        content = document.getElementById(_contentContainer).innerHTML;
    }
    catch (e) { }
    if (content != "") {
        var disp_setting = "toolbar=yes,location=no,directories=yes,menubar=yes,";
        disp_setting += "scrollbars=yes,width=650, height=600, left=100, top=25";

        var docprint = window.open("", "", disp_setting);
        docprint.document.open();
        docprint.document.write('<html><head><title>Print</title>');
        docprint.document.write('<style>.ClearBoth{clear:both}.P{padding-top:18px;}.PurpleQuestion{font-style:italic;}.PurpleHeading{font-weight:bold;padding-bottom:3px;}.PageBlock{float:left;padding:4px;}.Table{font-size:11;}</style>');
        docprint.document.write('</head><body onLoad="self.print()"><div style="text-align:left; width:600px; font-family:verdana; font-size:11px;">');
        docprint.document.write('<img src="' + MHLogo + '" alt="Memorial Hospital" title="Memorial Hospital" border="0" /><br/>');
        docprint.document.write(content);
        docprint.document.write('<br/><br/><br/>&copy; Memorial Hospital</div></body></html>');
        docprint.document.close();
        docprint.focus();
    }
}
function PrintThisClear() {
    alert('test');
}
var $j = jQuery.noConflict();

$j(document).ready(function() {
    LoadDropDown();
});

function LoadDropDown() {
    $j('.MainNavItem').hover(function() {
        $j(this).children('.DropDownNav').css('display', 'block');
        $j(this).children('.Link').children('').addClass('Hover');
    },
    function() {
        $j(this).children('.DropDownNav').css('display', 'none');
        $j(this).children('.Link').children('').removeClass('Hover');
    });
}

function SetSearchImage(_txt) {    
    //if (_txt.value == "") {
    //    _txt.style.background = "rgb(255, 255, 255) url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) no-repeat scroll left center";
    //}
    //else {
        _txt.style.background = "rgb(255, 255, 255)";
    //}
}
