function MM_swapImage(id,sr) { //v3.0
  var x;
   if ((x=document.getElementById(id))!=null)
   {x.src=sr;
   
   }
}


function setsp(layer)
{ var i=new String(),block,str=new String();
  var mass=new Array();

block=document.getElementById(layer);
mass=block.childNodes;
len=mass.length;
i=block.style.display;

if(i=='none')
	{//document.write(i);
	block.style.display='inline';
	for(i=0;i<len;i++) 
	{str=mass[i].nodeValue;
	if(str==null){theScroll[0].scrollH =theScroll[0].scrollH +15;}
	else{theScroll[0].scrollH =theScroll[0].scrollH +(str.length/86)*15+15;}
	}
	ratio[0] = theScroll[0].scrollH / thumbTravel[0];	
	}
else
{
if(i=='inline')
	{
	block.style.display='none';
	for(i=0;i<len;i++) 
	{str=mass[i].nodeValue;
	if(str==null){theScroll[0].scrollH =theScroll[0].scrollH -15;}
	else{theScroll[0].scrollH =theScroll[0].scrollH -(str.length/86)*15-15;}
	}
	ratio[0] = theScroll[0].scrollH / thumbTravel[0];	
	
	}
}
}
