$(document).ready(function () {
    $('#splashwrapper #menu li').fadeTo('normal', 0.75);

    $('#splashwrapper #menu li').hover(function () {
        $(this).fadeTo('normal', 1);
    }, function () {
        $(this).fadeTo('normal', 0.75);
    });

    $('div#wrapper div#rightcontent div#topheader img#onlinebooking').fadeTo('normal', 0.70);

    $('div#wrapper div#rightcontent div#topheader img#onlinebooking').hover(function () {
        $(this).fadeTo('normal', 1);
    }, function () {
        $(this).fadeTo('normal', 0.70);
    });

    $("div.slideshow a").fancybox({
        zoomSpeedIn: 500,
        zoomSpeedOut: 500,
        overlayOpacity: 0.8
    });

    $("div#wrapper div#rightcontent img#onlinebooking").fancybox({
        href: 'http://www.hotelsbrussel.org/hotels_search/search_hotels.asp?hotelid=582&taal=en&booktemplate=1',
        typ: 'iframe',
        frameWidth: 520,
        frameHeight: 520,
        overlayOpacity: 0.8
    }).css({"cursor":"pointer"});

    $(".onlinebookingbtn").fancybox({
        frameWidth: 500,
        frameHeight: 550,
        overlayOpacity: 0.8
    });

    $("div#videos a.video").fancybox({
        zoomSpeedIn: 500,
        zoomSpeedOut: 500,
        frameWidth: 500,
        frameHeight: 320,
        padding: 4,
        overlayOpacity: 0.8,
        callbackOnClose: clearIframe
    });

    $("a.seminaries").fancybox({
        frameWidth: 500,
        frameHeight: 320,
        padding: 4,
        overlayOpacity: 0.8,
        callbackOnClose: clearIframe
    });

    $("a.pic").fancybox({
        overlayOpacity: 0.8
    });

    $("a.videopoplink").fancybox({
        'speedIn': 300,
        'speedOut': 300,
        'overlayOpacity': 0.8,
        'overlayColor': '#000000',
        'titlePosition': 'inside',
        'padding': 4,
        'width': 426,
        'height': 240,
        'titleShow': false,
        'centerOnScroll': true,
        'type': 'iframe'
    });


});

function clearIframe()
{
	$("#fancy_content").empty();
};


function goToUrl(url){
	top.location = url;
};

