// jQuery Flash Replacement

// H1 - Headlines (marked width the CSS Class .flashReplace)
$(document).ready(function(){
    $('h1.flashReplace').flash(
        { 
            src: 'fileadmin/templates/tigas_base/flash/headline_h1.swf', 
            flashvars: { 
                css: [
                    '* { color: #fff; }',
                    'a { color: #0099CC; text-decoration: none; }',
                    'a:hover { text-decoration: underline; }'
                ].join(' ')
            }
        },
        { version: 8 },
        function(htmlOptions) {
            htmlOptions.flashvars.headline = this.innerHTML;
			htmlOptions.scale = 'noscale';
			htmlOptions.wmode = 'transparent';
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = 51;
            htmlOptions.width = '440';
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
	
	
    $('h2.flashReplace').flash(
        { 
            src: 'fileadmin/templates/tigas_base/flash/headline_h2.swf', 
            flashvars: { 
                css: [
                    '* { color: #fff; }',
                    'a { color: #0099CC; text-decoration: none; }',
                    'a:hover { text-decoration: underline; }'
                ].join(' ')
            }
        },
        { version: 8 },
        function(htmlOptions) {
            htmlOptions.flashvars.headline = this.innerHTML;
			htmlOptions.scale = 'noscale';
			htmlOptions.wmode = 'transparent';
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = 28;
            htmlOptions.width = '440';
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
});

function flashPutHref() {}