function popnes(rom) {
	var url = '/adjuct/nes.php?rom=' + rom;
	newwindow = window.open(url, 'nes', 'height=585,width=600');
};

function popyoutube(vid) {
	var url = '/adjuct/youtube.php?id=' + vid;
	newwindow = window.open(url, 'youtube', 'height=420,width=460');
};

window.addEvent ('domready', function() {
	var data = {
		'swordandspirit.png': {caption: '<a href="http://swordandspirit.com/home.php" target="_blank">Sword and Spirit</a>'},
		'pacman.png': {caption: '<a onclick="popnes(\'pacman\');return false;" href="#pacman">Pacman</a>'},
		'supermario.png': {caption: '<a onclick="popnes(\'supermario\');return false;" href="#supermario">Super Mario Bros.</a>'},
		'ascii.png': {caption: '<a target="_blank" href="http://www.typorganism.com/asciiomatic/">asciiomatic</a>'},
		'stevie.jpg': {caption: '<a onclick="popyoutube(\'_ul7X5js1vE\');return false;" href="#stevie">Stevie Wonder on Sesame Street</a>'},
		'homestar.png': {caption: '<a target="_blank" href="http://www.homestarrunner.com/sbemail.html">Homestar Runner</a>'}
	};

	var timeShow = new Slideshow('timewasters', data, {
		controller: {
			transition: Fx.Transitions.Back.easeInOut,
			duration: 1000
		},
		hu: '/images/galleries/time-wasters',
		loader: false,
		thumbnails: false,
		resize: false,
		overlap: false,
		captions: true,
		controller: false,
		random: false
	});

});
