	$(document).ready(function() {
  // initialization code goes here

		$('#password-clear').show();
		$('#password').hide();

		$('#password-clear').focus(function() {
			$('#password-clear').hide();
			$('#password').show();
			$('#password').focus();
		});
		$('#password').blur(function() {
			if($('#password').val() == '') {
				$('#password-clear').show();
				$('#password').hide();
			}
		});

	$('.rmv-dft-val').click(
		function() {
			if (this.value == this.defaultValue) {
				this.value = '';
			}
		}
	);

	$('.rmv-dft-val').blur(
		function() {
			if (this.value == '') {
				this.value = this.defaultValue;
			}
		}
	);

	$('#SignIn').click(
		function() {
			if ($('input#password').val()=="" || $('input#emailaddress').val()=="")
			{
				alert('Please enter your email and password to login');
				return false;		
			}		
		}
	);

});


$(document).ready(function() {
    $('#HomePageSlideShow').cycle({
		fx: 'fade', 	timeout: 7000,  pager:  '#main-promo-controls', pagerEvent: 'mouseover', pauseOnPagerHover: true, fastOnEvent:   100,
		pagerClick: function (idx, slide)		 {		$('#HomePageSlideShow').cycle('pause');	},
		pagerAnchorBuilder: function(idx, slide) { 
		//var imgSrc="/images/PassionForHealing/Redesign/homepage_new_static/slideshow_" + (idx +1) + "_on.gif";
			var imgSrc="/images/spacer.gif";
			var firstItem = "<img src=\"/images/PassionForHealing/Redesign/homepage_new_static/slideshow_carrot.gif\" />"
			if (idx!=0)
			{ firstItem =""; }
	        return firstItem + '<a href="#"><img id="SlideShow_Control_' + (idx +1) + '" title="Image #' + (idx +1) + '" src="' + imgSrc + '" width=20 height="20" /></a>'; 
		}
	});
});
