(function ($) {
$.fn.exists = function()
{
return $(this).length>0;
};


/*--------------------------------------------------------------------------------------------
*
* Función circulo home
*
*--------------------------------------------------------------------------------------------*/
function setup_services()
{

$('#hacemos_circulo').hover(function(){
$('.circle').animate({
top : '-10px',
left : '-10px',
width : '300px',
height : '300px'
}, 250);

}, function(){
$('.circle').animate({
top : '0px',
left : '0px',
width : '280px',
height : '280px'
}, 250);

});


$('#circulo_container').hover(function(){
	
					$("#pronto").fadeIn(300).animate({top:'+=100px'}, 600),
					$("#hecho").fadeIn(300).animate({top:'-=210px'}, 600),
					$("#linea1").fadeIn(300).animate({left:'-=74px'}, 600),
					$("#linea2").fadeIn(300).animate({left:'+=74px'}, 600),	
					$("#dir").fadeIn(1800),	
					$("#fono").fadeIn(1800),
					$("#mail").fadeIn(1800),				
					$("#circulo_logo").fadeOut(600),
					$("#circulo_bg").delay(300).fadeIn(300);
					
					
				
				
				
				}, function() {
					
					$("#pronto").fadeOut(300).animate({top:'-=100px'}, 600),
					$("#hecho").fadeOut(300).animate({top:'+=210px'}, 600),
					$("#linea1").fadeOut(200).animate({left:'+=74px'}, 100),
					$("#linea2").fadeOut(200).animate({left:'-=74px'}, 100),
					$("#dir").fadeOut(200),	
					$("#fono").fadeOut(200),
					$("#mail").fadeOut(200),	
					$("#circulo_logo").delay(200).fadeIn(500),
					$("#circulo_bg").fadeOut(600);
					
				
				});

}


/*--------------------------------------------------------------------------------------------
*
* Document Ready
*
*--------------------------------------------------------------------------------------------*/
$(document).ready(function()
{
//set_widths();

setup_services();


});
/*--------------------------------------------------------------------------------------------
Window load
--------------------------------------------------------------------------------------------*/
$(window).load(function()
{
});
		
/*
window.onresize = function(event) {
//set_widths();
}
function set_widths()
{
return false;
$("#nav, #header, #footer, #header_top, #header .container").css({
width: $(document).width()
});
}
*/
})(jQuery);

