var execZoom = false


//////////////////////////
function zoomEnable(aElem) 
//////////////////////////
{
	if (document.all||document.getElementById)
		{
    aElem.href = ""
		}
}

///////////////////////////////
function zoom(aUrl, aDex, aAut)
///////////////////////////////
{
if (!execZoom)
	{
	execZoom = true

	winPROPS = "status=NO,menubars=NO,toolbar=NO,resizable=NO,scrollbars=NO" 
  urlCONTENT = "showpic.asp?picUrl=" + aUrl + "&picDex=" + aDex + "&picAut=" + aAut
	window.open(urlCONTENT, "showpic", winPROPS)

	execZoom = false

	}
}

//////////////////////////
function mapEnable(aElem) 
//////////////////////////
{
	if (document.all||document.getElementById)
		{
    aElem.href = ""
		}
}

//////////////////////
function mapView(aUrl)
//////////////////////
{
if (!execZoom)
	{
	execZoom = true

	winPROPS = "status=NO,menubars=NO,toolbar=NO,resizable=NO,scrollbars=NO" 
  //urlCONTENT = "showpic.asp?picUrl=" + aUrl + "&picDex=" + aDex + "&picAut=" + aAut
	window.open(aUrl, "showpic", winPROPS)

	execZoom = false

	}
}


////////////////////////
function dlEnable(aElem) 
////////////////////////
{
	if (document.all||document.getElementById)
		{
    aElem.target = "_blank"
		}
}

////////////////////////
function tubeEnable(aElem) 
////////////////////////
{
	if (document.all||document.getElementById)
		{
    aElem.target = "_blank"
		}
}


///////////////////////////////////////////////
function tube(aUrl, aTubeID, aDex, aAut, aSize)
///////////////////////////////////////////////
{
if (!execZoom)
	{
	execZoom = true

	winPROPS = "status=NO,menubars=NO,toolbar=NO,resizable=NO,scrollbars=NO" 
  urlCONTENT = "showtube.asp?fileUrl=" + aUrl + "&tubeID=" + aTubeID + "&fileDex=" + aDex + "&fileAut=" + aAut + "&fileSize=" + aSize
	window.open(urlCONTENT, "showpic", winPROPS)

	execZoom = false

	}
}

///////////////////////////
function zoomNoResize(aUrl)
///////////////////////////
{
if (!execZoom)
	{
	execZoom = true
	alert("suka")
	winPROPS = "status=NO,menubars=NO,toolbar=NO,resizable=YES,scrollbars=YES" 
  urlCONTENT = "showpic.asp?noResize=true&picUrl=" + aUrl
	window.open(urlCONTENT, "showpic", winPROPS)

	execZoom = false

	}
}


/////////////////////////////////
function highlight(aElem, aColor)
/////////////////////////////////
{
	if (document.all||document.getElementById)
		{
		aElem.style.backgroundColor=aColor
		}
}

////////////////////////
function lowlight(aElem)
////////////////////////
{
	if (document.all||document.getElementById)
		{
		aElem.style.backgroundColor=""
		}
}

