$(function(){
			$("a.wealthblueprint").fancybox({
				'hideOnContentClick': false,
				'frameWidth'		: 644,
				'frameHeight'		: 404,
				'overlayOpacity'	: 0.7,
				'type'				: 'iframe'
			});

			$('#submitSubscribe').click(function (){
					if ($("#txtEmailSubscribe").length)
					{
						if ($("#txtEmailSubscribe").val()=='Email Address' ||  $.trim($("#txtEmailSubscribe").val())=='')
						{
							alert ('Please enter your email address.');
							$("#my_email_address").focus();
							return false;
						}
						if(!isValidEmail($.trim($('#txtEmailSubscribe').val())))
						{
							alert ('Please enter a valid email address.');
							$("#txtEmailSubscribe").focus();
							//return false;
						}
					}
					var formURL	= './subscribe';
					if  (formURL)
					{
						$.post(
							   formURL, { txtEmailSubscribe	: $('#txtEmailSubscribe').val()
										}, function(data) {
															if(data==1)
																alert ('There is some issue in the form validation. Please recheck your fields.');
															else if(data==2)
																alert ('There is some problem in adding your email. Please try again');
															else if(data==3)
															{
																alert ('Your email has been added in our subscription list.');
																$('#txtEmailSubscribe').val('');
															}
																
									 });
					}
				});
		   });
