function sidebar_labels() {
	var labels = [
		{ src: '/resume.pdf', label: 'r&eacute;sum&eacute;', length: 6},
		{ src: 'http://github.com/cthulhuology', label: 'code', length: 4 },
		{ src: '/', label: 'writings', length: 8 },
		{ src: '/2011', label: '2011', length:4 },
		{ src: '/2010', label: '2010', length: 4},
		{ src: '/2009', label: '2009', length: 4 },
		{ src: '/videos', label: 'videos', length: 6 },
		{ src: '/links', label: 'links', length: 5 },
		{ src: 'mailto:dave@dloh.org', label: 'contact', length: 7 },
	];
}

function header() {
	var header =  document.createElement('div');
	header.innerHTML = "dave's life on hold";
	header.className = 'header';
	header.onclick = function() { document.location = "/" };
	document.body.appendChild(header);
	var shadow =  document.createElement('div');
	shadow.innerHTML = "dave's life on hold";
	shadow.className = 'shadow';
	shadow.onclick = function() { document.location = "/" };
	document.body.appendChild(shadow);
}

function jitter() {
	document.querySelector('.header').style.textShadow = "rgb(45,55,45)  " + ( 0.1 * Math.random()*5 ) + "em " + ( 0.1  * Math.random()*5) + "em " + ( 0.2 ) + "em";
	document.querySelector('.shadow').style.top = (19 + Math.random()*10) + "px";
	document.querySelector('.shadow').style.left = (390 + Math.random()*10) + "px";
	document.querySelector('.shadow').style.textShadow = "rgb(45,55,45)  " + ( -4 + ( -0.2 * Math.random()*5 )) + "em " + (1 + ( 0.1  * Math.random()*5)) + "em " + ( 0.2 ) + "em";

	var jit = document.querySelector('.jittering');
	if (jit) jit.style.textShadow = "rgb(45,55,45)  " + 
				( 0.1 * Math.floor(Math.random()*10)) + "em " + 
				( 0.1 * Math.floor(Math.random()*10)) + "em " + 
				( 0.2 ) + "em";
	setTimeout(jitter,50*(Math.random()*10));
}

window.onload = function() {
	header();
	if(!(navigator.userAgent.match(/iPhone/i)) && !(navigator.userAgent.match(/iPod/i))) {
	}
	setTimeout(jitter,100);
}



