$(document).ready(function() {
//centro las imagenes horizontalmente
if(! $.browser.msie){
$('div.view-id-Fotos div.pics div.imgGalRota img').each(function(){
$(this).css('margin-left', (500-$(this).attr('width'))/2 );
$(this).css('margin-top', (360-$(this).attr('height'))/2 );
})
}
///////////////////////////////////////////
$("span.texoVerMas").hide();
$('Ver más ').insertAfter('.texoVerMas');
$('Ocultar ').insertAfter('.texoVerMas');
$("a.ocultar").hide();
$("a.verMas").click(function(){
$(this).parents("p").children("a.verMas").hide(0);
$(this).parents("p").children("span.texoVerMas").show();
$(this).parents("p").children("a.ocultar").fadeIn(0);
});
$("a.ocultar").click(function(){
$(this).parents("p").children("span.texoVerMas").hide(0);
$(this).parents("p").children("a.ocultar").hide(0);
$(this).parents("p").children("a.verMas").fadeIn(0);
});
//$("div.paginado_exposiciones .pager-previous > *").text('< Anterior');
//$("div.paginado_exposiciones .pager-next > *").text('Siguiente >');
//alert('va');
//GEvent.addListener(marker, "click", function() {
// marker.openInfoWindowHtml('juan pablo cassinelli');
//});
//seteo los campos del formulario de contacto
/*if(DatosUser){
$("#edit-submitted-nombre").val(DatosUser['name']);
$("#edit-submitted-mail").val(DatosUser['mail']);
}*/
$("#edit-title").change(function(){
$("#edit-field-ubicacion-0-name").val($(this).val());
})
$("#edit-field-direccion-0-value").change(function(){
$("#edit-field-ubicacion-0-street").val($(this).val());
})
$("#edit-field-departamento-value").change(function(){
$("#edit-field-ubicacion-0-city").val($(this).val());
})
});
function getTextoMarcaMapa(){
var texto= $("div.node-type-lugares div.field-field-direccion div.field-item").attr('innerHTML');
texto=texto +'
'+$("div.node-type-lugares div.field-field-telefonos").attr('innerHTML');
return texto;
}