function move_box(an, box) {
  var cleft = -450;
  var ctop = 150;
  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 (parent.document.body.currentStyle &&
    parent.document.body.currentStyle['marginTop']) {
    ctop += parseInt(
      parent.document.body.currentStyle['marginTop']);
  }
  box.style.top = ctop + 'px';
}
 
function show_hide_box(an, width, height, borderStyle) {
 var href = an.href;
 
  var boxdiv = parent.document.getElementById('botBox');
 
  if (boxdiv != null) {
    if (boxdiv.style.display=='none') {
      move_box(an, boxdiv);
      boxdiv.style.display='block';
    } else
      boxdiv.style.display='none';
    return false;
  }
 
  boxdiv = parent.document.createElement('div');
  boxdiv.setAttribute('id', 'botBox');
  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 = '2E2EFE';
 boxdiv.style.backgroundImage = "url(border.jpg)";
 
  var a2 = parent.document.createElement('a');
  
  a2.style.fontFamily = "verdana";
  a2.style.fontSize = "8pt";
  a2.style.color = "#99CCFF";
  a2.appendChild(parent.document.createTextNode('[x]'));
  a2.setAttribute('href', 'javascript:cabeza.hide_box()') ;
   
  var s1 = parent.document.createElement('span');
  s1.className='s1_class' ;
  s1.appendChild(a2);
  
 boxdiv.appendChild(s1);
  
  var contents = parent.document.createElement('iframe');
  contents.scrolling = 'no';
  contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.src = href;
 
  boxdiv.appendChild(contents);
  
   
  
  parent.document.body.appendChild(boxdiv);
  move_box(an, boxdiv);
  return false;
}
function hide_box() {
 
  var boxdiv = parent.document.getElementById('botBox');
  boxdiv.style.display='none';
 }
