function createMessage() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>What we do</div><div class='learn_more_text'><h3>what we do</h3>we are an innovative lab, using the finest products on the market&nbsp;&ndash;&nbsp;&quot;finest&quot;&nbsp; defined as an enduring material that exhibits superior esthetics.<p>We do not offer any panacea here We have found that happy clients require cases to be delivered on time, if not early. Properly crafted restorations are the result of educated, and forward thinking technicians, not cookie cutlers.You can be rest assured that you have found a lab that prides itself in high caliber craftsmanship, yet is not so enamored with esthetics that functionality is secondary.</p><p>Naturally, you have more questions. We would be pleased if you called us, so that we can personally discuss how to address your specific needs, and assist you in making your practice climb higher.</p><p>At Highland Dental Labratory, your customer is our customer. We look to mitigate any potential issues regarding the end product, long before the patient is ever in the chair. One area we can avoid an unpleasant result is with shading. To best server your/our client, we offer complimentary custom shading and custom staining. It is perspective of Highland that this service will lessen the chance of a dentist having to re-book a patient. The right shade the first time will save on lost time and will eliminate any embarrassment between the doctor and the patient that might otherwise exist. However, and most importantly, the patient gets it right the first time.</p><p>Our Labratory offers a professional, stylish and clean environment with which to assist your/our patients. Be comforted in knowing that we acknowledge that the positive influence to environment and personnel that the patient experienced on your premises will resume as they are here as a guest at Highland. We thank you for entrusting us with your reputation and are ever committed to providing the rich service that you deserve.</p></div></div></div>";

  return container.firstChild
}
function createMessage2() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Prospective</div><div class='learn_more_text'><h3>Prospective</h3>No two teeth are the same, and as such, every restoration at Highland is a prototype. As is constantly reinforced into the minds of the technicians at Highland, there is no perfect tooth, only the ideal tooth for a unique mouth. We wish we could say that we had a magic wand to make all of your restorations perfectly. We don&rsquo;t. However, through concise directions on a prescription, and referring to your noted preferences we can, and do eliminate many of the pitfalls that so often affect client satisfaction.<h3>Our motto</h3><p>Highland Dental Laboratory has a motto, &nbsp;&quot;Excellence. Timeliness. Service&quot;.  We didn&rsquo;t arrive on these qualities by accident, as we feel that timeliness is a critical component for a lab&rsquo;s success, and consequently a client&rsquo;s needs. We are always appreciative of our clients intrusting us with their reputation &ndash; by asking us to continually deliver top quality restorations, on time.</p></div></div></div>";

  return container.firstChild
}
function createMessage3() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Communication</div><div class='learn_more_text'><h3>Communication</h3>We are rather enthusiastic about communication. In fact, in a lab of modern materials, and futuristic machinery &ndash; our best, and most powerful tool is our phone.<p>We are also rather enthusiastic about communication. We encourage you to contact us when a question arises. We are a resource at your disposal, and as such are always available to speak regarding various products, specific patient needs, and the like. We can go over our &nbsp;&quot;menu&quot;&nbsp; with you. We offer many different types of services, and want to equip you for the varied needs of a busy dental environment.</p><p>Additionally, we like to follow up and review the experiences that you have had with our products a few weeks into our relationship. We want to ensure that any discrepancies from your preferred methods have been noted, and if need be, have been adjusted on our end.</p></div></div></div>";

  return container.firstChild
}

function createMessageImg1() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange2'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Captek</div><img src='images/Captek-br.jpg' width='800' height='1100' alt='Captek'/></div></div>";

  return container.firstChild
}
function createMessageImg2() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange2'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>EMAX</div><img src='images/EMAX-br.jpg' width='800' height='1100' alt='Captek'/></div></div>";

  return container.firstChild
}

function createMessageImg3() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange2'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Novos</div><img src='images/Novos-br.jpg' width='800' height='1100' alt='Captek'/></div></div>";

  return container.firstChild
}

