var ac1stepcount=10;
var ac1currstep=10;
var ac1timeo=null;
var ac1horvert=1;
var ac1folderset="";
var ac1gorun_imgwidth=0;
var ac1gorun_blockwidth=0;
var ac1gorun_overblock_width=0;
var ac1imgid=new Array();
var ac1yeniposx=new Array();
var ac1startposx=new Array();
var ac1currposx=new Array();
var i=0;var ac1hpiece='';
function ac1init_doc(fstr){
  ac1folderset=fstr;
	ac1hpiece=ac1hpiece+'<div style="position:relative;width:'+603+'px;height:'+490+'px; overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOut="ac1mouse_divout()">';
  ac1hpiece=ac1hpiece+'<div id="ac1po1" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(1)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:0px;"><a href="lawnmowers.htm" target="_self"><img width="603" height="280" src="'+ac1folderset+'lm.png" style="border-style:solid;border-width:0px;" TITLE="Danarm Lawnmowers"></img></a></div></div>';
  ac1hpiece=ac1hpiece+'<div id="ac1po2" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(2)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:2px;"><a href="brushcutters.htm" target="_self"><img width="603" height="280" src="'+ac1folderset+'bc.png" style="border-style:solid;border-width:0px;" TITLE="Danarm Brushcutters"></img></a></div></div>';
  ac1hpiece=ac1hpiece+'<div id="ac1po3" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(3)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:2px;"><a href="rotavators.htm" target="_self"><img width="603" height="280" src="'+ac1folderset+'cv.png" style="border-style:solid;border-width:0px;" TITLE="Danarm Cultivators"></img></a></div></div>';
	ac1hpiece=ac1hpiece+'<div id="ac1po4" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(4)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:2px;"><a href="hedgetrimmers.htm" target="_self"><img width="603" height="280" src="'+ac1folderset+'ht.png" style="border-style:solid;border-width:0px;" TITLE="Danarm Hedgetrimmers"></img></a></div></div>';
  ac1hpiece=ac1hpiece+'<div id="ac1po5" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(5)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:2px;"><a href="leaf_blowers.htm" target="_self"><img width="603" height="280" src="'+ac1folderset+'bl.png" style="border-style:solid;border-width:0px;" TITLE="Danarm Blowers"></img></a></div></div>';
	ac1hpiece=ac1hpiece+'<div id="ac1po6" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(6)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:2px;"><a href="attachments.htm" target="_self"><img width="603" height="280" src="'+ac1folderset+'at.png" style="border-style:solid;border-width:0px;" TITLE="Danarm Long Reach Attachments"></img></a></div></div>';
	ac1hpiece=ac1hpiece+'<div id="ac1po7" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(7)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:2px;"><a href="earthwayseeder.html" target="_self"><img width="603" height="280" src="'+ac1folderset+'es.png" style="border-style:solid;border-width:0px;" TITLE="Earthway Precision Garden Seeder"></img></a></div></div>';
	ac1hpiece=ac1hpiece+'</div>';
	document.write(''+ac1hpiece);
}
function ac1init_position(hv){
  ac1horvert=hv;
	for(i=1;i<=7;i++)	{
	  ac1imgid[i]=document.getElementById('ac1po'+i);
		if(ac1imgid[i]==null)		{
		  setTimeout("ac1init_position("+parseInt(hv)+")",380);
			return;
		}
	}
	if(ac1horvert==0)	{
	  ac1gorun_imgwidth=parseInt((490-((7-1)*2))/(7));  //ac1gorun_imgwidth=parseInt((430-((6-1)*2))/(6));
		ac1gorun_blockwidth=ac1gorun_imgwidth+2;
		ac1gorun_overblock_width=parseInt(((490-603)/(7-1)));
	}else{
	  ac1gorun_imgwidth=parseInt((490-((7-1)*2))     /(7));
		ac1gorun_blockwidth=ac1gorun_imgwidth+2;
		ac1gorun_overblock_width=parseInt(((490-280)/(7-1)));
	}
	for(i=1;i<=7;i++)	{
	  ac1imgid[i]=document.getElementById('ac1po'+i);
		sx=(ac1gorun_blockwidth*(i-1))-2;
		if(ac1horvert==0){
		  if(i==1){
			  ac1imgid[i].style.left="0px";
			}else{
			  ac1imgid[i].style.left=""+sx+"px";
			}
		}else{
		  if(i==1){
			  ac1imgid[i].style.top="0px";
			}else{
			  ac1imgid[i].style.top=""+sx+"px";
			}
		}
		ac1startposx[i]=sx;
		ac1currposx[i]=ac1startposx[i];
	}
}
function ac1do_anim(){
	if(ac1currstep<=0){
		return;
	}
	for(i=2;i<=7;i++){
		ac1currposx[i] = parseInt(ac1currposx[i])+parseInt((ac1yeniposx[i]-ac1currposx[i])/ac1currstep);
		if(ac1horvert==0){
			ac1imgid[i].style.left=""+ac1currposx[i]+"px";
		}else{
		  ac1imgid[i].style.top=""+ac1currposx[i]+"px";
		}
	}
	ac1currstep--;
	setTimeout("ac1do_anim()",40);
}
function ac1reposition(g){
  for(i=1;i<=7;i++)	{
	  if(i<=g){
			if(i==1){
				ac1yeniposx[i]=0;
			}else{
			  ac1yeniposx[i]=parseInt(((i-1)*ac1gorun_overblock_width)-2);
			}
		}else{
		  oncekix=0;
			for(j=1;j<(i-1);j++){
			  oncekix=oncekix+ac1gorun_overblock_width;
			}
			if(ac1horvert==0){
				ac1yeniposx[i]=parseInt(((603)+(oncekix)));
			}else{
			  ac1yeniposx[i]=parseInt(((280)+(oncekix)));
			}
		}
	}
	ac1currstep=ac1stepcount;
	ac1do_anim();
}
function ac1mouse_over(g){
  clearTimeout(ac1timeo);
	ac1reposition(g);
}
function ac1mouse_divout2(){
	for(i=1;i<=7;i++)	{		
	  sx=(ac1gorun_blockwidth*(i-1))-4;
		if(i==1){
			ac1yeniposx[i]=0;
		}else{
		  ac1yeniposx[i]=sx;
		}
	}
	ac1currstep=ac1stepcount;
	ac1do_anim();
}
function ac1mouse_divout(){
	ac1timeo=setTimeout("ac1mouse_divout2()",300);
}