function showGalleryImage(imageSrc, e){
	pos = getMouseCoords(e);
	if(!document.getElementById("detailImage")){
		document.getElementById("mainStage").innerHTML += '<div class="detailImage" id="detailImage"></div>';
	}
	
	d = document.getElementById("detailImage");
	nSrc    = imageSrc.replace(/big/g, "large");
	img 	= new Image();
	img.src = nSrc;
	if(!img.width){
		//nSrc 	= "import/img/big/noimage.jpg";
		//img.src = "import/img/big/noimage.jpg";
	}
	
	cHeight = img.height+20;
	cWidth  = img.width;

	
	d.style.backgroundImage = "url("+img.src+")";
	d.style.backgroundPosition = "bottom left";
	d.style.backgroundRepeat = "no-repeat";
	d.style.border = "1px solid #575757";

	l = getCenterPosition();
	
	d.style.top			= pos['posy']-500+"px";
	//d.style.left		= pos['posx']-200+"px";
	d.style.left		= (l/2)+"px";
	
	d.innerHTML 		= 	"<div class='infoBoxHeader'>"+
								"[<a href='javascript:hideDetailImage()' title='Schliessen' style='color:#333333;text-decoration:none;'>x</a>]&nbsp;"+
							"</div>";
							
	d.innerHTML 		+= "<img src='"+nSrc+"' onClick='hideDetailImage()' alt='zum Schliessen klicken' title='zum Schliessen klicken'/>";
	d.style.display  = "block";

	Drag.init(d);
	//disableWebsite();
}

function changePreviewImage(sSrc){
	nSrc = sSrc.replace(/small/g, "big");
	d = document.getElementById("pImage");
	d.src = nSrc;
}
