"); document.write(""); js_player=function() {} js_player.prototype={ stop: function() {ScriptNodePlayer.getInstance().pause();}, getSongInfo: function () {return ScriptNodePlayer.getInstance().getSongInfo();}, playSong: function(tempSong) {x1=tempSong.split(',');x2={};x2.track=x1[1];x2.timeout=-1;x3=ScriptNodePlayer.getInstance();if (x3.isReady()) x3.loadMusicFromURL(x1[0],x2);} } function js_PlayerReady() {js_player_enabled=true;} } function TrackReady() { pstat=2;pres=1; if (js_player_enabled) { ScriptNodePlayer.getInstance().play(); js_maxSubSong=js_playerControl.getSongInfo().maxSubsong; } } function TrackEnd() { pcount=0;pstat=4;psong++; if (js_player_enabled && psong>=js_maxSubSong) psong=0; if (hasFlash) music.asapPlay('MUSIC/'+ptitle+'.SAP',psong); if (js_player_enabled) js_playerControl.playSong('MUSIC/'+ptitle+'.SAP,'+psong); } function GetRandom() { if (hasFlash || js_player_enabled) { if (pstat!=0) { if (hasFlash) music.asapStop(); if (js_player_enabled) js_playerControl.stop(); } request=false; if (window.XMLHttpRequest) { request=new XMLHttpRequest(); } else if (window.ActiveXObject) { try { request=new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { request=new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) {} } } if (request) { request.open('post','DATA/random.php',true); request.send(null); request.onreadystatechange=PlayRandom; docnt=1; } } } function PlayRandom() { if (request.readyState==4 && request.status==200) { content=request.responseText.split('|'); if (document.getElementById) { document.getElementById('playtit').innerHTML='playing music from: '+content[2]+''; document.getElementById('playtit').style.visibility='visible'; if (pidx>0) document.getElementById('p'+pidx).src=tmpimg3.src; } if (hasFlash) music.asapStop(); if (js_player_enabled) js_playerControl.stop(); pidx=0;pstat=1;ptitle=content[1];psong=content[0]; if (hasFlash) music.asapPlay('MUSIC/'+ptitle+'.SAP',psong); if (js_player_enabled) js_playerControl.playSong('MUSIC/'+ptitle+'.SAP,'+psong); } } function PlayNextRandom() { if ((hasFlash || js_player_enabled) && pidx==0 && pstat!=0) { pcount=0;pstat=3;psong++; if (js_player_enabled && psong>=js_maxSubSong) psong=0; if (hasFlash) music.asapPlay('MUSIC/'+ptitle+'.SAP',psong); if (js_player_enabled) js_playerControl.playSong('MUSIC/'+ptitle+'.SAP,'+psong); docnt=1; } else { GetRandom(); } } function StopRandom() { pidx=0;pstat=0; if (hasFlash) music.asapStop(); if (js_player_enabled) js_playerControl.stop(); document.body.style.cursor=''; window.status=''; if (document.getElementById) { document.getElementById('playtit').style.visibility='hidden'; document.getElementById('playtit').innerHTML=' '; } docnt=1; } function init() { cycle(); scrdim(); if (!hasFlash) {ScriptNodePlayer.createInstance(new ASAPBackendAdapter(),[],[],true,js_PlayerReady,TrackReady,TrackEnd);js_playerControl=new js_player();} if ((hasFlash || js_player_enabled) && document.getElementById) { for (i=1;i<=cntsndentries;i++) { document.getElementById('x'+i).className='s2'; } } } function cycle() { if (picon==1) do_onf(); if (hasFlash && pstat>2) { pcount++; if (pcount>5 || pstat>4) { pstat=1;psong=0; music.asapPlay('MUSIC/'+ptitle+'.SAP',psong); } } if (pres!=0) { pres=0; tmpimgc.src=tmpimg3.src; } setTimeout("cycle()",100); } function scrdim() { iw=(document.all) ? document.body.offsetWidth:window.innerWidth; ih=(document.all) ? document.body.offsetHeight:window.innerHeight; } if (zoom!=0) { document.write(""); } //-->