currselected = 30;
currsel2 = 'Almere' ;
	function loadDis()
	{
		setCities(30,'Netherlands');
		getDealers('Almere');
	}
	function getDistributor(id)
	{
			  new Ajax.Request("ajax/distributor.php",
		   	  {	   	  		
				   postBody : "id="+id,
		           onComplete : function(t)
		           {
				//alert(t.responesText);
		     	  	$('dist').innerHTML = t.responseText;
		           }
		       }
		   );
		
	}
	function setCities(id,naam)
	{
		$("land_"+currselected).style.backgroundColor = '#000000';
		currselected = id;
		getDistributor(id);
		$("land_"+currselected).style.backgroundColor = '#737373';
		   new Ajax.Request("ajax/cities.php",
		   	  {	   	  		
				   postBody : "id="+id,
		           onComplete : function(t)
		           {
		     	    /*  $('citycontainer').style.display='inline';*/
		    	       $('citycontainer').innerHTML = t.responseText;
		    	       $('land').innerHTML = naam+' &raquo; ';
				$('stad').innerHTML = '';
				$('dealerdetailcontainer').innerHTML = '';

		    	      CSBfleXcroll('topmen2');
		           }
		       }
		   )
	}	
	function getDealers(city)
	{
		//$("c_"+currsel2).style.backgroundColor = '#737373';
		//currsel2 = city;
		//$("c_"+currsel2).style.backgroundColor = '#E5E5E5';
		
			   new Ajax.Request("ajax/city.php",
		   	  {	   	  		
				   postBody : "city="+city,
		           onComplete : function(t)
		           {
		           $('stad').innerHTML = city.capitalize() ;
		           $('dealerdetailcontainer').innerHTML = t.responseText;
		           CSBfleXcroll('contdib');
		           }
		       }
		   )
	}
