$(document).ready(function(){	$('#show-menu-editor').click(function(){		$('#menu_editor').slideToggle('slow',function(){});	});	$('#submit-menu').click(function(){									 		var data = $('#menu_field').val();		//alert(email_id);		// remove the record here.		jQuery.ajax({			type:"POST",			url:"code/save_menu.php",			data:'data='+data,			cache:false,			success:function(response){				alert(response);			//var email_link = '<a href="mailto:'+response+'">'+response+'</a>'			//$('#'+email_id+'').html(email_link);			//alert(response);			//$('#comment_form').toggle('slow');			//$('.email a[href$="' + path + '"]').attr('class', 'selected');										}				})			 					 				$('#menu_editor').slideToggle('slow',function(){});		return false;	});		$('#show_page').click(function(){		$('.page_controls').slideToggle('slow',function(){});		return false;				   		});					$('.page_checkbox').click(function(){									   var page_name = $(this).attr('id');									   var page_status = $(this).attr('checked');									   jQuery.ajax({												type:"POST",												url:"code/change_page_status.php",												data:'page_name='+page_name+'&page_status='+page_status,												cache:false,												success:function(response){}													});// end of ajax									   									  									   });		$('.del_page').click(function(){		var page_to_delete = $(this).attr('rel')		var answer = confirm('Are you sure delete '+page_to_delete+' page from site.')		if(answer == true){			 jQuery.ajax({				 		type:"POST",						url:"code/delete_page.php",						data:'page_to_delete='+page_to_delete,						cache:false,						success:function(response){}						});// end of ajax		 		}// end answer == true.		return false;	});	});// end jquery readyfunction open_window(theURL,winName,features) { //v1.0  window.open(theURL,winName,features);}
