var imageDir = 'images/gen/';

// MenuImage(image_id, normal_image, active_image, mouseover_image, image_swapped)
var MImages = new Array(
						//    new MenuImage("", "", "", "", 0);
);

$(document).ready(function() {
	$('.boxroll_h2').css('margin-top','-33px');
	$('.boxroll_h2').css('color','#333');
	$('.boxroll_h2').css('font-size','12px');
	$('.boxroll_link').hover(
		function() {
			$(this).children('.boxroll').css('background-color','#fff');
			$(this).children('.boxroll').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/mid_on.gif)');
			$(this).children('.boxroll').children('.boxroll_top').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/top_on.gif)');
			$(this).children('.boxroll').children('.boxroll_top').css('height','14px');
			$(this).children('.boxroll').children('.boxroll_btm').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/btm_on.gif)');
			$(this).children('.boxroll').children('.boxroll_btm').css('height','19px');
//			$(this).children('.boxroll').children('h2.boxroll_h2').css('color','#cc5407');
			$(this).children('.boxroll').children('span.boxroll_h2').css('color','#cc5407');
			if($.browser.safari || $.browser.mozilla || $.browser.opera){ //FOR Mozilla, Safari, and Opera Only
//				$(this).children('.boxroll').children('h2.boxroll_h2').css('margin-top','-6px');
				$(this).children('.boxroll').children('span.boxroll_h2').css('margin-top','-6px');
				$(this).children('.boxroll').children('.boxroll_top').css('background-color','#fff');
				$(this).children('.boxroll').children('.boxroll_btm').css('background-color','#fff');
				}
			else if($.browser.msie && /MSIE 5\.0/i.test(window.navigator.userAgent) && !/MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent)){ //FOR IE5 Only
//				 $(this).children('.boxroll').children('h2.boxroll_h2').css('top','-1px');
				 $(this).children('.boxroll').children('span.boxroll_h2').css('top','-1px');
//				 $(this).children('.boxroll').children('p').css('top','-1px');
				 $(this).children('.boxroll').children('span').css('top','-1px');
				}
			else if($.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent)){ //FOR IE6 Only
//				$(this).children('.boxroll').children('h2.boxroll_h2').css('top','-1px');
				$(this).children('.boxroll').children('span.boxroll_h2').css('top','-1px');
//				$(this).children('.boxroll').children('p').css('top','-1px');
				$(this).children('.boxroll').children('span').css('top','-1px');
				}
			else if($.browser.msie && /MSIE 7\.0/i.test(window.navigator.userAgent) && !/MSIE 6\.0/i.test(window.navigator.userAgent)){ //FOR IE7 Only
//				$(this).children('.boxroll').children('h2.boxroll_h2').css('top','0px');
				$(this).children('.boxroll').children('span.boxroll_h2').css('top','0px');
//				$(this).children('.boxroll').children('p').css('top','0px');
				$(this).children('.boxroll').children('span').css('top','0px');
				}
			else if($.browser.msie){ //FOR IE Only
				$(this).children('.boxroll').children('.boxroll_top').css('background-color','transparent');
				$(this).children('.boxroll').children('.boxroll_btm').css('background-color','transparent');
				}
		},
		function() {
			$(this).children('.boxroll').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/mid_off.gif)');
			$(this).children('.boxroll').children('.boxroll_top').css('background-color','#f9f9f9');
			$(this).children('.boxroll').children('.boxroll_top').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/top_off.jpg)');
			$(this).children('.boxroll').children('.boxroll_top').css('height','41px');
			$(this).children('.boxroll').children('.boxroll_btm').css('background-color','#f9f9f9');
			$(this).children('.boxroll').children('.boxroll_btm').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/btm_off.jpg)');
			$(this).children('.boxroll').children('.boxroll_btm').css('height','20px');
//			$(this).children('.boxroll').children('h2.boxroll_h2').css('color','#333');
			$(this).children('.boxroll').children('span.boxroll_h2').css('color','#333');
//			$(this).children('.boxroll').children('h2.boxroll_h2').css('margin-top','-33px');
			$(this).children('.boxroll').children('span.boxroll_h2').css('margin-top','-33px');
			if($.browser.safari || $.browser.mozilla || $.browser.opera){ //FOR Mozilla, Safari, and Opera Only
				$(this).children('.boxroll').css('background-color','#f9f9f9');
				}
			else if($.browser.msie){ //FOR IE Only
//				$(this).children('.boxroll').children('h2.boxroll_h2').css('top','0px');
				$(this).children('.boxroll').children('span.boxroll_h2').css('top','0px');
//				$(this).children('.boxroll').children('p').css('top','0px');
				$(this).children('.boxroll').children('span').css('top','0px');
				$(this).children('.boxroll').css('background-color','#fff');
				$(this).children('.boxroll').children('.boxroll_top').css('background-color','transparent');
				$(this).children('.boxroll').children('.boxroll_btm').css('background-color','transparent');
				}
		});
		$('.boxroll_link_long').hover(
			function() {
				$(this).children('.boxroll2').css('background-color','#fff');
				$(this).children('.boxroll2').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/mid_on_2col.gif)');
				$(this).children('.boxroll2').children('.boxroll_top2').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/top_on_2col.gif)');
				$(this).children('.boxroll2').children('.boxroll_top2').css('height','14px');
				$(this).children('.boxroll2').children('.boxroll_btm2').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/btm_on_2col.gif)');
				$(this).children('.boxroll2').children('.boxroll_btm2').css('height','19px');
