// navigatorIR.js
// www.synck.com

var navigatorIRObj = new Object();
navigatorIRObj.width = 247;
navigatorIRObj.height = 31;
navigatorIRObj.imageBack = '/image/menu/r_menu_back.png';

var d = window.document;
d.write('<style type="text/css">');
d.write('a.navigatorIR { width:'+navigatorIRObj.width+'px;height: '+navigatorIRObj.height+'px; overflow: hidden;display: block;}');
d.write('</style>');

function nvIR_onload(){
	$('.navigatorIR').each(function(){
		$(this).css('background-image', 'url('+navigatorIRObj.imageBack+')');
		if($('#current_page').val() == $(this).html() || this.href == location.href){
			$(this).css({'background-position':'0px '+((navigatorIRObj.height*2)*-1)+'px','color':'black'});
		}else{
			$(this).css('color','#666666');
			$(this).mouseover(function(){
				$(this).css({'background-position': '0px '+((navigatorIRObj.height)*-1)+'px','color':'#FF9E9E'});
			});
			$(this).mouseout(function(){
				$(this).css({'background-position':'0px 0px','color':'#666666'});
			});
		}
	});
}
$(document).ready(nvIR_onload);
