//Must go below all the images and links on the page
function rollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (j=0;j<myArraySet.length;j++){
if (myArraySet[j][0]==thislink.id+'_over'){ document.getElementById(thislink.id).src=myArraySet[j][1].src; break;}
}}
function unrollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (k=0;k<myArraySet.length;k++){
if (myArraySet[k][0]==thislink.id){ document.getElementById(thislink.id).src=myArraySet[k][1].src; break;}
}}

function rolloverInit(){
	myArraySet=new Array();
	myImages=new Array();
	count=-1;
	
	for (i=0;i<document.links.length;i++){
		elk=document.links[i];
		
		//if the id is not equal to an empty string and also if the id doesn't contain "chromeLink", which are found ids found in the chrome.
		if (elk.id != "" && elk.id.match("chromeLink") != "chromeLink"){
			try{
				bob=document.getElementById('i'+elk.id);
				unName=bob.src;
				count++;
				c3=bob.src.replace(/_off./gi,'_on.'); //OR WHATEVER YOUR IMAGE ROLLOVER NAME VARIATION IS
				thisImage=new Image();
				thisImage.src=c3;
				myArraySet[count]=new Array(bob.id+'_over',thisImage);
				elk.onmouseover=rollins;
				count++;
				thisImage=new Image();
				thisImage.src=unName;
				myArraySet[count]=new Array(bob.id,thisImage);
				elk.onmouseout=unrollins;
			}
			catch(e){}
		}
	}
}

rolloverInit();