function createMessageImg4() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange2'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>BruxZir</div><img src='images/BruxZir-br.jpg' width='800' height='1100' alt='Captek'/></div></div>";

  return container.firstChild
}





function createMessageImg5() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange2'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>InVision</div><img src='images/InVision-br.jpg' width='800' height='1100' alt='Captek'/></div></div>";

  return container.firstChild
}

function createMessageImg6() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange2'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Gemini</div><img src='images/Gemini-br.jpg' width='800' height='1100' alt='Gemini'/></div></div>";

  return container.firstChild
}

function createMessage_christmas() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange_chrismas'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>$199 Introductory Price</div><img src='images/promo_big.jpg' width='500' height='750' alt='IPad Giveaway'/></div></div>";

  return container.firstChild
}
function createMessage_education1() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange_education'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Education 1</div><img src='images/education_1big.jpg' width='600' height='927' alt='Education'/></div></div>";

  return container.firstChild
}

function createMessage_education2() {
  var container = document.createElement('div')

container.innerHTML ="<div><div class='border_orange_education'><div class='header_learn_more'><input type='image' src='images/btn_close.gif' name='close' class='inputsubmit'/>Education 2</div><img src='images/education_2big.jpg' width='600' height='927' alt='Education'/></div></div>";

  return container.firstChild
}


function positionMessage(elem) {
  elem.style.position = 'absolute'

  var scroll = document.documentElement.scrollTop || document.body.scrollTop
  elem.style.top = scroll + 180 + 'px'

  elem.style.left = Math.floor(document.body.clientWidth/2)-117 + 'px'
}
function positionMessage2(elem) {
  elem.style.position = 'absolute'

  var scroll = document.documentElement.scrollTop || document.body.scrollTop
  elem.style.top = 10 + 'px'

  elem.style.left = Math.floor(document.body.clientWidth/2)-400 + 'px'
}
function positionMessage_chrismas(elem) {
  elem.style.position = 'absolute'

  var scroll = document.documentElement.scrollTop || document.body.scrollTop
  elem.style.top = 10 + 'px'

  elem.style.left = Math.floor(document.body.clientWidth/2)-250 + 'px'
}
function positionMessage_education(elem) {
  elem.style.position = 'absolute'

  var scroll = document.documentElement.scrollTop || document.body.scrollTop
  elem.style.top = 10 + 'px'

  elem.style.left = Math.floor(document.body.clientWidth/2)-300 + 'px'
}

function addCloseOnClick(messageElem) {
  var input = messageElem.getElementsByTagName('INPUT')[0]
  input.onclick = function() {
    messageElem.parentNode.removeChild(messageElem)
  }
}


function setupMessageButton() {
  var messageElem = createMessage()
  positionMessage(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}

function setupMessageButton2() {
  var messageElem = createMessage2()
  positionMessage(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButton3() {
  var messageElem = createMessage3()
  positionMessage(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}




function setupMessageButtonImg1() {
  var messageElem = createMessageImg1()
  positionMessage2(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButtonImg2() {
  var messageElem = createMessageImg2()
  positionMessage2(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButtonImg3() {
  var messageElem = createMessageImg3()
  positionMessage2(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButtonImg4() {
  var messageElem = createMessageImg4()
  positionMessage2(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButtonImg5() {
  var messageElem = createMessageImg5()
  positionMessage2(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButtonImg6() {
  var messageElem = createMessageImg6()
  positionMessage2(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButton_christmas() {
  var messageElem = createMessage_christmas()
  positionMessage_chrismas(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}

function setupMessageButton_education1() {
  var messageElem = createMessage_education1()
  positionMessage_education(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
function setupMessageButton_education2() {
  var messageElem = createMessage_education2()
  positionMessage_education(messageElem)
  addCloseOnClick(messageElem)
  document.body.appendChild(messageElem)
}
