// JavaScript Document

jQuery.noConflict();
var selectedDay=0;
var onlineTimer = 0;
jQuery(document).ready(function(){
	jQuery('#help_request').click(
								  function()
								  {
									  mynebhelp();
									  jQuery('.classified_map').html('NeighBUZZ help Map');
									  if( jQuery("#page_quick_search option:last").val()=='state')
										  jQuery("#page_quick_search option:last").remove(); 

								   });
	
});


function mynebhelp(is_posthelp)
{
	jQuery('#mysearchtype').attr('value','nebhelp');
	jQuery("a").removeClass("selected_tab");
	jQuery("#help_request").addClass('selected_tab');
	jQuery('.classified_message').hide();
	jQuery('.classifiedcointainer').hide();
	//jQuery.post('/sfClassifieds/nebHelp', '', function(data){jQuery('#nebhelp_data').html(data);});
	jQuery(".loading_data").ajaxStart(function(){
	   jQuery(this).show();
	 });
			   
	/*If comes from Dashboard page 'Request Help'*/
	$is_posthelp =false;
	if(jQuery('#is_posthelp').val()=='is_posthelp')
		$is_posthelp =true;
	

	jQuery.post('/nebhelp/index', '', function(data){
											   jQuery('#nebhelp_data').html(data);
											   updateGoogleMap();
											   
											   if($is_posthelp)
											  	 	posthelp();
											   });
}
//jQuery('#submit_buttom').trigger('click');
function posthelp()
{
	popover_V2('/nebhelp/add/type/1', 'Post Message');
}

