Cufon.replace("#primary-content h1", {fontSize: "24px", fontWeight: "bold", textShadow: "0px 1px rgba(0, 0, 0, 0.4)"});
Cufon.replace("#secondary-content h2", {fontSize: "24px", fontWeight: "bold", textShadow: "0px 1px rgba(0, 0, 0, 0.4)"});
Cufon.replace("h3", {fontSize: "16px", fontWeight: "bold"});
Cufon.replace(".more a", {fontSize: "16px", fontWeight: "bold"});
Cufon.replace("a.large-button", {fontSize: "14px", fontWeight: "bold"});

Cufon.replace("#donate-now p", {fontSize: "16px"});
Cufon.replace("#donate-now #donate-2", {fontSize: "18px"});
Cufon.replace("#donate-now-button", {fontSize: "24px", fontWeight: "bold", textShadow: "0px 1px rgba(0, 0, 0, 0.4)"});
Cufon.replace("#focus-content p");

Cufon.replace("#crosslinks p", {fontSize: "14px"})
Cufon.replace("#crosslinks .crosslink-button", {fontSize: "14px"});

Cufon.replace("#secondary-content h2.smaller", {fontSize: "18px", fontWeight: "bold", textShadow: "0px 1px rgba(0, 0, 0, 0.4)"});
Cufon.replace("#donate-now-button.fr", {fontSize: "20px", fontWeight: "bold", textShadow: "0px 1px rgba(0, 0, 0, 0.4)"});

Cufon.replace("#donate-now.fr p", {fontSize: "14px"});
Cufon.replace("#donate-now.fr #donate-2", {fontSize: "16px"});

// Mootools stuff
document.addEvent('domready', function() {
	
	// Adjust Primary Content Height
	if ($("primary-content") && $("secondary-content")) {
		
		var primary_content = $("primary-content");
		var secondary_content = $("secondary-content");
		
		if (primary_content.getSize().y < secondary_content.getSize().y) {
			
			var primary_size = primary_content.getComputedSize();
			var secondary_size = secondary_content.getComputedSize();
			
			primary_content.setStyle("height", ((secondary_size["height"] + 5) - (primary_size["padding-top"] + primary_size["padding-bottom"])));
			
		}
		
	}
	
	if ($$(".flash-content").length > 0) {
		var focus_flash = $("focus-flash");
		var swf = new Swiff('/homepage.swf', {
					id: 'homepage',
					width: 377,
					height: 313,
					container: focus_flash,
					 params: {
        wmode: 'opaque',
        allowScriptAccess: 'always',
		swLiveConnect: 'true'
		}
					});
		
		
		//// Home Page Focus Area Flash
//		var focus_flash = $("focus-flash");
//		var swf = new Swiff("swf/temp.swf", {
//			width: focus_flash.getStyle("width"),
//			height: focus_flash.getStyle("height"),
//			container: focus_flash
//		});
		
	}
	if ($$(".flash-content_fr").length > 0) {
		var focus_flash = $("focus-flash");
		var swf = new Swiff('/homepage_fr.swf', {
					id: 'homepage',
					width: 377,
					height: 313,
					container: focus_flash
					});
		
		
		//// Home Page Focus Area Flash
//		var focus_flash = $("focus-flash");
//		var swf = new Swiff("swf/temp.swf", {
//			width: focus_flash.getStyle("width"),
//			height: focus_flash.getStyle("height"),
//			container: focus_flash
//		});
		
	}
	
	
	if ($$(".media_player").length > 0) {
		var focus_flash = $("mediaPanel");
		var swf = new Swiff('/mediaplayer.swf', {
					id: 'mediaplayer',
					width: 603,
					height: 719,
					container: focus_flash,
					params: {
						wmode: 'opaque',
						allowScriptAccess: 'always',
						swLiveConnect: 'true',
						allowFullscreen: 'true'
						}
					});
		
		
		//// Home Page Focus Area Flash
//		var focus_flash = $("focus-flash");
//		var swf = new Swiff("swf/temp.swf", {
//			width: focus_flash.getStyle("width"),
//			height: focus_flash.getStyle("height"),
//			container: focus_flash
//		});
		
	}
	
	
	if ($$(".media_player_fr").length > 0) {
		var focus_flash = $("mediaPanel");
		var swf = new Swiff('/mediaplayer_fr.swf', {
					id: 'mediaplayer',
					width: 603,
					height: 719,
					container: focus_flash,
					params: {
						wmode: 'opaque',
						allowScriptAccess: 'always',
						swLiveConnect: 'true',
						allowFullscreen: 'true'
						}
					});
		
		
		//// Home Page Focus Area Flash
//		var focus_flash = $("focus-flash");
//		var swf = new Swiff("swf/temp.swf", {
//			width: focus_flash.getStyle("width"),
//			height: focus_flash.getStyle("height"),
//			container: focus_flash
//		});
		
	}
	
	
	// !!!! MARC !!!!
	if ($("donations")) {
		
		// Form Validations for Donations Page.
		
		// the following code injects your error message object into the top of the donations form:
		// my_error_message.inject("donations-form", "top");
		
	}
	
	
});


