<!--
var initialized = 0;
var pageLocation = "home";

// on body load tell the browser that all the stuff is loaded	
function init() {	initialized = 1;	}	


// detect browser and link style sheet
ie=document.all?1:0
n=document.layers?1:0
ns6=document.getElementById&&!document.all?1:0


if (n) {   document.writeln("<LINK HREF='../Styles/adiNetscapeStyle.css' REL=stylesheet>");	}
else {	document.writeln("<LINK HREF='../Styles/adiStyle.css' REL=stylesheet>");	}



// CACHE IMAGES
if (document.images) {
	// MAIN MENU IMAGES
	NavAbout = new Image();
	NavAbout.src =  "../images/NavAbout.gif";
	NavElectronicDiscovery = new Image();
	NavElectronicDiscovery.src =  "../images/NavElectronicDiscovery.gif";
	NavClient = new Image();
	NavClient.src =  "../images/NavClient.gif";
	NavNews = new Image();
	NavNews.src =  "../images/NavNews.gif";
	NavLibrary = new Image();
	NavLibrary.src =  "../images/NavLibrary.gif";
	NavBetterWay = new Image();
	NavBetterWay.src =  "../images/NavBetterWay.gif";
	NavContactUs = new Image();
	NavContactUs.src =  "../images/NavContactUs.gif";

	NavHome = new Image();
	NavHome.src =  "../images/NavHome.gif";
	NavSiteMap = new Image();
	NavSiteMap.src =  "../images/NavSiteMap.gif";
	backToTop = new Image();
	backToTop.src =  "../images/backToTop.gif";
	
	NavAbout_on = new Image();
	NavAbout_on.src =  "../images/NavAbout_on.gif";
	NavElectronicDiscovery_on = new Image();
	NavElectronicDiscovery_on.src =  "../images/NavElectronicDiscovery_on.gif";
	NavClient_on = new Image();
	NavClient_on.src =  "../images/NavClient_on.gif";
	NavNews_on = new Image();
	NavNews_on.src =  "../images/NavNews_on.gif";
	NavLibrary_on = new Image();
	NavLibrary_on.src =  "../images/NavLibrary_on.gif";
	NavBetterWay_on = new Image();
	NavBetterWay_on.src =  "../images/NavBetterWay_on.gif";
	NavContactUs_on = new Image();
	NavContactUs_on.src =  "../images/NavContactUs_on.gif";

	NavHome_on = new Image();
	NavHome_on.src =  "../images/NavHome_on.gif";
	NavSiteMap_on = new Image();
	NavSiteMap_on.src =  "../images/NavSiteMap_on.gif";
	backToTop_on = new Image();
	backToTop_on.src =  "../images/backToTop_on.gif";
	
	transpixel = new Image();
	transpixel.src = "../images/transpixel.gif";
	ddMenuBottom = new Image();
	ddMenuBottom.src = "../images/ddMenuBottom.gif";	
	ddMenuDots = new Image();
	ddMenuDots.src = "../images/ddMenuDots.gif";

	subscribeNow = new Image();
	subscribeNow.src =  "../images/subscribeNow.gif";
	subscribeNow_on = new Image();
	subscribeNow_on.src =  "../images/subscribeNow_on.gif";

	subscribeNow1 = new Image();
	subscribeNow1.src =  "../images/subscribeNow.gif";
	subscribeNow1_on = new Image();
	subscribeNow1_on.src =  "../images/subscribeNow_on.gif";	
	
	whiteArrow = new Image();
	whiteArrow.src =  "../images/whiteArrow.gif";
	redArrow = new Image();
	redArrow.src =  "../images/redArrow.gif";
	smGreyArrow = new Image();
	smGreyArrow.src =  "../images/smGreyArrow.gif";
	smRedArrow = new Image();
	smRedArrow.src =  "../images/smRedArrow.gif";
	redDownArrow = new Image();
	redDownArrow.src =  "../images/redDownArrow.gif";	
	whiteDownArrow = new Image();
	whiteDownArrow.src =  "../images/whiteDownArrow.gif";		
	
	emailThisIcon = new Image();
	emailThisIcon.src =  "../images/emailThisIcon.gif";	
	emailThisIcon_on = new Image();
	emailThisIcon_on.src =  "../images/emailThisIcon_on.gif";	
	
	printThisIcon = new Image();
	printThisIcon.src =  "../images/printThisIcon.gif";	
	printThisIcon_on = new Image();
	printThisIcon_on.src =  "../images/printThisIcon_on.gif";			
					
	
}

