 function carga_oficina(id, tarea)
{
   // alert('entre');

  var idioma = jQuery('#idioma').val();

  // alert(tarea);
   xajax_carga_foto_synth(id, tarea, idioma);
   
   // jQuery.scrollTo('#div_caracteristicas',800);
   
   
 
 
  
	


   
}

//////////////

/*
Methods for resizing the flash stage at runtime.

setFlashWidth(divid, newW)
divid: id of the div containing the flash movie.
newW: new width for flash movie

setFlashWidth(divid, newH)
divid: id of the div containing the flash movie.
newH: new height for flash movie

setFlashSize(divid, newW, newH)
divid: id of the div containing the flash movie.
newW: new width for flash movie
newH: new height for flash movie

canResizeFlash()
returns true if browser supports resizing flash, false if not.
*/
function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if( document.getElementById ){
		if(opera == -1) return true;
		else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}

function dataObjectiveFlash(dato)
{
	//alert(dato);
}

function validateDiagraming()
{
	//alert("Validando chbonamente");
}


function carga_foto(foto)
{
    xajax_carga_foto_ajax(foto);
}


function scroll_div(div)
{
	
	//alert('entre');
	
var campo = '#'+div;	
 var targetOffset = jQuery(campo).offset().top;
        jQuery('html,body').animate({scrollTop: targetOffset}, 1000);

}

function ancla(destino)
{
	
	//alert('entre con '+destino);
	
	//location.href = "index.php/es/planes#plan_1";
	
	location.href = destino;
	
	//jQuery(document).ready(function(){

	 //var targetOffset = jQuery('#plan_1').offset().top;
       // jQuery('html,body').animate({scrollTop: targetOffset}, 1000);
		
	//});
	
	
	

}


function ancla_2(destino)
{
	
	//alert('entre con '+destino);
	
	//location.href = "index.php/es/footer/reservas";
	
	location.href = "http://my.ves.com.co/";
	
	//jQuery(document).ready(function(){

	 //var targetOffset = jQuery('#plan_1').offset().top;
       // jQuery('html,body').animate({scrollTop: targetOffset}, 1000);
		
	//});
	
	
	

}
