﻿$(document).ready(function () {

    // Input field with the class inputDefaultValue will show text and remove onfocus
    $('.inputDefaultValue').each(function () {
        var default_value = this.value;
        $(this).focus(function () {
            if (this.value == default_value) {
                this.value = '';
            }
        });

        $(this).blur(function () {
            if (this.value == '') {
                this.value = default_value;
            }
        });
    });

});

function hide(id) 
{
    document.getElementById(id).style.display = 'none';
}

function show(id) {
    document.getElementById(id).style.display = 'block';
}
/*
function showEvent(id) {
    $('#toShowEvent').fadeOut('slow', function () {
        document.getElementById('toShowEvent').innerHTML = document.getElementById(id).innerHTML;
        $('#toShowEvent').fadeIn('slow', function () {
        });
    });
}
*/

$('#InstantSearch').InstantSearch({
    siteurl: "www.alfsvensson.eu",
    instanttime: 300,
    instantfadeintime: 0,
    fadebackground: true,
    perpage: 5
});

