function showObj(id, type) {
	if (document.getElementById) document.getElementById(id).style.display = (type ? type : 'block');
}
function hideObj(id) {
	if (document.getElementById) document.getElementById(id).style.display = 'none';
}

// needed for safari+flash compatability
function showObj2(id) {
	if (document.getElementById) document.getElementById(id).style.visibility = 'visible';
}
function hideObj2(id) {
	if (document.getElementById) document.getElementById(id).style.visibility = 'hidden';
}

var curDivId = 0;
function displayDetail(filename, id) {
	hideObj('menu');
	hideObj('logo');
	hideObj('leftmenu');
	hideObj2('flashM');
	
	showObj('detailImage');

	$('detailImageCap').innerHTML = $('caption_' + id).innerHTML;
	
	document.detailImg.src = filename;
}

function hideDetail() {
	showObj('menu');
	showObj('logo');
	showObj('leftmenu');
	showObj2('flashM');
	
	hideObj('detailImage');

	$('detailImageCap').innerHTML = '';
	
	document.detailImg.src = '/img/spacer.gif';
}

function addLoadEvent(_25) {
	var _26=window.onload;
	if(typeof window.onload!="function") {
		window.onload=_25;
		}else{
			window.onload=function(){
				_26();
				_25();
		};
	}
}
function initScroll() {
	myScroll = new ScrollObj(9,45,310,"track","up","down","drag","scrollerContainer","scrollerContent");
}

function initMenu() {
	var expandmenu = null;
	$('dropdown').setStyle('display', '');
    var expandmenu = new Fx.Slide('dropdown').hide();
	var hidediv1 = $('leftmenu');
	var hidediv2 = $('artistlist');
	$('menuLS').addEvent('click', function(){
		expandmenu.toggle();
		if (hidediv1) hidediv1.setOpacity(0);
		if (hidediv2) hidediv2.setOpacity(0);
		});		

}
addLoadEvent(initMenu);