function sizeEm() {
	sizeNav();
	sizeTitle();
}
function sizeNav() {
	//politely borrowed from Shaun Inman (http://www.shauninman.com)
	var d = document,w=window,dE=d.documentElement,dB=d.body;;
	if (!d.getElementById || !d.body.offsetWidth) return;
	
	var windowW		= (typeof(w.innerWidth)=='number')?w.innerWidth:(dE&&dE.clientWidth)?dE.clientWidth:(dB&&dB.clientWidth)?dB.clientWidth:0;
	var contentW	= 1100;
	//alert('Window: ' + windowW + '\nContent: ' + contentW);
	if (windowW >= contentW && d.getElementById('tallnav')) {
		d.getElementById('tallnav').id = 'nav'
	}
	else if(windowW <= contentW && d.getElementById('nav')) {
		d.getElementById('nav').id = 'tallnav';
	}
}
function sizeTitle() {
	//politely borrowed from Shaun Inman (http://www.shauninman.com)
	var d = document,w=window,dE=d.documentElement,dB=d.body;;
	if (!d.getElementById || !d.body.offsetWidth) return;
	
	var windowW		= (typeof(w.innerWidth)=='number')?w.innerWidth:(dE&&dE.clientWidth)?dE.clientWidth:(dB&&dB.clientWidth)?dB.clientWidth:0;
	var contentW	= 700;
	//alert('Window: ' + windowW + '\nContent: ' + contentW);
	if (windowW >= contentW && d.getElementById('portfolioTitle_stack')) {
		d.getElementById('portfolioTitle_stack').id = 'portfolioTitle'
	}
	else if(windowW <= contentW && d.getElementById('portfolioTitle')) {
		d.getElementById('portfolioTitle').id = 'portfolioTitle_stack';
	}
}
window.onload = sizeEm;
window.onresize = sizeEm;
