// JavaScript Document

/** 
	 *	File naming convention: OrganizationAbreviation_logo_off.filetype,
	 *							OrganizationAbreviation_logo_over.filetype
	 */
	Roll = new Object();
	Roll = {
	
		IMAGEPATH : 'http://mysite.verizon.net/millsj123/bloggerImages/',
		
		traverse : function(element) {
			
			var child = null;
			var children = element.childNodes;
			var cacheImg = null;
			
			for (var i = 0; i < children.length; i++) {
				child = children[i];
				
				if(child.nodeType == 1){
					if ( (child.nodeName == 'IMG' || child.nodeName == 'img') && 
					     (child.parentNode.nodeName == 'A' || child.parentNode.nodeName == 'a') ){
						 
						child.className = 'normal';
						child.onmouseover = function(){ this.className = this.className.replace('normal', 'select');
														this.src = this.overSrc; };
						child.onmouseout = function() { this.className = this.className.replace('select', 'normal');
														this.src = this.offSrc;};
						child.offSrc = child.src;
						cacheImg = new Image(); 
						cacheImg.src = child.src.replace('logo_off','logo_over');
						child.overSrc = cacheImg.src;
						//alert('child.overSrc is: ' +child.overSrc);
					} //end if child is an img element inside an a element	 
					else this.traverse(child);
				}//end if child is an xhtml element	
			}//end for
		}//end func traverse
	
	} //end Object Roll