// navigatorIR.js
// www.synck.com

var rollOverObj = new Object();
var navigatorIRObj = new Object();
navigatorIRObj.width = 150;
navigatorIRObj.height = 50;
navigatorIRObj.imageRoot = website.images;

var d = window.document;
var aObjects = d.getElementsByTagName("a");

function nvIR_onload(){
	var d = window.document;
	var aObjects = d.getElementsByTagName("a");
	for (i=0;i<aObjects.length;i++) {
		if(aObjects[i].className == "navigatorIR"){
			aObjects[i].style.backgroundImage = 'url('+navigatorIRObj.imageRoot+aObjects[i].id+'.gif)';
			if(location.href == aObjects[i].href){
				aObjects[i].style.backgroundPosition = "0px "+((aObjects[i].rel*2)*-1)+"px";
			}
		}
	}
	$("a.navigatorIR").mouseover(function(){
		nvIR_over(this);
	});
	$("a.navigatorIR").mouseout(function(){
		nvIR_out(this);
	});
}
function nvIR_over(obj){
	if(obj.href != location.href)
		obj.style.backgroundPosition = "0px "+((obj.rel)*-1)+"px";
}
function nvIR_out(obj){
	if(obj.href != location.href)
		obj.style.backgroundPosition = "0px 0px";
}
//$(document).ready(nvIR_onload);
//window.attachEvent('onload',nvIR_onload);
onloadObjects.push('nvIR_onload()');