// JavaScript Document

var anchors  = document.getElementsByTagName("a");
var uri = encodeURI(window.location.href).toLowerCase();
for(var i=0, n=anchors.length; i<n; ++i) {
	if(uri==encodeURI(anchors[i].href).toLowerCase()) {
		anchors[i].setAttribute("class", "current");
		anchors[i].setAttribute("className", "current"); 
	break;
		}
	}


sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

    function OpenSite(URL)
    {
        if(URL != "-1" && URL != "" && URL != null)
            window.open(URL);
    }



//****************************************************************************
//Header Include
//****************************************************************************

function renderHeader()  {
var headerHTML = '';
document.write(headerHTML);
}


//****************************************************************************
//Home Page
//****************************************************************************

function renderHome()  {
renderHeader();
var homeHTML    = '<div class="banner" id="home-banner"></div>\n<div id="navSection"></div>\n';
homeHTML				+= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
homeHTML				+= '<div id="ContentArea">\n<style type="text/css">#page h1{display:none;}</style> ';
document.write(homeHTML);
}

//****************************************************************************
//Energy Logic
//****************************************************************************

function renderEnergyTop()  {
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//alert(sPage);
var elTopHTML    = '<style type="text/css">#tnav-state a {color:#000 !important;}</style>\n<div class="banner" id="energy-logic-banner"></div>\n<div id="navSection">\n	<ul class="horizontal rootGroup">\n<li class="item first';
if (sPage == "Energy-Logic-Actions.aspx" || sPage == "Lower-Power-Processors.aspx" || sPage == "High-Efficiency-Power-Supplies.aspx" || sPage == "Power-Management-Features.aspx" || sPage == "Blade-Servers.aspx" || sPage == "Server-Virtualization.aspx" || sPage == "Cooling-Best-Practices.aspx" || sPage == "415V-AC-Power-Distribution.aspx" || sPage == "Variable-Capacity-Cooling.aspx" || sPage == "High-Density-Supplemental-Cooling.aspx" || sPage == "Monitoring-and-Optimization.aspx") {elTopHTML += ' current';}
elTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Energy-Logic-Actions.aspx" title="Energy Logic Actions"><em>Energy Logic</em> Actions</a></li>\n<li class="item';
if (sPage == "Energy-Logic-Model.aspx" || sPage == "Savings-Potential.aspx" || sPage == "Payback-Period.aspx" || sPage == "Cascade-Effect.aspx") {elTopHTML += ' current';}
elTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Energy-Logic-Model.aspx" title="Energy Logic Model"><em>Energy Logic</em> Model</a></li>\n<li class="item';
if (sPage == "Freeing-Up-Capacity.aspx") {elTopHTML += ' current';}
elTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Freeing-Up-Capacity.aspx" title="Freeing up Capacity">Freeing up Capacity</a></li>\n<li class="item last';
if (sPage == "Energy-Saving-Opportunities.aspx") {elTopHTML += ' current';}
elTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Energy-Saving-Opportunities.aspx" title="Other Energy Saving Opportunities">Other Energy Saving Opportunities</a></li>\n';
elTopHTML				+= '</ul>\n</div>\n';
elTopHTML				+= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
elTopHTML				+= '<div id="ContentArea">\n';
elTopHTML				+= '<div class="ContentSubAreaLeftLinks">\n<ul>\n';
document.write(elTopHTML);
}

function renderEnergyBottom()  {
var elBottomHTML		 = '</ul>\n';
elBottomHTML				+= '</div>\n';
elBottomHTML				+= '<div id="ContentSubAreaBodyBorderOnLeft">\n';
document.write(elBottomHTML);
}

