$(document).ready(
	function(){
			$("#flotante").floating({targetX:"left", targetY:"bottom"});		
	}
);


<!-- Begin
function loadImages() {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById('hidepage').style.visibility = 'hidden';
	}
	else {
		if (document.layers) { // Netscape 4
			document.hidepage.visibility = 'hidden';
			}
		else { // IE 4
		document.all.hidepage.style.visibility = 'hidden';
		}
	}
}
// End -->

<!-- Begin
function detenerError(){
return true
}
window.onerror=detenerError
// End -->

<!-- Begin
//Texto en barra de estado
 var cuenta=0
 var texto=" WEB CREATIVA - Diseņo Web Professional, HTML, PHP, FLASH... " //Aqui el mensaje
 function scrolltexto () {
 window.status=texto.substring (cuenta,texto.length)+  texto.substring(0,cuenta)
 if (cuenta <texto.length){ cuenta 
 }else{
 cuenta=0
 }
 setTimeout("scrolltexto()",80)
 }
 scrolltexto ()
// End -->

/*
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->


<!-- Begin
function clickIE() {
	if (document.all) {
	return false;
	}
} 
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) { 
		if (e.which==2||e.which==3) {
		return false;
		}
	}
} 
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
} 
else{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
} 
document.oncontextmenu=new Function("return false") 
// End -->
*/

/*<!-- Begin
function disableselect(e)
{   return false }
function reEnable()
{   return true  }
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar)
{   document.onmousedown=disableselect
   document.onclick=reEnable }
// End -->*/


		//Define the plugin
		$.fn.nudge = function(params) {
			//set default parameters
			params = $.extend({
				amount: 20,				//amount of pixels to pad / marginize
				duration: 300,			//amount of milliseconds to take
				property: 'padding', 	//the property to animate (could also use margin)
				direction: 'left',		//direction to animate (could also use right)
				toCallback: function() {},	//function to execute when MO animation completes
				fromCallback: function() {}	//function to execute when MOut animation completes
			}, params);
			//For every element meant to nudge...
			this.each(function() {
				//variables
				var $t = $(this);
				var $p = params;
				var dir = $p.direction;
				var prop = $p.property + dir.substring(0,1).toUpperCase() + dir.substring(1,dir.length);
				var initialValue = $t.css(prop);
				/* fx */
				var go = {}; go[prop] = parseInt($p.amount) + parseInt(initialValue);
				var bk = {}; bk[prop] = initialValue;
				
				//Proceed to nudge on hover
				$t.hover(function() {
							$t.stop().animate(go, $p.duration, '', $p.toCallback);
						}, function() {
							$t.stop().animate(bk, $p.duration, '', $p.fromCallback);
						});
			});
			return this;
		};
	
	/* usages */
	$(document).ready(function() {
		/* usage 1 */
		$('#menu1 li a').nudge({
			property: 'padding',
			direction: 'left',
			amount: 10,
			duration: 300
			/*toCallback: function() { $(this).css('color','#fff'); $(this).css('background','url(imagenes/bg_menu.png) repeat-x');$(this).css('border-color','#c00');},
			fromCallback: function() { $(this).css('color','#c00'); $(this).css('background','#eee');$(this).css('border-color','#ccc');}*/
			/*toCallback: function(){},
			toCallback: function(){}*/
		});
		/* usage 2 */
		$('#menu2 li a').nudge({
			property: 'margin',
			direction: 'left',
			amount: 10,
			duration: 300,
			toCallback: function() { $(this).css('color','#c00'); },
			fromCallback: function() { $(this).css('color','#000'); }
		});
	});


			$(document).ready(function(){
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//Vertical Sliding
				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
				});
				//Horizontal Sliding
				$('.boxgrid.slideright').hover(function(){
					$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
				});
				//Diagnal Sliding
				$('.boxgrid.thecombo').hover(function(){
					$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
				});
				//Partial Sliding (Only show some of background)
				$('.boxgrid.peek').hover(function(){
					$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
				});
				//Full Caption Sliding (Hidden to Visible)
				$('.boxgrid.captionfull').hover(function(){
					$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160});
				});
				//Caption Sliding (Partially Hidden to Visible)
				$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
				});
			});

        function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.anythingSlider').anythingSlider({
                easing: "easeOutBounce",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 10000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 1600,             // How long the slide transition takes
                hashTags: false,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Iniciar",             // Start text
		        stopText: "Parar",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
            $("#slide-jump").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });
            
        });
        
$(document).ready(function(){
	$(".button").hover(function(){
		$(".button img")
			.animate({top:"-10px"}, 200).animate({top:"-4px"}, 200) // first jump
			.animate({top:"-7px"}, 100).animate({top:"-4px"}, 100) // second jump
			.animate({top:"-6px"}, 100).animate({top:"-4px"}, 100); // the last jump
		});
}); 

/*flotante*/
/*$(document).ready(function()
{
	$(window).scroll(function()
	{
  		//$('#flotante').animate({top:$(window).scrollTop()+"px" },{queue: false, duration: 350});  
  		$('#flotante').animate({bottom:"-"+$(window).scrollTop()+"px" },{queue: false, duration: 500});  
	});

});*/


$(document).ready(function(){
$("form").submit(function(){

var str = $("form").serialize();

   $.ajax({
   type: "POST",
   url: "contacto.php",
   data: str,
   success: function(msg){
    
$("#avisos").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
result = '<div class="enviado">Your message has been sent. Thank you!</div>';
$("#contacto").hide();
}
else
{
result = msg;
}

$(this).html(result);

});

}

 });

return false;

});

});