// script to generate random images
		var ranNum = (Math.floor(Math.random() * 5)) + 1;  
		var choice = ranNum;
		
		var ranNum2 = (Math.floor(Math.random() * 5)) + 1;  
		var choice2 = ranNum2;
		
		//Logo Rotator: Ironworks (Jerome Spellman 1/27/2005)
		logoArray = new Array()
		logoArray[0] = '<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a href="/Fed/HTH/MyPool/Stores/acehardware.htm"><img src="/FedFiles/en/HTH/Images/ace.gif" alt="" width="83" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/bjs.htm"><img src="/FedFiles/en/HTH/Images/bjs.gif" alt="" width="174" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/costco.htm"><img src="/FedFiles/en/HTH/Images/costco.gif" alt="" width="115" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/doitbest.htm"><img src="/FedFiles/en/HTH/Images/doitbest.gif" alt="" width="92" height="45" border="0"></a></td><td valign="top"><img src="/FedFiles/en/HTH/Images/white-spacer.gif" width="85" height="1" border="0"></td></tr></table>'
		logoArray[1] = '<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a href="/Fed/HTH/MyPool/Stores/homedepot.htm"><img src="/FedFiles/en/HTH/Images/homedepot.gif" alt="" width="48" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/longsdrugs.htm"><img src="/FedFiles/en/HTH/Images/longs.gif" alt="" width="115" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/toysrus.htm"><img src="/FedFiles/en/HTH/Images/toysrus.gif" alt="" width="127" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/truevalue.htm"><img src="/FedFiles/en/HTH/Images/truevalue.gif" alt="" width="127" height="45" border="0"></a></td><td valign="top"><a href="/Fed/HTH/MyPool/Stores/walmart.htm"><img src="/FedFiles/en/HTH/Images/walmart.gif" alt="" width="132" height="45" border="0"></a></td></tr></table>'
		
		homeArray = new Array();
		homeArray[0] = '<img src="/FedFiles/en/HTH/Images/main_img.jpg" border="0">'
		homeArray[1] = '<img src="/FedFiles/en/HTH/Images/main_02.jpg" border="0">'
		homeArray[2] = '<img src="/FedFiles/en/HTH/Images/main_03.jpg" border="0">'
		homeArray[3] = '<img src="/FedFiles/en/HTH/Images/main_04.jpg" border="0">'
		
		targetArray = new Array();
		targetArray['locator'] = logoArray;
		targetArray['home'] = homeArray;
		
		var delaySecs = new Array()
		delaySecs["locator"] = 5;
		delaySecs["home"] = 15;
		
		var pos = new Array();
		pos["locator"] = Math.floor(Math.random() * targetArray["locator"].length)
		pos["home"] = Math.floor(Math.random() * targetArray["home"].length)
		
		function initRotate(target)
		{
			tempArray = targetArray[target]
			if(document.getElementById(target) != null)
			{
				document.getElementById(target).innerHTML = tempArray[pos[target]];
				rotate(target);
			}	
		}

function makeLinks()

                        {

                                    register = document.getElementById("registerLink")

                                    login = document.getElementById("loginLink")

                        

                                    if(register != null && login != null )

                                    {

                                                register.innerHTML = '<a href="/Fed/HTH/Reg/registration.htm">Register Now</a>';

                                                login.innerHTML = '<a href="/Fed/HTH/Login/login.htm">Sign In</a>';

                                    }

                        }

		
		function rotate(target)
		{
				pos[target]++
				tempArray = targetArray[target]
				
				if(pos[target] == tempArray.length)
				{
					pos[target] = 0
				}
				
				document.getElementById(target).innerHTML = tempArray[pos[target]];	
				
		                self.setTimeout('rotate("' + target + '")',  delaySecs[target] * 1000)
		}
