// Begin Actions
function F_doLoaded() {
	document.main = new F_cMain();
	document.objectModel = new Object();
	F_OM('Layout','LayoutLYR', 'doc', '', new Array());
	F_pageLoaded('Layout');
}
 
$(document).ready( function() {
F_onLoaded();
});
// End Actions

// Begin XHTML adjustment
$(document).ready(function(){
	if (jQuery.browser.msie && jQuery.browser.version.substr(0, 2) == "6.") {
		$(".nof-clearfix").each(function (i) {
			$(this).append("<div style='clear:both'/>");
			$(this).removeClass("nof-clearfix");
		});
	}
});

// End XHTML adjustment

// Begin jMedia Components
$(document).ready(
function() {
	$("#RotatingAdBanner1").media({ width: 114, height: 100, src: 'DynamicBanner.class', title: 'Rotating Ad Banner',
		params: { codebase: './', archive: 'AdBannerDeploy.jar', 'banner0': './Church.JPG,,Fade', 'banner1': './Drive_Way.JPG,,Fade', 'banner2': './Drive_Way2.JPG,,Fade', 'banner3': './Front_Door.JPG,,Fade', 'banner4': './Inside_Church.JPG,,Fade', 'banner5': './Pulpit.JPG,,Fade', 'banner6': './School_Room.JPG,,Fade', 'banner7': './Wollaton_Road_North.JPG,,Fade', 'banner8': './Wollaton_Road_South.JPG,,Fade', 'autoResize': '1', 'delay': '3', 'bgcolor': '#FFFFFF' }
	});
});
// End jMedia Components

// Begin Navigation Bars
var ButtonsImageMapping = [];
ButtonsImageMapping["NavigationBar3"] = {
	"NavigationButton1" : { image: "./Home_Hp_Highlighted.png", rollover: "./Home_HRp_HighlightedOver.png", w: 120, h: 40 },
	"NavigationButton2" : { image: "./Community_Np_Regular.png", rollover: "./Community_NRp_RegularOver.png", w: 120, h: 40, opening: "bottom", offsetX: 0, offsetY: 40 },
	"NavigationButton9" : { image: "./Whats-On_Np_Regular.png", rollover: "./Whats-On_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton11" : { image: "./Outlook_Np_Regular.png", rollover: "./Outlook_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton13" : { image: "./Download-Section_Np_Regular.png", rollover: "./Download-Section_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton15" : { image: "./Prayer-Page_Np_Regular.png", rollover: "./Prayer-Page_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton17" : { image: "./Links_Np_Regular.png", rollover: "./Links_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton3" : { image: "./Worship_Np_Regular.png", rollover: "./Worship_NRp_RegularOver.png", w: 120, h: 40, opening: "bottom", offsetX: 0, offsetY: 40 },
	"NavigationButton20" : { image: "./Mission-Statement_Np_Regular.png", rollover: "./Mission-Statement_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton22" : { image: "./Services-For-January_Np_Regular.png", rollover: "./Services-For-January_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton24" : { image: "./Morning-Service_Np_Regular.png", rollover: "./Morning-Service_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton26" : { image: "./Evening-Service_Np_Regular.png", rollover: "./Evening-Service_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton28" : { image: "./Junior-Church_Np_Regular.png", rollover: "./Junior-Church_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton4" : { image: "./Our-Church_Np_Regular.png", rollover: "./Our-Church_NRp_RegularOver.png", w: 120, h: 40, opening: "bottom", offsetX: 0, offsetY: 40 },
	"NavigationButton31" : { image: "./Rooms-to-Hire_Np_Regular.png", rollover: "./Rooms-to-Hire_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton33" : { image: "./Coffee-Morning_Np_Regular.png", rollover: "./Coffee-Morning_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton35" : { image: "./Church-Charities_Np_Regular.png", rollover: "./Church-Charities_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton37" : { image: "./Walking-Group_Np_Regular.png", rollover: "./Walking-Group_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton39" : { image: "./Grace-Project_Np_Regular.png", rollover: "./Grace-Project_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton5" : { image: "./History_Np_Regular.png", rollover: "./History_NRp_RegularOver.png", w: 120, h: 40, opening: "bottom", offsetX: 0, offsetY: 40 },
	"NavigationButton42" : { image: "./List-of-Ministers_Np_Regular.png", rollover: "./List-of-Ministers_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton44" : { image: "./Birth-of-Primitive_Np_Regular.png", rollover: "./Birth-of-Primitive_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton46" : { image: "./Trust_Np_Regular.png", rollover: "./Trust_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton48" : { image: "./Tom-Jones_Np_Regular.png", rollover: "./Tom-Jones_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton50" : { image: "./Wooden-Cross_Np_Regular.png", rollover: "./Wooden-Cross_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton52" : { image: "./Modernisation_Np_Regular.png", rollover: "./Modernisation_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton54" : { image: "./Present-Church_Np_Regular.png", rollover: "./Present-Church_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton6" : { image: "./Contact-us_Np_Regular.png", rollover: "./Contact-us_NRp_RegularOver.png", w: 120, h: 40, opening: "bottom", offsetX: 0, offsetY: 40 },
	"NavigationButton57" : { image: "./Email-Us_Np_Regular.png", rollover: "./Email-Us_NRp_RegularOver.png", w: 120, h: 40 },
	"NavigationButton59" : { image: "./Find-Us_Np_Regular.png", rollover: "./Find-Us_NRp_RegularOver.png", w: 120, h: 40 }
};

$(document).ready(function(){
	$.fn.nofNavBarOptions({ navBarId: "NavigationBar3", rollover: true, autoClose: false });
	$("#NavigationBar3").nofNavBar({isMain: true, orientation: "horizontal" });
	$("#NavigationBar3_1").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 40 });
	$("#NavigationBar3_2").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 40 });
	$("#NavigationBar3_3").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 40 });
	$("#NavigationBar3_4").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 40 });
	$("#NavigationBar3_5").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 40 });
	$("#NavigationBar3 ul").hide();
});


// End Navigation Bars


