function kd( e ) {
 e = e || window.event || {};
 if( ( e.srcElement || e.target || this ).tagName.toLowerCase()==='input' ) { return true; }
 var i, j, k = 999, p = dj.cur.parentNode;
 if( e.type.indexOf( 'key' )>-1 ) {
  k = e.keyCode || e.which;  // alert(k); \226/191
  if( e.ctrlKey ) {
   if( k===72 ) { return hp( e ); }  //  h
   if( k===74 ) { gp( 0, -10 ); return false; }  //  j
   if( k===75 ) { gp( 0, 10 ); return false; }  //  k
   if( k===76 ) { return storetime( dj.cloop ); }  //  l
   if( k===77 ) { return mup( e ); }  //  m
   if( k===78 ) { return mdn( e ); }  //  n
   if( k===79 ) { return setst( e ); }  //  o
   if( k===83 ) { return setshuf(); }  //  s
   if( k===84 ) { return setloop( e ); }  //  t
   if( k===85 ) { j = p.childNodes; i = j.length; while(i--) { j[i].className = j[i].className.replace( /\s*hid\s*/, ' ' ); } buttons[7].title = buttons[7].title.replace( /^([\s\S]*)(\d+)([\s\S]*)$/, '$1' + '0' + '$3' ); return false; }  //  u
   if( k===86 || k===87 ) { return st( 1 ); }  //  v w
   if( k===88 ) { return st( 2 ); }  //  x
   if( k===89 ) { return st( 3 ); }  //  y
   if( k===90 ) { return st( 4 ); }  //  z
   return true;
  }
  e.cancelBubble = true;
  if( k===8 ) { ra( dj.last ); return false; }  //  back
  if( k===9 ) { return true; }  //  tab
  if( k===32 ) { sp(); return false; }  //  space
  if( k===188 ) { dj.saved = dj.cur; return false; }  //  ,
  if( k===190 ) { ra( dj.saved ); return false; }  //  .
  if( k===189 ) { gp( 0.5 ); return false; }  //  -
  if( k===187 ) { gp( 2 ); return false; }  //  =
  if( k===13 ) { if( dj.cloop ) { ra( dj.foc ); } else { ra( dj.last ); } return false; }  //  return
  if( k===27 ) { if( veil && veil.showing ) { return hidebox(); } else { ra( p.firstChild ); return false; } }  //  esc
  if( k===35 ) { i = p.lastChild; while( i && i.className==='hid' ) { i = i.previousSibling; } if( i && i.className!=='hid' ) { i.focus(); } return false; }  //  end
  if( k===36 ) { i = p.firstChild.nextSibling; while( i && i.className==='hid' ) { i = i.nextSibling; } if( i && i.className!=='hid' ) { i.focus(); } return false; }  //  home
  if( k===37 || k===189 ) { return v( -1 ); }  //  left
  if( k===39 || k===187 ) { return v( 1 ); }  //  right
  if( k===38 ) { i = dj.foc.previousSibling; while( i && i.className==='hid' ) { i = i.previousSibling; } if( i && i.className!=='hid' ) { i.focus(); } return false; }  //  up
  if( k===40 ) { i = dj.foc.nextSibling; while( i && i.className==='hid' ) { i = i.nextSibling; } if( i && i.className!=='hid' ) { i.focus(); } return false; }  //  down
  if( k===46 ) { return hideitem( e ); }  //  del
 }
 k = String.fromCharCode( k ).toLowerCase();
 if( k==='0' ) {
  return v( 0 );
 } else if( k>='1' && k<='9' ) { k = +k; j = ( 9 - k ) / 9;
  return v( ( k - j ) * ( 8 + j ) / 8 * 1000 - 10000 );
 } else if( k>='a' && k<='z' ) {
  i = dj.foc;
  while( (i=i.nextSibling) && i.loopt ) {
   if( i.firstChild.nodeValue.charAt().toLowerCase()===k ) { i.focus(); break; }
   if( !i.nextSibling ) { i = p.firstChild; }
   if( i===dj.foc ) { break; }
  }
 } else if( k>'z' ) {
  ra( this || dj.cur );
 }
 return false;
}

