$(document).ready(function(){	// Slide Effect for Homepage Navigation...		$("#homepage #navigation li a").hover(function(){		$(this).animate({height: "132px"}, 200);		return(false);	},function(){		$(this).animate({height: "70px"}, 200);				return(false);	});	// Homepage Feature Image Rotation...	if ($("body").attr("id") == "homepage") {		setTimeout("changeHomepageFeature()", 10000);	}		// Large Target Area for Sidebar Contact Boxes...		$(".box.blue").hover(function(){		if ($(this).hasClass("nolink")) {			return(false);		}		$(this).css("cursor", "pointer");		$(this).find("a").css("text-decoration", "underline");		return(false);		},function(){		$(this).css("cursor", "auto");		$(this).find("a").css("text-decoration", "none");		return(false);	});		$(".box.blue").click(function(){		if (!$(this).hasClass("nolink")) {			var url = $(this).find("a").attr("href");			window.location = url;			return(false);		}	});		// Large Target Area for item previews...		$(".item-preview").hover(function(){		if ($(this).hasClass("nolink")) {			return(false);		}		$(this).css("cursor", "pointer");		$(this).find("a").css("text-decoration", "underline");		return(false);	},function(){		$(this).css("cursor", "auto");		$(this).find("a").css("text-decoration", "none");		return(false);	});		$(".item-preview").click(function(){		if (!$(this).hasClass("nolink")) {			var url = $(this).find("a").attr("href");			window.location = url;			return(false);		}	});			// Contact Us Sidebar...	$("#offices li a").click(function(){		if(!$(this).hasClass("selected")) {			$("#offices li a").removeClass("selected");			$(this).addClass("selected");			$("#offices li div").hide(200);			$(this).next().show(200);		}		return(false);	});			// Careers Map...	$("#map li.haslink").click(function(){		var url = $(this).find("a").attr("href");		window.location = url;		return(false);	});		// Contact Us Map...	$("#map li").click(function(){				var city = $(this).attr("class");		$("#offices li a").removeClass("selected");		$("#headquarters li a").removeClass("selected");		$("#offices li div").hide(200);			if (city == 'desmoines') {			$("#headquarters li a").addClass("selected");		} else {			if(!$("#offices [class='" + city + "'] a").hasClass("selected")) {				$("#offices [class='" + city + "'] a").addClass("selected");				$("#offices li div").hide(200);				$("#offices [class='" + city + "'] a").next().show(200);			}		}		return(false);	});			$("#map li").hover(function(){			var city = $(this).attr("class");				if (city == 'desmoines') {			$("#headquarters li a").addClass("highlighted");		} else {			$("#offices [class='" + city + "'] a").addClass("highlighted");		}						$("#careers-list [class='" + city + "'] a").addClass("highlighted");				return(false);			}, function() {			var city = $(this).attr("class");				if (city == 'desmoines') {			$("#headquarters li a").removeClass("highlighted");		} else {			$("#offices [class='" + city + "'] a").removeClass("highlighted");		}				$("#careers-list [class='" + city + "'] a").removeClass("highlighted");				return(false);	});			// Employee Benefits Page Video...// 	$("#video-thumb").click(function(){// 		$(this).hide();// 		$("#video-player").show(200);// 		return(false);// 	});// 	// 	$("#video-player").click(function(){// 		return(false);// 	});			// MyWave Link on Tools page...	$("#mywave").click(function(){		$(this).addClass("selected");		$("#username1").focus();	});		// Temporarily disable the search engine...	$("#utility-navigation .last").hide();	$("#utility-navigation li").css("border", "none");				// Wind/Renewable Energy Landing Page...		$("#wind-contact-display").click(function(){			$("#wind-contact-expand").slideDown("fast");		$("#wind-contact-display").hide();				// Add Google Analytics call for this click...		try {			pageTracker._trackPageview("/landing/wind-energy/contact-clicked");		} catch(e) { }				return false;			});					// "Video Testimonial" Modal Window...	$("#homepage-video-link").click(function (e) {				e.preventDefault();				// Fix IE 7 overlay issue...		$('.ie7-flash-hack').addClass('ie7-flash-hide');				$('#homepage-video-box').modal(			{				overlayClose: true,								onClose: function (d) {					$('.ie7-flash-hide').removeClass('ie7-flash-hide');					stopAllVideos();					$.modal.close();				}						}		);				return(false);	});		});function changeHomepageFeature() {	var featureQty = 6;	var currentFeatureDiv = $("#homepage #features .current");	var currentClasses = currentFeatureDiv.attr("class");	current = currentClasses.substr(9, 1);	var next = parseInt(current) + 1;	if (next >= featureQty) {		next = 0;	}	next = "f" + next;	current = "f" + current;			$("#homepage #features ." + next + "").fadeIn("slow", function() {		$("#homepage #features ." + current + "").fadeOut("slow");		$("#homepage #features ." + current + "").removeClass("current");		$("#homepage #features ." + next + "").addClass("current");	});				setTimeout("changeHomepageFeature()", 10000);}// Fix for Windows and the JW Player that keeps playing when it's hidden...function stopAllVideos() {	player.sendEvent("STOP");	return false;}// Makes global variable 'player' the active JW Player so it can be controlled.var player;function playerReady(obj) {	//alert('the videoplayer '+obj['id']+' has been instantiated');	player = document.getElementById(obj['id']);};