var label_list = new Array();



var link_list = new Array();



var menu_alive = new Array(); // will contain a hash of top-level-id = number







var tout = 100;



var avoidLikePlague = false;



var browser = navigator.userAgent.toLowerCase();



var isNav = browser.indexOf("mozilla") != -1 && browser.indexOf("compatible") == -1;



var appVer = navigator.appVersion.toLowerCase();



var numAppVer = parseFloat(appVer);



if (isNav && numAppVer < 5) { avoidLikePlague = true; }







// About Us



var labels1 = new Array();



labels1[0] = "Company";



labels1[1] = "Contact";



labels1[2] = "Press Releases";



label_list["about"] = labels1;







var links1 = new Array();



links1[0] = "/about/company.html";



links1[1] = "/about/contact.html";



links1[2] = "/about/press.html";



link_list["about"] = links1;







// Products



var labels2 = new Array();



labels2[0] = "AS-200 SpectralShield<sup>TM</sup>";



labels2[1] = "AS-250 SpectralMon<sup>TM</sup>";



labels2[2] = "AS-410 MachineryAnalyzer";



labels2[3] = "AS-350 FleetMon<sup>TM</sup>";



labels2[4] = "AS-550 AltaMon<sup>TM</sup>";



labels2[5] = "AS-1050 FE Data Acquisition Frontend";



labels2[6] = "AS-1140 16 Channel Buffer Output";



labels2[7] = "AS-1220 Automated Impact Hammer";



label_list["products"] = labels2;







var links2 = new Array();



links2[0] = "/products/AS-200/AS-200.html";



links2[1] = "/products/AS-250/AS-250.html";



links2[2] = "/products/AS-410/AS-410.html";



links2[3] = "/products/AS-350/AS-350.html";



links2[4] = "/products/AS-550/AS-550.html";



links2[5] = "/products/AS-1050/AS-1050.html";



links2[6] = "/products/AS-1140/AS-1140.html";



links2[7] = "/products/AS-1220/AS-1220.html";



link_list["products"] = links2;







// Applications



var labels3 = new Array();



labels3[0] = "On-Line Machinery Monitoring Systems";



labels3[1] = "Production Line Test Systems";



labels3[2] = "Combustion Dynamic Monitoring Systems";



label_list["applications"] = labels3;







var links3 = new Array();



links3[0] = "/applications/machine-monitor/index.html";



links3[1] = "/applications/production-line/index.html";



links3[2] = "/applications/combustion-monitor/index.html";



link_list["applications"] = links3;







// Events



var labels4 = new Array();



labels4[0] = "Trade Shows";



labels4[1] = "Training";



label_list["events"] = labels4;







var links4 = new Array();



links4[0] = "/events/tradeshows.html";



links4[1] = "/events/training.html";



link_list["events"] = links4;







// Support



var labels5 = new Array();



labels5[0] = "Services";



labels5[1] = "Calibration";



label_list["support"] = labels5;







var links5 = new Array();



links5[0] = "/support/services.html";



links5[1] = "/support/calibration.html";



link_list["support"] = links5;







// load the menu divs



function loadDivs() {



  if (avoidLikePlague) { return false; }



  var counter = 0;



  for (topLevelId in label_list) {



    var thisLabels = label_list[topLevelId];



    var thisLinks = link_list[topLevelId];



    var numItems = thisLabels.length;



    document.write('<div onMouseover="incMenuAlive(\'' + topLevelId + '\')" onMouseout=" decMenuAlive(\'' + topLevelId + '\');hideOneDiv(\'' + topLevelId + '\');" id="menu_' + topLevelId + '" class="menudiv" style="visibility:hidden">');



    for (var i=0; i<numItems; i++) {



      if (i != 0) { document.write("<br>"); }



      document.write('<a class="menuitem" href="');



      document.write(thisLinks[i]);



      document.write('">');



      document.write(thisLabels[i] + '</a>');



    }



    document.write('</div>');



    menu_alive[topLevelId] = 1;



    counter += 1;



  }



}











function hideOneDiv(divid) {



  timerId = setTimeout("doHideOneDiv('" + divid + "')", tout);



}







function doHideOneDiv(divid) {



  if (menu_alive[divid] == 0) {



    menuOff(divid);



  }



}



 



function hideAllDivs() {



  timerId = setTimeout("doHideDivs()", tout);



}







function doHideDivs() {



  for (topLevelId in label_list) {



    if (menu_alive[topLevelId] == 0) {



      menuOff(topLevelId);



    }



  }



}







function incMenuAlive(menu_id) {



  menu_alive[menu_id] = 1;



}







