// 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");
		});
	}
	if (jQuery.browser.safari){
		$(".nof-lyr>br:first").each(function () {
			$(this).replaceWith("<div style='height:0px'>&nbsp;</div>");
		});
	}
});

// End XHTML adjustment

// Begin jMedia Components
$(document).ready(
function() {
	$("#Flash6").media({ width: 240, height: 228,
		src: './assets/applets/excavator.swf', flashVersion: '5,0,0,0',
		autoplay: true,
		params: { loop: 'false', quality: 'autolow', scale: 'showall', salign: 'Left', wmode: 'transparent' }
	});
});
$(document).ready(
function() {
	$("#Flash4").media({ width: 240, height: 225,
		src: './assets/applets/forestry.swf', flashVersion: '5,0,0,0',
		autoplay: true,
		params: { loop: 'false', quality: 'autolow', scale: 'showall', salign: 'Left', wmode: 'transparent' }
	});
});
$(document).ready(
function() {
	$("#Flash7").media({ width: 225, height: 236,
		src: './assets/applets/front-right.swf', flashVersion: '5,0,0,0',
		autoplay: true,
		params: { loop: 'false', quality: 'autolow', scale: 'showall', salign: 'Left', wmode: 'transparent' }
	});
});
// End jMedia Components

// Begin Navigation Bars
var ButtonsImageMapping = [];
ButtonsImageMapping["NavigationBar2"] = {
	"NavigationButton1" : { image: "./assets/images/autogen/For-Excavators_Np1.gif", rollover: "./assets/images/autogen/For-Excavators_NRp1.gif", w: 143, h: 23, opening: "bottom", offsetX: 0, offsetY: 23 },
	"NavigationButton8" : { image: "./assets/images/autogen/Mulchers_Ns1.gif", rollover: "./assets/images/autogen/Mulchers_NRs1.gif", w: 180, h: 20 },
	"NavigationButton9" : { image: "./assets/images/autogen/Super-Mulcher_Ns1.gif", rollover: "./assets/images/autogen/Super-Mulcher_NRs1.gif", w: 180, h: 20 },
	"NavigationButton10" : { image: "./assets/images/autogen/AwJaw-Jaw-Crusher_Ns1.gif", rollover: "./assets/images/autogen/AwJaw-Jaw-Crusher_NRs1.gif", w: 180, h: 20 },
	"NavigationButton11" : { image: "./assets/images/autogen/Log-Splitter_Ns1.gif", rollover: "./assets/images/autogen/Log-Splitter_NRs1.gif", w: 180, h: 20 },
	"NavigationButton12" : { image: "./assets/images/autogen/Flipscreen_Ns1.gif", rollover: "./assets/images/autogen/Flipscreen_NRs1.gif", w: 180, h: 20 },
	"NavigationButton13" : { image: "./assets/images/autogen/Tree-Shear---Grab_Ns1.gif", rollover: "./assets/images/autogen/Tree-Shear---Grab_NRs1.gif", w: 180, h: 20 },
	"NavigationButton14" : { image: "./assets/images/autogen/Hydraulic-Magnet_Ns1.gif", rollover: "./assets/images/autogen/Hydraulic-Magnet_NRs1.gif", w: 180, h: 20 },
	"NavigationButton15" : { image: "./assets/images/autogen/Dromone-Disk-Screener_Ns1.gif", rollover: "./assets/images/autogen/Dromone-Disk-Screener_NRs1.gif", w: 180, h: 20 },
	"NavigationButton16" : { image: "./assets/images/autogen/Stump-Grider_Ns1.gif", rollover: "./assets/images/autogen/Stump-Grider_NRs1.gif", w: 180, h: 20 },
	"NavigationButton17" : { image: "./assets/images/autogen/Rev-Drill_Ns1.gif", rollover: "./assets/images/autogen/Rev-Drill_NRs1.gif", w: 180, h: 20 },
	"NavigationButton18" : { image: "./assets/images/autogen/Vibrating-Pile-Driver_Ns1.gif", rollover: "./assets/images/autogen/Vibrating-Pile-Driver_NRs1.gif", w: 180, h: 20 },
	"NavigationButton19" : { image: "./assets/images/autogen/Dredger_Ns1.gif", rollover: "./assets/images/autogen/Dredger_NRs1.gif", w: 180, h: 20 },
	"NavigationButton2" : { image: "./assets/images/autogen/Forestry-Equipment_Np1.gif", rollover: "./assets/images/autogen/Forestry-Equipment_NRp1.gif", w: 143, h: 23, opening: "bottom", offsetX: 0, offsetY: 23 },
	"NavigationButton20" : { image: "./assets/images/autogen/Excavator-Mulchers_Ns1.gif", rollover: "./assets/images/autogen/Excavator-Mulchers_NRs1.gif", w: 180, h: 20 },
	"NavigationButton21" : { image: "./assets/images/autogen/Mulchers-for-Skid-Steers_Ns1.gif", rollover: "./assets/images/autogen/Mulchers-for-Skid-Steers_NRs1.gif", w: 180, h: 20 },
	"NavigationButton22" : { image: "./assets/images/autogen/Mulchers-for-Tractors_Ns1.gif", rollover: "./assets/images/autogen/Mulchers-for-Tractors_NRs1.gif", w: 180, h: 20 },
	"NavigationButton23" : { image: "./assets/images/autogen/Urethane-Track-Pads_Ns1.gif", rollover: "./assets/images/autogen/Urethane-Track-Pads_NRs1.gif", w: 180, h: 20 },
	"NavigationButton24" : { image: "./assets/images/autogen/Ski-Hill-Mulcher_Ns1.gif", rollover: "./assets/images/autogen/Ski-Hill-Mulcher_NRs1.gif", w: 180, h: 20 },
	"NavigationButton25" : { image: "./assets/images/autogen/Seven-Roto-Crusher_Ns1.gif", rollover: "./assets/images/autogen/Seven-Roto-Crusher_NRs1.gif", w: 180, h: 20 },
	"NavigationButton3" : { image: "./assets/images/autogen/Roadside-Mulchers_Np1.gif", rollover: "./assets/images/autogen/Roadside-Mulchers_NRp1.gif", w: 143, h: 23, opening: "bottom", offsetX: 0, offsetY: 23 },
	"NavigationButton26" : { image: "./assets/images/autogen/Roadside-Mulcher-Mower_Ns1.gif", rollover: "./assets/images/autogen/Roadside-Mulcher-Mower_NRs1.gif", w: 180, h: 20 },
	"NavigationButton27" : { image: "./assets/images/autogen/Ski-Hill-Mulcher_Ns1.gif", rollover: "./assets/images/autogen/Ski-Hill-Mulcher_NRs1.gif", w: 180, h: 20 },
	"NavigationButton4" : { image: "./assets/images/autogen/For-Skidsteers_Np1.gif", rollover: "./assets/images/autogen/For-Skidsteers_NRp1.gif", w: 143, h: 23, opening: "bottom", offsetX: 0, offsetY: 23 },
	"NavigationButton28" : { image: "./assets/images/autogen/Flip-Screen-for-Front-Loaders_Ns1.gif", rollover: "./assets/images/autogen/Flip-Screen-for-Front-Loaders_NRs1.gif", w: 180, h: 20 },
	"NavigationButton29" : { image: "./assets/images/autogen/Midiforst-for-Skidsteer_Ns1.gif", rollover: "./assets/images/autogen/Midiforst-for-Skidsteer_NRs1.gif", w: 180, h: 20 },
	"NavigationButton30" : { image: "./assets/images/autogen/Star-FC-for-Skidsteer_Ns1.gif", rollover: "./assets/images/autogen/Star-FC-for-Skidsteer_NRs1.gif", w: 180, h: 20 },
	"NavigationButton5" : { image: "./assets/images/autogen/Container-Tilter_Np1.gif", rollover: "./assets/images/autogen/Container-Tilter_NRp1.gif", w: 143, h: 23 },
	"NavigationButton6" : { image: "./assets/images/autogen/Contrete-Crushers_Np1.gif", rollover: "./assets/images/autogen/Contrete-Crushers_NRp1.gif", w: 143, h: 23, opening: "bottom", offsetX: 0, offsetY: 23 },
	"NavigationButton31" : { image: "./assets/images/autogen/AwJaw-Jaw-Crusher_Ns1.gif", rollover: "./assets/images/autogen/AwJaw-Jaw-Crusher_NRs1.gif", w: 180, h: 20 },
	"NavigationButton7" : { image: "./assets/images/autogen/Contact_Np1.gif", rollover: "./assets/images/autogen/Contact_NRp1.gif", w: 143, h: 23 }
};

$(document).ready(function(){
	$.fn.nofNavBarOptions({ navBarId: "NavigationBar2", rollover: true, autoClose: true });
	$("#NavigationBar2").nofNavBar({isMain: true, orientation: "horizontal" });
	$("#NavigationBar2_1").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 20 });
	$("#NavigationBar2_2").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 20 });
	$("#NavigationBar2_3").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 20 });
	$("#NavigationBar2_4").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 20 });
	$("#NavigationBar2_5").nofNavBar({isMain: false, orientation: "vertical", opening: "bottom", offsetX: 0, offsetY: 20 });
	$("#NavigationBar2 ul").hide();
});


// End Navigation Bars


