var TWO = {
	Config : {
		sPathSwf : "/-/swf/"
		,sSelPNG : "img, #topnav, #logo, #btn_visit_store, #btn_play_video, #email_signup"
	}

	/*
		STOP EDITING HERE
	*/
	,init : function() {
		var c = TWO;
		var p = c.Project;

		$(document).ready(function() {
			// List function(s) to fire onload here

			p.labelText();

			if (typeof DD_belatedPNG != "undefined") {
				DD_belatedPNG.fix(c.Config.sSelPNG);
			}
		});

		p.loadSIFR();
	}

	,Project : {
		loadSIFR : function() {
			var c = TWO;

			// Load sIFR if this is an English view
			if ($("html").attr("lang") == "en") {
				/*
					Register the fonts
				*/
				var gothamBook = {
					src: c.Config.sPathSwf + 'gotham-book.swf'
				}
				var gothamMed = {
					src: c.Config.sPathSwf + 'gotham-med.swf'
				}

				/*
					Activate the fonts
				*/
				sIFR.activate(gothamBook);
				sIFR.activate(gothamMed);

				/*
					Hi, we're the replacements
				*/
				sIFR.replace(gothamMed, {
					selector: '#landr_book h2'
					,css: [
						'.sIFR-root { color: #555555; font-size: 14px; text-transform: uppercase; text-align: center; }'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamMed, {
					selector: '#feature_book h2, #video_player h2'
					,css: [
						'.sIFR-root { color: #FFFFFF; font-size: 14px; text-transform: uppercase; text-align: center; }'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamBook, {
					selector: '#header h1'
					,css: [
						'.sIFR-root { color: #FFFFFF; font-size: 30px; text-transform: uppercase; }'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamBook, {
					selector: '#header h2#receipt'
					,css: [
						'.sIFR-root { background-color: #550600; color: #FFFFFF; font-size: 18px; text-transform: uppercase;}'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamBook, {
					selector: '#header h2'
					,css: [
						'.sIFR-root { background-color: #550600; color: #fc6a68; font-size: 18px; text-transform: uppercase;}'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamBook, {
					selector: '#content .conf_video h3'
					,css: [
						'.sIFR-root { background-color: #FFFFFF; color: #555555; font-size: 17px;}'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamBook, {
					selector: '#content h3.ra'
					,css: [
						'.sIFR-root { background-color: #FFFFFF; color: #555555; font-size: 20px; text-align: right }'
					]
					,wmode: 'transparent'
				});
				sIFR.replace(gothamBook, {
					selector: '#content .xmas h3'
					,css: [
						'.sIFR-root { background-color: #FFFFFF; color: #555555; font-size: 20px; }'
					]
					,forceSingleLine: true
					,wmode: 'transparent'
					,tuneWidth: 1
				});
				sIFR.replace(gothamBook, {
					selector: '#content h3, h1.mainbox2-title'
					,css: [
						'.sIFR-root { background-color: #FFFFFF; color: #555555; font-size: 20px;}'
					]
					,wmode: 'transparent'
				});
			}
		}
		,labelText : function() {
			$("#email_signup input#email").each(function() {
				$(this).attr("default", $(this).attr("value"));

				$(this).focus(function() {
					if ($(this).attr("value") == $(this).attr("default")) {
						$(this).attr("value", "");
					}
				}).blur(function() {
					if ($(this).attr("value") == "") {
						$(this).attr("value", $(this).attr("default"));
					}
				});
			});
		}
	}
};

TWO.init();

