// JavaScript Document
window.onload=function()
{
var title = window.location.pathname;
if (document.getElementById("ServicesList") == null) return;
var list = document.getElementById("ServicesList").getElementsByTagName("a");
for(i=0;i<list.length;i++)
{
	if(list[i].href.indexOf(title)>-1)
		{		
		list[i].style.color = "#1c8ff9";		
		}
}
}
function showLayer(id)
{
	document.getElementById(id).style.visibility = 'visible';
}

function hideLayer(id)
{
	document.getElementById(id).style.visibility = 'hidden';
	//window.setTimeout("hl('"+id+"')", 1500);
}

function hl(id)
{
	document.getElementById(id).style.visibility = 'hidden';
}

function showSubItems(Obj)
{
	var divID, divIndex;
	divIndex = Obj.selectedIndex + 1
	divID = "sub" + divIndex;
	hideAll();
	document.getElementById(divID).style.display = "";
	//alert(divID);
}

function hideAll()
{
	for(i=1;i<=8;i++)
	{
		document.getElementById("sub" + i).style.display = "none";
	}
}

function viewImage(img)
{
	window.open("ImageViewer.asp?img=" + img, "imgViewer", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=860,height=640").focus();
}

function viewImageWithdesc(img)
{
	window.open("homeViewer.asp?img=" + img, "imgViewer", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=860,height=800").focus();
}


function clearInit(objid)
{
	var obj
	obj = document.getElementById(objid)
	if (obj.value == "search appliedscienceint.com")
	{
		obj.value = "";
		obj.style.color = 'darkblue';
	}
}
function doInit(objid)
{
	var obj
	obj = document.getElementById(objid)
	if (obj.value == "")
	{
		obj.value = "search appliedscienceint.com";
		obj.style.color = '';
	}
}
function contactMe()
{
	window.open("contactForm.aspx", "contact", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=600,height=500").focus();
}

function gotoURL(url)
{
	window.location.href = url;
	
	
}

function gotoFURL(url)
{
	
	self.frames['content'].location.href = url;
}
