var its;
var browser_name;

function showhide(item, object) {
	switch ( item ) {
		case 1:
			object.releases.style.display = "block";
			object.merch.style.display = "none";
			object.mp3.style.display = "none";
			break;
		case 2:
			object.releases.style.display = "none";
			object.merch.style.display = "block";
			object.mp3.style.display = "none";
			break;
		case 3:
			object.releases.style.display = "none";
			object.merch.style.display = "none";
			object.mp3.style.display = "block";
			break;
	}
}

function go(selector)
{
	destination = selector.options[selector.selectedIndex].value;
	if (destination) location.href = destination;
}

function hilite(divObj, thisNum) {
    switch (thisNum) {
		case 1:
			ofVal = "#f2faff";
			onVal = "#f4f4f4";
			break;
		case 2:
			ofVal = "#e6eeff";
        	onVal = "#efefef";
			break;
		case 3:
			ofVal = "#000000";
			onVal = "#555555";
			break;
		case 4:
			ofVal = "#f2faff";
			onVal = "#f4f4f4";
			break;
	}
    divObj.style.backgroundColor = onVal;
	divObj.onmouseout = function() {
		divObj.style.backgroundColor = ofVal;
	}
}

function outline(divObj, thisNum) {
    switch (thisNum) {
		case 1:
			ofVal = "#000000";
			onVal = "#98baff";
			break;
		case 2:
			ofVal = "#e3e9c6";
        	onVal = "#9d9d89";
			break;
	}
    divObj.style.borderColor = onVal;
	divObj.onmouseout = function() {
		divObj.style.borderColor = ofVal;
	}
}

function its() {
	var nav = navigator;
	var agent = ' ' + nav.userAgent.toLowerCase();
	
	this.opera = agent.indexOf('opera') > 0;
	this.ie = agent.indexOf('msie') > 0;

	return this;
}

function browser_name() {
	its = new its();

	if (its.opera) {
		browser_name = "Opera";
	} else if (its.ie) {
		browser_name = "IE";
	} else {
		browser_name = "NS";
	}
}

function extend(divObj) {
	if ( !document.getElementById ) {
		document.all[divObj].style.display = "inline";
	} else {
		var object = document.getElementById( divObj );
		object.style.display = "inline";
	}
}

function extendCell(divObj) {
	
	if ( !document.getElementById ) {
		document.all[divObj].style.display = "inline";
	} else if ( browser_name == "NS" ) {
		var object = document.getElementById( divObj );
		object.style.display = "table-cell";
	} else {
		var object = document.getElementById( divObj );
		object.style.display = "inline";
	}
}

function unextend(divObj) {
	if ( !document.getElementById ) {
		document.all[divObj].style.display = "none";
	} else {
		var object = document.getElementById( divObj );
		object.style.display = "none";
	}
}