
//Wird bei Touareg-Flash-Gallery verwendet
function makePopup( imageURL, width, height ){
	openPic(imageURL, '', 800, 600);
}

function showLexikon(a)
{
    var req = loadXMLHttpRequest();
    if(!req) return(true);

    var arrayPageSize = getPageSize();
    var arrayPageScroll = getPageScroll();

    

    var div = createPopup();
    if(!div) return(true);


    div.className = 'lexikonAnsicht';

  req.onreadystatechange = function callBack()
  {
    if(req.readyState == 4)
    {
      if(req.status == 200)
      {
        divContent = document.createElement('div');
        divContent.innerHTML = req.responseText;
        div.appendChild(divContent);

        var height = 400;
        var width = 600;
        if(div.offsetHeight) height = div.offsetHeight;

        var y = arrayPageScroll[1] + ((arrayPageSize[3] - 35 - height) / 2);
        var x = ((arrayPageSize[0] - 20 - width) / 2);
        div.style.top = y + "px";
        div.style.left = x + "px";

        div.style.visibility = '';

        divLoading.parentNode.removeChild(divLoading);
        divLoading = null;

      }
      else
      {
        alert('An error has occurred: ' + req.statusText);
      }
    }
  };
  req.open('GET', a.href, true);
  req.send(null);

  return false;
}

