$(document).ready(function () {
    $("#dire").focus(function (srcc) {
        if ($(this).val() == $(this)[0].title) {
            $(this).addClass("default_on");
            $(this).val("");
        }
    });

    $("#dire").blur(function () {
        if ($(this).val() == "") {
            $(this).removeClass("default_on");
            $(this).val($(this)[0].title);
        }
    });

    $("#dire").blur();
});

$(document).ready(function () {
    $('#buscando').submit(function () {
        if ($('#dire').val() === $('#dire').attr('title')) {
            $('#dire').val('Gran Via 26, 28013');
            return true;
        }
    });
});

$(document).ready(function () {
    $('#dire').qtip({
        content: 'Incluye el c&oacute;digo postal para obtener mejores resultados',
        show: 'focus',
        hide: 'blur',
        position: {
            corner: 'topMiddle',
            adjust: {
                x: 0,
                y: 40
            }
        },
        style: {
            border: {
                width: 4,
                radius: 5
            },
            padding: 10,
            'font-size': '0.8em',
            'font-family': 'helvetica, arial, sans-serif',
            textAlign: 'center',
            tip: true,
            name: 'dark'
        }

    });
});

/*
$(document).ready(function () {
	$(document).ready(function () 
	{
	var notice = '<div class="notice">'
	+ '<div class="notice-body">' 
		+ '<h3>Tus amigos valen m&aacute;s de un mill&oacute;n</h3>'
		+ '<p>Desde manducatoria queremos agradecer a nuestros seguidores en Facebook su apoyo y os vamos a regalar hasta 600 Euros por la patilla. Si el premio gordo de la Loter&iacute;a de Navidad coincide con el n&uacute;mero <strong>14.955</strong>, vamos a repartir hasta <strong>1.200.000 euros</strong> entre todos los seguidores.</p><p>Cuantos m&aacute;s seamos mayor premio repartiremos as&iacute; que invita a tus amigos y m&aacute;s podr&aacute;s ganar tu.</p><p><a href="http://www.manducatoria.com/blog/concurso-facebook">Bases de la promoci&oacute;n</a></p>'
		+ '<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fmanducatoria&amp;width=292&amp;colorscheme=light&amp;connections=5&amp;stream=false&amp;header=false&amp;height=190" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:200px;" allowTransparency="true"></iframe>'
	+ '</div>'
	+ '<div class="notice-bottom"></div>'
	+ '</div>';
							  
	$( notice ).purr(
	{
	usingTransparentPNG: true,
	isSticky: true
	}
	);
	
	return false;
	}
	);
	}
	);

*/

