
function WinampSuperPlayerMp3(strSong,strAuthor,strTitle,strCover,t,bg,i)
   {
    document.all.mainplayer.innerHTML = "";
    var xD=275;
    var yD=116;
	var _info = navigator.userAgent;
	var txtHtml = "";
	var _ns = false;
	var _ns6 = false;
	var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
	if (_info.indexOf("Opera") > 0) _ie = false;
	var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
	var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
	if (_ie == true) {
	  txtHtml +=('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="'+xD+'" HEIGHT="'+yD+'" NAME="player" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
	}
	else if (_ns == true && _ns6 == false) { 
	  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
	  txtHtml +=('<EMBED ');
	  txtHtml +=('type="application/x-java-applet;version=1.4" ');
	  txtHtml +=('CODE="javazoom.jlgui.player.amp.PlayerApplet.class" ');
	  txtHtml +=('JAVA_CODEBASE="./" ');
	  txtHtml +=('ARCHIVE="lib/jlguiapplet2.3.2.jar,lib/jlgui2.3.2-light.jar,lib/tritonus_share.jar,lib/basicplayer2.3.jar,lib/mp3spi1.9.2.jar,lib/jl1.0.jar,lib/vorbisspi1.0.1.jar,lib/jorbis-0.0.13.jar,lib/jogg-0.0.7.jar,lib/commons-logging-api.jar" ');
	  txtHtml +=('NAME="player" ');
	  txtHtml +=('WIDTH="275" ');
	  txtHtml +=('HEIGHT="348" ');
	  txtHtml +=('song="'+strSong+'" ');
	  txtHtml +=('start="yes" ');
	  txtHtml +=('skin="skins/AmOSAmp12.wsz" ');
	  txtHtml +=('init="jlgui.ini" ');
	  txtHtml +=('location="url" ');
	  txtHtml +=('useragent="winampMPEG/2.7" ');
	  txtHtml +=('scriptable=true ');
	  txtHtml +=('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
	  // END
	}
	else {
	  txtHtml +=('<APPLET CODE="javazoom.jlgui.player.amp.PlayerApplet.class" JAVA_CODEBASE="./" ARCHIVE="lib/jlguiapplet2.3.2.jar,lib/jlgui2.3.2-light.jar,lib/tritonus_share.jar,lib/basicplayer2.3.jar,lib/mp3spi1.9.2.jar,lib/jl1.0.jar,lib/vorbisspi1.0.1.jar,lib/jorbis-0.0.13.jar,lib/jogg-0.0.7.jar,lib/commons-logging-api.jar" WIDTH="'+xD+'" HEIGHT="'+yD+'" NAME="player">');
	}
	// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
	txtHtml +=('<PARAM NAME=CODE VALUE="javazoom.jlgui.player.amp.PlayerApplet.class">');
	txtHtml +=('<PARAM NAME=CODEBASE VALUE="./">');
	txtHtml +=('<PARAM NAME=ARCHIVE VALUE="lib/jlguiapplet2.3.2.jar,lib/jlgui2.3.2-light.jar,lib/tritonus_share.jar,lib/basicplayer2.3.jar,lib/mp3spi1.9.2.jar,lib/jl1.0.jar,lib/vorbisspi1.0.1.jar,lib/jorbis-0.0.13.jar,lib/jogg-0.0.7.jar,lib/commons-logging-api.jar">');
	txtHtml +=('<PARAM NAME=NAME VALUE="player">');
	txtHtml +=('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
	txtHtml +=('<PARAM NAME="scriptable" VALUE="true">');
	txtHtml +=('<PARAM NAME="song" VALUE="'+strSong+'">');
	txtHtml +=('<PARAM NAME="start" VALUE="yes">');
	txtHtml +=('<PARAM NAME="skin" VALUE="skins/AmOSAmp12.wsz">');
	txtHtml +=('<PARAM NAME="init" VALUE="jlgui.ini">');
	txtHtml +=('<PARAM NAME="location" VALUE="url">');
	txtHtml +=('<PARAM NAME="useragent" VALUE="winampMPEG/2.7">');
	// END
	if (_ie == true) {
	  yOffSet1 = 22; 
      yOffSet2 = 22;		
	  txtHtml +=('</OBJECT>');
	}
	else if (_ns == true && _ns6 == false) {
	  yOffSet1 = 60; 
      yOffSet2 = -46;			
	  txtHtml +=('</NOEMBED></EMBED>');
	}
	else {
	  yOffSet1 = 34; 
      yOffSet2 = 0;			
	  txtHtml +=('</APPLET>');
	}
	//alert (txtHtml);
	document.all.mainplayer.innerHTML = txtHtml;
   }
