<!--
// SPAWN POPUPS
// close open popup
var pop = null; // global variable 
var pop1 = null; // global variable
function closePup()	{
	 if (pop != null && !pop.closed)
			pop.close();
	 if (pop1 != null && !pop1.closed)
			pop1.close();
	 }
	 
// spawn full page from popup

var url = location.href;
function newBlank(url) {
  closePup();	
	var resizable="yes";
	var scroll="yes";
	var title="yes";
	var tools="yes";
	var menu="yes";
	var place="yes";
	var state="yes";
	var l = 45;
	var t = 0;
	var h = 480;
	var w = 640;
	
	var defs='height=' + h + ',width=' + w + ',top=' + t + ',left=' + l + ',scrollbars=' + scroll+ ',status=' + state + ',titlebar=' + title + ',toolbar=' + tools + ',menubar=' + menu  + ',location=' + place  + ',resizable'
	var newBlank = window.open(url,"outside",defs);
  newBlank.window.focus();
}

//Spawn popup
function newWindow(newpage, samename, w, h, scroll) 
{
	var ontop = true;
	var popl = 45;
	var popt = 0;
	var poph = 430;
	var popw = 260;
	var scroll = "no";
	popdef='height='+poph+',width='+popw+',top='+popt+',left='+popl+',scrollbars='+scroll+',resizable'
	pop = window.open(newpage, samename, popdef)
	if (parseInt(navigator.appVersion) >= 4) { pop.window.focus();}
}

// Spawn music windows
function newWindow1(newpage, newname, w, h, scroll) 
{
	closePup();
	var ontop = true;
	var popl = 50;
	var popt = 0;
	var poph = 115;
	var popw = 300;
	scroll = 'no';
	var popdef='height='+poph+',width='+popw+',top='+popt+',left='+popl+',scrollbars='+scroll
	var pop1 = window.open(newpage, newname, popdef)
	if (parseInt(navigator.appVersion) >= 4) { pop1.window.focus()}

	}
// END POPUP FUNCTION
// -->