// NOTE: SubMenus for Netscape Commented out

var subMenus = new Array("NavAbout", "NavElectronicDiscovery", "NavLibrary", "NavClient", "NavNews", "NavBetterWay", "NavContactUs");
if (document.all) {	var subMenuLeft = new Array(266,329,405,459,531,566,566);	}
//if (document.layers) { var subMenuLeft = new Array(-383,-313,-106,13,115,202)}

// Get the width the of the inside of browser
function getInsideWindowWidth() {
		if (document.all) {	return document.body.clientWidth;	}
		if (document.layers) {	return window.innerWidth;	}
}

function imgOn(imageName) {
	if (initialized == 1) {
		if (document.images) {
			document[imageName].src = eval(imageName + "_on.src");	
		}
	// show the menu	
		if ((initialized == 1) && (document.all)) {
			showMenu(imageName); 		
		}
	}
}

function imgOff(imageName) {
	if ((document.images) && (imageName != pageLocation)) {
		document[imageName].src = eval(imageName + ".src");
	}	
	// turn off the last menu
	if ((initialized == 1) && (document.all)) {
		var lastMenu = (imageName + "_SubDiv")
		hideMenu(lastMenu);	
	}
}

function subOn(imageName) {	
	if (initialized == 1) {
	if (document.images) {
		document[imageName].src = eval(imageName + "_on.src");
		}
	}	
}

function subOff(imageName) {
	if (document.images) {
		document[imageName].src = eval(imageName + ".src");
	}
}

function showMenu(imageName) {
	for (i=0; i<7; i++) {
	if (subMenus[i] == imageName)	{
		var thisMenu = ((subMenus[i]) + "_SubDiv")
		if (document.all) {	document.all[thisMenu].style.left = (subMenuLeft[i]);
					// SK 04/26/2006 document.all[thisMenu].style.top = 49;
					document.all[thisMenu].style.top = 70; // SK new value to accommodate search bar
					document.all[thisMenu].style.visibility = "visible";	}

		if (document.layers) {  document[thisMenu].left = (subMenuLeft[i]);
					document[thisMenu].visibility = "show"; }	
		}
	}
}

function hideMenu(lastMenu)	{
		if (document.all) {	document.all[lastMenu].style.visibility = "hidden";	}
		if (document.layers) { 	document[lastMenu].visibility = 'hide';	}						
}


function swapTD(navTD) {	navTD.style.backgroundColor = '#666666';	}
function reswapTD(navTD) {	navTD.style.backgroundColor = '#000000';	}

function swapNav(navTD,thisLink,thisArrow) {	
									if (thisArrow == TOParrow) {
										thisArrow.src = "../images/whiteDownArrow.gif"
										}
									else	{
										thisArrow.src = "../images/whiteArrow.gif"
										}
									navTD.style.backgroundColor = '#999999';	
									thisLink.style.color = '#FFFFFF';					
						}
function reswapNav(navTD,thisLink,thisArrow) {	
									if (thisArrow == TOParrow) {
										thisArrow.src = "../images/redDownArrow.gif"
										}
									else	{
										thisArrow.src = "../images/redArrow.gif"
										}
									navTD.style.backgroundColor = '#FFFFFF';	
									thisLink.style.color = '#CC0033'; 								
						}

function swapSubNav(navTD,thisLink,thisArrow) {	
									thisArrow.src = "../images/smGreyArrow.gif"
									//navTD.style.backgroundColor = '#999999';	
									thisLink.style.color = '#999999';					
						}
function reswapSubNav(navTD,thisLink,thisArrow) {	
									thisArrow.src = "../images/smRedArrow.gif"
									//navTD.style.backgroundColor = '#FFFFFF';	
									thisLink.style.color = '#CC0033'; 								
						}						
						
function goTo(url) {	window.location = (url);	}


function NetscapeRefresh()	{
	if (document.layers) {
		// fix for Netscape resize bug. Upon resize of window, go back to url.
		window.location.href = window.location.href; 
	}
}


function launchWindow(href) {
	window.open(href, "new", "toolbar=0,location=0,directories=0,status=0, " + "menubar=0,scrollbars=1,resizable=1,width=420,height=500");
}	

function mailMe(Name) {
        var s1 = "mai";
        var s2 = "lto";
        var c1 = "applieddiscovery";
        var c2 = "com";
        window.location = s1 + s2 + ":" + Name + "@" + c1  + "." + c2;
}

	
//-->  
