// menu ciudades disponibles por estado
/*
 * @autor:Luis Raul Marin
 * @fecha: 16/07/2009
 */


function cdpe(){};

cdpe._ventana = false;

cdpe.toogle = function(){			
	var cdpe_list = jQuery("#ciudades table tr td div#cdpe_list");
	var cdpe_close = jQuery("#cdpe_close");	
	
	if (cdpe._ventana == false){		
		jQuery(cdpe_list).animate({height:"200px"},1000,function(){
			cdpe._ventana = true;
			jQuery(this).css({"overflow-y":"scroll","overflow-x":"auto"});
		})
		.addClass("cdpe_list");	
		
	} else { 
		jQuery(cdpe_list).animate({height:"0px"},1000,function(){
			jQuery(this)
			.removeClass("cdpe_list")
			.css("display","none");
			cdpe._ventana = false;
		})
		.css("overflow-y","hidden");	
	}
};

cdpe.zoomBox = function(xmin, ymin, xmax, ymax){
	if(mapObj){
		mapObj.ZoomToBox(new SGeoBox(xmin, ymin, xmax, ymax));
	}	
};