// SPIN JavaScript Document


//defines Array push method for IE 5.0
if(typeof Array.prototype.push == "undefined"){
  	Array.prototype.push = function(){
    	var i=0;
    	b=this.length,a=arguments;
    	for(i;i<a.length;i++)this[b+i]=a[i];
    	return this.length;
	}
}


//workaround for CSS :hover state on navigation elements in IE
startList = function(){
	if (document.all&&document.getElementById) {
		var navRoot;
		if(document.getElementsByTagName('ul')){
			var id = document.getElementsByTagName('ul'); 
			for(i=0; i<id.length; i++){ 
				if(id[i].className == 'nav'){
					navRoot = id[i];
					for (j=0; j<navRoot.childNodes.length; j++) {
						node = navRoot.childNodes[j]; 
						if (node.nodeName == "LI") { 
							node.onmouseover=function() {
								this.className+=" over";
				  			}
				  			node.onmouseout=function() {
				  				this.className=this.className.replace(" over", "");
				   			}
				   		}
					}
				}
			}
		}
	}
	
	//set height of td class='rCol bgWhite' if not an index page
	var indexPage = document.getElementById('sponsorCell');
	if(!indexPage){
		var td = document.getElementsByTagName('td')
		for(i=0; i<td.length; i++){ 
			if(td[i].className == 'rCol bgWhite'){
				td[i].style.height = 400 +'px';
			}
		}
	}
	
}
window.onload=startList;

