/* Light Box Z-Tuned */
function changeheight(){
	if (window.innerHeight && window.scrollMaxY) {
		var yWithScroll = window.innerHeight + window.scrollMaxY;
		//alert("firefox");
		var lightBoxOverlayHeight = yWithScroll;
	} else {
		var yWithScroll = document.body.scrollHeight;
		var yHeight = document.body.clientHeight;
		//alert("ie7+ie6"+ yWithScroll + "dfgdfg " + yHeight);
		var lightBoxOverlayHeight = yWithScroll + yHeight;
	} /*else {
		var yWithScroll = document.body.offsetHeight;
		alert("ie6");
	}*/

	e = document.getElementById("lightBoxOverlay");
	e.style.height = lightBoxOverlayHeight + 'px';
}

function showLB(containerId){
	obj = MM_findObj(containerId);
	if (!obj) return;
	obj.style.display = 'block';
	changeheight();
}
function showLBContent(containerId){
	showLB('lightBoxOverlay');
	obj = MM_findObj(containerId);
	if (!obj) return;
	obj.style.display = 'block';
}

function hideLB(containerId){
	obj2 = MM_findObj(containerId)
	if (!obj2) return;
	obj2.style.display = 'none';
}
function hideAll(){
	hideLB('lightFlash');
	hideLB('lightBoxOverlay');
	//amIToPlay('lightFlash', "stop");
}