﻿// JavaScript Document

	function galSub(show, o, del, mo)
	{
		gst = document.getElementById("gs");
		o = document.getElementById("lin");
		//alert(o);
		if(show && o)
		{
			var t = l = 0;
			while(o.parentNode)
			{
				t += o.offsetTop;
				l += o.offsetLeft;
				o =  o.parentNode;
			}
			gst.rows[0].cells[0].style.display = (mo==1? "inline":"none");
			gst.rows[0].cells[2].style.display = (mo==2? "inline":"none");
			if(mo==1)
				gst.rows[0].cells[1].style.verticalAlign  = "top";
			gst.style.top = t+del[1];
			gst.style.left = l+del[2];
			gst.style.height = del[0];
			gst.style.visibility = "visible";
		}
		else
		{
			gst.style.top = gst.style.left = "0px";
			gst.style.visibility = "hidden";
		}
	}
