/*preload the rollover images*/
if (document.images) 
{
   img1 = new Image();
   img2 = new Image();
   img3 = new Image();
   img4 = new Image();
   img5 = new Image();
   img6 = new Image();
   img7 = new Image();
   img8 = new Image();
   img9 = new Image();
   img10 = new Image();
   img11 = new Image();
   img12 = new Image();
   img13 = new Image();
   img1.src = "/images/index_r3_c7_f2.gif";
   img2.src = "/images/index_r3_c9_f2.gif";
   img3.src = "/images/index_r3_c10_fa_1.gif";
   img4.src = "/images/index_r3_c13_f2.gif";
   img5.src = "/images/index_r3_c15_f2.gif";
   img6.src = "/images/index_r3_c18_f2.gif";
   img7.src = "/images/index_r3_c20_f2.gif";
   img8.src = "/images/index_r4_c8_f2.gif";
   img9.src = "/images/index_r4_c11_f2.gif";
   img10.src = "/images/index_r4_c14_f2.gif";
   img11.src = "/images/index_r3_c20_f2.gif";
   img12.src = "/images/index_r4_c19_f2.gif";
   img13.src = "/images/index_r4_c21_f2.gif";
}  

/*this is where all of the links in the bar on the tops of all the pages are determined*/
var description = new Array();
description[0] = "<p><a href=/why_epdm/attributes.shtml>EPDM Attributes</a> :: <a href=/why_epdm/green.shtml>Green & Sustainability</a> :: <a href=/why_epdm/history.shtml>Historical Timeline</a></p>";
description[1] = "<p>Frequently Asked Questions About EPDM";
description[2] = "<p><a href=#design>Design</a> :: <a href=#energy>Energy Efficient Systems</a> :: <a href=#veggies>Garden Roofs</a> :: <a href=#longterm>Long-Term Performance</a> :: <a href=#weather>Weather and Fire Performance</a></p>";
description[3] = "<p><a href=/stats/ind_studies.shtml>Independent Studies</a> :: <a href=/stats/case_studies.shtml>Case Studies</a></p>";
description[4] = "<p><a href=/press/index.shtml>News Clippings</a></p>";
description[5] = "<p><font size=1>Coming Soon!</font></p>";
description[6] = "<p>A Look At Our Calender</p>";
description[7] = "<p><a href=/who_we_are/mission.shtml>Mission Statement</a></p>";
description[8] = "<p>EPDM Member List</p>";
/*
description[9] = "<a href=/education/programs.shtml>EPDM Roofing Techology Conference</a> :: <a href=/education/carlisle.shtml>Carlisle's Design Conference</a> :: <a href=/education/firestone.shtml>Firestone's Building Products University</a>";
*/
description[9] = "<p><a href=/education/carlisle.shtml>Carlisle's Design Conference</a> :: <a href=/education/firestone.shtml>Firestone's Building Products University</a></p>";
description[10] = "<p>Life Cycle Analysis - Coming Soon :: <a href=/maintenance/warranty.shtml>Warranty</a> :: <a href=/maintenance/repairs.shtml>Repairs</a></p>";
description[11] = "<p>EPDM Industry Links</p>";
description[12] = "<p>Contact The ERA</p>";
/*determines which button to highlight and links to display*/
function checkHeaderButtons() {
if (highlightTab == "why") {
window.document.index_r3_c7.src="/images/index_r3_c7_f2.gif";
document.getElementById('myLinks').innerHTML = description[0];
}
if (highlightTab == "faqs") {
window.document.index_r3_c9.src="/images/index_r3_c9_f2.gif";
document.getElementById('myLinks').innerHTML = description[1];
}
if (highlightTab == "researchResources") {
window.document.index_r3_c10.src="/images/index_r3_c10_fa_1.gif";
document.getElementById('myLinks').innerHTML = description[2];
}
if (highlightTab == "stats") {
window.document.index_r3_c13.src="/images/index_r3_c13_f2.gif";
document.getElementById('myLinks').innerHTML = description[3];
}
if (highlightTab == "press") {
window.document.index_r3_c15.src="/images/index_r3_c15_f2.gif";
document.getElementById('myLinks').innerHTML = description[4];
}
if (highlightTab == "design") {
window.document.index_r3_c18.src="/images/index_r3_c18_f2.gif";
document.getElementById('myLinks').innerHTML = description[5];
}
if (highlightTab == "events") {
window.document.index_r3_c20.src="/images/index_r3_c20_f2.gif";
document.getElementById('myLinks').innerHTML = description[6];
}
if (highlightTab == "who") {
window.document.index_r4_c8.src="/images/index_r4_c8_f2.gif";
document.getElementById('myLinks').innerHTML = description[7];
}
if (highlightTab == "members") {
window.document.index_r4_c11.src="/images/index_r4_c11_f2.gif";
document.getElementById('myLinks').innerHTML = description[8];
}
if (highlightTab == "education") {
window.document.index_r4_c12.src="/images/index_r4_c12_f2.gif";
document.getElementById('myLinks').innerHTML = description[9];
}
if (highlightTab == "maintenance") {
window.document.index_r4_c14.src="/images/index_r4_c14_f2.gif";
document.getElementById('myLinks').innerHTML = description[10];
}
if (highlightTab == "links") {
window.document.index_r4_c19.src="/images/index_r4_c19_f2.gif";
document.getElementById('myLinks').innerHTML = description[11];
}
if (highlightTab == "contact") {
window.document.index_r4_c21.src="/images/index_r4_c21_f2.gif";
document.getElementById('myLinks').innerHTML = description[12];
}
if (highlightTab == "home") {
document.getElementById('myLinks').innerHTML = description[0];
}
}