
function clickButton(e, buttonid) {

    var key;

    if (window.event)
        key = window.event.keyCode;      //IE
    else
        key = e.which;      //firefox

   
    if (key == 13) {
        //Get the button the user wants to have clicked
        var btn = document.getElementById(buttonid);

        if (btn != null) { //If we find the button click it
            alert(btn);
            btn.click();

            alert('in');
            return false;

        }
    }



    }
	
	$(function() {
    $('img[data-hover]').hover(function() {
        $(this).attr('tmp', $(this).attr('src')).attr('src', $(this).attr('data-hover')).attr('data-hover', $(this).attr('tmp')).removeAttr('tmp');
    }).each(function() {
        $('<img />').attr('src', $(this).attr('data-hover'));
    });;
});
