function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*
Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/

//Specify the marquee's width (in pixels)
var marqueewidth="80px"
//Specify the marquee's height
var marqueeheight="100px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1

//Specify the marquee's content
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):


////NO NEED TO EDIT BELOW THIS LINE////////////

marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, ns_marquee

function populate(){

if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.top=parseInt(marqueeheight)-80+"px"
for (var i=0; i<marqueecontent.length-1;i++){
var contentSplitted=marqueecontent[i].split('|');
cross_marquee.innerHTML=cross_marquee.innerHTML+'<div class="scroller" style="font-size:10px">';
cross_marquee.innerHTML=cross_marquee.innerHTML+'<br/>';
cross_marquee.innerHTML=cross_marquee.innerHTML+'<b>'+contentSplitted[0]+'<br>';
cross_marquee.innerHTML=cross_marquee.innerHTML+contentSplitted[1]+'</b><br>';
cross_marquee.innerHTML=cross_marquee.innerHTML+'<span style="font-style:italic; font-size:10px; color:gray">'+contentSplitted[2]+'</span>';
cross_marquee.innerHTML=cross_marquee.innerHTML+'</div><br>';

}
actualheight=cross_marquee.offsetHeight
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=parseInt(marqueeheight)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}
lefttime=setInterval("scrollmarquee()",30)
}


function scrollmarquee(){

if (iedom){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}
else if (document.layers){
if (ns_marquee.top>(actualheight*(-1)+8))
ns_marquee.top-=copyspeed
else
ns_marquee.top=parseInt(marqueeheight)+8
}
}

function initVars(width,height,pause,speed){
	if (iedom){
	cross_marquee=document.getElementById? document.getElementById("srcollerHolder") : document.all.srcollerHolder;
	cross_marquee.style.width=width;
	cross_marquee.style.height=height;
	var scroll_Spacer;
	var h=parseInt(height.replace('px',''))-30;
	scroll_Spacer=document.getElementById? document.getElementById("scrollSpacer") : document.all.scrollSpacer;
	if(scroll_Spacer){
			scroll_Spacer.style.height=h+"px";
			scroll_Spacer.style.width="1px";
			}
	//alert(width+' X '+height);
	}
else if (document.layers){
	/*ns_marquee=document.ns_marquee.document.ns_marquee2
	ns_marquee.top=parseInt(marqueeheight)+8
	ns_marquee.document.write(marqueecontent)
	ns_marquee.document.close()
	actualheight=ns_marquee.document.height*/
}
	marqueewidth=width;
	//Specify the marquee's height
	marqueeheight=height;
	//Specify the marquee's marquee speed (larger is faster 1-10)
	copyspeed=speed;
	//Pause marquee onMousever (0=no. 1=yes)?
	pauseit=pause;

}

function setSpeed(speed){
		copyspeed=speed;
}

if (iedom||document.layers){
with (document){
if (iedom){
write('<div id="srcollerHolder" class="scrollerHolder" style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px;width:100%;">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">')
write('<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
}
}