function hideitem( e ) {
 dj.cur.className = 'hid';
 if( dj.rnd ) { sp(); } else {
  var i = dj.cur.nextSibling; while( i && i.className==='hid' ) { i = i.nextSibling; }
  if( !i ) { i = dj.cur.previousSibling; while( i && i.className==='hid' ) { i = i.previousSibling; } }
  ra( i );
 }
 var r = /^([\s\S]*)(\d+)([\s\S]*)$/;
 i = pa( buttons[7].title.replace( r, '$2' ) ) + 1;
 buttons[7].title = buttons[7].title.replace( r, '$1'+i+'$3' );
 return false;
}

function hidebox( how ) {
 if( veil && veil.showing ) {
  if( how!==false && window[veil.showing].fn ) { window[veil.showing].fn(); }
  veil.className = 'hid';
  window[veil.showing].style.left = window[veil.showing].offsetLeft - 999 + 'px';
  veil.showing = false;
 }
 return false;
}

function parts( o, s ) {
 while( o.firstChild ) { o.removeChild( o.firstChild ); }
 var d = window.document, a = s.split( /\[|\]/ ), i = a.length, j, k, l;
 while(i--) {
  if( a[i].indexOf( '|' )<0) {
   k = d.createTextNode( a[i] );
  } else {
   j = a[i].split( /\|/ );
   k = d.createElement( j[0].replace( /^but$/, 'input' ) );
   if( j[0]==='input' ) { k.type = 'text'; k.value = j[1]; l = k;
   } else if( j[0]==='but' ) { k.type = 'submit'; k.value = j[1]; k.className = 'but'; k.onclick = hidebox;
   } else if( j[0]==='a' ) { k.href = '?' + ( j[2] || '' ); k.insertBefore( d.createTextNode( j[1] ), null ); k.onclick = hidebox; if( j[2] ) { k.retval = j[2]; }
   } else { k.insertBefore( d.createTextNode( j[1] ), null ); }
  }
  o.insertBefore( k, o.firstChild );
 }
 if( l ) { l.focus(); l.select(); }
}

function showbox( id, s, t, bck ) {
 if( tib ) { hidebox( false ); window.clearTimeout( tib ); tib = null; }
 var a, b, d = window.document, v = window[id],
   w = window.innerWidth ? window.innerWidth : d.documentElement.clientWidth,
   h = window.innerHeight ? window.innerHeight : d.documentElement.clientHeight;
 if( v ) {
  if( s ) { parts( v.firstChild, s ); }
  if( t ) { v.lastChild.nodeValue = '\u00A0 \u00A0 ' + t; }
 } else {
  if( !veil )  {
   veil = d.body.insertBefore( d.createElement( 'div' ), null );
   veil.onclick = hidebox;
  }
  v = d.createElement( 'div' );
  window[id] = d.body.insertBefore( v, null );
  v.className = 'vwin ' + id;
  var div2 = v.cloneNode( false );
  v.insertBefore( div2, null );
  if( id==='wali' ) {
   div2.style.fontSize = '14px';
   div2.style.textAlign = 'center';
   div2.style.verticalAlign = 'bottom';// 'middle';
   div2.style.lineHeight = '30px';
  } else {
   a = d.createElement( 'a' );
   v.insertBefore( a, null );
   a.className = 'vesc';
   a.href = '#';
   a.title = 'Escape';
   a.onclick = hidebox;
  }
  parts( v.firstChild, s );
  v.insertBefore( d.createTextNode( '\u00A0 \u00A0 ' + t ), null );
 }
 v.style.width = Math.min( Math.max( 2, w - 12 ), 427 ) + 'px';
 v.style.height = Math.max( 2, Math.min( v.firstChild.scrollHeight+40, h * 2 / 3 ) ) + 'px';
 v.style.left = Math.round( ( w - v.offsetWidth ) / 2 ) + 'px';
 v.style.top = Math.round( ( h - v.offsetHeight ) / 2 ) + 'px';
 v.firstChild.style.width = v.offsetWidth-24 + 'px';
 v.firstChild.style.height = v.offsetHeight-24-18 + 'px';
 if( bck ) { v.fn = bck; }
 if( id==='wali' ) { tib = window.setTimeout( 'hidebox();', 1200 ); } else { veil.className = 'veil'; }
 veil.showing = id;
 return false;
}

