jQuery(function($){

    $("#floorMap area").mouseover(function(){
        
        var area = $(this).attr('id');

        $("#floorplan-image img.active").removeClass("active");
        $("#floorplan-image img#" + area).addClass("active");

        return false;
    });     


    $(".signup-form form input#forename").click(function(){
    	var x = $(this).val();
    	if(x == "Name"){
    		$(this).attr("value","");
    	}
    });

    $(".signup-form form input#email").click(function(){
    	var x = $(this).val();
    	if(x == "E-Mail"){
    		$(this).attr("value","");
    	}
    });
	
	/*$(".video").fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: false,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'type'				: 'iframe'
	});*/
	
    $('.video').click(function() {
        $.fancybox({
            'padding'       : 0,
            'autoScale'     : false,
            'transitionIn'  : 'fade',
            'transitionOut' : 'fade',
            'title'         : this.title,
            'width'         : 640,
            'height'        : 385,
            'href'          : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
            'type'          : 'swf',
            'swf'           : {
            'wmode'             : 'transparent',
            'allowfullscreen'   : 'true'
            }
        });
        return false;
    });

});
