	<!--
		//	THUMBNAILS PREVIEW v1.0 #######################################################
		// VARIABLES INITIALIZATION
		var debug = false;
		var oldImg	= "--";
		var cursorX = 0;
		var cursorY = 0;
		var showPrw = 0;
				
		//	SHOW PREVIEW
		function previewShow(e,srcImg)	{
			if (!e) e = window.event;
			cursorX = (e.clientX) ? e.clientX : e.layerX;
			cursorY = (e.clientY) ? e.clientY : e.layerY;
			if (srcImg != "move")	{
				if (!showPrw) return previewHide();
				if (document.getElementById("prwLoad") != null) document.getElementById("prwLoad").style.display = "";
				if (document.getElementById("prwShow") != null) document.getElementById("prwShow").style.display = "none";
				document.images.imgPrw0.src = srcImg;		//	WHEN IMAHE IS LOADED CALL chkPrwSize()
			}
			else previewPos();
		}

		function chkPrwSize()	{
			if (!showPrw) return previewHide();
			objImg0 = document.images.imgPrw0;
			objImg1 = document.images.imgPrw1;
			img0W		= objImg0.width;
			img0H		= objImg0.height;

			ratio		= img0W / img0H;
			matrix	= 100;
			
			if (ratio > 1)	{														//	HIRIZZONTAL
				img1W = matrix;
				img1H = img1W / ratio;
			}
			else if (ratio < 1)	{												//	VERTICAL
				img1H = matrix;
				img1W = img1H * ratio;
			}
			else	{																			//	SQUARE
				img1W = img1H = matrix;
			}
			objImg1.width		= Math.round(img1W);
			objImg1.height	= Math.round(img1H);
			objImg1.src			= objImg0.src;
			previewPos();
		}

		//	GET FILE NAME
		function getFileName(strPath)	{
			return strPath.split("/")[strPath.split("/").length-1];
		}

		//	SET PREVIEW POSITION
		function previewPos()	{
			if (!showPrw) return previewHide();
			//	SET AREA
			adjL	= 20;
			adjT	= 25;
			AL	= 0;
			AT	= 0;
			AR	= 0;
			AB	= 0;
			mL	= 0;
			mT	= 0;
			mB	= 0;
			if (document.getElementById("header") != null) mT = document.getElementById("header").offsetHeight;
			if (document.getElementById("subMenu") != null) mT += document.getElementById("subMenu").offsetHeight;
			if (document.getElementById("copyR") != null) mB = document.getElementById("copyR").offsetHeight;
			if (document.getElementById("leftCol") != null) mL = document.getElementById("leftCol").offsetWidth;

			if (document.getElementById("box3") == null)	return;
			AL	= document.getElementById("box3").offsetLeft + mL;
			AT	= document.getElementById("box3").offsetTop + mT;
			AR	= document.getElementById("box3").offsetWidth + AL;
			AB	= document.getElementById("box3").offsetHeight + AT;

			status0 = "L" + AL + ":T" + AT + ":R" + AR + ":B" + AB;

			//	GET BOX POSITION
			boxH	= 0;
			boxW	= 0;

			if (document.getElementById("thumbPrw") == null)	return;
			boxW = document.getElementById("thumbPrw").offsetWidth;
			boxH = document.getElementById("thumbPrw").offsetHeight;

			boxL	= cursorX + adjL;						//	RIGHT OF THE CURSOR
			boxT	= cursorY - boxH + adjT;		//	TOP OF THE CURSOR
			boxR	= boxL + boxW;
			boxB	= boxT + boxH;

			//	REVERT POSITION
			boxLr = cursorX - adjL - boxW;			//	RIGHT OF THE CURSOR
			boxTr	= cursorY - boxH;							//	TOP OF THE CURSOR

			//status = status0 + " - L" + boxL + ":T" + boxT + ":R" + boxR + ":B" + boxB;

			//	CHECKIN POSITION
			if (boxL < AL) boxL = AL;
			if (boxR > AR) boxL = boxLr;
			if (boxT < AT) boxT = AT;
			if (boxB > AB) boxT = AB - boxH;

			//	PRVIEW BOX POSITION
			document.getElementById("thumbPrw").style.top	= boxT + "px";
			document.getElementById("thumbPrw").style.left = boxL + "px";

			document.getElementById("thumbPrw").style.visibility = "visible";
		}

		//	HIDE PREVIEW
		function previewHide()	{
			document.getElementById('thumbPrw').style.visibility = "hidden";
			/*
			if (!debug)	{
				document.getElementById("prwShow").style.display = "none";
				document.getElementById("prwLoad").style.display = "";
			}
			*/
			return;
		}

		//	PREVIEW LOADING ANIMATION
		function loadAni()	{
			if (typeof loadPObj != "object")	{
				loadPObj = document.getElementById("loadP");
				lCnt = 0;
			}
			if (loadPObj)	{
				if (lCnt > 6) lCnt = 0;
				if (lCnt == 0) loadPObj.innerHTML = "&nbsp;";
				if (lCnt == 1) loadPObj.innerHTML = ".";
				if (lCnt == 2) loadPObj.innerHTML = "...";
				if (lCnt == 3) loadPObj.innerHTML = ".....";
				if (lCnt == 4) loadPObj.innerHTML = ".......";
				if (lCnt == 5) loadPObj.innerHTML = ".........";
				if (lCnt == 6) loadPObj.innerHTML = "...........";
				lCnt++;
				window.setTimeout("loadAni()",250);
			}
		}
		//	******************************************************************************
	//-->