function hp( e ) {
 if( window.whow ) {
  if( veil.showing==='whow' ) { hidebox(); } else if( veil.showing ) { hidebox(); showbox( 'whow' ); } else { showbox( 'whow' ); }
 } else {
  var d = window.document, l = d.forms.f.elements.list.value, s = d.forms.f.elements.help.value,
   t = eval( l.replace( /.*\t(\d+)\t\d+[ \w]*\??\t.*\n*/g, '$1 ' ).replace( / /g, '+' ) + '0' );
  s = s.replace( /101/, ( '\n' + l ).match( /\n\w+/g ).length );
  s = s.replace( /102/, Math.round( t / 60000 ) );
  s = s.replace( /103/, '\u0040' + d.location.hostname );
  s = s.replace( /\n +(\w+\s*\n)/g, '\n*$1' ).replace( /\r/g, '' );
  showbox( 'whow', s, 'How to Juke', function( e ) {  e = e || window.event || {}; var h = ( e.srcElement || e.target || this ); var i = h.search; if( i && !i.hash ) { ra( dj.items[i.substring( 1 )] ); } return false; } );
  var b2 = d.createElement( 'img' );
  window.whow.firstChild.insertBefore( b2, null );
  b2.src = '/image/clip/drums.gif';
  b2.width = 125;
  b2.height = 86;
  b2.alt = 'Hit me!';
  b2.style.position = 'absolute'; b2.style.top = '80px'; b2.style.left = '250px';
  b2.onmouseover = function() { dj.a.src = '/web/sound/drum/freaky.wav'; };
  b2.onmouseout = function() { dj.a.src = dj.u + dj.cur.search.substring( 1 ) + '.wav'; };
  b2.onclick = function() { dj.a.src = dj.a.src.indexOf( 'freaky' )<0 ? '/web/sound/drum/freaky.wav' : '/web/sound/drum/demon.au'; };
 }
 return false;
}

function ra( o ) {
 var n = o.loopt || 0;
 if( o!==dj.cur ) {
  buttons[0].firstChild.nodeValue = n ? '\u25CF' : '\u25BA';
  o.className = n ? 'cur' : 'hid';
  dj.cur.className = dj.cur.className.replace( /\s*cur\s*/, ' ' );
  dj.i.firstChild.nodeValue = ' ' + ( o.info || '\u2022' );
  if( dj.last!==dj.cur ) { dj.last = dj.cur; }
  dj.cur = o;
 }
 lp( n, dj.u + ( o.search && o.search.substring( 1 ) || 'silence' ) + '.wav' );
 if( n ) { try{ o.focus(); } catch( e ) { /*alert( o.outerHTML );*/ } } else { dj.rnd = true; setshuf(); }
}

function gp( n, m, o ) {
 var t = dj.cur.loopt, y;
 if( n ) {
  y = dj.cloop * n;
 } else if( m ) {
  y = dj.cloop + m;
 } else {
  y = o * t;
 }
 lp( Math.round( Math.min( t, Math.max( 0, y ) ) ) );
}

function lp( n, u ) {
 dj.cloop = n || dj.cloop;
 var s = dj.s, t = dj.cur.loopt;
 s.firstChild.style.left = ( t ? Math.round( n * s.offsetWidth / t ) : - 8 ) + 'px';
 s.lastChild.firstChild.nodeValue = t ? ( n===t ? t : ( n + '/' + t ) ) + ' ms' : 'Paused';
 lq( n, u );
}

