$(document).ready(function(){
	
	$('.msgok').each(coolReveal);
	$('.msgerror').each(coolReveal);

	$('A[rel="external"]').click(function() {
		window.open($(this).attr('href'));
		return false;
	});
	
	//$('#regbutton').click(handleRegClick);
    	
});

$(document).bind("contextmenu",function(e){
	alert('All content and images are copyrighted and may not be reproduced, reused or copied without the permission of Moral Ethics Code.');
	return false;
});

function coolReveal()
{
    $(this).hide();
    $(this).slideDown('slow'); 
}

function goPrev(iCourseId, iStepNum)
{
	document.location = 'member-course.php?c=' + iCourseId + '&s=' + (iStepNum-1) + '#top';
	return false;
}

function handleRegClick()
{
	$('#regbutton').addClass('nicebutton_off');
	$('#regbuttoninfo').slideDown(400);
	//setTimeout(doButtonDisable, 5000);
}

function doButtonDisable()
{
	//$('#regbutton').attr('disabled', 'disabled');
}





function handlePickSchoolChange()
{
	sVal = $('#sSchool').val();
	sPriceToUse = sJSPrice;
	if (sVal == 'Touro College')
	{
		sPriceToUse = sJSPrice;
	}
	else
	{
		sPriceToUse = sJSPriceOther;
	}
	$('#priceToUpdate').text(sPriceToUse);
}

function initializePickSchool()
{
	$('#sSchool').change(handlePickSchoolChange);
}




