//Start image rollover script

if (document.images)
   {
     project3= new Image(197,150)
     project3.src="images/thumb_beals_hunting_preserve.jpg";
     
     pic1on= new Image(56,30);
     pic1on.src="images/menu_hover_home.jpg";  

     pic1off= new Image(56,30);
     pic1off.src="images/menu_home.gif";

     pic2on= new Image(142,30);
     pic2on.src="images/menu_hover_company_info.gif";  

     pic2off= new Image(142,30);
     pic2off.src="images/menu_company_info.gif";

     pic3on= new Image(121,30);
     pic3on.src="images/menu_hover_web_design.gif";  

     pic3off= new Image(121,30);
     pic3off.src="images/menu_web_design.gif";

     pic4on= new Image(91,30);
     pic4on.src="images/menu_hover_hosting.gif";  

     pic4off= new Image(91,30);
     pic4off.src="images/menu_hosting.gif";

     pic5on= new Image(106,30);
     pic5on.src="images/menu_hover_portfolio.gif";  

     pic5off= new Image(106,30);
     pic5off.src="images/menu_portfolio.gif";

     pic6on= new Image(184,30);
     pic6on.src="images/menu_hover_comments.jpg";  

     pic6off= new Image(184,30);
     pic6off.src="images/menu_comments.jpg";

     bar1on= new Image(700,30);
     bar1on.src="images/menu_bottom_home.jpg";

     bar1off= new Image(700,30);
     bar1off.src="images/menu_bottom.jpg";

     bar2on= new Image(700,30);
     bar2on.src="images/menu_bottom_company_info.jpg";

     bar2off= new Image(700,30);
     bar2off.src="images/menu_bottom.jpg";

     bar3on= new Image(700,30);
     bar3on.src="images/menu_bottom_web_design.jpg";

     bar3off= new Image(700,30);
     bar3off.src="images/menu_bottom.jpg";

     bar4on= new Image(700,30);
     bar4on.src="images/menu_bottom_hosting.jpg";

     bar4off= new Image(700,30);
     bar4off.src="images/menu_bottom.jpg";

     bar5on= new Image(700,30);
     bar5on.src="images/menu_bottom_portfolio.jpg";

     bar5off= new Image(700,30);
     bar5off.src="images/menu_bottom.jpg";

     bar6on= new Image(700,30);
     bar6on.src="images/menu_bottom_comments.jpg";

     bar6off= new Image(700,30);
     bar6off.src="images/menu_bottom.jpg";

     project1on= new Image(197,150);
     project1on.src="images/thumb_beals_hunting_preserve.jpg";
     
     project2on= new Image(197,150);
     project2on.src="images/thumb_eshelmans_auto.jpg";
     
     project3on= new Image(197,150);
     project3on.src="images/thumb_body_mind_connection.jpg";
   }

//*****NEW VIRTUAL YOU FEATURED PROJECTS*****
var project1link = 'http://bealshuntingpreserve.newvirtualyou.com';
var project2link = 'http://www.newvirtualyou.com/eshelmansauto';
var project3link = 'http://www.newvirtualyou.com';

//NEW VIRTUAL YOU Project Picture's image code
function projectPic(project1,project2,project3)
 {
   if (document.images)
    {
      projectOn1=eval(project1 + "on.src");
      document[project1].src= projectOn1;

      projectOn2=eval(project2 + "on.src");
      document[project2].src= projectOn2;

      projectOn3=eval(project3 + "on.src");
      document[project3].src= projectOn3;
    }

   //NEW VIRTUAL YOU Project Picture's name code
   var project1name = "Beal's Hunting Preserve";
   var project2name = "Eshelman's Auto";
   var project3name = "A Body Mind Connection";
   var head1 = document.getElementById("project1name");
   var head2 = document.getElementById("project2name");
   var head3 = document.getElementById("project3name");
   head1.firstChild.nodeValue=project1name;
   head2.firstChild.nodeValue=project2name;
   head3.firstChild.nodeValue=project3name;

 }

function lightup(imgName,submitBar)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
      showbar(submitBar);
    }
 }

function showbar(barName)
 {
   thebar='bar';
   if (document.images)
    {
      barOn=eval(barName + "on.src");
      document[thebar].src= barOn;
    }
 }

function turnoff(imgName,submitBar)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
      hidebar(submitBar);
    }
 }

function hidebar(barName)
 {
   thebar='bar';
   if (document.images)
    {
      barOff=eval(barName + "off.src");
      document[thebar].src= barOff;
    }
 }

// End image rollover script

//-----------------------------

// Start show/hide comments box script

function showComments()
 {
   document.getElementById('commentBox').style.display = 'block';
 }

function hideComments()
 {
   document.getElementById('commentBox').style.display = 'none';
 }

// End show/hide comments box script

//-----------------------------

// Start show/hide mission statement box script

function showMission()
 {
   document.getElementById('mission').style.display = 'block';
 }

function hideMission()
 {
   document.getElementById('mission').style.display = 'none';
 }

// End show/hide mission statement box script

//-----------------------------

// Start show/hide web design div layers script

function showBronze()
 {
   document.getElementById('default').style.display = 'none';
   document.getElementById('bronze').style.display = 'block';
   document.getElementById('silver').style.display = 'none';
   document.getElementById('gold').style.display = 'none';
   document.getElementById('custom').style.display = 'none';
 }

function showSilver()
 {
   document.getElementById('default').style.display = 'none';
   document.getElementById('bronze').style.display = 'none';
   document.getElementById('silver').style.display = 'block';
   document.getElementById('gold').style.display = 'none';
   document.getElementById('custom').style.display = 'none';
 }

function showGold()
 {
   document.getElementById('default').style.display = 'none';
   document.getElementById('bronze').style.display = 'none';
   document.getElementById('silver').style.display = 'none';
   document.getElementById('gold').style.display = 'block';
   document.getElementById('custom').style.display = 'none';
 }

function showCustom()
 {
   document.getElementById('default').style.display = 'none';
   document.getElementById('bronze').style.display = 'none';
   document.getElementById('silver').style.display = 'none';
   document.getElementById('gold').style.display = 'none';
   document.getElementById('custom').style.display = 'block';
 }
