//******* Rollover Functions ********//

var cacheArray = new Array(0); document.js = true;
//navPics = new imageGroup('navbullet_off|/sites/developer/i/spacer.gif','navbullet_on|/sites/developer/i/nav/navbullet.gif','prod_on|/sites/developer/i/nav_prod_on.gif','prod_off|/sites/developer/i/nav_prod_off.gif','plat_on|/scratch/intel/images/nav_plat_on.gif','plat_off|/scratch/intel/images/nav_plat_off.gif','soft_on|/scratch/intel/images/nav_soft_on.gif','soft_off|/scratch/intel/images/nav_soft_off.gif','tech_on|/scratch/intel/images/nav_tech_on.gif','tech_off|/scratch/intel/images/nav_tech_off.gif','navarrow|/sites/developer/i/nav/navarrow.gif','navarrowblue|/sites/developer/i/nav/navarrowblue.gif');

function imageGroupAddImage(strName, strURL)
{
	var i = this.names.length;
	
	this.names[i] = strName;
	this.urls[i] = strURL;
}

function imageGroup() 
{ 
	var a,i; 
	var args=arguments; 
	
	//methods
	this.AddImage = imageGroupAddImage;
	
	//object data
	this.total = args.length; 
	this.names= new Array(0); 
	this.urls= new Array(0); 
	this.i = new Object(); 
	for (i=0; i<this.total; i++) 
	{ 
		a = args[i].split('|'); 
		this.names[i] = a[0]; 
		this.urls[i] = a[1]; 
	} 
	this.cached = 0; 
	this.rollovers = false; 
	this.index = cacheArray.length;
	
	//synched data 
	cacheArray[this.index] = this; 
}

function ht_loadImages() 
{ 
	if (document.images) 
	{ 
		var j; 
		for (j=0; j<cacheArray.length; j++) 
		{ 
			ht_loadGroup(cacheArray[j]); 
		}  
		if (document.layers) ht_cacheImages(); 
	}
}
function ht_loadGroup(obj) 
{ 
	var k; 
	for (k=0; k<obj.total; k++) ht_loadImg(obj,k);  
}
function ht_loadImg(obj,n) 
{ 
	obj.i[obj.names[n]] = new Image(); 
	var img=obj.i[obj.names[n]]; 
	img.group=obj.index; 
	if (!document.layers) 
	{ 
		img.onload = ht_countImg; 
	} 
	img.src = obj.urls[n];  
}

function ht_cacheImages() 
{ 
	var stuff='';
	
	var grpArray = (arguments.length == 0) ? cacheArray:arguments;
	
	var j; 
	for (j=0; j<grpArray.length; j++) 
	{ 
		stuff+=ht_cacheGroup(grpArray[j]); 
	} 
	//for (j=0; j<cacheArray.length; j++) 
	//{ 
	//	stuff+=d_cacheGroup(cacheArray[j]); 
	//} 
	var cacher = new Layer(0); 
	cacher.document.write(stuff); 
	cacher.document.close(); 
}

function ht_cacheGroup(obj) 
{ 
	var stuff=''; 
	var k; 
	for (k=0; k<obj.total; k++) 
	{ 
		stuff+='<IMG SRC="'+ obj.urls[k] +'" BORDER="0" WIDTH="1" HEIGHT="1" onLoad="ht_countImg('+obj.index+');">'; 
	} 
	return(stuff); 
}

function ht_countImg(n) 
{ 
	if (n==null) n=this.group; var obj=cacheArray[n]; 
	obj.cached++; 
	if (obj.cached==obj.total)
	{ 
		obj.rollovers = true; 
	} 
}
