$(document).ready(function() {
	$.fn.hoverClass = function(c) {
		return this.each(function(){
			$(this).hover( 
				function() { $(this).addClass(c); },
				function() { $(this).removeClass(c); }
			);
		});
	};

	$("#flyout li").hover(function() {
		$("ul", this).fadeIn("fast"); }, function() { } );
	if (document.all) {
		$("#flyout li").hoverClass("overwrite");
	}
});

function showMore(linkObj){
    $(linkObj).hide();
    var block = $(linkObj).parent().siblings('.pressRelease');
    block.css('height', 'auto');
}

function showLess(linkObj){
    $(linkObj).hide();
    $(linkObj).siblings('.block').css('max-height', '350px');
}

function PrintContent(linkObj)
{
    var DocumentContainer = $(linkObj).siblings('.pressRelease')[0];
    var WindowObject = window.open('', 'PrintWindow',
    'width=850,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes');
    WindowObject.document.writeln(DocumentContainer.innerHTML);
    WindowObject.document.close();
    WindowObject.focus();
    WindowObject.print();
    WindowObject.close();
}
