function init() {

	var elSectionNavigationContent = document.getElementById("section-navigation-content");

	if (elSectionNavigationContent) {

		var elSectionNavigationUL = elSectionNavigationContent.getElementsByTagName("UL")[0];
	
		if (elSectionNavigationUL) {
		
			var elSectionNavigationLI = elSectionNavigationUL.getElementsByTagName("LI");
	
			for (var i=0; i < elSectionNavigationLI.length; i++) {
	
				var elSectionNavigationLIItem = elSectionNavigationLI[i];
	
				if (elSectionNavigationLIItem.parentNode == elSectionNavigationUL) {
					elSectionNavigationLIItem.className = "closed";
				}
	
				elSectionNavigationLIItem.onclick = function() {
	
					if (this.className.indexOf("open") > -1) {
						this.className = "closed";
					}
					else if (this.className.indexOf("closed") > -1) {
						this.className = "open";
					}
	
				}
	
			}
		}
	}

}

sfHover = function() { 
	var sfEls = document.getElementById("nav").getElementsByTagName("LI"); 
	
	for (var i=0; i<sfEls.length; i++) { 
		
		sfEls[i].onmouseover=function() { 
			this.className+=" sfHover";
		} 
		
		
		sfEls[i].onmouseout=function() { 
			this.className=this.className.replace(new RegExp(" sfHover\\b"), ""); 
		} 
		
	} 
} /*if (document.all&&document.getElementById) window.onload=sfHover;*/ 

if (window.attachEvent) window.attachEvent("onload", sfHover);


function messageValue() {
            
	var theURL = window.location.search;
             
	var URLSplit = theURL.split('=');   
        
	if (URLSplit.length > 1) {
            
		var requiredSplit = URLSplit[1];
		
		var theTextarea = document.getElementById('message');
            
		theTextarea.value = ("Card Code: " + requiredSplit + "\nPlease enter additional message (optional):\n");
                    
	} 
                
}
