window.onresize = new Function("window.location.reload();");
var ie = (document.all) ? 1 : 0;
var hide = -1;
var isMozilla = false;
var bDom = document.getElementById ? 1 : 0;
var bVersion = navigator.appVersion;
isMozilla = (bDom && parseInt(bVersion) >= 5) ? 1 : 0;
opera = window.opera ? 1 : 0;

var isMozilla = false;
var bDom = document.getElementById ? 1 : 0;
var bVersion = navigator.appVersion;
isMozilla = (bDom && parseInt(bVersion) >= 5) ? 1 : 0;
var submenuheight = 255;
if (ie) {
  var menu_x = (screen.width == 800) ? [10, 280, 10, 100, 637, 281, 281] : [71, 85.5, 0, 14, 42.8, 57.2, 97];

  var menu_y = [submenuheight, submenuheight, submenuheight, submenuheight, submenuheight, submenuheight, submenuheight];
}
else {
  var menu_x = (screen.width == 800) ? [10, 281, 100, 281, 637, 281, 281] : [71.3, 85.5, 0, 14.2, 42.8, 57.2, 57.2];
  var menu_y = [submenuheight, submenuheight, submenuheight, submenuheight, submenuheight, submenuheight, submenuheight];
}
var str = "";
str += "<style>\n";
str += "a.menu{font-family:arial; font-size:12px; color:#000000; text-decoration:none;}\n";
str += "a.menu:hover{font-family:arial; font-size:12px; color:#000000; text-decoration:none;}\n";
if (ie) {
  str += "#Mmenu0{filter:alpha(opacity=100); position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[0] + "%;visibility:hidden;z-index:10;}\n";
  str += "#Mmenu1{filter:alpha(opacity=100); position:absolute;top:" + menu_y[1] + "px;left:" + menu_x[1] + "%;visibility:hidden;z-index:10;}\n";
  str += "#Mmenu2{filter:alpha(opacity=100); position:absolute;top:" + menu_y[2] + "px;left:" + menu_x[2] + "%;visibility:hidden;z-index:10;}\n";
  str += "#Mmenu3{filter:alpha(opacity=100); position:absolute;top:" + menu_y[3] + "px;left:" + menu_x[3] + "%;visibility:hidden;z-index:10;}\n";
  str += "#Mmenu4{filter:alpha(opacity=100); position:absolute;top:" + menu_y[4] + "px;left:" + menu_x[4] + "%;visibility:hidden;z-index:10;}\n";
  str += "#Mmenu5{filter:alpha(opacity=100); position:absolute;top:" + menu_y[5] + "px;left:" + menu_x[5] + "%;visibility:hidden;z-index:10;}\n";
  str += "#Mmenu6{filter:alpha(opacity=100); position:absolute;top:" + menu_y[6] + "px;left:" + menu_x[6] + "%;visibility:hidden;z-index:10;}\n";

}
else {
  str += "#Mmenu0{position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[0] + "%;visibility:hidden;}\n";
  str += "#Mmenu1{position:absolute;top:" + menu_y[1] + "px;left:" + menu_x[1] + "%;visibility:hidden;}\n";
  str += "#Mmenu2{position:absolute;top:" + menu_y[2] + "px;left:" + menu_x[2] + "%;visibility:hidden;}\n";
  str += "#Mmenu3{position:absolute;top:" + menu_y[3] + "px;left:" + menu_x[3] + "%;visibility:hidden;}\n";
  str += "#Mmenu4{position:absolute;top:" + menu_y[4] + "px;left:" + menu_x[4] + "%;visibility:hidden;}\n";
  str += "#Mmenu5{position:absolute;top:" + menu_y[5] + "px;left:" + menu_x[5] + "%;visibility:hidden;}\n";
  str += "#Mmenu6{position:absolute;top:" + menu_y[6] + "px;left:" + menu_x[6] + "%;visibility:hidden;}\n";

}
str += "</style>";
document.write(str);