function lq( n, u ) {
 dj.a.src = u || dj.a.src;
 buttons[0].style.background = '#8b0000';
 window.setTimeout( 'buttons[0].style.background = \'#fcf8f0\';', 15 );
 ln(); if( n && n!==dj.cur.loopt ) { tid = window.setTimeout( 'lq(' + n + ');', n ); }
}

function setshuf( how ) {
 dj.rnd = !dj.rnd;
 if( dj.rnd ) { buttons[1].style.borderStyle = 'inset'; sps(); } else { buttons[1].style.borderStyle = 'outset'; if( tis ) { window.clearTimeout( tis ); } tis = null; }
 return false;
}

function sps() { sp(); if( tis ) { window.clearTimeout( tis ); } tis = window.setTimeout( 'sps();', Math.round( 500 + dj.cur.loopt * 6 * Math.random() ) ); return false; }

function sp() {
 var p = dj.cur.parentNode, a = p.childNodes, i = a.length - 1, j = dj.cur;
 while( j.className && j.className!=='hid' ) { j = a[Math.floor( i * Math.random() + 1 )]; }
 ra( j ); return false;
}

function storetime( n ) {
 var s = '';
 if( dj.cur.loops.indexOf( n )<0 ) { dj.cur.loops[dj.cur.loops.length] = n; dj.cur.loops.sort( function(a,b){return a - b;} ); s = 'Stored a ' + n + ' ms loop.'; } else { s = 'This loop is stored already.'; }
 window.setTimeout( 'showbox( \'wali\', \'' + s + '\', \'!\' );', 50 );
 return false;
}

function setloop( e ) {
 var t = dj.cur.loopt;
 if( t ) {
  showbox( 'wask', '\r\nPlease enter a loop length\r\nbetween 10 and ' + t + ' ms:\r\n[input|' + dj.cloop + '][but|OK]\r\nor [a|store the current loop].\r\n\r\nStored loops for \'' + dj.cur.title.replace( /^([\s\S]*)Song:\s*([^\n]+)([\s\S]*)$/, '$2' ) + '\':\r\n\u2023 ' + ( dj.cur.loops.length ? '[a|' + dj.cur.loops.join( ']\r\n\u2023 [a|' ) + ']' : 'none' ), 'Loop Juke',
   function( e ) {  e = e || window.event;
    var h = ( e.srcElement || e.target || this ), v = wask.firstChild.lastChild; while( !v.value ) { v = v.previousSibling; } v = v.previousSibling.value;
    var n = h.href && h.firstChild ? h.firstChild.nodeValue : v;
    if( n==='store the current loop' ) {
     storetime( v );
    } else if( n && ( n=pa( n ) ) && n!==dj.cloop ) {
     gp(0,0, Math.min( t, Math.max( 10, n ) ) / t );
    }
  } );
 } else {
  showbox( 'wali', 'Please select a loop.', '!' );
 }
 return false;
}

function setst( e ) {
 showbox( 'wask', '\r\nPlease select a sorting order:\r\nby [a|artist|sort1]\t\t([a|down|sort-1])\r\nby [a|song title|sort2]\t([a|down|sort-2])\r\nby [a|release date|sort3]\t([a|down|sort-3])\r\nby [a|loop length|sort4]\t([a|down|sort-4])\r\nby [a|genre|sort5] (beta)\t([a|down|sort-5])\r\nThe list is now ' + buttons[2].title.replace( /^[\s\S]*S(orted( down)? by \w+)[\s\S]*$/, 's$1' ) + '.', 'Sort Juke', function( e ) {  e = e || window.event; var h = ( e.srcElement || e.target || this ); var i = h.search; if( i && (i=pa( i.substring(5) ) )) { window.setTimeout( 'st( Math.abs( ' + i + ' ), ' + ( i<0?-1:1 ) + ' )', 50 ); } } );
 return false;
}