function decMenuAlive(menu_id) {



  menu_alive[menu_id] = 0;



}











function imgOn(imgName) {

  if (document.images) {

    document.images[imgName].src = "/images/" + imgName + "_on.gif";

  }

}



function imgOff(imgName) {

  if (document.images) {

    document.images[imgName].src = "/images/" + imgName + "_off.gif";

  }

}



function menuOn(divid) {



  if (document.getElementById) {



    hideAllDivs();



    obj = document.getElementById("menu_" + divid);



    obj.style.visibility = "visible";



  }



}



function menuOff(divid) {



  if (document.getElementById) {



    obj = document.getElementById("menu_" + divid);



    obj.style.visibility = "hidden";



    incMenuAlive(divid);



  }



}



function newImage(arg) {

	if (document.images) {

		rslt = new Image();

		rslt.src = arg;

		return rslt;

	}

}



function changeImages() {

	if (document.images && (preloadFlag == true)) {

		for (var i=0; i<changeImages.arguments.length; i+=2) {

			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];

		}

	}

}



var preloadFlag = false;

function preloadImages() {

	if (document.images) {

		preloadFlag = true;

		init();

		timer();

	}

}



var main = new Array(

	"/images/main/main.gif",

	"/images/main/main_machinery.gif",

	"/images/main/main_combustion.gif",

	"/images/main/main_production.gif");

var tab_machinery = new Array(

	"/images/main/tab_machinery.gif",

	"/images/main/tab_machinery_over.gif",

	"/images/main/tab_machinery.gif",

	"/images/main/tab_machinery.gif");

var tab_combustion = new Array(

	"/images/main/tab_combustion.gif",

	"/images/main/tab_combustion.gif",

	"/images/main/tab_combustion_over.gif",

	"/images/main/tab_combustion.gif");

var tab_production = new Array(

	"/images/main/tab_production.gif",

	"/images/main/tab_production.gif",

	"/images/main/tab_production.gif",

	"/images/main/tab_production_over.gif");

var current = 0;

var timerID;



function init()

{

	if (!document.images) return



	document.images['main'].src = main[current];

	document.images['tab_machinery'].src = tab_machinery[current];

	document.images['tab_combustion'].src = tab_combustion[current];

	document.images['tab_production'].src = tab_production[current];



	current++;

	if(current == 4) current=0;

}



function pause()

{

	clearInterval(timerID);

}

function unpause()

{

	timer();

}

function timer()

{

	clearInterval(timerID);

	timerID=setInterval('init()',8000);

}

function mail_info()

