function loadFeatures(){

 	$('.li').corners();
	$('#wrapper').corners();
 	$("#visitas").corners();
 	$("#left").corners();
 	$("#right").corners();
 	$("#centro").corners();
	$("#mycarousel").corners();
	$(".bg_").corners();
	$("#wrapper").corners();
 	

	if (getWindowWidth() == 1024){
			
			$("#centro").css({width:"480px"});
                        $("#right").css({width:"150px"});
                        $("#flash_div").html("");
                        $("#left").css({width:"250px"});

	}
	if (getWindowWidth() == 1152){

                        $("#centro").css({width:"590px"});
                        $("#right").css({width:"150px"});
                        $("#flash_div").html("");
                        $("#left").css({width:"250px"});

        }
	else{
                        $("#centro").css({width:"645px"});
                        $("#right").css({width:"230px"});
	}	
	showCarusell();
}

function getWindowHeight() {

	if (self.innerHeight) return self.innerHeight;

		if (document.documentElement && document.documentElement.clientHeight)

		return document.documentElement.clientHeight;

	if (document.body) return document.body.clientHeight;
		return 0;
}

function getWindowWidth() {

	if (self.innerWidth) return self.innerWidth;
	if (document.documentElement && document.documentElement.clientWidth)
		
		return document.documentElement.clientWidth;

	if (document.body) return document.body.clientWidth;
		return 0;
}

function cargarForm(url){
	
	    
		
		$.ajax({
			   
					type:"POST",
					url:url,
					data:"",
					success:function(data){
						
						$("#centro").html("<div id='content'>"+data+"</div>");	
						$("#centro").show("clip", 2000);

						showCarusell();
										 
						
					}
			   
			   });	
	
	 
}

function showCarusell(){
	
		jQuery(document).ready(function() {
			jQuery('#mycarousel').jcarousel({
				vertical: true,
				scroll: 1
 			});
		});	
	
}

function cargarVideo(url, nombre, fecha, descripcion){
		
		$.ajax({
			   
					type:"POST",
					url:"templates/video.php?url="+url+"&nombre="+nombre+"&fecha="+fecha,
					data:"descripcion="+descripcion,
					success:function(data){
						
						$("#centro").html("<div id='content'>"+data+"</div>");
						flowplayer("player", "modules/reproductor/flowplayer/flowplayer-3.2.5.swf");
					}
			   
			   });	
	
}

