function ConvertHTMLEntities(input)
{
	input = input.replace(/&amp;/gi, "&");
	return input;
}

$(document).ready(function(){
    var id = 0;

    $('h2[class="home_feature"]').hide().before('<div class="home_feature_clone"></div>')
    .each(function(){
        var o = new SWFObject('/img/site/home_feature_heading.swf', 'h_' + (id++) + '_swf', 210, 30, '7', '#ffffff');
        o.addVariable('txt', escape(ConvertHTMLEntities($(this).html())));
        o.addParam('wmode', 'transparent');
        o.write($(this).prev('.home_feature_clone')[0]);
    });
    
    $('h2[class="article"]').hide().before('<div class="article_clone"></div>')
    .each(function(){
        var o = new SWFObject('/img/site/article_heading.swf', 'h_' + (id++) + '_swf', 650, 41, '7', '#ffffff');
        o.addVariable('txt', escape(ConvertHTMLEntities($(this).html())));
        o.addParam('wmode', 'transparent');
        o.write($(this).prev('.article_clone')[0]);
    });
});