var theme = {
	init : function(oConfig) {
		var t = theme;
		var oFonts = oConfig.fonts;

		if (oFonts) {
			t.loadSIFR(oFonts);
		}

		jQuery(document).ready(function($) {
			t.pngFix();
		});
	}

	/*
		PNG "fix"
	*/
	,pngFix : function() {
		if (document.all && typeof document.body.style.maxHeight == "undefined") {
			$j("img[@src$=.png], li.type, div.title .section, #blog ul.util li.comments, #act, form.special").ifixpng(); 
		}
	}

	/*
		Load sIFR
	*/
	,loadSIFR : function(oFonts) {
		/*
			DO NOT EDIT
		*/
		sIFR.repaintOnResize = false;

		/*
			EDIT BELOW.
		*/
		/* Activate the fonts */
		sIFR.activate(
			oFonts.privaFour,
			oFonts.archerBoldLF
		);

		/* Flash replacements */
		sIFR.replace(oFonts.privaFour, {
			selector: '.cause-activity h2.head',
			wmode: 'transparent',
			css: [
				'.sIFR-root { background-color: #CCE5FF; color: #2B2201; font-size: 25px; }',
				'a { color: #2B2201; text-decoration: none; }',
				'a:link { color: #2B2201; text-decoration: none; }',
				'a:hover { color: #444411; text-decoration: none; }'
			]
		});
		
		sIFR.replace(oFonts.archerBoldLF, {
			selector: 'h2.top-petitions, h3.action-form',
			wmode: 'transparent',
			css: [
				'.sIFR-root { background-color: #434233; color: #434233; font-size: 35px; }'
			]
		});

		sIFR.replace(oFonts.privaFour, {
			selector: '#what-is dt em',
			wmode: 'transparent',
			css: [
				'.sIFR-root { background-color: #F8F3E6; color: #2B2201; font-size: 20px; }'
			]
		});

		sIFR.replace(oFonts.privaFour, {
			selector: '#your-profile h2, #featured-people .head, #user-causes .head, #user-nonprofits .head, #feat-nonprofits .head, #featured-actions .head, #featured-causes .head, #change-in-america .head',
			wmode: 'transparent',
			css: [
				'.sIFR-root { background-color: #F8F3E6; color: #2B2201; font-size: 18px; }'
			]
		});
	}
}