// navigatorIR.js
// www.synck.com

var rollOverObj = new Object();
var navigatorIRObj = new Object();
navigatorIRObj.width = 174;
navigatorIRObj.height = 55;
navigatorIRObj.imageRoot = 'img/';

var d = window.document;
var aObjects = d.getElementsByTagName("a");
d.write('<style type="text/css">');
d.write('a.navigatorIR { width:'+navigatorIRObj.width+'px;height: '+navigatorIRObj.height+'px;overflow: hidden;text-indent: -5000px;display: block;}');
d.write('</style>');

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+')';
			if(location.href == aObjects[i].href){
				aObjects[i].style.backgroundPosition = "0px "+((navigatorIRObj.height*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 "+((navigatorIRObj.height)*-1)+"px";
}
function nvIR_out(obj){
	if(obj.href != location.href)
		obj.style.backgroundPosition = "0px 0px";
}
$(document).ready(nvIR_onload);
