Dealer = {
	getLocation: function(strSearch, intAnzahlProSeite, intSeite, strSort, strSortType) {
		new Ajax.Request('/application/front/contr/contr_front_dealer.php?switch=getLocation', {
			method: 'POST',
			parameters: 'strSearch=' + strSearch + '&intAnzahlProSeite=' + intAnzahlProSeite + '&sort=' + strSort + '&sortType=' + strSortType + '&seite=' + intSeite,
			onComplete: function(objReq) {
				arrResponse = objReq.responseText;
				$('content').innerHTML    = arrResponse;
			}
	  });
	}
}

jQuery(document).ready(function(){
	jQuery("showmap").hide();
	jQuery("#map1").click(function () {
      jQuery("#showmap").show("fast");
    });
});


// Andy Langton's show/hide/mini-accordion - updated 18/03/2009
// Latest version @ http://andylangton.co.uk/jquery-show-hide
// this tells jquery to run the function below once the DOM is ready
jQuery(document).ready(function() {
	// choose text for the show/hide link - can contain HTML (e.g. an image)
	var showText='Show';
	var hideText='Hide';

	// append show/hide links to the element directly preceding the element with a class of "toggle"
	jQuery('.toggle').prev().append(' (<a href="#" class="toggleLink">'+showText+'</a>)');

	// hide all of the elements with a class of 'toggle'
	jQuery('.toggle').hide();

	// capture clicks on the toggle links
	jQuery('a.toggleLink').click(function() {
		// change the link depending on whether the element is shown or hidden
		jQuery(this).html (jQuery(this).html()==hideText ? showText : hideText);

		// toggle the display - uncomment the next line for a basic "accordion" style
		//jQuery('.toggle').hide();jQuery('a.toggleLink').html(showText);
		jQuery(this).parent().next('.toggle').toggle('slow');

		// return false so any link destination is not followed
		return false;
	});
});
