/* 
Script Created by: Larry Daughenbaugh [ www.systemsynapse.com ] for Travel Sentry [ www.travelsentry.org ]
*/													
/* ******************************************************************************************************************* Show All Hidden Boxes */
function showSubNav(div,count) {			
		var i = 0;
  document.getElementById(div).style.display = "";
 	while(i < count) 	{
  		if(document.getElementById("snav" + i) != document.getElementById(div)) {
	   		document.getElementById("snav" + i).style.display = "none";
    }
    i++;
  }
}
function expandAll(plink,count) {			
  var i = 0;
  document.getElementById(plink).style.backgroundColor = "#999999";
 	while(i < count) 	{
	  	document.getElementById("box" + i).style.display = "";
    document.getElementById("abox" + i).style.backgroundColor = "";
    i++;
  }
}
function expandthis(div,plink,count) {			
  var i = 0;
  document.getElementById(div).style.display = "";
  document.getElementById(plink).style.backgroundColor = "#999999";
	 document.getElementById("aboxall").style.backgroundColor = "";
 	while(i < count) 	{
  		if(document.getElementById("box" + i) != document.getElementById(div)) {
	   		document.getElementById("box" + i).style.display = "none";
	   		document.getElementById("abox" + i).style.backgroundColor = "";
    }
    i++;
  }
}
function expandHelpTopic(div,plink) {			
  if(document.getElementById(div).style.display == "none")	{
    document.getElementById(div).style.display = "";
				document.getElementById(plink).style.backgroundImage = "url(/img/icon_minus_red.gif)";
  } else {
    document.getElementById(div).style.display = "none";
				document.getElementById(plink).style.backgroundImage = "url(/img/icon_plus_blue.gif)";
	 }
}
function expandHelpTopicAll(topicDiv, linkDiv) {			
  var i=0;
  while(document.getElementById(topicDiv + i)) {
    if (document.getElementById(topicDiv + i).style.display == "none") {
    document.getElementById(topicDiv + i).style.display = "";
				document.getElementById(linkDiv + i).style.backgroundImage = "url(/img/icon_minus_red.gif)";
    }
    i++;
  }
}
function closeHelpTopicAll(topicDiv, linkDiv) {			
  var i=0;
  while(document.getElementById(topicDiv + i)) {
    if (document.getElementById(topicDiv + i).style.display == "") {
    document.getElementById(topicDiv + i).style.display = "none";
				document.getElementById(linkDiv + i).style.backgroundImage = "url(/img/icon_plus_blue.gif)";
    }
    i++;
  }
}
/* ******************************************************************************************************************* Jump Menu for dropdown */
function MM_jumpMenu(targ,selObj,restore) {
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
