//function to deal with puffs animation on home page

setUpElements = function(){
	//set root
	var _d = document.getElementById("debug");
	var j= 0;
	var  _tempString = "";
	var _rootNode = document.getElementById("d_home_right");
	for(var i=0;i<_rootNode.childNodes.length;i++){	
		 if(_rootNode.childNodes[i].attributes){
		 	_rootNode.childNodes[i].onmouseup = function(){			
					document.location = this.attributes.id.nodeValue
		 			}//end function
			_rootNode.childNodes[i].onmouseover = function(){
				this.style['background'] = "#6F1100 url(img/homepage/pulse.gif) no-repeat 529px 24px";
				this.style['cursor'] = "pointer";
			}//end function
			_rootNode.childNodes[i].onmouseout = function(){
				this.style['background'] = "#6F1100 url(img/homepage/indicator_dot.gif) no-repeat 540px 35px"
			}//end function
			j++;
		}//end if
		
		}//end for
}

window.onload = function(){
	setUpElements();
	}


