function slide(idstr,imgwidth,direction,maxnext)
				{
					var sh=document.getElementById(idstr);
					var current=sh.style.marginLeft;
					if (current)
					{
						current=current.substring(0,current.length-2);
					}else
					{
						current="0";
					}
					
					if (direction==-1)
					{
						if (parseInt(current)>-maxnext)
						{
						
							document.getElementById(idstr+'Prev').style.display='inline';
							sh.style.marginLeft=(parseInt(current)-imgwidth)+"px";
						}
						if (parseInt(current)-imgwidth<=-maxnext)
						{
							document.getElementById(idstr+'Next').style.display='none';
						}
					}else
					{
						if (parseInt(current)<0)
						{
							document.getElementById(idstr+'Next').style.display='inline';
							sh.style.marginLeft=(parseInt(current)+imgwidth)+"px";
						}
						if (parseInt(current)+imgwidth>=0)
						{
							document.getElementById(idstr+'Prev').style.display='none';
						}
					}
				}