
function openNavMenu(strWhichNav) {

	var objToOpen;
	objToOpen = document.getElementById(strWhichNav);
	objToOpen.style.display = 'block';
//	$('#' + strWhichNav).fadeIn('slow', function() {
//        // Animation complete
//      });

}

function closeNavMenu(strWhichNav) {

	var objToOpen;
	objToOpen = document.getElementById(strWhichNav);
	objToOpen.style.display = 'none';
//	$('#' + strWhichNav).fadeOut('slow', function() {
        // Animation complete
//      });


}


$(document).ready(function() {
  // Handler for .ready() called.
	$('#transOverlay').fadeOut(400, function() {
	});
});


/////////////////////////////////////////////////////////
// trnsPge
// function to transition the page - or turn the page
/////////////////////////////////////////////////////////
// destUrl : string : the destination
/////////////////////////////////////////////////////////
function trnsPge(destUrl) {
	$('#transOverlay').fadeIn(450, function() {
		// Animation complete
		document.location.href = destUrl;
  });

}


/////////////////////////////////////////////////////////
// transitionContentOut
/////////////////////////////////////////////////////////
//
/////////////////////////////////////////////////////////
function transitionContentOut(destUrl) {

//	window.alert(destUrl);

	$("#dvContentBoxy").slideUp({
		duration:2300,
		complete: function(){
			fadeToTop(destUrl);
			// expandElement(objHltEl.curHltEmt);
		}
	});
	
}

function fadeToTop(destUrl) {

	$('html, body').animate({ 
		scrollTop: 0
		},
		1000,
		function() {
			document.location.href = destUrl;
		}
	);

}

/////////////////////////////////////////////////////////
// transitionContentIn
/////////////////////////////////////////////////////////
//
/////////////////////////////////////////////////////////
function transitionContentIn() {

	$("#dvContentBoxy").slideDown({
		duration:2200
	});
	
}




