// JavaScript Document

ie = (navigator.appName.indexOf("Microsoft")!=-1);
ns = (navigator.appName.indexOf("Netscape") != -1);

ns4= (ns && navigator.appVersion.indexOf("5") == -1);
ns6= (ns && navigator.appVersion.indexOf("5") != -1);
ns6X = 0;
ns6Y = 0;

// +----------------------------------------------------------------------
// | 
function BigImageShowLayer(BigImage, ImageSizeW, ImageSizeH, Info)
{

	if(ImageSizeW == 0 || ImageSizeH == 0) {
		return;
	}
    document.all["BigImageLayer"].style.left = event.clientX + document.body.scrollLeft - ImageSizeW - 10;
    document.all["BigImageLayer"].style.top = event.clientY + document.body.scrollTop - ImageSizeH - 50;
    document.all["BigImageFile"].src = BigImage;
//    document.all["BigImageSizeInfo"].value = Info;
	
	
	if (ie){
		e = window.event;
		with (document.all["BigImageLayer"]){
			style.visibility = 'visible';
		}
	}
	if (ns4){
		with(document.layers["BigImageLayer"]){
			visibility = true;
		}
	}
	if (ns6){
		with(document.getElementById("BigImageLayer").style){
			visibility = 'visible';
		}
	}

}

// +----------------------------------------------------------------------
// | 
function BigImageShowLayerPos_Parent(BigImage, ImagePosX, ImagePosY, Info)
{
	parent.BigImageShowLayerPos(BigImage, ImagePosX, ImagePosY, Info);
}

// +----------------------------------------------------------------------
// | 
function BigImageShowLayerPos(BigImage, ImagePosX, ImagePosY, Info)
{

	if(ImagePosX == 0 || ImagePosY == 0) {
		return;
	}
//    document.all["BigImageLayer"].style.left = event.clientX + document.body.scrollLeft - ImageSizeW - 10;
//    document.all["BigImageLayer"].style.top = event.clientY + document.body.scrollTop - ImageSizeH - 10;
    document.all["BigImageLayer"].style.left = ImagePosX;
    document.all["BigImageLayer"].style.top = ImagePosY;

    document.all["BigImageFile"].src = BigImage;
//    document.all["BigImageSizeInfo"].value = Info;
	
	if (ie){
		e = window.event;
		with (document.all["BigImageLayer"]){
			style.visibility = 'visible';
		}
	}
	if (ns4){
		with(document.layers["BigImageLayer"]){
			visibility = true;
		}
	}
	if (ns6){
		with(document.getElementById("BigImageLayer").style){
			visibility = 'visible';
		}
	}

}

function BigImageHideLayer_Parent()
{
	parent.BigImageHideLayer();
}

function BigImageHideLayer()
{
	if (ie){
		document.all['BigImageLayer'].style.visibility = 'hidden';
	}
	if (ns4){
		document.layers['BigImageLayer'].visibility = false;
	}
	if (ns6){
		document.getElementById('BigImageLayer').style.visibility = 'hidden';
	}
}
