function startme()
{
	var w=0;
	var x=0;
	var newx=0;
	wid=window.setInterval("doscroll()",20);
}
function doscroll()
{
	scrollimg1("img1","img2");
}

function scrollimg1(img1,img2)
{
	var anchor=document.getElementById("pictures");
	ax=DL_GetElementLeft(anchor);
	start=ax;
	var pic1=document.getElementById(img1);
	var pic2=document.getElementById(img2);
	width1=pic1.offsetWidth;
	width2=pic2.offsetWidth;
	x=DL_GetElementLeft(pic1);
	newx=x-1;
	w=(ax-newx);
	newx2=ax+width1-w;
	picclip1="rect(auto auto auto " + w + "px)";
	picclip2="rect(auto " + w + "px auto auto)";
	pic1.style.clip=picclip1;
	pic1.style.left=newx+"px";
	pic1.style.visibilty="";
	pic2.style.clip=picclip2;
	pic2.style.left=newx2+"px";
	pic2.style.width=w+"px";
	if (w>(width1-1)){
		pic1.style.left=ax+"px";
		w=0;
	}	
}


function DL_GetElementLeft(eElement)
{
    var nLeftPos = eElement.offsetLeft;          // initialize var to store calculations
    var eParElement = eElement.offsetParent;     // identify first offset parent element  
    while (eParElement != null)
    {                                            // move up through element hierarchy
        nLeftPos += eParElement.offsetLeft;      // appending left offset of each parent
        eParElement = eParElement.offsetParent;  // until no more offset parents exist
    }
    return nLeftPos;                             // return the number calculated
}

function DL_GetElementTop(eElement)
{
    var nTopPos = eElement.offsetTop;            // initialize var to store calculations
    var eParElement = eElement.offsetParent;     // identify first offset parent element  
    while (eParElement != null)
    {                                            // move up through element hierarchy
        nTopPos += eParElement.offsetTop;        // appending top offset of each parent
        eParElement = eParElement.offsetParent;  // until no more offset parents exist
    }
    return nTopPos;                              // return the number calculated
}