function st( how, force ) {
 if( how===Math.abs( dj.sort ) && force && force<0===dj.sort<0 ) {
  showbox( 'wali', 'Sorted.', '\u266b' );
 } else {
  function sortnow( a, b ) { return comp( m(a), m(b) ); }
  function comp( va, vb ) { return va===vb ? 0 : ( (!va && va!==0) || (va>vb && vb) ? -1 : 1); }
  function startist(o) { return o.firstChild.nodeValue.replace( rex, re1 ); }
  function stsong(o) { return o.firstChild.nodeValue.replace( rex, re2 ); }
  function stdate(o) { var i = o.title.replace( /^([\s\S]*)Date:\s*(.*)\n([\s\S]*)$/, '$2' ); if( !/\d{4}/.test( i ) ) { i = '1000'; } if( /^\d{4}/.test( i ) ) { i = 'January ' + i.substring( 0, 4 ); } if( !/^\d/.test(i) ) { i = '1 ' + i; } return new Date( i ); }
  function sttime(o) { return pa( o.title.replace( /^([\s\S]*)Loop:\s*(\d*)\.?(\d*)([\s\S]*)$/, '$2$3' ) ); }
  function stgenre(o) { return null; }
  var re1, re2, m = [ null, startist, stsong, stdate, sttime, stgenre][how],
   p = dj.cur.parentNode, a = p.childNodes, b = [null], i = a.length, j;
  if( dj.artistsong ) { re1='$1'; re2='$2'; } else { re1='$2'; re2='$1'; }
  while( i-->1 ) {
   b[i] = a[i].cloneNode( true );
   b[i].onmousedown = kd;
   b[i].onfocus = sf;
   b[i].onclick = rf;
   if( a[i]===dj.cur ) { dj.cur = b[i]; }
   if( a[i]===dj.last ) { dj.last = b[i]; }
   if( a[i]===dj.saved ) { dj.saved = b[i]; }
  }
  b.shift(); b.reverse();
  if( how===Math.abs( dj.sort ) ) { dj.sort = -dj.sort; } else { b.sort( sortnow ); dj.sort = how; }
  if( force && force * dj.sort<0 ) { b.reverse(); dj.sort = -dj.sort; }
  if( how===1 && !dj.artistsong || how===2 && dj.artistsong ) {
   dj.artistsong = !dj.artistsong;
   i = b.length;
   while( i-- ) { b[i].firstChild.nodeValue = b[i].firstChild.nodeValue.replace( rex, '$2 - $1' ); }
  }
  j = dj.cur.offsetTop-p.scrollTop;
  i = a.length;
  while( i-->1 ) { p.removeChild( a[i] ); }
  i = b.length;
  while( i-- ) { p.insertBefore( b[i], null ); }
  i = 'Sorted' + ( dj.sort<0 ? ' down' : '' ) + ' by ' + [ null, 'artist', 'song title', 'date', 'length', 'genre'][how];
  buttons[2].title = buttons[2].title.replace( /Sorted( down)? by [\w ]+/, i );
  showbox( 'wali', i + '.', 'Juke' );
  if( dj.cur.loopt ) { p.scrollTop=p.scrollTop+dj.cur.offsetTop-j; dj.cur.focus(); }
 }
 return false;
}

function mup() { if( dj.cloop && dj.cur.previousSibling ) { dj.cur.parentNode.insertBefore( dj.cur, dj.cur.previousSibling ); dj.cur.focus(); } return false; }
function mdn() { if( dj.cloop && dj.cur.nextSibling ) { dj.cur.parentNode.insertBefore( dj.cur, dj.cur.nextSibling.nextSibling ); dj.cur.focus(); } return false; }

