function playMedia(id, type)
{	media = window.open(depth + "songs_videos/media.php?id=" + id + "&type=" + type, "media", "height=220, width=310");
	media.focus();
}
function grab(object)
{	// object = id of object to be manipulated
	if(document.getElementById) obj = document.getElementById(object); // method for newer, DOM-compatable browsers
	else if(document.all) obj = document.all[obj]; // method for older versions of IE
	else if(document.layers) obj = document.layers[obj]; // method for older versions of Netscape
	return(obj);
}
function getStyle(object)
{	if(document.getElementById || document.all) style = object.style;
	else if(document.layers) style = object;
	return(style);
}
function activateimg(whichimg)
{	var imgsrc = new String(document.getElementById(whichimg).src);
	imgsrc = imgsrc.replace(new RegExp('-off\.','g'),'-on\.');
	document.getElementById(whichimg).src = imgsrc;
}
function deactivateimg(whichimg)
{	var imgsrc = new String(document.getElementById(whichimg).src);
	imgsrc = imgsrc.replace(new RegExp('-on\.','g'),'-off\.');
	document.getElementById(whichimg).src = imgsrc;
}
function quick_access_news()
{	news_obj = getStyle(grab('quick_access_news'));
	news_obj.display = "inline";
	tours_obj = getStyle(grab('quick_access_tours'));
	tours_obj.display = "none";
	songs_obj = getStyle(grab('quick_access_songs'));
	songs_obj.display = "none";
}
function quick_access_tours()
{	news_obj = getStyle(grab('quick_access_news'));
	news_obj.display = "none";
	tours_obj = getStyle(grab('quick_access_tours'));
	tours_obj.display = "inline";
	songs_obj = getStyle(grab('quick_access_songs'));
	songs_obj.display = "none";
}
function quick_access_songs()
{	news_obj = getStyle(grab('quick_access_news'));
	news_obj.display = "none";
	tours_obj = getStyle(grab('quick_access_tours'));
	tours_obj.display = "none";
	songs_obj = getStyle(grab('quick_access_songs'));
	songs_obj.display = "inline";
}
function info_photo_info()
{	obj = getStyle(grab('info_photo_info'));
	if(obj.display == "none") obj.display = "inline";
	else obj.display = "none";
	obj = getStyle(grab('info_photo_photo'));
	if(obj.display == "none") obj.display = "inline";
	else obj.display = "none";
	deactivateimg('nav_info_photo_photo');
	activateimg('nav_info_photo_info');
}
function info_photo_photo()
{	obj = getStyle(grab('info_photo_info'));
	if(obj.display == "inline") obj.display = "none";
	else obj.display = "inline";
	obj = getStyle(grab('info_photo_photo'));
	if(obj.display == "none") obj.display = "inline";
	else obj.display = "none";
	activateimg('nav_info_photo_photo');
	deactivateimg('nav_info_photo_info');
}