function Show_Descr(id){   
	
   $.post("ajax_description.php", 

            {id : id},

            function(response){
            		  var res = eval('('+response+')');
                      //putting into Containers!
            		  
                      $("#Res_Container").html($("#ControlDiv").html());

                      $("#Nav_Container").html($("#ControlNav").html());

                      //end putting into Containers!

                      //because of the IE design Bug! 

                      $("#map_browse").hide(900);

                      $("#ControlDiv").hide(800, function () {

                          $("#ControlDiv").html(res.msg);

                          $("#ControlDiv").show(800);

                      });    

                      $("#ControlNav").fadeOut(800, function () {

                          $("#ControlNav").html(res.box);

                          $("#ControlNav").fadeIn(800); 

                          $(function() {

                            $('#gallery a').lightBox({fixedNavigation:true});
                            $('#logo a').lightBox({fixedNavigation:true});
                            
                          });
                          
                      });
                      

                }          

                );

}



function BackToSearch() {

    $("#ControlNav").fadeOut(800, function () {

                      $("#ControlNav").html($("#Nav_Container").html());

                      $("#ControlNav").fadeIn(800); 

                      $("#browseLeft").html(' ');
                    });  
    $("#ControlDiv").fadeOut(800, function() {
  	  	$("#ControlDiv").html($("#Res_Container").html()); 
  	  	$("#ControlDiv").fadeIn(800);
        $("#Res_Container").html(' ');  

        $("#Nav_Container").html(' ');

        //Find_Place(page);
    });

}

function displayAddress(x, y) {
	$('#ShowAddress').show("slow");
	var latlng = new google.maps.LatLng(x, y);
    var myOptions = {
      zoom: 15,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.HYBRID
    };
    var map = new google.maps.Map(document.getElementById("MapAddress"), myOptions);

    var image = 'http://razpusni.bg/images/orange/markerRazpusni.png';
    var beachMarker = new google.maps.Marker({
        position: latlng,
        map: map,
        icon: image
    });
    $.scrollTo( 100, 300 );
}

function PlaceVote(vote, placeId){
	
	   $.post("ajax_vote.php", 

	            {vote : vote,
	             placeId: placeId},

	            function(response){
	            		  var res = eval('('+response+')');
	                      //putting into Containers!
	            		  alert(res.msg);
	                });
	}
