// JavaScript Document

//Preload all images
if (document.images)
{
  pic1= new Image(9,15); 
  pic1.src="http://www.myhurlburt.com/images/left_tab.gif"; 
  
  pic2= new Image(9,15); 
  pic2.src="http://www.myhurlburt.com/images/left_tab_hover.gif"; 
  
  pic3= new Image(9,15); 
  pic3.src="http://www.myhurlburt.com/images/right_tab.gif"; 
  
  pic4= new Image(9,15); 
  pic4.src="http://www.myhurlburt.com/images/right_tab_hover.gif"; 
}

// Function that is called by the onclick command within the anchor tag
function LinkAlert ()
{
//The alert windon and the text that will appear is quoted \n makes a new line
alert ("Contents of the 1st Special Operations Force Support Squadron website are not necessarily the official views of, or endorsed by, the U.S. Government, the Department of Defense, the Department of the Air Force, or 1st Special Operation Force Support Squadron.");
}

// Function that is called by the onclick command within the anchor tag
function LeavingSite ()
{
//The alert windon and the text that will appear is quoted \n makes a new line
alert ("You are leaving 1st Special Operations Force Support Squadron public web site. The appearance of hyperlinks does not constitute endorsement by the U.S. Air Force of this Web site or the information, products, or services contained therein. For other than authorized activities such as military exchanges and morale, welfare and recreation sites, the U.S. Air Force does not exercise any editorial control over the information you may find at these locations. Such links are provided consistent with the stated purpose of this DoD Web Site.");
}

// Function that is called by the onclick command within the anchor tag
function CalendarNotice ()
{
//The alert windon and the text that will appear is quoted \n makes a new line
alert ("See calendar of events on page 10 of the Marlin Monthly.");
}

//Function to show/hide elements
function showHide(shID) {
	if (document.getElementById(shID)) {
		if (document.getElementById(shID+'-show').style.display != 'none') {
			document.getElementById(shID+'-show').style.display = 'none';
			document.getElementById(shID).style.display = 'block';
		}
		else {
			document.getElementById(shID+'-show').style.display = 'inline';
			document.getElementById(shID).style.display = 'none';
		}
	}
}




