function slideLine(ul, delay, speed, lh) {
   var slideBox = (typeof ul == 'string')?document.getElementById(ul):ul;
   var delay = delay||1000, speed=speed||20, lh = lh||20;
   var tid = null, pause = false;
   var start = function() {
    tid=setInterval(slide, speed);
   }
   var slide = function() {
    if (pause) return;
    slideBox.scrollTop += 2;
    if (slideBox.scrollTop % lh == 0) {
     clearInterval(tid);
     slideBox.appendChild(slideBox.getElementsByTagName('li')[0]);
     slideBox.scrollTop = 0;
     setTimeout(start, delay);
    }
   }
   slideBox.onmouseover=function(){pause=true;}
   slideBox.onmouseout=function(){pause=false;}
   setTimeout(start, delay);
}

function MM_openBrWindow(theURL, winName, features) { //v2.0
	nWin = window.open(theURL, winName, features);
	nWin.focus(); 
}

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];}}
}
