function targetLinks() {
	var url = "";
	for (var i=0; i<=(document.links.length-1); i++) {
		url = document.links[i].href;
		if (url.split('tp://www.jimrushgreenbuilder.com').length <= 1 && url.split('tp://').length > 1)
			document.links[i].target = "_blank";
	}
}

window.onload = function() {
//	var cont_height = document.getElementById('cont_right').offsetHeight;
//	document.getElementById('nav_bar').style.height = cont_height + "px";
//	document.getElementById('content').style.height = document.getElementById('cont_right').offsetHeight + "px";
//	targetLinks();
}
function showTip() {
	var Tip = new Array();
	Tip[0] = "Use \"low-flow\" faucets, showerheads and toilets&mdash;they perform just as well and cuts back on water expenses.";
	Tip[1] = "Centrally locate your furnace and water heater.";
	Tip[2] = "Install ceiling fans in all main rooms and bedrooms.";
	Tip[3] = "Use low, or no-<a href=\"resources.html\">V.O.C. paints.</a>";
	Tip[4] = "Reduce the amount of carpet in your house—carpets traps dust and allergens.";
	Tip[5] = "Change your <a href=\"resources.html\">HVAC filter</a> regularly.";
	Tip[6] = "Make sure your doors are well sealed.";
	Tip[7] = "Choose native plants for landscaping.";
	Tip[8] = "Install automatic lights.";
	Tip[9] = "Avoid using utilities during the peak heat of day.";
	Tip[10] = "Replace 100-watt traditional light bulbs with 32-watt CFL’s to save an average of $30 during the lifespan of the bulb.";
	Tip[11] = "Don’t open the oven while cooking.";
	Tip[12] = "Install a <a href=\"resources.html\">rainwater harvesting system</a>.";
	Tip[13] = "Always match the size of the burner with the size of the pan.";
	Tip[14] = "Turn off the oven during the last 5 minutes of cooking.";
	Tip[15] = "Only run full loads in the dishwasher.";
	Tip[16] = "Use light colors for your roofing to reflect heat.";
	Tip[17] = "Clean your light fixtures to increase lighting efficiency by 20%.";
	Tip[18] = "Switch fan rotation in summer and winter.";
	Tip[19] = "Drain your water heater.";
	Tip[20] = "Use dimmer switches.";
	Tip[21] = "Install double-pane windows.";
	Tip[22] = "Install a <a href=\"resources.html\">solar photovoltaic power system</a> (solar panels) on your home.";
	Tip[23] = "Orient your home so that most windows face south. That will offer lots of light without heat gain.";
	Tip[24] = "Be smart with planning your home. Too large a home means extra heating and cooling bills.";
	Tip[25] = "Use as little carpet as possible. Hard surface floors won’t hide dirt, dust, mold or allergens as much.";
	Tip[26] = "Choose lighter colors for the roof of your home.";
	Tip[27] = "Avoid skylights…in our climate, they let in too much heat.";
	Tip[28] = "Install exhaust fans that vent outside in all extra humid areas like your kitchen and bath.";

	var Q = Tip.length;
	var whichTip = Math.round(Math.random()*(Q-1));
	document.write("<p>"+Tip[whichTip]+"</p>");
}
function showFeedback() {
	var Feedback = new Array();
	Feedback[0] = "Absolutely fabulous.";
	Feedback[1] = "So easy to work with.";
	Feedback[2] = "His people are top-quality.";
	Feedback[3] = "Jim is very knowledgeable about how to maximize energy efficiency.";
	Feedback[4] = "We’ve already recommended Jim to half a dozen friends.";
	Feedback[5] = "We consider Jim to be a good friend now.";
	Feedback[6] = "Jim is full of honesty, integrity and patience.";
	var Q = Feedback.length;
	var whichFeedback = Math.round(Math.random()*(Q-1));
	document.write("<p class=\"hdr\">"+Feedback[whichFeedback]+"</p>");
}