function mout(x) {

}

function hideall() {
  for (i = 0; i < 7; i++) {
    if (ie) eval("Mmenu" + i + ".style.visibility='hidden';");
    else if (isMozilla) {
      var objMDiv = document.getElementById("Mmenu" + i);
      objMDiv.style.visibility = "hidden";
    }
    else document.layers[i].visibility = "hide";
  }
}

function menu(x) {
  temp = x;
  //	shideall();
  document.getElementById('Mmenu' + x).style.left = document.getElementById(x).offsetLeft - 1 + "px";
  document.getElementById('Mmenu' + x).style.width = document.getElementById(x).offsetWidth + 1 + "px";
  document.getElementById('Mmenu' + x).style.display = "block"
  if (ie) eval("Mmenu" + x + ".style.visibility='visible';");
  else if (isMozilla) {
    var objMDiv = document.getElementById("Mmenu" + x);
    objMDiv.style.visibility = "visible";
  }
  else document.layers[x].visibility = "show";
}

function menu1(x) {
  temp = x;

  //shideall();
  if (ie) eval("Mmenu" + x + ".style.visibility='visible';");
  else if (isMozilla) {
    var objMDiv = document.getElementById("Mmenu" + x);
    objMDiv.style.visibility = "visible";
  }
  else document.layers[x].visibility = "show";
}

function smout(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#DE9631";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#DE9631";
  }

}
function smoutq(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#d65929";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#d65929";
  }

}

function smout2(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#3A6936";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#3A6936";
  }

}
function smout3(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#429A39";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#429A39";
  }

}
function smout4(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#9CCB39";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#9CCB39";
  }

}
function smout5(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#DED329";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#DED329";
  }

}
function smout6(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#a52429";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#a52429";
  }

}
function smover(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#AE701C";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#AE701C";

  }
}
function smoverq(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#A0431F";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#A0431F";

  }
}
function smover2(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#1E351C";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#1E351C";

  }
}
function smover3(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#37802F";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#37802F";

  }
}
function smover4(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#759928";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#759928";

  }
}
function smover5(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#BFB71E";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#BFB71E";

  }
}
function smover6(x, y) {
  if (!isMozilla) {
    eval("s" + x + y).style.backgroundColor = "#72181D";
  }
  else {
    document.getElementById("s" + x + y).style.backgroundColor = "#72181D";

  }
}

document.write("<div id='Mmenu0' style='display:none'>");
document.write("</div>");

document.write("<div id='Mmenu1' style='display:none'>");
document.write("<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td tyle='padding-left:1px; padding-right:2px; padding-bottom:2px;'>");
document.write("<table cellpadding=6 cellspacing=1 border=0 bgcolor='#ffffff' width=100%>");
document.write("<tr bgcolor='#429A39'><td id='s50' name='s50' onmouseover=smover3('5','0');  onmouseout=smout3('5','0') style='cursor:hand;'><a href='Home.htm#HomeAssessments' class='drop-menu'>Home Assessments</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s51' name='s51' onmouseover=smover3('5','1');  onmouseout=smout3('5','1') style='cursor:hand;'><a href='Home.htm#Benefits' class='drop-menu'>Benefits</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s52' name='s52' onmouseover=smover3('5','2');  onmouseout=smout3('5','2') style='cursor:hand;'><a href='Home.htm#Howitworks' class='drop-menu'>How it works</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s53' name='s53' onmouseover=smover3('5','3');  onmouseout=smout3('5','3') style='cursor:hand;'><a href='Home.htm#Whenwevisityou' class='drop-menu'>When we visit you</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s54' name='s54' onmouseover=smover3('5','4');  onmouseout=smout3('5','4') style='cursor:hand;'><a href='Home.htm#GreenLoansprogram' class='drop-menu'>Green Loans program</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s55' name='s55' onmouseover=smover3('5','5');  onmouseout=smout3('5','5') style='cursor:hand;'><a href='Services.htm' class='drop-menu'>Your green home project</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s56' name='s56' onmouseover=smover3('5','6');  onmouseout=smout3('5','6') style='cursor:hand;'><a href='GreenLoanSteps.htm' class='drop-menu'>Green loans steps</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s57' name='s57' onmouseover=smover3('5','7');  onmouseout=smout3('5','7') style='cursor:hand;'><a href='Insulation.htm' class='drop-menu'>Ceiling Insulation</a></td></tr>");
document.write("<tr bgcolor='#429A39'><td id='s58' name='s58' onmouseover=smover3('5','8');  onmouseout=smout3('5','8') style='cursor:hand;'><a href='#' class='drop-menu'>Solar hot water</a></td></tr>");
document.write("</table>");
document.write("</td></tr></table>");
document.write("</div>");

