function showCameraDetail(path) {
  document.getElementById('cameraDetail').style.display = "inline";
  document.getElementById('cameraDetail').innerHTML = '<img style="width: 100%;" src="' + path + '" />';
}

function unloadCameraDetail() {
  document.getElementById('cameraDetail').style.display = "none";
  document.getElementById('cameraDetail').innerHTML = "";
}


// WMTT - ToolTip

wmtt = null;
document.onmousemove = updateWMTT;
function updateWMTT(e) {
  if (wmtt != null && wmtt.style.display == 'block') {
    x = (e.pageX ? e.pageX : window.event.x) + wmtt.offsetParent.scrollLeft - wmtt.offsetParent.offsetLeft;
    y = (e.pageY ? e.pageY : window.event.y) + wmtt.offsetParent.scrollTop - wmtt.offsetParent.offsetTop;
    wmtt.style.left = (x) + "px";
    wmtt.style.top   = (y) + "px";
  }
}

function showWMTT(id) { 

  if( !id )
  {
    id = "helpTool";
  }
  
  wmtt = document.getElementById(id);
  wmtt.style.display = "block";
}
function hideWMTT(id) {

  if( !id )
  {
    id = "helpTool";
  }
  
  document.getElementById(id).style.display = "none";
}

// WMTT ende

function Go(x)
{

    document.img.src = x;

}

function disableZoom(path) {
	document.getElementById("produktbildzoom").innerHTML = "<img src=\"" + path + "\" name=img border=0 title=\"Title\">";
	document.getElementById("lupenicon").style.display = "none";
}

function enableZoom(path) {
	var temp = path.split("../bilder/");
	var zoomPath = "../bilder/lupe/" + temp[1];

	document.getElementById("produktbildzoom").innerHTML = "<a id=\"zoomlink\" href=\"" + zoomPath +"\" class=\"zoom\" title=\"Zoom\"><img src=\"" + path + "\" name=img border=0 title=\"Title\"></a>";

	$(document).ready(function(){  
		$('.zoom').jqzoom();  
	});  

	$(document).ready(function() {
		$('.zoomin').jqzoom({
			zoomType: 'innerzoom',
			preloadImages: false,
			alwaysOn:false
		});
	});

	document.getElementById("produktbildzoom").style.display = "block";
	document.getElementById("produktbildzoom").style.clear = "both";
	document.getElementById("lupenicon").style.display = "block";
}

function NewWindow(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=top,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=1000,height=1000');
hWnd.focus();
}

function weltan(weltname, bild, bildname)
{
document.getElementById(weltname).style.display='block';
document.getElementById(bild).src =bildname;


}

function weltaus(weltname, bild, bildname)
{
document.getElementById(weltname).style.display='none';
document.getElementById(bild).src =bildname;
}

function weltan2(weltname)
{
document.getElementById(weltname).style.display='block';
}

function weltaus2(weltname)
{
document.getElementById(weltname).style.display='none';
}


function hinweisan(hname)
{
document.getElementById(hname).style.display='block';
}

function hinweisaus(hname)
{
document.getElementById(hname).style.display='none';
}



