﻿function test (){}var horstepcount=10;var horcurrstep=10;var hortimeo=null;var horhorvert=0;var horfolderset="";var horgorun_imgwidth=0;var horgorun_blockwidth=0;var horgorun_overblock_width=0;var horimgid=new Array();var horyeniposx=new Array();var horstartposx=new Array();var horcurrposx=new Array();var i=0;var horhpiece='';function horinit_doc(fstr){    horfolderset=fstr;    horhpiece=horhpiece+'<div style="position:relative;width:'+500+'px;height:'+200+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOut="hormouse_divout()">';    horhpiece=horhpiece+'<div id="horpo1" style="position:absolute;left:0px;top:0px;" onMouseOver="hormouse_over(1)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:0px;"><a href="http://www.randrusher.com/" target="_self"><img width="320" height="200" src="'+horfolderset+'one.jpg" style="border-style:solid;border-width:0px;" TITLE="Rand Rusher Homepage"></img></a></div></div>';horhpiece=horhpiece+'<div id="horpo2" style="position:absolute;left:0px;top:0px;" onMouseOver="hormouse_over(2)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="http://www.randrusher.com/pretty.html" target="_self"><img width="320" height="200" src="'+horfolderset+'two.jpg" style="border-style:solid;border-width:0px;" TITLE="Pretty Hurts"></img></a></div></div>';horhpiece=horhpiece+'<div id="horpo3" style="position:absolute;left:0px;top:0px;" onMouseOver="hormouse_over(3)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="http://www.leafandrusher.com" target="_self"><img width="320" height="200" src="'+horfolderset+'three.jpg" style="border-style:solid;border-width:0px;" TITLE="Leaf and Rusher Products"></img></a></div></div>';horhpiece=horhpiece+'<div id="horpo4" style="position:absolute;left:0px;top:0px;" onMouseOver="hormouse_over(4)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="http://www.randrusher.com/press.html" target="_self"><img width="320" height="200" src="'+horfolderset+'four.jpg" style="border-style:solid;border-width:0px;" TITLE="Press"></img></a></div></div>';horhpiece=horhpiece+'<div id="horpo5" style="position:absolute;left:0px;top:0px;" onMouseOver="hormouse_over(5)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="http://www.randrusher.com/contact.html" target="_self"><img width="320" height="200" src="'+horfolderset+'five.jpg" style="border-style:solid;border-width:0px;" TITLE="Contact Rand"></img></a></div></div>';    horhpiece=horhpiece+'</div>';    document.write(''+horhpiece);}function horinit_position(hv){	horhorvert=hv;	for(i=1;i<=5;i++)	{		horimgid[i]=document.getElementById('horpo'+i);		if(horimgid[i]==null)		{		    setTimeout("horinit_position("+parseInt(hv)+")",300);		    return;		}	}		if(horhorvert==0)	{		horgorun_imgwidth=parseInt(     (500-((5-1)*2))     /(5));		horgorun_blockwidth=horgorun_imgwidth+2;		horgorun_overblock_width=parseInt(((500-320)/(5-1)));	}	else	{		horgorun_imgwidth=parseInt(     (200-((5-1)*2))     /(5));		horgorun_blockwidth=horgorun_imgwidth+2;		horgorun_overblock_width=parseInt(((200-225)/(5-1)));	}	for(i=1;i<=5;i++)	{		horimgid[i]=document.getElementById('horpo'+i);		sx=(horgorun_blockwidth*(i-1))-2;		if(horhorvert==0)		{			if(i==1)			{				horimgid[i].style.left="0px";			}			else			{				horimgid[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				horimgid[i].style.top="0px";			}			else			{				horimgid[i].style.top=""+sx+"px";			}		}		horstartposx[i]=sx;		horcurrposx[i]=horstartposx[i];	}}function hordo_anim(){	if(horcurrstep<=0)	{		return;	}	for(i=2;i<=5;i++)	{		horcurrposx[i] = parseInt(horcurrposx[i])+parseInt((horyeniposx[i]-horcurrposx[i])/horcurrstep);		if(horhorvert==0)		{			horimgid[i].style.left=""+horcurrposx[i]+"px";		}		else		{			horimgid[i].style.top=""+horcurrposx[i]+"px";		}	}	horcurrstep--;	setTimeout("hordo_anim()",40);}function horreposition(g){	for(i=1;i<=5;i++)	{		if(i<=g)		{			if(i==1)			{				horyeniposx[i]=0;			}			else			{				horyeniposx[i]=parseInt(((i-1)*horgorun_overblock_width)-2);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+horgorun_overblock_width;			}			if(horhorvert==0)			{				horyeniposx[i]=parseInt(((320)+(oncekix)));			}			else			{				horyeniposx[i]=parseInt(((200)+(oncekix)));			}		}	}	horcurrstep=horstepcount;	hordo_anim();}function hormouse_over(g){	clearTimeout(hortimeo);	horreposition(g);}function hormouse_divout2(){	for(i=1;i<=5;i++)	{		sx=(horgorun_blockwidth*(i-1))-2;		if(i==1)		{			horyeniposx[i]=0;		}		else		{			horyeniposx[i]=sx;		}	}	horcurrstep=horstepcount;	hordo_anim();}function hormouse_divout(){	hortimeo=setTimeout("hormouse_divout2()",320);}