var gothiclight = {
      src: "/flash/gothamlight.swf" //the / at the begining is required.
};
var gothiclightGlow = {
      src: "/flash/gothamlight_glow.swf" //the / at the begining is required.
};

var unicode_it = function(str) {
	str=str.replace(/Á/g,'\u00C1');
	str=str.replace(/É/g,'\u00C9');
	str=str.replace(/Í/g,'\u00CD');
	str=str.replace(/Ó/g,'\u00D3');
	str=str.replace(/Ú/g,'\u00DA');
	str=str.replace(/Ü/g,'\u00DC');
	str=str.replace(/Ñ/g,'\u00D1');
	str=str.replace(/á/g,'\u00E1');
	str=str.replace(/é/g,'\u00E9');
	str=str.replace(/í/g,'\u00ED');
	str=str.replace(/ó/g,'\u00F3');
	str=str.replace(/ú/g,'\u00FA');
	str=str.replace(/ü/g,'\u00FC');
	str=str.replace(/ñ/g,'\u00F1');
	str=str.replace(/ª/g,'\u00AA');
	str=str.replace(/º/g,'\u00BA');
	str=str.replace(/¡/g,'\u00A1');
	str=str.replace(/¿/g,'\u00BF');
    return str ;
};

sIFR.activate(gothiclight);

// Global Headers
var headerArray = new Array('recipes', 'shoppingList', 'lunchmeat', 'menus', 'occasions', 'promotions', 'products', 'kids', 'productLocator', 'newCooks', 'media', 'profile', 'registration', 'search', 'shoppingList', 'submit', 'community', 'contact', 'myRecipeBox', 'generic', 'spanish');
for(var x=0; x < headerArray.length; x++)
{
    sIFR.replace(gothiclightGlow, {
          selector: 'h1.'+headerArray[x],
          wmode: 'transparent',
          css: {
            '.sIFR-root': { 'color': '#0055A5', 'font-size': '32px', 'text-transform': 'lowercase' }
          },
          modifyContentString: unicode_it
    });
}

// Sidebar Modules
sIFR.replace(gothiclight, {
      selector: 'dt.title',
      wmode: 'transparent',
      css: {
        '.sIFR-root': { 'color': '#836D46', 'font-size': '19px', 'text-align': 'center' }
      },
      modifyContentString: unicode_it
});
sIFR.replace(gothiclight, {
      selector: 'dt.bluetitle',
      wmode: 'transparent',
      css: {
        '.sIFR-root': { 'color': '#0055A5', 'font-size': '19px', 'text-align': 'center' }
      },
      modifyContentString: unicode_it
});


