﻿
// This file is for the Hoverbutton operations on the main page.

function lightup(imgName)
{
    if (document.images)
    {
      // Change the buttons image.
      imgOn=eval(imgName + "on.src");
      document.getElementById(imgName).src= imgOn;   
      
      // Change the focus pic.
      focOn=eval(imgName + "focusPic.src");
      document.getElementById('focusImage').src= focOn;
      document.getElementById('focusImage').style.visibility = 'visible';
      
      //Change the focus text
      textOn=eval(imgName + "focusText");
      
      document.getElementById('lblFocusText').innerHTML = textOn;
      
      document.getElementById('lblFocusText').style.visibility = 'visible';
    }
}

function turnoff(imgName)
{
if (document.images)
{
  imgOff=eval(imgName + "off.src");
  document.getElementById(imgName).src= imgOff;
  // Change the Focus image back to the welcome.
  document.getElementById('focusImage').src = './img/focusPicWelcome.jpg';
  // Change the focus text.
  document.getElementById('lblFocusText').innerHTML = '<strong>Proven and tested …</strong><br />The Leaf Terminator gutter guard can reduce your annual gutter maintenance costs and keep workers off your roof.';
  
}
}

if (document.images)
{
    // Button 1 and attributes creation.
    btn1on= new Image(20,20);   
    btn1on.src="./img/Btn1On.gif";  

    btn1off= new Image(20,20);
    btn1off.src="./img/btn1Off.gif";     

    btn1focusPic= new Image(279,211);
    btn1focusPic.src= "./img/FocusPic1.jpg";    
    btn1focusText = "<strong>Stands up to hurricane force winds</strong><br />The Leaf Terminator gutter guard withstood winds of 110 MPH in independent tests. So it’s perfect for roofing applications in coastal areas and other high wind zones with strict building codes.";

    // Button 2 and attributes creation.     
    btn2on= new Image(20,20);
    btn2on.src="./img/Btn2On.gif";  

    btn2off= new Image(20,20);
    btn2off.src="./img/btn2Off.gif";     

    btn2focusPic= new Image(279,211);
    btn2focusPic.src= "./img/FocusPic2.jpg";
    
    btn2focusText = "<strong>Strength and durability</strong><br />The worst winter snows are no match for The Leaf Terminator gutter guard, which is made from .032 virgin commercial grade H-14-3105 aluminum.  It has been independently tested to withstand 1200 lbs per square foot on a 5 inch gutter system. The Leaf Terminator gutter guard actually strengthens your existing gutter system.";

    // Button 3 and attributes creation.     
    btn3on= new Image(20,20);
    btn3on.src="./img/Btn3On.gif";  

    btn3off= new Image(20,20);
    btn3off.src="./img/btn3Off.gif";     

    btn3focusPic= new Image(279,211);
    btn3focusPic.src= "./img/FocusPic6.jpg";

    btn3focusText = "<strong>Keeps debris out of your gutters</strong><br/>No leaves, twigs or pine needles remained on The Leaf Terminator gutter guard in independent tests.  Stops bottles, cans, plastic bags, balls, and roof gravel and dirt from clogging your gutters.";

    // Button 4 and attributes creation.     
    btn4on= new Image(20,20);
    btn4on.src="./img/Btn4On.gif";  

    btn4off= new Image(20,20);
    btn4off.src="./img/btn4Off.gif";     

    btn4focusPic= new Image(279,211);
    btn4focusPic.src= "./img/FocusPic7.jpg";

    btn4focusText = "<strong>Handles the heaviest rains and roof runoff</strong><br />The Leaf Terminator gutter guard handled 6 gallons per foot per minute, per 100 square feet of roof area in independent tests by PRI Asphalt Technologies. The patented system of perforations, ridges and valleys have been engineered for weather extremes.";

    // Button 5 and attributes creation.     
    btn5on= new Image(20,20);
    btn5on.src="./img/Btn5On.gif";  

    btn5off= new Image(20,20);
    btn5off.src="./img/btn5Off.gif";     

    btn5focusPic= new Image(279,211);
    btn5focusPic.src= "./img/FocusPic4.jpg";

    btn5focusText = "<strong>Easily attaches to your gutter system</strong><br />There’s no need to replace your gutters with The Leaf Terminator gutter guard.  Our Fas-Connect<sup>TM</sup> fastening system makes it easy to attach to your gutters, and The Leaf Terminator gutter guard accommodates most gutter systems. Our aerodynamic nose design maintains your roof’s low profile.";
    
    // Button 6 and attributes creation.     
    btn6on= new Image(20,20);
    btn6on.src="./img/Btn6On.gif";  

    btn6off= new Image(20,20);
    btn6off.src="./img/btn6Off.gif";     

    btn6focusPic= new Image(279,211);
    btn6focusPic.src= "./img/FocusPic2.jpg";

    btn6focusText = "<strong>Extensive color choices</strong><br />The Leaf Terminator gutter guard is available in 30 Kynar colors and five polyester colors to match your roof and gutter system.";
    
    // Button 7 and attributes creation.     
    btn7on= new Image(20,20);
    btn7on.src="./img/Btn7On.gif";  

    btn7off= new Image(20,20);
    btn7off.src="./img/btn7Off.gif";     

    btn7focusPic= new Image(279,211);
    btn7focusPic.src= "./img/FocusPic6.jpg";

    btn7focusText = "<strong>Versatile installation for a wide variety of commercial roofs and gutters</strong><br/>The Leaf Terminator gutter guard works with flat roofs, standing seam, S-tile, box gutters, slate, cedar shake and composition roofs. Manufactured in five-foot sections, The Leaf Terminator gutter guard can accommodate 5 inch through 15 inch gutters, including box and built-in gutters.";
    
}

