
	// Javascript source for all SLDI non-index pages except newsletter issues

	var fontcolor
	var opendiv = "none"  // none must be a reserved name for div names
	var lastopened = "none"
	var openheader
	var hdrcolor_norm = "rgb(32,69,104)"
	var hdrcolor_open = "red"
	var dimcolor = "gray"
	var brightcolor = "red"

	function showdiv(newheader, divname) 
	{
		//NOTE: divname must be passed through to show() unchanged
		//NOTE: show() resets opendiv, which is a global variable

	if ( opendiv == "none" )  // no div expanded
		{ 
		newheader.style.color = hdrcolor_open;
		fontcolor = hdrcolor_open; // fire proper color for onmouseout
		openheader = newheader; // reset for next cycle
	  	}
	else		// a division is expanded
	 	{
		if ( opendiv == divname ) // only closing expanded div
	    		{
	  		newheader.style.color = hdrcolor_open;
			openheader.style.color = hdrcolor_norm;
			fontcolor = hdrcolor_norm; // fire proper color for onmouseout
			}
  		else		// closing expanded div, opening new one
    			{
			openheader.style.color = hdrcolor_norm;
			newheader.style.color = hdrcolor_open;
			fontcolor = hdrcolor_open; // fire proper color for onmouseout
			openheader = newheader;		  
	    		}
	  	}

	show(divname);
	return;
	}


	function closeall()
	{
	var divs = document.getElementsByTagName('DIV');
	var elements = divs.length;
	for (var i = 0; i < elements; i++)
		{
		var divStyle = divs.item(i);
		divStyle.style.display = 'none';
		}
	return;
	}

	function show(divname)
	{
	var element=document.getElementById(divname);
	closeall();
	if ( opendiv != divname ) //new division being opened
		{
		element.style.display='block';
		opendiv = divname;
		}
	else
		{
		opendiv = "none"; //open division being closed
		}
	return;
	}

	function bright(aname)
	{ 
		fontcolor=aname.style.color; 
		aname.style.color = brightcolor; 
		return; 
	}
	 
	function dim(aname)
	{
		fontcolor=aname.style.color;
		aname.style.color = dimcolor;
		return;
	}

	function norm(aname) 
		{ aname.style.color=fontcolor } 
	 
	function newbtn(cName) 
		{ document.images[cName].src="../graphics/"+cName+"1.gif" } 
	 
	function oldbtn(cName) 
		{ document.images[cName].src="../graphics/"+cName+".gif" } 
	 
	// hide email address from email-mining robots

	function email(address,domain,subject)
	{ 
		var hrefstring;
		var x=document.links.length-1; 
		hrefstring="mailto:"+address+"@"+domain;
		if ( subject != undefined )
			{
			hrefstring=hrefstring+"?Subject="+subject;
			}
		document.links[x].href=hrefstring;
		return; 
	}

   
	function showlinks(sCalledFrom) 
	{ 
		var aTextLinks=new Array(); 
		var sLink, x, y=1; 
		aTextLinks[0] = new Array(2);
		aTextLinks[0][0] = "Home";
		aTextLinks[0][1] = "../index.htm";
		aTextLinks[1] = new Array(2);
		aTextLinks[1][0] = "Why Choose SLDI";
		aTextLinks[1][1] = "../sldi/whysldi.htm";
		aTextLinks[2] = new Array(2);
		aTextLinks[2][0] = "Coaching";
		aTextLinks[2][1] = "../coaching/executive_coaching.htm";
		aTextLinks[3] = new Array(2);
		aTextLinks[3][0] = "Consulting";
		aTextLinks[3][1] = "../consulting/consulting.htm";
		aTextLinks[4] = new Array(2);
		aTextLinks[4][0] = "Mentoring";
 		aTextLinks[4][1] = "../mentoring/executive_mentoring.htm";
		aTextLinks[5] = new Array(2);
		aTextLinks[5][0] = "Team Building";
 		aTextLinks[5][1] = "../teambuilding/team_building.htm";
		aTextLinks[6] = new Array(2);
		aTextLinks[6][0] = "Keynoting";
 		aTextLinks[6][1] = "../keynoting/keynote_speaker.htm";
		aTextLinks[7] = new Array(2);
		aTextLinks[7][0] = "Facilitating";
 		aTextLinks[7][1] = "../facilitating/facilitating.htm";
		aTextLinks[8] = new Array(2);
		aTextLinks[8][0] = "Training";
 		aTextLinks[8][1] = "../training/leadership_training.htm";
		aTextLinks[9] = new Array(2);
		aTextLinks[9][0] = "About Us";
 		aTextLinks[9][1] = "../aboutus/aboutus.htm";
		aTextLinks[10] = new Array(2);
		aTextLinks[10][0] = "Our Team";
		aTextLinks[10][1] = "../aboutus/associates.htm";
		aTextLinks[11] = new Array(2);
		aTextLinks[11][0] = "FAQs";
		aTextLinks[11][1] = "../faqs/faqs.htm";
		aTextLinks[12] = new Array(2);
		aTextLinks[12][0] = "Newsletter";
 		aTextLinks[12][1] = "../newsletter/newsletter.htm";
		aTextLinks[13] = new Array(2);
		aTextLinks[13][0] = "Mike's Blog";
		aTextLinks[13][1] = "../blog/leaderperfect.htm";
		aTextLinks[14] = new Array(2);
		aTextLinks[14][0] = "Trust-Centered Leadership";
		aTextLinks[14][1] = "../leadership/tcl.htm";
		aTextLinks[15] = new Array(2); 
		aTextLinks[15][0] = "Non-Profits";
		aTextLinks[15][1] = "../nonprofits/nonprofits.htm";
		aTextLinks[16] = new Array(2);
		aTextLinks[16][0] = "NLP";
		aTextLinks[16][1] = "../nlp/nlp.htm";
		aTextLinks[17] = new Array(2);
		aTextLinks[17][0] = "Graves Systems";
		aTextLinks[17][1] = "../graves/graves.htm";
		aTextLinks[18] = new Array(2);
		aTextLinks[18][0] = "Site Map";
		aTextLinks[18][1] = "../sitemap.htm";

		sLink='<P CLASS="pagelinks">'; 
		document.write(sLink); 
		
		for (x=0; x < aTextLinks.length; x++) 
		{
			if ( aTextLinks[x][0] != sCalledFrom )	// Omit calling page from list	
			{ 
				sLink=' <a  class="footer" href="'+aTextLinks[x][1]+'" ONMOUSEOVER="bright(this)"'; 
				sLink=sLink+' ONMOUSEOUT="norm(this)">'+aTextLinks[x][0]+ '<\/A>'; 
				document.write(sLink); 

				if ( y==5 || y==11) // allow only six links per line 
					document.write("<BR>"); 
				else 
				{ 
					if (x != aTextLinks.length-1) 
						document.write(" |"); 
				} 
				y = y + 1;
			} 
		}		
		document.write("<\/P>"); 
		return; 
	} 
		
	function loadaltimages() 
	{ 
		var aAltImages=new Array();
		var sImage, x;
		document.write('<DIV ID="Altbuttons" CLASS="AltButtons">');
		aAltImages[0]="../graphics/btnhome1.gif";
		aAltImages[1]="../graphics/btncoaching1.gif";
		aAltImages[2]="../graphics/btnmentoring1.gif";
		aAltImages[3]="../graphics/btnconsulting1.gif";
		aAltImages[4]="../graphics/btnfacilitating1.gif";
		aAltImages[5]="../graphics/btntraining1.gif";
		aAltImages[6]="../graphics/btnkeynoting1.gif";
		aAltImages[7]="../graphics/btnaboutus1.gif";
		aAltImages[8]="../graphics/btnourteam1.gif";
		aAltImages[9]="../graphics/btnwhysldi1.gif";
		aAltImages[10]="../graphics/btnfaqs1.gif";
		aAltImages[11]="../graphics/btnclients1.gif";
		aAltImages[12]="../graphics/btnblog1.gif";
		aAltImages[13]="../graphics/btnnewsletter1.gif";
		aAltImages[14]="../graphics/btnclients1.gif";
 		aAltImages[15]="../graphics/btnsitemap1.gif";
		aAltImages[16]="../graphics/btnnonprofits1.gif";
		aAltImages[17]="../graphics/btnnlp1.gif";
		aAltImages[18]="../graphics/btntcl1.gif";
		aAltImages[19]="../graphics/btngraves1.gif";
		
	for (x=0; x < aAltImages.length-1; x++ ) 
	{ 
		sImage='<IMG SRC="'+aAltImages[x]+'">'; 
		document.write(sImage); 
	} 
		document.write("<\/DIV>"); 
		return; 
	} 
	

	function showaddress()
	{
	var textstring;
	textstring='<P STYLE="font-family: arial,helvetica,sans-serif; font-size: 14pt; font-weight: bold; text-align: center; color: #ffff33">';
	textstring=textstring+'Strategic Leadership Development International<BR>';
	textstring=textstring+'<span STYLE="font-size: .6em; font-weight: bold; color: lightblue">';
	textstring=textstring+'Office: 12700 Preston Road, Suite 285, Dallas, Texas 75230<BR>';
	textstring=textstring+'Mail: PO Box 595609&nbsp;Dallas, Texas 75359&nbsp;&nbsp;&nbsp;214-515-0632 (Voice) ';
	textstring=textstring+'&nbsp;214-515-9323 (Fax),BR>';
	textstring=teststring+'1-877-753-4685 (Toll Free)</span></P>';
	}


	function showcopyright()
	{
	var textstring;
	textstring='<P CLASS="copyright"> Copyright 2001-2010, MCA Professional Services Group, LLC, All Rights Reserved</P>'
	document.write(textstring);
	return;
	}


	function showsldi()
	{
	var textstring;
	textstring='<span STYLE="font-family: arial,helvetica,sans-serif; font-size: 1.2em">';
	textstring=textstring+'Strategic Leadership Development International</span><BR>';

	document.write(textstring);
	return;
	}