var tradeGothic = {src: 'assets/flash/trade-gothic.swf'};
sIFR.activate(tradeGothic);

sIFR.replace(tradeGothic, {
	selector: 'h1',
	css: '.sIFR-root {color: #ffffff;}',
	wmode: 'transparent',
	offsetTop: '-3'
});

sIFR.replace(tradeGothic, {
	selector: '#corp-blurb h3',
	css: '.sIFR-root {color: #6a5ea8; font-weight: bold}',
	wmode: 'transparent'
});

sIFR.replace(tradeGothic, {
	selector: '#liti-blurb h3',
	css: '.sIFR-root {color: #8a9b56; font-weight: bold}',
	wmode: 'transparent'
});

sIFR.replace(tradeGothic, {
	selector: '#corp h3',
	css: '.sIFR-root {color: #6a5ea8; font-weight: bold}',
	wmode: 'transparent'
});

sIFR.replace(tradeGothic, {
	selector: '#liti h3',
	css: '.sIFR-root {color: #919d6c; font-weight: bold}',
	wmode: 'transparent'
});

sIFR.replace(tradeGothic, {
	selector: '#discovery h3, #contact h3, #resources h3',
	css: '.sIFR-root {color: #2a61ae; font-weight: bold}',
	wmode: 'transparent'
});

sIFR.replace(tradeGothic, {
	selector: 'h4',
	css: '.sIFR-root {color: #376bb3; font-weight: bold}',
	wmode: 'transparent'
});

sIFR.replace(tradeGothic, {
	selector: 'h5',
	css: {'.sIFR-root': { 'color' : '#333333', 'font-weight' : 'bold', 'text-transform' : 'uppercase'}},
	wmode: 'transparent'
});

$(document).ready(function() {
	$('a.stay-informed').colorbox({
		speed: 100,
		opacity: 0.8
	}, function(){
		sIFR.replace(tradeGothic, {
			selector: 'h5',
			css: {'.sIFR-root': { 'color' : '#333333', 'font-weight' : 'bold', 'text-transform' : 'uppercase'}},
			wmode: 'transparent',
			offsetTop: '2'
		});
		
		$('#stay-informed input').input()
	});
});

$.fn.input = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			$(this).val("");
			$(this).addClass("focus");
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
			$(this).removeClass("focus");
		}
	});
};