	$(document).ready(function() {
		// bind form using ajaxForm
		$('#search').ajaxForm({
	       		target: '#search_output_window',

	        // success identifies the function to invoke when the server response
	        // has been received; here we apply a fade-in effect to the new content
	        success: function() {
	            $('#search_output_window').fadeIn('slow');
	        }
	    	});
	});

	// pre-submit callback
	function showRequest(formData, jqForm, options) {
	    var queryString = $.param(formData);
	    return true;
	}

	// post-submit callback
	function showResponse(responseText, statusText)  {
	}

	function loadContent(link) {
		$("body").append("<div id='loading'><img src='./images/ajax-loader.gif' /></div>");//add loader to the page
		$('#loading')
			.ajaxStart(function() {$(this).show();})
			.ajaxStop(function() {$(this).hide();});
		$("#search_output_window").empty();
		$("#search_output_window").load(link);
	}

	function loadComparePrices(link) {
		$("body").append("<div id='loading'><img src='./images/ajax-loader.gif' /></div>");//add loader to the page
		$('#loading')
			.ajaxStart(function() {$(this).show();})
			.ajaxStop(function() {$(this).hide();});
		$("#compare_prices").load(link);
	}