//****************************************************************************
//Energy Logic Actions
//****************************************************************************
function renderEnergyLogic()  {
renderHeader();
renderEnergyTop();

var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//alert(sPage);

var elHTML     = '<li';
if (sPage == "Lower-Power-Processors.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Lower-Power-Processors.aspx">Lower Power Processors</a></li>\n';
elHTML				+= '<li';
if (sPage == "High-Efficiency-Power-Supplies.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/High-Efficiency-Power-Supplies.aspx">High-Efficiency Power Supplies</a></li>\n';
elHTML				+= '<li';
if (sPage == "Power-Management-Features.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Power-Management-Features.aspx">Power Management Features</a></li>\n';
elHTML				+= '<li';
if (sPage == "Blade-Servers.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Blade-Servers.aspx">Blade Servers</a></li>\n';
elHTML				+= '<li';
if (sPage == "Server-Virtualization.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Server-Virtualization.aspx">Server Virtualization</a></li>\n';
elHTML				+= '<li';
if (sPage == "Cooling-Best-Practices.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Cooling-Best-Practices.aspx">Cooling Best Practices</a></li>\n';
elHTML				+= '<li';
if (sPage == "415V-AC-Power-Distribution.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/415V-AC-Power-Distribution.aspx">Higher Voltage AC Power</a></li>\n';
elHTML				+= '<li';
if (sPage == "Variable-Capacity-Cooling.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Variable-Capacity-Cooling.aspx">Variable-Capacity Cooling</a></li>\n';
elHTML				+= '<li';
if (sPage == "High-Density-Supplemental-Cooling.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/High-Density-Supplemental-Cooling.aspx">High-Density Supplemental Cooling</a></li>\n';
elHTML				+= '<li';
if (sPage == "Monitoring-and-Optimization.aspx") {elHTML += ' class="current"';}
elHTML        += '><a href="http://www.emerson.com/edc/page/Monitoring-and-Optimization.aspx">Monitoring and Optimization</a></li>\n';
document.write(elHTML);
renderEnergyBottom();
}


//****************************************************************************
//Energy Logic Model
//****************************************************************************

function renderElModel()  {
	var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//alert(sPage);

renderHeader();
renderEnergyTop();
var modelHTML    = '<li';
if (sPage == "Savings-Potential.aspx") {modelHTML += ' class="current"';}
modelHTML        += '><a href="http://www.emerson.com/edc/page/Savings-Potential.aspx">Savings Potential</a></li>\n';
modelHTML				+= '<li';
if (sPage == "Payback-Period.aspx") {modelHTML += ' class="current"';}
modelHTML        += '><a href="http://www.emerson.com/edc/page/Payback-Period.aspx">Payback Period</a></li>\n';
modelHTML				+= '<li';
if (sPage == "Cascade-Effect.aspx") {modelHTML += ' class="current"';}
modelHTML        += '><a href="http://www.emerson.com/edc/page/Cascade-Effect.aspx">Cascade Effect</a></li>\n';
document.write(modelHTML);
renderEnergyBottom();
}


//****************************************************************************
//Energy Logic Capacity
//****************************************************************************

function renderELCapacity()  {
	
renderHeader();
renderEnergyTop();
var elcHTML    = '<li><p>In 2007, there were 11.8 million computer servers in the USA, up from 2.6 million in 1997.</p>\n<p><em>&mdash; IDC</em></p></li>\n';
document.write(elcHTML);
renderEnergyBottom();
}


//****************************************************************************
//Energy Logic Opportunities
//****************************************************************************

function renderELOpps()  {
renderHeader();
renderEnergyTop();
var eloHTML    = '<li><p>In 2006, data centers accounted for 1.5% of total US electricity consumption. By 2011, consumption is expected to reach 2.5%.</p>\n<p><em>&mdash; EPA Report on Server and Data Center Energy Efficiency, August 2007</em></p></li>\n';
document.write(eloHTML);
renderEnergyBottom();
}




//****************************************************************************
//Resources
//****************************************************************************

function renderResTop()  {
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//alert(sPage);

var resTopHTML    = '<style type="text/css">#tnav-resources a {color:#000 !important;}</style>\n<div class="banner" id="resources-banner"></div>\n<div id="navSection">\n	<ul class="horizontal rootGroup">\n<li class="item first';
if (sPage == "Calculators.aspx" || sPage == "default.aspx") {resTopHTML += ' current';}
resTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Calculators.aspx" title="Calculators">Calculators</a></li>\n<li class="item';
if (sPage == "Utility-Rebates.aspx") {resTopHTML += ' current';}
resTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Utility-Rebates.aspx" title="Utility Rebates">Utility Rebates</a></li>\n<li class="item last';
if (sPage == "Industry-Links.aspx") {resTopHTML += ' current';}
resTopHTML				+= '"><a href="http://www.emerson.com/edc/page/Industry-Links.aspx" title="Industry Links">Industry Links</a></li>\n';
resTopHTML				+= '</ul>\n</div>\n';
resTopHTML				+= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
resTopHTML				+= '<div id="ContentArea">\n';
document.write(resTopHTML);
}

function renderResBottom()  {
var resBottomHTML		 = '</div>\n';
resBottomHTML				+= '<div id="ContentSubAreaBodyBorderOnLeft">\n';
document.write(resBottomHTML);
}

//****************************************************************************
//Resources - Calculators
//****************************************************************************
function renderCalc()  {
renderHeader();
renderResTop();
var calcHTML     = '<div class="ContentSubAreaLeftLinks">\n<ul class="noCaps">\n';
calcHTML    += '<li>Would you like a <a href="mailto:contact@efficientdatacenters.com">professional assessment</a> of your data center efficiency?</li>\n';
calcHTML     += '</ul>\n';
document.write(calcHTML);
renderResBottom();
}


//****************************************************************************
//Resources - Resources
//****************************************************************************
function renderResources()  {
renderHeader();
renderResTop();
var resHTML  = '<div class="ContentSubAreaLeftLinks">\n<ul class="noCaps">\n';
resHTML      += '<li><p>A 10 percent reduction of total energy use by U.S. data centers would amount to energy savings of 10.7 billion kilowatt-hours per year &mdash; an amount equivalent to the electricity consumed by one million US households and valued at about $740 million.</p><p><em>&ndash; U.S. Department of Energy and the EPA</em></p></li></ul>\n';
document.write(resHTML);
renderResBottom();
}



//****************************************************************************
//Resources - Rebates
//****************************************************************************

function renderRebates()  {
renderHeader();
renderResTop();
var rebatesHTML    = '<div id="ContentAreaWide" style="margin-left:20px;">';
document.write(rebatesHTML);
}


//****************************************************************************
//Resources - Links
//****************************************************************************

function renderLinks()  {
renderHeader();
renderResTop();
var linkHTML    = '<div class="ContentSubAreaLeftLinks">\n<ul>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#federal">Federal Government Agencies</a></li>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#state">State Government Agencies</a></li>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#green">Green Power & Utility Programs</a></li>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#efficiency">Energy Efficiency</a></li>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#orgs">General Environmental Organizations</a></li>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#blogs">Blogs</a></li>\n';
linkHTML    	 += '<li><a href="http://www.emerson.com/edc/page/Industry-Links.aspx#corporate">Corporate-sponsored Environmental Organizations</a></li>\n</ul>\n';
document.write(linkHTML);
renderResBottom();
}

//****************************************************************************
//Media
//****************************************************************************

function renderMediaTop()  {
	var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var sPage2 = sPath.substring(sPath.indexOf('/') + 6);
sPage2 = sPage2.split('_');
//alert(sPage2[0]);
var sPost = sPath.substring(sPath.indexOf('/') + 1);
sPost = sPost.split('/');
//alert(sPost[0]);

mediaHTML    = '<style type="text/css">#tnav-media a {color:#000 !important;}</style>\n<div class="banner" id="media-banner"></div>\n<div id="navSection">\n	<ul class="horizontal rootGroup">\n<li class="item first';
if (sPage == "Case-Studies.aspx") {mediaHTML += ' current';}
mediaHTML			+= '"><a href="http://www.emerson.com/edc/page/Case-Studies.aspx" title="Case Studies">Case Studies</a></li>\n<li class="item';
if (sPage == "White-Papers.aspx") {mediaHTML += ' current';}
mediaHTML			+= '"><a href="http://www.emerson.com/edc/page/White-Papers.aspx" title="White Papers">White Papers</a></li>\n<li class="item';
if (sPage == "News.aspx" || sPage2[0] == "News") {mediaHTML += ' current';}
mediaHTML			+= '"><a href="http://www.emerson.com/edc/page/News.aspx" title="News">News</a></li>\n<li class="item';
if (sPage == "blog.aspx" || sPost[0] == 'post') {mediaHTML += ' current';}
mediaHTML			+= '"><a href="http://www.emerson.com/edc/blog.aspx" title="Blog">Blog</a></li>\n<li class="item last';
if (sPage == "Media-Inquiry.aspx") {mediaHTML += ' current';}
mediaHTML			+= '"><a href="http://www.emerson.com/edc/Media-Inquiry.aspx" title="Media Inquiry">Media Inquiry</a></li>\n';
if (sPage == "Events.aspx") {mediaHTML += ' current';}
mediaHTML			+= '<a href="http://www.emerson.com/edc/page/events.aspx" title="Events">Events</a></li>\n';
mediaHTML				+= '</ul>\n</div>\n';
document.write(mediaHTML);
}

function renderMediaBottom()  {
var mBottomHTML		 = '</ul>\n</div>\n';
mBottomHTML				+= '<div id="ContentSubAreaBodyBorderOnLeft">\n';
document.write(mBottomHTML);
}
//****************************************************************************
//Media Inquiry
//****************************************************************************

function renderMediaInquiry()  {
renderHeader();
renderMediaTop();
var mediaInqHTML	= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
mediaInqHTML				+= '<div id="ContentArea">\n';
mediaInqHTML				+= '<div class="ContentSubAreaLeftLinks">\n<ul>\n<li><strong>Media Contact:</strong><br/>Julie Carpenter, Fahlgren Mortine<br/>614-383-1632</li>\n';
document.write(mediaInqHTML);
renderMediaBottom();
}

//****************************************************************************
//Case Studies
//****************************************************************************

function renderCaseStudies()  {
renderHeader();
renderMediaTop();
var csHTML    = '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
csHTML				+= '<div id="ContentArea">\n';
csHTML				+= '<div class="ContentSubAreaLeftLinks">\n<ul>\n<li>Please share your case studies by sending a PDF to <a href="mailto:contact@efficientdatacenters.com" style="text-transform:none;font-weight:bold;">contact@<br/>efficientdatacenters.com</a>.</li>\n';
document.write(csHTML);
renderMediaBottom();
}


//****************************************************************************
//Case Studies
//****************************************************************************

function renderBlog()  {
renderHeader();
renderMediaTop();
var blogHTML    ='<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
blogHTML			  += '<div id="ContentArea">\n';
document.write(blogHTML);
}


//****************************************************************************
//White Papers
//****************************************************************************

function renderWhitePapers()  {
renderHeader();
renderMediaTop();
var wpHTML    = '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n<div id="ContentArea">\n<div class="ContentSubAreaLeftLinks">\n<ul>\n';
wpHTML        += '<li><p>Data center energy costs can be 100-times higher than those for typical buildings.</p>\n<p><em>&mdash; U.S. Dept. of Energy\'s Lawrence Berkeley National Laboratory</li>\n';
document.write(wpHTML);
renderMediaBottom();
}

//****************************************************************************
//News
//****************************************************************************

function renderNews()  {
renderHeader();
renderMediaTop();
var csHTML	= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n<div id="ContentArea">\n<div class="ContentSubAreaLeftLinks">\n<ul>\n<li><strong>Media Contact:</strong><br/>Julie Carpenter, Fahlgren Mortine<br/>614-383-1632</li>\n';
document.write(csHTML);
renderMediaBottom();
}

//****************************************************************************
//About Us
//****************************************************************************

function renderAboutUs()  {
renderHeader();
var abHTML    = '<style type="text/css">#tnav-about a {color:#000 !important;}</style>\n<div class="banner" id="about-banner"></div>\n<div id="navSection"></div>\n';
abHTML				+= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
abHTML				+= '<div id="ContentArea">\n';
abHTML				+= '<div class="ContentSubAreaLeftLinks">\n<ul>\n';
abHTML			  += '<li><p>A 10 percent reduction of total energy use by U.S. data centers would amount to energy savings of 10.7 billion kilowatt-hours per year &mdash; an amount equivalent to the electricity consumed by one million US households and valued at about $740 million</p><p><em>&ndash; the U.S. Department of Energy and the EPA</em></p></li>\n</ul>\n';
abHTML				+= '</div>\n<div id="ContentSubAreaBodyBorderOnLeft">\n';
document.write(abHTML);
}


//****************************************************************************
//Top Issues
//****************************************************************************

function renderIssues()  {
renderHeader();
var issuesHTML    = '<div class="banner" id="issues-banner"></div>\n<div id="navSection"></div>\n';
issuesHTML				+= '<div style="width: 980px; height: 15px; clear: both; line-height: 15px;"></div>\n';
issuesHTML				+= '<div id="ContentArea">\n';
issuesHTML				+= '<div class="ContentSubAreaLeftLinks">\n<ul>\n';
issuesHTML			  += '<li><p>According to a recent study by the American Society of Heating Refrigerating and Air-Conditioning Engineers, from 1992 to 2005 power consumption for servers surged from 250 watts per square foot to nearly 3,800 watts per square foot for even the most compact systems. That amounts to 38 standard light bulbs, or more than half the power required by many homes.</p>\n<p><em>&ndash; Source: Wall Street Journal</em></p></li>\n</ul>\n';
issuesHTML			  += '<li style="list-style:none outside;">Send us an <a href="mailto:contact@efficientdatacenters.com">email</a>, share a <a href="mailto:contact@efficientdatacenters.com">case study</a> or <a href="/blog.aspx">post your thoughts</a> on our blog.</li>\n</ul>\n';
issuesHTML				+= '</div>\n<div id="ContentSubAreaBodyBorderOnLeft">\n';
document.write(issuesHTML);
}



//****************************************************************************
//Footer Include
//****************************************************************************

function renderelMap()  {

var elMapHTML   = '<map name="Map" id="Map">\n';
elMapHTML      += '<area shape="rect" coords="28,74,129,95" href="http://www.emerson.com/edc/page/Power-Management-Features.aspx" alt="Server power management" />\n';
elMapHTML      += '<area shape="rect" coords="28,130,129,151" href="http://www.emerson.com/edc/page/415V-AC-Power-Distribution.aspx" alt="Power distribution architecture" />\n';
elMapHTML      += '<area shape="rect" coords="28,159,129,180" href="http://www.emerson.com/edc/page/Cooling-Best-Practices.aspx" alt="Implement cooling best practices" />\n';
elMapHTML      += '<area shape="rect" coords="28,188,129,209" href="http://www.emerson.com/edc/page/Variable-Capacity-Cooling.aspx" alt="Variable-capacity cooling" />\n';
elMapHTML      += '<area shape="rect" coords="28,214,129,235" href="http://www.emerson.com/edc/page/High-Density-Supplemental-Cooling.aspx" alt="High-density supplemental cooling" />\n';
elMapHTML      += '<area shape="rect" coords="30,98,129,111" href="http://www.emerson.com/edc/page/Blade-Servers.aspx" alt="Blade servers" />\n';
elMapHTML      += '<area shape="rect" coords="28,114,129,127" href="http://www.emerson.com/edc/page/Server-Virtualization.aspx" alt="Server virtualization" />\n';
elMapHTML      += '<area shape="rect" coords="27,50,129,71" href="http://www.emerson.com/edc/page/High-Efficiency-Power-Supplies.aspx" alt="High-efficiency power supplies" />\n';
elMapHTML      += '<area shape="rect" coords="28,238,129,259" href="http://www.emerson.com/edc/page/Monitoring-and-Optimization.aspx" alt="Monitoring and optimization" />\n';
elMapHTML      += '<area shape="rect" coords="28,28,129,46" href="http://www.emerson.com/edc/page/Lower-Power-Processors.aspx" alt="Low-power processor" />\n';
elMapHTML      += '</map>\n';
document.write(elMapHTML);
}