// JavaScript Document
function DHImageScroller(id,f,B,k,t,c,direction){this.e=id;this.g=f;this.C=B;this.l=k;this.v=t;this.d=c;this.m=direction;this.H= -1;};DHImageScroller.prototype.o=function(parent,nodeName){for(i=0;i<parent.childNodes.length;i++){if(parent.childNodes[i].nodeName==nodeName)return parent.childNodes[i];}};DHImageScroller.prototype.Init=function(){var f=document.getElementById(this.g);var B=document.getElementById(this.C);var j=this.w(f);var D=this.w(B);if(this.m==1||this.m==3){if(this.m==3)B.style.left=(j.x+j.width-D.x-D.width)+"px";}else{if(this.m==4)B.style.top=(j.y+j.height-D.y-D.height)+"px";}};DHImageScroller.prototype.Stop=function(){if(this.H!= -1)clearTimeout(this.H);this.H= -1;};DHImageScroller.prototype.DoScroll=function(){var f=document.getElementById(this.g);var B=document.getElementById(this.C);var j=this.w(f);var D=this.w(B);var G=this.o(B,"TBODY");var current=B.rows;if(this.m==1||this.m==3){var tr=current[0];var first=tr.cells[0];var r=this.w(first);var x=r.x-j.x;if(this.m==1){if((x+r.width)<=0){this.Stop();B.style.left="0px";tr.removeChild(first);tr.appendChild(first);this.H=setTimeout(this.e+".DoScroll()",this.v);return;}else{B.style.left=(x-this.d)+"px";}}else{first=tr.cells[tr.cells.length-1];r=this.w(first);x=r.x-j.x;if(x>=j.width){this.Stop();var insertBefore=tr.cells[0];tr.removeChild(first);tr.insertBefore(first,insertBefore);B.style.left=(j.width-D.width)+"px";this.H=setTimeout(this.e+".DoScroll()",this.v);return;}else{B.style.left=(D.x-j.x+this.d)+"px";}}}else{var first=current[0];var r=this.w(first);var y=r.y-j.y;if(this.m==2){if((y+r.height)<=0){this.Stop();B.style.top="0px";G.removeChild(first);G.appendChild(first);this.H=setTimeout(this.e+".DoScroll()",this.v);return;}else{B.style.top=(y-this.d)+"px";}}else{first=current[current.length-1];r=this.w(first);y=r.y-j.y;if(y>=j.height){this.Stop();var insertBefore=current[0];G.removeChild(first);G.insertBefore(first,insertBefore);B.style.top=(j.height-D.height)+"px";this.H=setTimeout(this.e+".DoScroll()",this.v);return;}else{B.style.top=(D.y-j.y+this.d)+"px";}}}this.H=setTimeout(this.e+".DoScroll()",this.l);};DHImageScroller.prototype.w=function(n){var result=new Object();result.x=0;result.y=0;result.width=0;result.height=0;if(n.offsetParent){result.x=n.offsetLeft;result.y=n.offsetTop;var parent=n.offsetParent;while(parent){result.x+=parent.offsetLeft;result.y+=parent.offsetTop;var A=parent.tagName.toLowerCase();if(A!="table"&&A!="body"&&A!="html"&&A!="div"&&parent.clientTop&&parent.clientLeft){result.x+=parent.clientLeft;result.y+=parent.clientTop;}parent=parent.offsetParent;}}else if(n.left&&n.top){result.x=n.left;result.y=n.top;}else{if(n.x){result.x=n.x;}if(n.y){result.y=n.y;}}if(n.offsetWidth&&n.offsetHeight){result.width=n.offsetWidth;result.height=n.offsetHeight;}else if(n.style&&n.style.pixelWidth&&n.style.pixelHeight){result.width=n.style.pixelWidth;result.height=n.style.pixelHeight;}return result;}
var cls_ctl0__ctl8_dhScroller = new DHImageScroller('cls_ctl0__ctl8_dhScroller' , '_ctl0__ctl8_dhScroller' , '_ctl0__ctl8_dhScroller_DHContainer' , 25 , 5 , 2 , 1);
var _ctl0__ctl8_dhScroller_IsStated = false;
function _ctl0__ctl8_dhScroller_Loader()
{
	cls_ctl0__ctl8_dhScroller.Init();
	cls_ctl0__ctl8_dhScroller.DoScroll();
	_ctl0__ctl8_dhScroller_IsStated = true;
}
if(!_ctl0__ctl8_dhScroller_IsStated)
	setTimeout('_ctl0__ctl8_dhScroller_Loader()' , 50);