document.write("<div id='Mmenu2' style='display:none'>");
document.write("</div>");

document.write("<div id='Mmenu3' style='display:none'>");
document.write("</div>");

document.write("<div id='Mmenu4' style='display:none'>");
document.write("<table cellpadding=0 cellspacing=0 width=100% border=0><tr><td tyle='padding-left:1px; padding-right:2px; padding-bottom:2px;'>");
document.write("<table cellpadding=6 cellspacing=1 border=0 width=100% bgcolor='#FFFFFF'>");
document.write("<tr bgcolor='#DE9631'><td id='s21' name='s21' onmouseover=smover('2','1'); onmouseout=smout('2','1') style='cursor:hand;'><a href='Aboutus.htm#Assessors' class='drop-menu'>Assessors</a></td></tr>");
document.write("<tr bgcolor='#DE9631'><td id='s22' name='s22' onmouseover=smover('2','2'); onmouseout=smout('2','2') style='cursor:hand;'><a href='Aboutus.htm#Insulation' class='drop-menu'>Insulation Installers</a></td></tr>");
document.write("<tr bgcolor='#DE9631'><td id='s23' name='s23' onmouseover=smover('2','3'); onmouseout=smout('2','3') style='cursor:hand;'><a href='Aboutus.htm#ProjectManagers' class='drop-menu'>Project Managers</a></td></tr>");
document.write("<tr bgcolor='#DE9631'><td id='s24' name='s24' onmouseover=smover('2','4'); onmouseout=smout('2','4') style='cursor:hand;'><a href='Aboutus.htm#Ourgoals' class='drop-menu'>Our goals</a></td></tr>");
document.write("</table>");
document.write("</td></tr></table>");
document.write("</div>");

document.write("<div id='Mmenu5' style='display:none'>");
document.write("</div>");

//a52429
document.write("<div id='Mmenu6' style='display:none'>");
document.write("<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td tyle='padding-left:1px; padding-right:2px; padding-bottom:2px;'>");
document.write("<table cellpadding=6 cellspacing=1 border=0 bgcolor='#ffffff' width=100%>");
document.write("<tr bgcolor='#a52429'><td id='s80' name='s80' onmouseover=smover6('8','0');  onmouseout=smout6('8','0') style='cursor:hand;'><a href='ContactUs.htm#Bookyourassessment' class='drop-menu'>Book your assessment</a></td></tr>");
document.write("<tr bgcolor='#a52429'><td id='s81' name='s81' onmouseover=smover6('8','1');  onmouseout=smout6('8','1') style='cursor:hand;'><a href='ContactUs.htm#Moreinfo' class='drop-menu'>More info</a></td></tr>");
document.write("<tr bgcolor='#a52429'><td id='s82' name='s82' onmouseover=smover6('8','2');  onmouseout=smout6('8','2') style='cursor:hand;'><a href='ContactUs.htm#Contactdetails' class='drop-menu'>Contact details</a></td></tr>");
document.write("</table>");
document.write("</td></tr></table>");
document.write("</div>");