$(document).ready(function(){	startList();	showRandom();	$("#rgbutton").click(function () {		showRG();		return false;	});		$("#tgbutton").click(function () {		showTG();		return false;	});		$("#nmsbutton").click(function () {		showNMS();		return false;	});		$("#scbutton").click(function () {		showSC();		return false;	});		$("#wbutton").click(function () {		showW();		return false;	});	$("#rgLink").click(function () {		document.location.href='default.cfm?pid=1.7.1';	});		$("#tgLink").click(function () {		document.location.href='default.cfm?pid=1.7.2';	});		$("#nmsLink").click(function () {		document.location.href='default.cfm?pid=1.7.3';	});	$("#scLink").click(function () {		document.location.href='default.cfm?pid=1.7.4';	});		$("#wLink").click(function () {		document.location.href='default.cfm?pid=1.7.5';	});		$("#rg_360_link").click(function () {		tb_show("RoGator 360 View - Rollover any of the highlighted spots for more details.","#TB_inline?height=560&width=850&inlineId=rg_thickbox");		return false;	});	$("#tg_360_link").click(function () {		tb_show("TerraGator 360 View - Rollover any of the highlighted spots for more details.","#TB_inline?height=560&width=850&inlineId=tg_thickbox");		return false;	});	$("#comparelink").click(function () {		tb_show("Compare The Brands.","#TB_inline?height=220&width=600&inlineId=comparethebrands");		return false;	});	$(".close").click(function () {		tb_remove();	});		$('#SearchZip_header').click(function(){		if($(this).val()=='Enter Postal Code'){			$(this).val('');		}	});	$('#SearchZip_header').blur(function(){		if($(this).val()==''){			$(this).val('Enter Postal Code');		}	});});function showRandom(){	var n = Math.random();	if(n<=.2){		showRGQuick();		return true;	}	if(n<=.4){		showTGQuick();		return true;	}	if(n<=.6){		showNMSQuick();		return true;	}	if(n<=.8){		showSCQuick();		return true;	}	if(n<=1){		showWQuick();		return true;	}}function showRG(){	$(".rg").show(600, "easeInExpo");	$(".tg").hide(600, "easeOutExpo");	$(".nms").hide(600, "easeOutExpo");	$(".sc").hide(600, "easeOutExpo");	$(".w").hide(600, "easeOutExpo");	$("#rgbutton").addClass("active");	$("#tgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("RoGator");}function showTG(){	$(".tg").show(600, "easeInExpo");	$(".rg").hide(600, "easeOutExpo");	$(".nms").hide(600, "easeOutExpo");	$(".sc").hide(600, "easeOutExpo");	$(".w").hide(600, "easeOutExpo");	$("#tgbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("TerraGator");}function showNMS(){	$(".nms").show(600, "easeInExpo");	$(".rg").hide(600, "easeOutExpo");	$(".tg").hide(600, "easeOutExpo");	$(".sc").hide(600, "easeOutExpo");	$(".w").hide(600, "easeOutExpo");	$("#nmsbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#tgbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("TerraGator");}function showSC(){	$(".sc").show(600, "easeInExpo");	$(".rg").hide(600, "easeOutExpo");	$(".nms").hide(600, "easeOutExpo");	$(".tg").hide(600, "easeOutExpo");	$(".w").hide(600, "easeOutExpo");	$("#scbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#tgbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("SpraCoupe");}function showW(){	$(".w").show(600, "easeInExpo");	$(".rg").hide(600, "easeOutExpo");	$(".nms").hide(600, "easeOutExpo");	$(".sc").hide(600, "easeOutExpo");	$(".tg").hide(600, "easeOutExpo");	$("#wbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#tgbutton").removeClass("active");	$("#SearchBrand_header").val("Willmar");}function showRGQuick(){	$(".rg").show();	$(".tg").hide();	$(".nms").hide();	$(".sc").hide();	$(".w").hide();	$("#rgbutton").addClass("active");	$("#tgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("RoGator");}function showTGQuick(){	$(".tg").show();	$(".rg").hide();	$(".nms").hide();	$(".sc").hide();	$(".w").hide();	$("#tgbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("TerraGator");}function showNMSQuick(){	$(".nms").show();	$(".rg").hide();	$(".tg").hide();	$(".sc").hide();	$(".w").hide();	$("#nmsbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#tgbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("TerraGator");}function showSCQuick(){	$(".sc").show();	$(".rg").hide();	$(".nms").hide();	$(".tg").hide();	$(".w").hide();	$("#scbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#tgbutton").removeClass("active");	$("#wbutton").removeClass("active");	$("#SearchBrand_header").val("SpraCoupe");}function showWQuick(){	$(".w").show();	$(".rg").hide();	$(".nms").hide();	$(".sc").hide();	$(".tg").hide();	$("#wbutton").addClass("active");	$("#rgbutton").removeClass("active");	$("#nmsbutton").removeClass("active");	$("#scbutton").removeClass("active");	$("#tgbutton").removeClass("active");	$("#SearchBrand_header").val("Willmar");}startList = function() {	if (document.all&&document.getElementById) {		navRoot = document.getElementById("nav");		for (i=0; i<navRoot.childNodes.length; i++) {			node = navRoot.childNodes[i];			if (node.nodeName=="LI") {				node.onmouseover=function() {					this.className+=" over";				}				node.onmouseout=function() {					this.className=this.className.replace(" over", "");				}			}		}	}}
