var $HT = jQuery.noConflict();
			
			$HT(document).ready(function(){
				$HT('div.moduletable_events h3').next('center').hide('fast');
				$HT('div.moduletable_events h3').click(function(){						
					   $HT(this).next().slideToggle();
					});

				$HT('#email').change(function() {
					emal = $HT(this).val();
					$HT.ajax({
						   type: "POST",
						   url: "index.php?option=com_ajax&task=validatedomain&tmpl=component&format=RAW",
						   data: "email="+$HT(this).val(),
						   success: function(msg){
						   if(msg=='1')
						   {
							   $HT('#email').next().html('* <br><p class="err"><b style="color:green;">"'+emal+'" Email Domain is Reachable</b></p>');	
						   }else
						   {
							   $HT('#email').addClass('invalid');
							   $HT('#email').val('');
							   $HT('#email').next().html('*<br> <p class="err">"'+emal+'" Email Domain is invalid</p>');	
							   
						   }
						   				    
						   }
						 });
					});


				//apply job page

				$HT('#applicantemail').change(function() {
					emal = $HT(this).val();
					$HT.ajax({
						   type: "POST",
						   url: "index.php?option=com_ajax&task=validatedomain&tmpl=component&format=RAW",
						   data: "email="+$HT(this).val(),
						   success: function(msg){
						   if(msg=='1')
						   {
							   $HT('#jb-err').html('<b style="color:green;">"'+emal+'" Email Domain is Reachable</b>');	
						   }else
						   {
							   $HT('#applicantemail').addClass('invalid');
							   $HT('#applicantemail').val('');
							   $HT('#jb-err').html('<b style="color:red;">"'+emal+'" Email Domain is invalid</b>');	
							   
						   }
						   				    
						   }
						 });
					});

				
				//Contact Us Form

				$HT('#from_email').change(function() {
					femail = $HT(this).val();
					$HT.ajax({
						   type: "POST",
						   url: "index.php?option=com_ajax&task=validatedomain&tmpl=component&format=RAW",
						   data: "email="+$HT(this).val(),
						   success: function(msg){
						   if(msg=='1')
						   {
							   $HT('#email-err').html('*<b style="color:green;"> Email Domain is Reachable</b>');	
						   }else
						   {
							   $HT('#email-err').html('*<b style="color:red;"> Email Domain is not Reachable</b>');	
							   
						   }
						   				    
						   }
						 });
					});
				
				//Newletetr Form

				$HT('#field_email').change(function() {
					nemail = $HT(this).val();
					$HT.ajax({
						   type: "POST",
						   url: "index.php?option=com_ajax&task=validatedomain&tmpl=component&format=RAW",
						   data: "email="+$HT(this).val(),
						   success: function(msg){
						   if(msg=='1')
						   {
							   $HT('#email-err').html('&nbsp;*<b style="color:green;"><br>Email Domain is Reachable</b>');	
						   }else
						   {
							   $HT('#email-err').html('&nbsp;*<b style="color:red;"><br>Email Domain is not Reachable</b>');	
							   
						   }
						   				    
						   }
						 });
					});



				
			});
			
			//drop down zindex fix
			$HT(function() {
				var zIndexNumber = 10000;	
				$HT('ul').each(function() {	
				$HT(this).css('zIndex', zIndexNumber);
				zIndexNumber -= 10;
				});				
			});
			