{

	var addr;

	addr="mailto:";

	addr+="info";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_sales()

{

	var addr;

	addr="mailto:";

	addr+="sales";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_robert()

{

	var addr;

	addr="mailto:";

	addr+="rmihata";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_walt()

{

	var addr;

	addr="mailto:";

	addr+="wmihata";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_dbaggest()

{

	var addr;

	addr="mailto:";

	addr+="dbaggest";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_ddiplock()

{

	var addr;

	addr="mailto:";

	addr+="ddiplock";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_carla()

{

	var addr;

	addr="mailto:";

	addr+="callsopp";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



function mail_danette()

{

	var addr;

	addr="mailto:";

	addr+="dszymanski";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}


function mail_melissa()

{

	var addr;

	addr="mailto:";

	addr+="mhamm";

	addr+="@";

	addr+="altasol";

	addr+=".";

	addr+="com";

	open(addr);

}



// footers are different based how deep there links are to the root.

function write_footer()

{

	document.write('<tr><td height="1" align="center" bgcolor="#ffffff" colspan="3"></td></tr>');

	document.write('<tr><td height="10" align="center" bgcolor="#55739f" colspan="3"><font color="#FFFFFF">10915 Technology Place, San Diego, CA 92127,  877-258-2765, <a href=javascript:mail_sales()><font color="#FFFFFF">Email Us</font></a></font></td></tr>');

	document.write('<tr bgcolor="#ffffff"><td colspan="3" align="center">');

	document.write('<img src="images/spacer.gif" width="20" height="8"><a href="about/company.html">About Us</a><img src="images/spacer.gif" width="10" height="1">|<img src="images/spacer.gif" width="10" height="1"><a href="products/index.html">Products</a><img src="images/spacer.gif" width="10" height="1">|<img src="images/spacer.gif" width="10" height="1"><a href="applications/index.html">Applications</a><img src="images/spacer.gif" width="10" height="1">|<img src="images/spacer.gif" width="9" height="8"><a href="events/tradeshows.html">Events</a><img src="images/spacer.gif" width="10" height="1">|<img src="images/spacer.gif" width="10" height="1"><a href="support/services.html">Support</a><br>');

	document.write('<font color="#000000">Copyright © 2009 by Alta Solutions, Inc.</font></td></tr>');

}

function write_footer_one()

{

	document.write('<tr><td height="1" align="center" bgcolor="#ffffff" colspan="2"></td></tr>');

	document.write('<tr><td height="10" align="center" bgcolor="#55739f" colspan="2"><font color="#FFFFFF">10915 Technology Place, San Diego, CA 92127,  877-258-2765, <a href=javascript:mail_sales()><font color="#FFFFFF">Email Us</font></a></font></td></tr>');

	document.write('<tr bgcolor="#ffffff">');

	document.write('<td colspan="2" align="center">');

	document.write('<img src="../images/spacer.gif" width="20" height="8"><a href="../about/company.html">About Us</a><img src="../images/spacer.gif" width="10" height="1">|<img src="../images/spacer.gif" width="10" height="1"><a href="../products/index.html">Products</a><img src="../images/spacer.gif" width="10" height="1">|<img src="../images/spacer.gif" width="10" height="1"><a href="../applications/index.html">Applications</a><img src="../images/spacer.gif" width="10" height="1">|<img src="../images/spacer.gif" width="9" height="8"><a href="../events/tradeshows.html">Events</a><img src="../images/spacer.gif" width="10" height="1">|<img src="../images/spacer.gif" width="10" height="1"><a href="../support/services.html">Support</a><br>');

	document.write('<font color="#000000">Copyright © 2009 by Alta Solutions, Inc.</font></td></tr>');

}

function write_footer_two()

{

	document.write('<tr><td height="1" align="center" bgcolor="#ffffff" colspan="2"></td></tr>');

	document.write('<tr><td height="10" align="center" bgcolor="#55739f" colspan="2"><font color="#FFFFFF">10915 Technology Place, San Diego, CA 92127,  877-258-2765, <a href=javascript:mail_sales()><font color="#FFFFFF">Email Us</font></a></font></td></tr>');

	document.write('<tr bgcolor="#ffffff">');

	document.write('<td colspan="2" align="center">');

	document.write('<img src="../../images/spacer.gif" width="20" height="8"><a href="../../about/company.html">About Us</a><img src="../../images/spacer.gif" width="10" height="1">|<img src="../../images/spacer.gif" width="10" height="1"><a href="../../products/index.html">Products</a><img src="../../images/spacer.gif" width="10" height="1">|<img src="../../images/spacer.gif" width="10" height="1"><a href="../../applications/index.html">Applications</a><img src="../../images/spacer.gif" width="10" height="1">|<img src="../../images/spacer.gif" width="9" height="8"><a href="../../events/tradeshows.html">Events</a><img src="../../images/spacer.gif" width="10" height="1">|<img src="../../images/spacer.gif" width="10" height="1"><a href="../../support/services.html">Support</a><br>');

	document.write('<font color="#000000">Copyright © 2009 by Alta Solutions, Inc.</font></td></tr>');

}

function write_footer_three()

{

	document.write('<tr><td height="1" align="center" bgcolor="#ffffff" colspan="2"></td></tr>');

	document.write('<tr><td height="10" align="center" bgcolor="#55739f" colspan="2"><font color="#FFFFFF">10915 Technology Place, San Diego, CA 92127,  877-258-2765, <a href=javascript:mail_sales()><font color="#FFFFFF">Email Us</font></a></font></td></tr>');

	document.write('<tr bgcolor="#ffffff">');

	document.write('<td colspan="2" align="center">');

	document.write('<img src="../../../images/spacer.gif" width="20" height="8"><a href="../../../about/company.html">About Us</a><img src="../../../images/spacer.gif" width="10" height="1">|<img src="../../../images/spacer.gif" width="10" height="1"><a href="../../../products/index.html">Products</a><img src="../../../images/spacer.gif" width="10" height="1">|<img src="../../../images/spacer.gif" width="10" height="1"><a href="../../../applications/index.html">Applications</a><img src="../../../images/spacer.gif" width="10" height="1">|<img src="../../../images/spacer.gif" width="9" height="8"><a href="../../../events/tradeshows.html">Events</a><img src="../../../images/spacer.gif" width="10" height="1">|<img src="../../../images/spacer.gif" width="10" height="1"><a href="../../../support/services.html">Support</a><br>');

	document.write('<font color="#000000">Copyright © 2009 by Alta Solutions, Inc.</font></td></tr>');

}



/*<body onload="init()">

<img src="images/main/main_01.gif" name="mainimage" width=80 height=50 border=0>

*/









