// Original Script = Pop-Up Embedder Script by David Battino, www.batmosphere.com
// Version 2006-05-31  
// OK to use if this notice is included
//
// Impotant Note:
// This file known as the jamroom_emplayer.inc.js, while it uses an altered version of the Pop-Up Embedder Script By David Battino,
// it is part of The ExpressMediaPlayer Security System Package for Jamroom. Alterations by Kirk Meade to the original Pop-Embedder 
// Script that make it work seamlessly with your jamroom to help protect your works from theft is created by Kirk Meade. This file is
// copyright 2006 Kirk Meade it is considered as private and confidential and for your eyes only. My alterations MAY NOT be passed on
// either for sale or for free by any means what so ever to other users of the Jamroom Software other than via the purchase of an 
// ExpressMediaPlayer Security System Add-On Kit from my site @ http://www.mp3xpress.com.au/phpBB2/
// So with that said please do enjoy! Regards Kirk Meade


// DEFAULT PLAYER FOR RANKING SPOTLIGHT AUDIO
 
function express_spotlight(filepath,filedesc,fileimage,artisturl,bandname,songname,location,songalbum,songgenre,songplays,vault,vaultprice,sysname,jamurl,WindowNumber) 
{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=350,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
    PlayerWin.document.write("<html>");
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='"+ jamurl +"/skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>"+ sysname +" Multi Media Single Song Player</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +" </div><br />");
    PlayerWin.document.write("<div class='head-1p'><a href='"+artisturl+"' target='_blank'><img src="+ fileimage +"&amp;width='100'&amp;height='100' width='100' height='100' align='left' hspace='0' border='0' alt='Visit Artist Web Page'></a>&nbsp;From The Album:&nbsp;"+songalbum+"&nbsp;<br />&nbsp;Genre:&nbsp;"+songgenre+"<br />&nbsp;Play Count:&nbsp;"+songplays+"<br />&nbsp;Artist Location:&nbsp;"+ location +" <br />&nbsp;<a href='"+artisturl+"'audio.php target='_blank'> Visit "+ bandname +" s Web Page!</a><br />&nbsp;<a href='"+vault+"' target='_blank'>"+vaultprice+"</a></div>");
    PlayerWin.document.writeln("<div align='center'>");
	PlayerWin.document.writeln("<object width='447' height='69'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='"+ objTypeTag +"'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='447' height='69' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.write("<div align='center'>Copyright 2007 - "+sysname+"  - All rights reserved</div><br />");

    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}


// DEFAULT PLAYER FOR CHART AUDIO
 
function express_chart(filepath,filedesc,fileimage,artisturl,bandname,songname,location,songalbum,songgenre,songplays,vault,vaultprice,sysname,jamurl,WindowNumber) // Change this entry to function _express(to turn this skin off)
{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=350,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='"+ jamurl +"/skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>"+ sysname +" Multi Media Chart Player</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +"</div><br />");
    PlayerWin.document.write("<div class='head-1p'><a><img src="+ fileimage +"&amp;width='100'&amp;height='100' width='100' height='100' align='left' hspace='0' border='0'></a>&nbsp;From The Album: "+songalbum+"<br />&nbsp;Current Genre: "+songgenre+"<br />&nbsp;Current Plays: "+songplays+"<br />&nbsp;Artist Location: "+ location +" <br />&nbsp;<a href='"+artisturl+"'audio.php target='_blank'>Visit "+ bandname +" s Web Page!</a><br /><a></div>");
    PlayerWin.document.writeln("<div align='center'>");
	PlayerWin.document.writeln("<object width='447' height='69'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='447' height='69' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.write("<div align='center'>Copyright 2007 - "+sysname+"  - All rights reserved</div><br />"); 
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}


// DEFAULT PLAYER FOR ALBUM AUDIO
 
function express_album(filepath,filedesc,fileimage,artisturl,bandname,songname,location,songalbum,songgenre,songplays,sysname,jamurl,WindowNumber) // Change this entry to function _express(to turn this skin off)
{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=350,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='"+ jamurl +"/skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>"+ sysname +" Multi Media Album Player</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +"</div><br />");
    PlayerWin.document.write("<div class='head-1p'><a><img src="+ fileimage +"&amp;width='100'&amp;height='100' width='100' height='100' align='left' hspace='0' border='0'></a>&nbsp;From The Artist: "+bandname+"<br />&nbsp;Current Genre: "+songgenre+"<br />&nbsp;Artist Location: "+ location +" <br />&nbsp;[click advance button to listen to next track]<br />&nbsp;<a href='"+artisturl+"'audio.php target='_blank'> Visit "+ bandname +" s Web Page!</a><br /></div>");
    PlayerWin.document.writeln("<div align='center'>");
	PlayerWin.document.writeln("<object width='447' height='69'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='447' height='69' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.write("<div align='center'>Copyright 2007 - "+sysname+"  - All rights reserved</div><br />"); 
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}


// DEFAULT STATION PLAYER FOR RADIO AUDIO
 
function express_radio(filepath,filedesc,fileimage,artisturl,radiobandname,radioname,tracknum,radiodesc,playtype,radioplays,tracklist,sysname,jamurl,WindowNumber) // Change this entry to function _express(to turn this skin off)
{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=350,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='"+ jamurl +"/skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>"+ sysname +" Multi Media Station Player</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +"</div><br />");
    PlayerWin.document.write("<div class='head-1p'><a><img src="+ fileimage +"&amp;width='100'&amp;height='100' width='100' height='100' align='left' hspace='0' border='0'></a>&nbsp;From The Station: "+radioname+"<br />&nbsp;Station Play Type: "+playtype+"<br />&nbsp;Current Station Plays: "+radioplays+"<br />&nbsp;Total Tracks This Station: "+ tracknum +" <br />&nbsp;[click advance button to listen to next track]<br />&nbsp;<a href='"+artisturl+"'audio.php target='_blank'> Visit "+ radiobandname +" s Web Page!</a><br /></div>");
    PlayerWin.document.writeln("<div align='center'>");
	PlayerWin.document.writeln("<object width='447' height='69'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='447' height='69' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.write("<div align='center'>Copyright 2007 - "+sysname+"  - All rights reserved</div><br />"); 
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}


// DEFAULT STATION PLAYER FOR PLAYLIST AUDIO
function express_playlist(filepath,filedesc,fileimage,artisturl,bandname,songname,location,radioname,songgenre,radioplays,sysname,jamurl,WindowNumber)
{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=350,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='"+jamurl+"/skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>"+ sysname +" Multi Media Station Track Player</div>");
	PlayerWin.document.writeln("<div class='head-1c'>"+ filedesc +"</div><br />");
	PlayerWin.document.write("<div class='head-1p'><a href='"+artisturl+"' target='_blank'><img src="+ fileimage +"&amp;width='100'&amp;height='100' width='100' height='100' align='left' hspace='0' border='0' alt='Visit Artist Web Page'></a>&nbsp;From The Station&nbsp;"+radioname+"&nbsp;<br />&nbsp;Station Play Count:&nbsp;"+radioplays+"<br />&nbsp;Artist Location:&nbsp;"+ location +" <br />&nbsp;<a href='"+artisturl+"'audio.php target='_blank'> Visit "+ bandname +" s Web Page!</a><br /></div>");
	PlayerWin.document.writeln("<div align='center'>");
	PlayerWin.document.writeln("<object width='447' height='69'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='447' height='69' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.write("<div align='center'>Copyright 2007 - "+sysname+"  - All rights reserved</div><br />"); 
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}


// EMPLAYER DEFAULT PLAYER FOR VIDEO
 
function express_video(filepath,filedesc,fileimage,artisturl,bandname,videoname,location,videoalbum,videogenre,videoplays,bandid,videoid,vault,vaultprice,sysname,jamurl,WindowNumber) // Change this entry to function _express(to turn this skin off)
{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3); 
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};
if (theExtension.toLowerCase() == "wmv") { mimeType = "video/x-ms-wmv"};
if (theExtension.toLowerCase() == "asx") { mimeType = "video/x-ms-asx"};
if (theExtension.toLowerCase() == "asf") { mimeType = "video/x-ms-asf"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=570,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='"+ jamurl +"/skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>"+ sysname +" Multi Media Video Player</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +" </div><br />");
    PlayerWin.document.write("<div class='head-1p'><a href='"+artisturl+"' target='_blank'><img src="+ fileimage +"&amp;width='100'&amp;height='100' width='100' height='100' align='left' hspace='0' border='0' alt='Visit Artist Web Page'></a>&nbsp;From The Album:&nbsp;"+videoalbum+"<br />&nbsp;Genre:&nbsp;"+videogenre+"<br />&nbsp;Play Count:&nbsp;"+videoplays+"<br />&nbsp;Artist Location:&nbsp;"+ location +" <br />&nbsp;<a href='"+artisturl+"video.php' target='_blank'> Visit "+ bandname +" s Web Page!</a><br />&nbsp;<a href='"+vault+"' target='_blank'>"+vaultprice+"</a></div>");
    PlayerWin.document.writeln("<div align='center'>");
	PlayerWin.document.writeln("<object width='447' height='304'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='447' height='304' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.write("<div align='center'>Copyright 2007 - "+sysname+"  - All rights reserved</div><br />"); 
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}

/**
 * Express Media Player Security System Favorites
 */
 
 function express_fav(filepath,filedesc,fileimage,WindowNumber)

{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=200,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='../skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>Multi Media Track Previewer</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +" </div><br />");
    PlayerWin.document.writeln("<div align='left'>");
	PlayerWin.document.writeln("<object width='450' height='69'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='450' height='69' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}


function express_favV(filepath,filedesc,fileimage,WindowNumber)

{

var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1
if (isWin) {
    	visitorOS="Windows";
} else {
   	visitorOS="Other";
}

var mimeType = "audio/mpeg";
var objTypeTag = "application/x-mplayer2";

var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3);
if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"}; 
if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
if (theExtension.toLowerCase() == "mp3") { mimeType = "audio/x-mp3"};
if (theExtension.toLowerCase() == "m3u") { mimeType = "audio/x-m3u"};

if (visitorOS != "Windows") { 
objTypeTag = mimeType; 
};

    PlayerWin = window.open('',WindowNumber,'width=450,height=430,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0'); // Change width & height settings in this line to resize the player pop-up window
    PlayerWin.focus();
	PlayerWin.document.write("<head>");
	PlayerWin.document.write("<title>Multi Media Player</title>");
	PlayerWin.document.write("<link href='../skins/Cobalt/CobaltEMPSS.css' rel='stylesheet' type='text/css' media='screen'>");
	PlayerWin.document.write("</head>");
    PlayerWin.document.write("<body class='body-1p' oncontextmenu='return false'>");
	PlayerWin.document.write("<div class='banner-p'>");
	PlayerWin.document.write("<div class='logo-p'></div>");	
	PlayerWin.document.write("<br />");
	PlayerWin.document.write("<div class='head-1a'>Multi Media Track Previewer</div>");
	PlayerWin.document.write("<div class='head-1c'>"+ filedesc +" </div><br />");
    PlayerWin.document.writeln("<div align='left'>");
	PlayerWin.document.writeln("<object width='450' height='300'>");
    PlayerWin.document.writeln("<param name='src' value='" +  filepath + "'>");
    PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
    PlayerWin.document.writeln("<param name='autostart' value='1'>");
    PlayerWin.document.writeln("<param name='showcontrols' value='1'>");	
    PlayerWin.document.writeln("<param name='controller' value='1'>");
    PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");	
    PlayerWin.document.writeln("<param name='enablecontextmenu' value='0'>");
    PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='450' height='300' controller='1' showstatusbar='1' enablecontextmenu='0' bgcolor='#3586AE' kioskmode='true'>");
    PlayerWin.document.writeln("</embed></object></div>");
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}

