// sIFR text (http://novemberborn.net/sifr3)
var helserif = { src: 'flash/helserif.swf' };
sIFR.activate(helserif);
sIFR.replace(helserif, {
	selector: 'h2',
	css: ['.sIFR-root { color: #9c9ea1; font-size: 33px; leading:-8}'],
	wmode: 'transparent'
});

// keeping the copyright year up to date
function copyrightYear(startYear) {
	var thisYear = (new Date()).getFullYear();
	if (thisYear == startYear) document.write(thisYear);
	else document.write(startYear + '-' + thisYear);
}

// onload
$(document).ready(function(){
	
	// popup external content (http://rip747.github.com/popupwindow/)
	var profiles = {
		popup: {
			width: 444,
			height: 440,
			status: 1,
			center: 1
		},
		popup_ipod: {
			width: 650,
			height: 510,
			status: 1,
			center: 1
		},
		popup_bluecult: {
			width: 520,
			height: 520,
			status: 1,
			center: 1
		},
		popup_donatella: {
			width: 452,
			height: 551,
			status: 1,
			center: 1
		},
		popup_ford: {
			width: 920,
			height: 560,
			status: 1,
			center: 1
		},
		popup_honda: {
			width: 510,
			height: 312,
			status: 1,
			center: 1
		},
		popup_microsoft: {
			width: 920,
			height: 620,
			status: 1,
			center: 1
		}
	};
	$('a[rel~="popup"]').popupwindow(profiles);
	$('a[rel="external"]').each(function() {
		$(this).attr('target','_blank');
	});

	
	// obfuscate email address
	var eaddr = 'darwintomlinson';
	var edom = 'hotmail.com';
	$('#contact').attr('href','mailto:'+eaddr+'@'+edom);
	
});