<!--

var LINKS = [];
LINKS['baia'] = 'http://www.lampedusa.it/vacanze/struttura/26/0/0/index.html';
LINKS['tommasino'] = 'http://www.lampedusa.it/vacanze/struttura/70/0/0/index.html';
LINKS['calacreta'] = 'http://www.lampedusa.it/vacanze/struttura/34/0/0/index.html';
LINKS['bentivoglio'] = 'http://www.hotelbentivoglio.it/';
LINKS['freccia'] = 'http://www.guitgia.com/frecciaonline.html';
LINKS['beach'] = 'baiaturchese@guitgia.com';

function preloadImg(img) {
    var temp = new Image();
    temp.src = 'img/' + img;
}

function preloadImgs() {
	for(var n = 0; n < arguments.length; n++) {
		preloadImg(arguments[n]);
	}
}

$(document).ready(
    function() {
        $("#container a").click(
			function() {
				window.open(this.href);
				return false;
			}
		);
        $("img.image").hover(
            function () {
                $(this).css("cursor","pointer");
                $(this).attr("src",$(this).attr("src").replace('1','2'));
            },
            function () {
                $(this).css("cursor","default");
                $(this).attr("src",$(this).attr("src").replace('2','1'));
            }
        );/*.click(
            function () {
                var link = $(this).attr("src").match(/^img\/([a-z]+)(1|2)\.jpg$/);
                switch(link[1]) {
                    default:
                        break;
                    case 'baia':
                    case 'tommasino':
                    case 'calacreta':
                    case 'bentivoglio':
                    case 'freccia':
                        window.open(LINKS[link[1]]);
                        break;
                    case 'beach':
                        window.location.href = 'mailto:' + LINKS[link[1]];
                        break;
                }
                
                return false;
            }
        );*/
    }
);

-->