document.write("<style type='text/css'>\n" +  "#h-photo {visibility:hidden;}\n" + "</style>");
  
  function initImage() {
  imageId = 'h-photo';
  newImage = "url(img/h-photo.jpg)";
  image = document.getElementById(imageId);
  document.getElementById(imageId).style.backgroundImage = newImage;
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  initContent();
  initHover();
}

function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}

function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 4
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 2);
    }
  }
}

/*Industry Focus Intro Text Under*/
document.write("<style type='text/css'>\n" +  "#h-content {visibility:hidden;}\n" + "</style>");
  
  function initContent() {
  imageId = 'h-content';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  image.innerHTML = "<p>A professional recruiting firm for over 19 years\, <b>Magee Resource Group</b> partners with companies and hospitals nationwide to provide top industry professionals who enhance their business and better position them in today\'s highly competitive marketplace. For a permanent hire or staff augmentation\, <b>MRG</b> is the resource for the solution.</p>";
  fadeIn(imageId,0);
}

/*Healthcare IT Photo*/
document.write("<style type='text/css'>\n" +  "#h-photo {visibility:hidden;}\n" + "</style>");
  
  function initImage2() {
  imageId = 'h-photo';
  newImage = "url(img/hcit-photo.jpg)";
  image = document.getElementById(imageId);
  document.getElementById(imageId).style.backgroundImage = newImage;
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  initContent2();
  initHover2();
}

/*Healthcare IT Hover Content*/
document.write("<style type='text/css'>\n" +  "#hcit-content {visibility:hidden;}\n" + "</style>");
  
  function initContent2() {
  imageId = 'h-content';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  image.innerHTML = "<p>The MRG <b>Healthcare IT</b> recruiting specialists partner with the nation's leading healthcare systems to provide management-level Information Technology professionals, from CIO/CTO's to Directors and Managers.</p>";
  fadeIn(imageId,0);
}

/*Construction Photo*/
document.write("<style type='text/css'>\n" +  "#h-photo {visibility:hidden;}\n" + "</style>");
  
  function initImage3() {
  imageId = 'h-photo';
  newImage = "url(img/con-photo.jpg)";
  image = document.getElementById(imageId);
  document.getElementById(imageId).style.backgroundImage = newImage;
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  initContent3();
  initHover3();
}

/*Construction Hover Content*/
document.write("<style type='text/css'>\n" +  "#con-content {visibility:hidden;}\n" + "</style>");
  
  function initContent3() {
  imageId = 'h-content';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  image.innerHTML = "<p>The MRG <b>Construction Division</b> services the staffing needs of client companies nationwide. Our search team is dedicated to placing the top talent in positions of operations, management and controls.</p>";
  fadeIn(imageId,0);
}

/*Healthcare Photo*/
document.write("<style type='text/css'>\n" +  "#h-photo {visibility:hidden;}\n" + "</style>");
  
  function initImage4() {
  imageId = 'h-photo';
  newImage = "url(img/health-photo.jpg)";
  image = document.getElementById(imageId);
  document.getElementById(imageId).style.backgroundImage = newImage;
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  initContent4();
  initHover4();
}

/*Healthcare Content*/
document.write("<style type='text/css'>\n" +  "#health-content {visibility:hidden;}\n" + "</style>");
  
  function initContent4() {
  imageId = 'h-content';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  image.innerHTML = "<p>The MRG <b>Healthcare</b> team’s focus ranges from the acute care level to the primary care arenas. Our Healthcare Division maintains exclusive consulting partnerships with major healthcare systems nationwide. We offer service lines for the Cardiovascular, Oncology and E/R Critical Care specialities.</p>";
  fadeIn(imageId,0);
}

/*SAP Photo*/
document.write("<style type='text/css'>\n" +  "#h-photo {visibility:hidden;}\n" + "</style>");
  
  function initImage5() {
  imageId = 'h-photo';
  newImage = "url(img/sap-photo.jpg)";
  image = document.getElementById(imageId);
  document.getElementById(imageId).style.backgroundImage = newImage;
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  initContent5();
  initHover5();
}

/*SAP Hover Content*/
document.write("<style type='text/css'>\n" +  "#sap-content {visibility:hidden;}\n" + "</style>");
  
  function initContent5() {
  imageId = 'h-content';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  image.innerHTML = "<p>The MRG <b>SAP</b> recruiting team has developed one of the deepest networks of SAP professionals in the industry. Our SAP recruiting team has the knowledge and insight to locate, qualify and deliver functional and technical SAP professionals able to make an immediate impact. We provide both contract and permanent hire resources.</p>";
  fadeIn(imageId,0);
}

/*Oil and Gas Photo*/
document.write("<style type='text/css'>\n" +  "#h-photo {visibility:hidden;}\n" + "</style>");
  
  function initImage6() {
  imageId = 'h-photo';
  newImage = "url(img/oil-photo.jpg)";
  image = document.getElementById(imageId);
  document.getElementById(imageId).style.backgroundImage = newImage;
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
  initContent6();
  initHover6();
}

/*Oil and Gas Hover Content*/
document.write("<style type='text/css'>\n" +  "#oil-content {visibility:hidden;}\n" + "</style>");
  
  function initContent6() {
  imageId = 'h-content';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  image.innerHTML = "<p>The MRG <b>Oil and Gas</b> recruiting team partners with the country’s leading Oil and Gas exploration companies to provide experienced industry talent to the booming Ark-La-Tex area. As the Haynesville Shale play develops, MRG is the leading the way by providing the personnel to make it happen.</p>";
  fadeIn(imageId,0);
}



