Shadowbox.init({
    overlayColor: "#ffffff",
    handleOversize: 'resize'
});
function noErrorMessages() { return true; }
window.onerror = noErrorMessages;
Shadowbox.init({
    language: "sv",
    players: ["iframe", "html"]
});
$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'random',
	    slices:15,
	    animSpeed:500,
	    pauseTime:5000,
	    startSlide:0
    });
        
    $.simpleWeather({
		location: 'Santa Pola, Spain',
		unit: 'c',
		success: function(weather) {
			$("#weather").append('<img class="weatherimage" src="'+weather.thumbnail+'">');
			$("#weather").append('<span>'+weather.temp+'&deg; '+weather.units.temp+'</span>');
		},
		error: function(error) {
			$("#weather").html('<p>'+error+'</p>');
		}
	});
});

$(document).ready(function () {
    $("div#standard-slideshow").slideView({
        toolTip: false,
        autoslide: true
    });

    $("a.read-more-information").click(function () {
        $("div.more-information").slideToggle("slow");
        return false;
    });
});
function openShadowBox(url, height, width) {
    var page = {
        player: 'iframe',
        content: url,
        height: height,
        width: width
    };
    Shadowbox.open(page);
    return false;
}
