<!--
$(document).ready(function(){

	$('.prompt a').each(function(){
		$(this).click(	function(){
				$(this).parent('div').hide();
				var strHC = Number($('.hand-count:first').text());
				strHC += 1;
				$('.hand-count').text(strHC);
		});
	});

	$(".hand").click(function(evt){
		evt.preventDefault();
		$.post('PostHand.asp', 'id='+$(this).attr('href'));
	});

$('#slide-stage .slide').hide();
	$('#slide-stage').show();

	$("#ministries-img").click(function(){
	  $("#panel").slideToggle("fast");
	});

	$("#btn-chat").click(function(){
		$("#chat-stage").css('left', '0px');	
		$("#notes-stage").hide();
		$("#galleryStage").hide();
	});

	$("#btn-notes").click(function(){
		$("#chat-stage").css('left', '-9999px');
		$("#notes-stage").show();
		$("#galleryStage").hide();
	});

	$("#btn-videos").click(function(){
		$("#chat-stage").css('left', '-9999px');
		$("#notes-stage").hide();
		$("#galleryStage").show();
	});

	$("#img-notes-print").click(function(){
		NotesOpenPrint();
	});
	$("#notes-send-again").click(function(){
		$("#NotesEmailField").show();
		$("#notes-send-again").hide();
	});

});

function openChat(data){
	$('#btn-chat').show();
	$('#btn-chat-close').hide();
	$('#chat-wrapper').show();
	$('#channel-two-links').show();

	$.PeriodicalUpdater({
			url : 'slide.asp',
			method: 'post',
			minTimeout: 3000,
			maxTimeout: 10000,
			multiplier: 1.5
		},
		function(data){
			$('#slide-stage .slide').hide();
			$('#' + data.slide).show();
			$('#slide-stage').show();
				$('.hand-count').text(data.hand);
		});
}

function closeChat(data){
	$('#btn-chat').hide();
	$('#btn-chat-close').show();
	$('#chat-wrapper').hide();
	$('#channel-two-links').show();
	$("#notes-stage").hide();
	$("#galleryStage").show();
}

function closeChatSlides(data){
	closeChat();
	clearTimeout(PeriodicalTimer);
}

function doesExist(theId) {
  if (document.getElementById && document.getElementById(theId)) return true
  if (document.all && document.all(theId)) return true
  if (document.layers && document.layers[theId]) return true
 return false
}

function NotesOpenPrint()
{
window.open('notes.asp','notes_print','menubar=1,resizable=1,width=570,height=650');
}

function getNotesValue()
{
return(window.frames['wysiwygCampusNotes'].document.body.innerHTML);
}


function vsOpenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
-->