var isVisible=0;

function flip_visible()
{
	var classname="dop4"
	var alltags=document.getElementsByTagName("div")
	isVisible ^=1;
	for (i=0; i<alltags.length; i++)
	{
		switch (alltags[i].className)
		{
			case "dop4":
			case "dop5":
			case "dop7":
				alltags[i].style.visibility=isVisible ? "visible" : "hidden"
				break;

			case "dop3":
			{
/*				alltags[i].style.width = isVisible?360:660;
				alltags[i].style.left = isVisible?155:0;
*/
				alltags[i].style.width = isVisible?290:660;
				alltags[i].style.left = isVisible?220:0;
			}
		}

	}
	if (window.event) event.returnValue=false;
}

var g_PrevTop=0;
var g_zTopmost=100;
function flip_z(obj)
{
	if (obj.style.zIndex==g_zTopmost) // same layer, flip topmost/original
	{
		obj.style.zIndex=obj.style.zIndex0;
		return;
	}

	if (g_PrevTop)	// restore z-index
	{
		g_PrevTop.style.zIndex=g_PrevTop.style.zIndex0;
	}
	
	obj.style.zIndex0 = obj.style.zIndex;	 // store z-index
	obj.style.zIndex=g_zTopmost;			// set topmost
	g_PrevTop=obj;		// new topmost layer
	if (window.event) event.returnValue=false;
}

