/*
 * *** afk/jcc jquery functions
 */
$(document).ready(function(){

	/* *** hide content area */
	if( typeof bHasSplash !== 'undefined' ) {
		$("#content-area").hide();
		window.setTimeout( 'hideContentSplash()', 2000);
	}

	/* *** hide content splash */
	hideContentSplash = function() {
		$("#content-splash").hide('slow');
		$("#content-area").show();
		$("#footer").show();
	};

	/* *** hide start splash */
	hideStartSplash = function( sURL ) {
		window.location.href=sURL;
	}

	/* *** main nav highliting */
	$("#mainnav .mainnavitem").hover(function() {
		$("#mainnav .mainnavitem").addClass("ro");
		$(this).removeClass("ro");
		$(this).addClass("act");

		// *** show subnav
		$(this).find('.subnav').show('fast');

	/* *** main nav mouse out */
	}, function() {
		$(this).removeClass("act");
		$("#mainnav .mainnavitem").removeClass("ro");

		// *** hide subnav
		$(this).find('.subnav').hide('fast');
	});

	/* *** show print window */
	showWdwPrint = function( sURL ) {
		WdwPrint = window.open( sURL, "WdwPrint", "width=800,height=600,menubar=yes,scrollbars=yes,toolbar=no" );
  		WdwPrint.focus();
	}
});

