// JavaScript Document

	function openPop(id)
	{
		var popName	= document.getElementById(id);
		popName.style.display =  'block';
	}
	
	
	function closePop(id)
	{
		var popName	= document.getElementById(id);
		popName.style.display =  'none';
	}
	
	function closeAllPops()
	{
		closePop('galleryMenu');
		closePop('artistMenu');
		closePop('artDetails');
	}
	
	
	function newURL(path)
	{
		document.location = path;
	}


	function newURLGlobal(path,id)
	{
		document.location = path;	
		var navDisplay = document.getElementById(id);
		navDisplay.style.display= "none";
	}
	

	function btnChange(id,newClass)	{
		var btn = document.getElementById(id);
		btn.className=newClass;
	}
	
	
	
	var win
	function openWin(file,w,h,scr,menu,stat,tool,name)
	{
		win = window.open(file,name,"scrollbars="+scr+",resizable=yes,menubar="+menu+",status="+stat+",toolbar="+tool+",width="+w+",height="+h+",screenx=50,screeny=50,top=50,left=50");
		win.focus();
	}
	
	
	var win
	function openMP3(file)
	{
		win = window.open(file,"MP3Popup","scrollbars=0,resizable=0,menubar=0,status=0,toolbar=0,width=500,height=305,screenx=50,screeny=50,top=50,left=50");
		win.focus();
	}


	
	function locationParent(url)
	{
		self.opener.location = url;
	}