function v( n ) {
 n = Math.min( 0, Math.max( -10000, Math.abs( n )===1 ? dj.a.volume + n * 100 * ( -3000>dj.a.volume ? 2 : 1 ) : n ) );
 dj.a.volume = Math.round( n );
 var x = 90 - dj.v.firstChild.offsetWidth;
 dj.v.firstChild.style.left = Math.round( n / 10000 * x + x ) + 'px';
 dj.v.lastChild.firstChild.nodeValue = Math.round( n / 100 + 100 ) + '%';
 return false;
}

function md( e ) {
 function m() { v( ( Math.min( 90, ( b ? e.clientX : e.x ) - c ) / 90 - 1 ) * 10000 ); }
 e = e || window.event || {};
 var d = window.document, b = typeof e.clientY==='number', c = this.offsetLeft + 2;
 d.ondragstart = d.onselectstart = rf;
 d.onmouseup = function() { d.ondragstart = d.onselectstart = d.onmousemove = d.onmouseup = null; };
 if( this.title==='Volume' ) {
  m(); d.onmousemove = m;
 } else {
  if( e.which&&e.which===3 || e.button&&e.button===2 ) {
   e.cancelBubble = true; e.returnValue = false;
   setloop( e ); return false;
  } else {
   gp(0,0, ( ( b ? e.clientX : e.x ) - c ) / this.offsetWidth );
  }
 }
}

function rd( e ) { sd();
 var f = window.document.forms.f.childNodes, i = f.length - 1, s,
  h = window.innerHeight ? window.innerHeight : window.document.documentElement.clientHeight;
 h = h - f[0].offsetHeight;
 s = Math.max( 0, h - 18 ) + 'px';
 f[0].style.top = h + 'px';
 while( i-- ) {
  f[i].style.height = f[i].scrollHeight>h ? s : '';
 }
}

Array.prototype.indexOf = function( v ) { for( var i = 0, l = this.length; i < l; i++ ) { if( this[i]===v ) { return i; } } return -1; };
function getcookie( name ) { var s = window.document.cookie; return s.indexOf( name + '=' )<0 ? '' : unescape( s.replace( new RegExp( '^.*' + name + '=([^;]*);?.*$' ), '$1' ) ); }
function setcookie( name, val ) { var x = new Date(); x.setTime( x.getTime() + (1000 * 60 * 60 * 24 * 30) ); window.document.cookie = name + '=' + escape( val ) + '; expires=' + x.toGMTString() + '; path=/'; }
function ln() { if( tid ) { window.clearTimeout( tid ); tid = null; } }
function pa( n ) { return parseInt( n, 10 ); }
function rf() { return false; }
function sd() { window.scrollTo(); }
function sf( e ) {
 dj.foc.className = dj.foc.className.replace( /foc/g, '' );
 dj.foc = this;
 if( !this.className ) { this.className = 'foc'; }
}

var rex = /^(.*) - (.*)$/, tib = null, tis = null, tid = null, veil = null, buttons = [
 ['\u25CF', 'Play/Pause\nEscape', function() { if( dj.cur.loopt ) { ra( dj.cur.parentNode.firstChild ); } else { ra( dj.last ); } return false; }],
 ['S', 'Shuffle\nCtrl+S', setshuf],
 ['\u2261', 'Sorted by artist\nCtrl+O', setst],
 ['\u2194', 'Adjust timer\nCtrl+J or K', function( e ) { e = e || window.event || {}; var d = window.document, b = typeof e.clientX==='number', n = ( b ? e.clientX : e.x ) - this.offsetLeft; gp( 0, n-this.offsetWidth/2 ); return false; }], // \u25C4\u25BA
 ['T', 'Set timer\nCtrl+T', setloop],
 ['\u25B2', 'Move up\nCtrl+M', mup],
 ['\u25BC', 'Move down\nCtrl+N', mdn],
 ['\u00D7', 'Remove (0 items hidden)\nDel', hideitem]
 ], dj = {
 a: null, s: null, v: null, items: {}, cur: null, foc: null, last: null, saved: null, src:'rose', vol:-1500, rnd: false, sort: 1, artistsong: true, 
 u: ['/','wav','k/','ic','sand','an','l/iv','.n','ine','onl','me.','ho','/','/',':','tp','ht'].reverse().join( '' )
};

