
$(document).ready(function() {

        $('#menu li.parent').mouseover(function()
        {
            $(this).addClass('active');
            $('div', this).css('display', 'block');
        });

        $('#menu li.parent').mouseout(function()
        {
            $(this).removeClass('active');
            $('div', this).css('display', 'none');
        });

        $("a[rel=lightbox-tour]").fancybox({
                'transitionIn'		: 'none',
                'transitionOut'		: 'none',
                'titlePosition' 	: 'over',
                'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
                    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
                }
        });

/*
 * Message
 */

        $("#messageOne").fancybox({
                'titlePosition'		: 'inside',
                'transitionIn'		: 'none',
                'transitionOut'		: 'none'
        });

        var num = 123456789;
        $('#messageOne').bind('click', function() {
              href = $(this).attr('href');
              hash = href.split('#');
              content = $('#content-'+hash[1]).html();
              $.cookie(url,num, {path: '/'});
        });

        if($.cookie(url) == num) {

        } else {
            $('#messageOne').trigger('click');
        }

/*
 * Flash
 */
var flashvars = {};
var params = {
    vmode: 'opaque'
};
var attributes = {};

swfobject.embedSWF(path+"/flash/banner.swf", "banner", "780", "195", "9.0.0", path+"/js/swfobject/expressInstall.swf", flashvars, params, attributes);


});
