$(function() {
	$('.thumb').tooltip({
		delay: 0,
		showURL: false,
		track: false,
		left: -390,
		bodyHandler: function() {
			return $("<span>"+this.tooltipText+"</span><img/>").attr("src", this.src.replace( "small", "big" ) );
		}
	});

	$('#conf_groundPlans .thumb').tooltip({
		delay: 0,
		showURL: false,
		track: false,
		left: 0,
		bodyHandler: function() {
			return $("<span>"+this.tooltipText+"</span><img/>").attr("src", this.src.replace( "small", "big" ) );
		}
	});
});

$(document).ready(function(){
    var loc = $('#header #flash').attr('rel');
    $('#header #flash').flash({
        src: loc,
        width: 436,
        height: 228,
        wmode: 'transparent'
    });
    $(".flashBanner").flash(null, { version: 8 }, function(htmlOptions) {
    		var $this = $(this);
        var params = $this.attr('rel').split('|');
        htmlOptions.src = params[0];
        htmlOptions.width = params[1];
        htmlOptions.height = params[2];
        htmlOptions.wmode = "transparent";
        this.innerHTML = '<div class="alt">'+this.innerHTML+'</div>';
        $this.addClass('flash-replaced').prepend($.fn.flash.transform(htmlOptions));
    });
});