(function() {
 var months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ];
 var genres = [ 'Lullaby', 'Alarm', 'Percussion', 'Disco', 'Classical', 'Jazz', 'Reggae'];
 var d = window.document, f = d.forms.f, g = f.firstChild, h = g.firstChild, i, j, k,
  l = f.elements.list.value, q, r = getcookie( 'juke' ).split( /\|/ ), s, X;
  q = window.location.href.replace( /^.*\?(\w*=)?(\w+).*$/, '$2' ).toLowerCase();
  q = ( ( '\n' + l ).indexOf( '\n' + q + '\t' )<0 ? ( r[0]||dj.src ) : q ).replace( /silence/, dj.src );
  s = dj.u + q + '.wav';
 if( !X || !X.src===s ) { X = d.createElement( 'bgsound' ); X.src = s; X.loop = 'infinite'; }
 if( !X || !X.src===s ) { alert(9);X = d.createElement( 'embed' ); X.src = s; X.loop = 'true'; X.hidden = true; }
// if( !X || !X.src===s ) { X = d.createElement( 'object' ); X.src = s; X.loop = 'true'; }
 if( !X || !X.src===s ) { X = d.write( f.help.value ); /*?*/return false; }
 X.volume = pa( r[1]||dj.vol );
 dj.a = f.parentNode.insertBefore( X, f );
 h.onmousedown = kd;
 h.onfocus = sf;
 h.onclick = rf;
 h.loopt = 0;
 l = l.split( /\s*\n/ ); i = l.length;
 while( i-- ) {
  if( l[i] ) {
   j = l[i].split( /\t+/ ); o = h.cloneNode( true );
   dj.items[j[0]] = g.insertBefore( o, g.firstChild.nextSibling );
   if( q===j[0] ) { dj.cur = o; }
   o.href = '?' + j[0];
   o.firstChild.nodeValue = j[3].replace( /\[(.*?)\]/g, '' );
   k = j[2].substring( 0, 4 ) || '';
   s = pa( j[2].substring( 4, 6 ) ) || ''; s = s ? ( j[2].substring( 6, 8 ) ? pa( j[2].substring( 6, 8 ) ) + ' ' : '' ) + months[s-1] + ' ' : '';
   o.title = 'Song:\t' + j[3].replace( rex, '$2\nArtist:\t$1' ).replace( /[\[\]]/g, '' ) + '\nDate:\t' + ( j[2].length>3 ? s + k + ( s ? '' : j[2].substring( 4 ) ) : '' ) + '\nLoop:\t' + j[1].replace( /(\d{3})$/, '.$1' ) + ' sec.';
   s = j[4] ? ( ' ' + j[4] ).replace( /\|(?=\|)/g, '| ' ).split( /\|/ ) : [''];
   o.loopt = pa( j[1] )||0;
   o.loops = s[1] ? ( s[1] + ' ' + o.loopt ).split( /\s+/ ) : [o.loopt];
   o.info = j[3].replace( /[\[\]]/g, '' ).replace( / - /, ':  ' ) + ( j[2].length>3 ? '    (' + k + ')' : '' ) + '    ' + s[0];
   o.onmousedown = kd;
   o.onfocus = sf;
   o.onclick = rf;
  }
 }
 if( !dj.cur ) { dj.cur = h; }
 dj.foc = dj.cur; dj.last = dj.cur; dj.saved = dj.cur; dj.cloop = dj.cur.loopt;
 dj.cur.className = 'cur';
 h.className = 'hid';
 i = f.insertBefore( g.cloneNode( false ), g );
 i.className = 'ab rp';
 i.insertBefore( dj.cur.firstChild.cloneNode( true ), null );
 i.firstChild.nodeValue = ' ' + dj.cur.info;  //  1/4note: \u2669 1/8note: \u266a 1/8notes: \u266b
 h = f.insertBefore( i.cloneNode( false ), g );
 h.className = 'ab cd';
 j = h.insertBefore( i.cloneNode( true ), null );
 j.className = 'ab';
 j = h.insertBefore( h.cloneNode( false ), h.firstChild );
 j.className = 'ab pr';j.style.left='-8px';
 j = f.insertBefore( h.cloneNode( true ), h.nextSibling );
 j.className = 'ab cg';
 h.title = 'Volume';
 h.style.left = g.offsetWidth - 90 + 'px';
 h.onmousedown = md;
 j.style.background = '#e0dcd4';
 j.title = 'Timer';
 j.style.width = h.offsetLeft - 4 + 'px';
 j.onmousedown = md;
 j.lastChild.firstChild.nodeValue = dj.cur.loopt + ' ms';
 j.onmouseover = function() { if( dj.cur.loopt ) { var w = pa( this.style.width ), f = ( w + 93 ) / w, c = this.firstChild; this.oldheight = this.offsetHeight; this.style.width = w + 93 + 'px'; this.style.height = Math.round( this.offsetHeight * f * 2 / 3 ) + 'px'; this.style.borderBottom = '2px outset #b00'; this.style.fontSize = '125%'; c.style.left = Math.round( c.offsetLeft * f ) + 'px'; c.style.height = Math.round( c.offsetHeight * f ) + 'px'; } };
 j.onmouseout = function() { if( this.oldheight!==this.offsetHeight ) { var w = pa( this.style.width ), f = ( w - 93 ) / w, c = this.firstChild; this.style.width = w - 93 + 'px'; this.style.height = this.oldheight-2 + 'px'; this.style.borderBottom = '1px inset white'; this.style.fontSize = ''; c.style.left = Math.round( c.offsetLeft * f ) + 'px'; c.style.height = this.oldheight + 'px'; } };
 g.style.marginTop = i.offsetHeight + 4 + 'px';
 dj.v = h; dj.i = i; dj.s = j; v( 1 ); v( -1 );
 l = f.lastChild; h = l.lastChild; i = buttons.length;
 h.style.left = g.offsetWidth + 6 + 'px'; h.style.top = 22 * i + 32 + 'px';
 h.onclick = hp;
 while(i--) {
  f = l.insertBefore( h.cloneNode( true ), null ); f.style.top = 22 * i + 32 + 'px';
  f.firstChild.nodeValue = buttons[i][0];
  f.title = buttons[i][1];
  f.onclick = buttons[i][2];
  buttons[i] = f;
 }
 /*d.body.style.background = 'url( /image/clip/note16up.gif ) 212px 4px no-repeat';
 d.body.style.background = 'url( /image/clip/ani/arrowB.gif ) 190px -20px no-repeat';*/
 d.body.style.background = 'url( /image/clip/ani/burst-black.gif ) 206px 4px no-repeat';
 d.onkeydown = kd;
 window.onhelp = hp;
 window.onresize = rd;
 window.onscroll = sd;
 window.onunload = function() { ln(); setcookie( 'juke', dj.cur.search.substring( 1 ) + '|' + dj.a.volume + '|' + dj.sort + '|' + ( dj.rnd?'1':'0' ) ); };
 window.name = '_juke';
 window.setTimeout( 'window.document.title = window.document.title.replace( /:.*$/, \'\' );', 9 );
 r[2] = pa( r[2] ); if( r[2] && r[2]!==dj.sort ) { window.setTimeout( 'st( Math.abs( '+r[2]+' ), '+r[2]+'<0?-1:1 );', 50 ); }
 if( pa( r[3] ) || dj.rnd ) { dj.rnd = true; buttons[1].style.borderStyle = 'inset'; showbox( 'wali', 'Entering shuffling mode...', '\u266b' ); window.setTimeout( 'sps();', 3000 ); }
 rd();
 if( dj.cloop ) { dj.cur.focus(); }
})();
