$(document).ready(function(){
    $('#homemovie').flash(
        { src: 'WEB-INFO/swf/home.swf',
          width: 239,
          height: 266 },
        { version: 7 }
    );
});

$(document).ready(function(){
    $('h1').flash(
    {
        src: 'WEB-INFO/swf/avenir_lt_std_medium.swf',
        flashvars: {
            css: [
            '* { color: #1c1b19; }',
            'a { color: #0055CC; text-decoration: none; }',
            'a:hover { text-decoration: underline; }'
            ].join(' ')
        }
    },
    {
        version: 7
    },
    function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<span>'+this.innerHTML+'</span>';
        var $alt = $(this.firstChild);
        htmlOptions.height = $alt.height();
        htmlOptions.width = $alt.width();
        $alt.addClass('alt');
        $(this)
        .addClass('flash-replaced')
        .prepend($.fn.flash.transform(htmlOptions));
    }
    );
    $('h2').flash(
    {
        src: 'WEB-INFO/swf/avenir_lt_std_roman.swf',
        flashvars: {
            css: [
            '* { color: #ffffff; }',
            'a { color: #0055CC; text-decoration: none; }',
            'a:hover { text-decoration: underline; }'
            ].join(' ')
        }
    },
    {
        version: 7
    },
    function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<span>'+this.innerHTML+'</span>';
        var $alt = $(this.firstChild);
        htmlOptions.height = $alt.height();
        htmlOptions.width = $alt.width();
        $alt.addClass('alt');
        $(this)
        .addClass('flash-replaced')
        .prepend($.fn.flash.transform(htmlOptions));
    }
    );
    $('h3').flash(
    {
        src: 'WEB-INFO/swf/avenir_lt_std_medium.swf',
        flashvars: {
            css: [
            '* { color: #1c1b19; }',
            'a { color: #0055CC; text-decoration: none; }',
            'a:hover { text-decoration: underline; }'
            ].join(' ')
        }
    },
    {
        version: 7
    },
    function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<span>'+this.innerHTML+'</span>';
        var $alt = $(this.firstChild);
        htmlOptions.height = '33';
        htmlOptions.width = '200';
        $alt.addClass('alt');
        $(this)
        .addClass('flash-replaced')
        .prepend($.fn.flash.transform(htmlOptions));
    }
    );
    $('h4').flash(
    {
        src: 'WEB-INFO/swf/avenir_lt_std_medium.swf',
        flashvars: {
            css: [
            '* { color: #1c1b19; }',
            'a { color: #0055CC; text-decoration: none; }',
            'a:hover { text-decoration: underline; }'
            ].join(' ')
        }
    },
    {
        version: 7
    },
    function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<span>'+this.innerHTML+'</span>';
        var $alt = $(this.firstChild);
        htmlOptions.height = $alt.height();
        htmlOptions.width = $alt.width();
        $alt.addClass('alt');
        $(this)
        .addClass('flash-replaced')
        .prepend($.fn.flash.transform(htmlOptions));
    }
    );
    $('h5').flash(
    {
        src: 'WEB-INFO/swf/avenir_lt_std_roman.swf',
        flashvars: {
            css: [
            '* { color: #d8804e; }',
            'a { color: #0055CC; text-decoration: none; }',
            'a:hover { text-decoration: underline; }'
            ].join(' ')
        }
    },
    {
        version: 7
    },
    function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<span>'+this.innerHTML+'</span>';
        var $alt = $(this.firstChild);
        htmlOptions.height = $alt.height();
        htmlOptions.width = $alt.width();
        $alt.addClass('alt');
        $(this)
        .addClass('flash-replaced')
        .prepend($.fn.flash.transform(htmlOptions));
    }
    );
    $('h6').flash(
    {
        src: 'WEB-INFO/swf/avenir_lt_std_roman.swf',
        flashvars: {
            css: [
            '* { color: #ffffff; }',
            'a { color: #ffffff; text-decoration: none; }',
            'a:hover { text-decoration: underline; }'
            ].join(' ')
        }
    },
    {
        version: 7
    },
    function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<span>'+this.innerHTML+'</span>';
        var $alt = $(this.firstChild);
        htmlOptions.height = '45';
        htmlOptions.width = '199';
        $alt.addClass('alt');
        $(this)
        .addClass('flash-replaced')
        .prepend($.fn.flash.transform(htmlOptions));
    }
    );
});

$(document).ready(function() {
    $('a.photogallery').lightBox();
});
