function ImgViewer(dir, photo, width, height) {
	if (!width) { width = '800'; }
	if (!height) { height = '600'; }
	now = new Date();
	hash = now.getTime();
	URL = '/scripts/img-viewer.php?dir='+dir+'&photo='+photo+'&width='+width+'&height='+height;
	ImgWindow = window.open(URL, hash, 'scrollbars=no,toolbar=no,status=no,location=no,menubar=no,resizable=no,width='+width+',height='+height);
};
function RTGPlayer(dir, Artist, SongTitle, SongDate) {
	URL = '/scripts/rtg-player.php?dir=' + dir + '&artist=' + Artist + '&song=' + SongTitle + '&date=' + SongDate;
	PopPlayer = window.open(URL, 'PopPlayer', 'scrollbars=no,toolbar=no,status=no,location=no,menubar=no,resizable=no,width=511,height=214');
	if (window.focus) { PopPlayer.focus(); }
};
function uTubeViewer() {
	PopPlayer = window.open('/scripts/utube-viewer.php', 'uTubeViewer', 'scrollbars=no,toolbar=no,status=no,location=no,menubar=no,resizable=no,width=425,height=355');
	if (window.focus) { PopPlayer.focus(); }
};

function flashViewer() {
	FlashPlayer = window.open('/scripts/flash-viewer.php', 'flashViewer', 'scrollbars=no,toolbar=no,status=no,location=no,menubar=no,resizable=no,width=424,height=348');
	if (window.focus) { FlashPlayer.focus(); }
};
function ShowTab(selectedTab) {
	divs=document.getElementsByTagName('div');
	for(i=0;i<divs.length;i++) {
		if (/tabContainer/.test(divs[i].className)) {
			currentTab = divs[i].id.substr(0,4);
			if (currentTab == selectedTab) {
				document.getElementById(currentTab).className = 'selected';
				divs[i].style.display = 'block';
			} else {
				document.getElementById(currentTab).className = '';
				divs[i].style.display = 'none';
			}
		}
	}
};