//				$(this).children('.boxroll2').children('h2.boxroll_h2').css('color','#cc5407');
				$(this).children('.boxroll2').children('span.boxroll_h2').css('color','#cc5407');
				if($.browser.safari || $.browser.mozilla || $.browser.opera){ //FOR Mozilla, Safari, and Opera Only
//					$(this).children('.boxroll2').children('h2.boxroll_h2').css('margin-top','-6px');
					$(this).children('.boxroll2').children('span.boxroll_h2').css('margin-top','-6px');
					$(this).children('.boxroll2').children('.boxroll_top2').css('background-color','#fff');
					$(this).children('.boxroll2').children('.boxroll_btm2').css('background-color','#fff');
					}
				else if($.browser.msie && /MSIE 5\.0/i.test(window.navigator.userAgent) && !/MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent)){ //FOR IE5 Only
//					$(this).children('.boxroll2').children('h2.boxroll_h2').css('top','-1px');
					$(this).children('.boxroll2').children('span.boxroll_h2').css('top','-1px');
//					$(this).children('.boxroll2').children('p').css('top','0px');
					$(this).children('.boxroll2').children('span').css('top','0px');
					}
				else if($.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent)){ //FOR IE6 Only
//					$(this).children('.boxroll2').children('h2.boxroll_h2').css('top','-1px');
					$(this).children('.boxroll2').children('span.boxroll_h2').css('top','-1px');
//					$(this).children('.boxroll2').children('p').css('top','0px');
					$(this).children('.boxroll2').children('span').css('top','-1px');
					}
				else if($.browser.msie && /MSIE 7\.0/i.test(window.navigator.userAgent) && !/MSIE 6\.0/i.test(window.navigator.userAgent)){ //FOR IE7 Only
//					$(this).children('.boxroll2').children('h2.boxroll_h2').css('top','0px');
					$(this).children('.boxroll2').children('span.boxroll_h2').css('top','0px');
//					$(this).children('.boxroll2').children('p').css('top','0px');
					$(this).children('.boxroll2').children('span').css('top','0px');
					}
				else if($.browser.msie){ //FOR IE Only
					$(this).children('.boxroll2').children('.boxroll_top2').css('background-color','transparent');
					$(this).children('.boxroll2').children('.boxroll_btm2').css('background-color','transparent');
					}
			},
			function() {
				$(this).children('.boxroll2').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/mid_off_2col.gif)');
				$(this).children('.boxroll2').children('.boxroll_top2').css('background-color','#f9f9f9');
				$(this).children('.boxroll2').children('.boxroll_top2').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/top_off_2col.jpg)');
				$(this).children('.boxroll2').children('.boxroll_top2').css('height','41px');
				$(this).children('.boxroll2').children('.boxroll_btm2').css('background-color','#f9f9f9');
				$(this).children('.boxroll2').children('.boxroll_btm2').css('background-image','url(/IFAPRedesign/images/gen/boxrolls/btm_off_2col.jpg)');
				$(this).children('.boxroll2').children('.boxroll_btm2').css('height','20px');
//				$(this).children('.boxroll2').children('h2.boxroll_h2').css('color','#333');
				$(this).children('.boxroll2').children('span.boxroll_h2').css('color','#333');
//				$(this).children('.boxroll2').children('h2.boxroll_h2').css('margin-top','-33px');
				$(this).children('.boxroll2').children('span.boxroll_h2').css('margin-top','-33px');
				if($.browser.safari || $.browser.mozilla || $.browser.opera){ //FOR Mozilla, Safari, and Opera Only
					$(this).children('.boxroll2').css('background-color','#f9f9f9');
					}
				else if($.browser.msie){ //FOR IE Only
//					$(this).children('.boxroll2').children('h2.boxroll_h2').css('top','0px');
					$(this).children('.boxroll2').children('span.boxroll_h2').css('top','0px');
//					$(this).children('.boxroll2').children('p').css('top','0px');
					$(this).children('.boxroll2').children('span').css('top','0px');
					$(this).children('.boxroll2').css('background-color','#fff');
					$(this).children('.boxroll2').children('.boxroll_top2').css('background-color','transparent');
					$(this).children('.boxroll2').children('.boxroll_btm2').css('background-color','transparent');
					}
		});
});
