

// ----------------------------------------------------------------------
// openWindow Core
function openWindow(url,width,height,chrome,scroll,xpos,ypos){
	var features = "";
	chrome = chrome ? "yes" : "no";
	scroll = scroll ? "yes" : "no";
	features += "toolbar="+chrome+",menubar="+chrome+",location="+chrome+",status="+chrome;
	features += ",scrollbars="+scroll+",resizable="+scroll;
	if(width) features += ",width="+width;
	if(height) features += ",height="+height;
	if(xpos) features += ",screenX="+xpos+",left="+xpos;
	if(ypos) features += ",screenY="+ypos+",top="+ypos;

	var name = new Date();
	name = name.getTime();
	name = name.toString();

	openWindowReference = window.open(url,name,features);
}
// ----------------------------------------------------------------------
// openCenterWindow Core
function openCenterWindow(url,width,height,chrome,scroll){
	var xpos = window.screen.availWidth ? Math.round((window.screen.availWidth-parseInt(width))/2) : null;
	var ypos = window.screen.availHeight ? Math.round((window.screen.availHeight-parseInt(height))/2) : null;
	openWindow(url,width,height,chrome,scroll,xpos,ypos);
}
// ----------------------------------------------------------------------
function openWin(url,width,height){
	openWindow(url,width,height,false,false,false,false);
}
function openCenter(url,width,height){
	openCenterWindow(url,width,height,false,false);
}
function openCenterChrome(url,width,height){
	openCenterWindow(url,width,height,true,true);
}
function openCenterScroll(url,width,height){
	openCenterWindow(url,width,height,false,true);
}
function openCenterChromeScroll(url,width,height){
	openCenterWindow(url,width,height,true,true);
}
// ----------------------------------------------------------------------


function mp3player(){
	openWin("player/player.html",275,165,false);
}