var MusicObjectReference; // must be a global
function ignoreBug(){return true;}
window.onerror = ignoreBug;

function MM_preloadImages() { //v3.0
 var d=document;
 if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
 var p,i,x;
 if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function KW_initScroll(s,sd) { //v1.0.0 Copyright Kaosweaver
 d=document;d.KW_seq=KW_csIMG.length-1;d.KW_timer = window.setInterval('KW_cScroller('+s+');',sd);
}

function KW_endScroll(){ //v1.0.0 Copyright Kaosweaver
 clearInterval(document.KW_timer);
}

function KW_initDivs() { //v1.0.0 Copyright Kaosweaver
 d=document;if(d.getElementById) for(var i=0;d.getElementById("kw_imgDIV"+i);i++)
 eval("d.kw_visDiv"+i+"=d.getElementById('kw_imgDIV"+i+"').style")
}

function KW_cScroller(s){ //v1.0.0 Copyright Kaosweaver
 var KW_inc,iL;d=document;iL=KW_iLdr;KW_inc=0;for(var i=0;d.getElementById("kw_imgDIV"+i);i++){
  eval("d.kw_visDiv"+iL+".left='"+(KW_iL+KW_inc)+"px'");KW_inc+=KW_csIMG[iL].W+s;
  iL+=1;if (iL>(KW_csIMG.length-1)) iL=0} if (KW_iL<=-(KW_csIMG[KW_iLdr].W+s)){
  KW_iL=0;d.KW_seq+=1;if (d.KW_seq>KW_csIMG) d.KW_seq=0;KW_iLdr+=1;
  if (KW_iLdr > (KW_csIMG.length-1)) KW_iLdr=0;}KW_iL-=1
}
// Kaosweaver Continual Scroller End

function popmusic() { //v1.0.0
 if(MusicObjectReference == null || MusicObjectReference.closed)
 {
  MusicObjectReference = window.open('music.htm','music','width=800,height=600,resizable=yes,scrollbars=yes,status=yes');
  MusicObjectReference.blur();
  window.focus();
 }
 else if(!MusicObjectReference.closed)
 {
  MusicObjectReference.focus();
 }
}

