jQuery.noConflict();

var set_opts = function(htmlOptions,targ)
{
	htmlOptions.flashvars.txt = '<p>'+targ.innerHTML+'</p>';
    targ.innerHTML = '<div>'+targ.innerHTML+'</div>';
    var $alt = jQuery(targ);
    htmlOptions.height = $alt.height();
    htmlOptions.width = $alt.width();
    var $alt = jQuery(targ.firstChild);
    $alt.addClass('alt');
    jQuery(targ)
        .addClass('flash-replaced')
        .prepend(jQuery.fn.flash.transform(htmlOptions));
}

jQuery(document).ready(function()
{
	/*
	// if have flash add class to body
	
	if(jQuery.fn.flash.hasFlash(8)) jQuery('body').addClass('hasFlash');
	
	jQuery('#header h1').flash(
	{ 
		src: flash_dir + '/flash/text.swf', 
		wmode: 'transparent',
	    flashvars: { 
			css: [
				'* { color: #666666;  }',
				'p { font-size: 48px; }',
	    		'a { color: #7081BF; text-decoration: none; }',
	   			'a:hover { text-decoration: underline; }'
	    	].join(' ')
	    }
	    },
	 	{ version: 8,update: false },
	    function(htmlOptions) {	set_opts(htmlOptions,this); }
	);
	jQuery('#header h2').flash(
	{ 
		src: flash_dir + '/flash/text.swf', 
		wmode: 'transparent',
	    flashvars: { 
			css: [
				'* { color: #A7A9AC;  }',
				'p { font-size: 24px; }',
	    		'a { color: #A7A9AC; text-decoration: none; }',
	   			'a:hover { text-decoration: underline; }'
	    	].join(' ')
	    }
	    },
	 	{ version: 8,update: false },
	    function(htmlOptions) {	set_opts(htmlOptions,this); }
	);
	
	jQuery('h3').flash(
	{ 
		src: flash_dir + '/flash/text.swf', 
		wmode: 'transparent',
	    flashvars: { 
			css: [
				'* { color: #7081BF;  }',
				'p { font-size:18px; }',
	    		'a { color: #7081BF; text-decoration: none; }',
	   			'a:hover { text-decoration: underline; }'
	    	].join(' ')
	    }
	    },
	 	{ version: 9,update: false },
	    function(htmlOptions) {	set_opts(htmlOptions,this); }
	);
	*/
});
