<!-- Paste this code into an external JavaScript file named: popupBox.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: JTricks.com :: http://www.jtricks.com/ */

function move_box(an, box) {
  var cleft = -130;
  var ctop = 0;
  var obj = an;
  while (obj.offsetParent) {
    cleft += obj.offsetLeft;
    ctop += obj.offsetTop;
    obj = obj.offsetParent;
  }
  box.style.left = cleft + 'px';
  ctop += an.offsetHeight + 8;
  if (document.body.currentStyle &&
    document.body.currentStyle['marginTop']) {
    ctop += parseInt(
      document.body.currentStyle['marginTop']);
  }
  box.style.top = ctop + 'px';
}

function show_box(an, width, height, borderStyle) {
  var href = MINISLIDE1.hotlink();
  var href = xref;//MINISLIDE1.hotlink();
  var boxdiv = document.getElementById(href);

  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    }
    return false;
  }

  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.padding = '0px';
  boxdiv.style.marginwidth = '0px';
  boxdiv.style.leftmargin = '0px';
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;

  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}



function hide_box(an, width, height, borderStyle) {
  //var href = MINISLIDE1.hotlink();
  var href = xref;//MINISLIDE1.hotlink();
  var boxdiv = document.getElementById(href);

 
  if (boxdiv != null) {
    if (boxdiv.style.display=='block') {
      boxdiv.style.display='none';
    }
    return false;
  }
 
  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'none';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.padding = '0px';
  boxdiv.style.marginwidth = '0px';
  boxdiv.style.leftmargin = '0px';
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;

  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}

function show_box2(an, width, height, borderStyle) {
  var href = MINISLIDE2.hotlink();
  var href = xref;//MINISLIDE2.hotlink();
  var boxdiv = document.getElementById(href);

  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    }
    return false;
  }

  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}



function hide_box2(an, width, height, borderStyle) {
  //var href = MINISLIDE2.hotlink();
  var href = xref;//MINISLIDE2.hotlink();
  var boxdiv = document.getElementById(href);

 
  if (boxdiv != null) {
    if (boxdiv.style.display=='block') {
      boxdiv.style.display='none';
    }
    return false;
  }
 
  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'none';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}

function show_box3(an, width, height, borderStyle) {
  var href = MINISLIDE3.hotlink();
  var href = xref;//MINISLIDE3.hotlink();
  var boxdiv = document.getElementById(href);

  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    }
    return false;
  }

  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;

  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}



function hide_box3(an, width, height, borderStyle) {
  //var href = MINISLIDE3.hotlink();
  var href = xref;//MINISLIDE3.hotlink();
  var boxdiv = document.getElementById(href);

 
  if (boxdiv != null) {
    if (boxdiv.style.display=='block') {
      boxdiv.style.display='none';
    }
    return false;
  }
 
  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'none';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}

function show_box4(an, width, height, borderStyle) {
  var href = MINISLIDE4.hotlink();
  var href = xref;//MINISLIDE4.hotlink();
  var boxdiv = document.getElementById(href);

  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    }
    return false;
  }

  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}



function hide_box4(an, width, height, borderStyle) {
  //var href = MINISLIDE4.hotlink();
  var href = xref;//MINISLIDE4.hotlink();
  var boxdiv = document.getElementById(href);

 
  if (boxdiv != null) {
    if (boxdiv.style.display=='block') {
      boxdiv.style.display='none';
    }
    return false;
  }
 
  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'none';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}

function show_box5(an, width, height, borderStyle) {
  var href = MINISLIDE5.hotlink();
  var href = xref;//MINISLIDE5.hotlink();
  var boxdiv = document.getElementById(href);

  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    }
    return false;
  }

  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;

  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}



function hide_box5(an, width, height, borderStyle) {
  //var href = MINISLIDE5.hotlink();
  var href = xref;//MINISLIDE5.hotlink();
  var boxdiv = document.getElementById(href);

 
  if (boxdiv != null) {
    if (boxdiv.style.display=='block') {
      boxdiv.style.display='none';
    }
    return false;
  }
 
  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'none';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}

function show_box6(an, width, height, borderStyle) {
  var href = MINISLIDE6.hotlink();
  var href = xref;//MINISLIDE6.hotlink();
  var boxdiv = document.getElementById(href);

  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    }
    return false;
  }

  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}



function hide_box6(an, width, height, borderStyle) {
  //var href = MINISLIDE6.hotlink();
  var href = xref;//MINISLIDE6.hotlink();
  var boxdiv = document.getElementById(href);

 
  if (boxdiv != null) {
    if (boxdiv.style.display=='block') {
      boxdiv.style.display='none';
    }
    return false;
  }
 
  boxdiv = document.createElement('div');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'none';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#fff';

  var contents = document.createElement('img');
  //contents.scrolling = 'no';
  //contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.style.marginwidth = '0px';
  contents.src = href;
  
  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);
  move_box(an, boxdiv);

  return false;
}
