	// Javascript source page for SLDI index page

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

	// For this function to work, all collapsable divisions must be assigned the classname "collapse."
	// Non-collapsable divisions should never have this class name.
	
	function closeall()
	{
	var divref
	var cName
	var divs = document.getElementsByTagName('DIV');
	var numDivs = divs.length;
	for (var i = 0; i < numDivs; i++)
		{
		divref = divs.item(i);
		cName = divref.className
			if ( cName == 'collapse' )
			{
				divref.style.display = 'none';
			}
		}
	return;
	}

	/* For the following function to work, each collapsable DIV must have a unique ID */
	
	function showdiv(newheader, divname) 
	{
		//NOTE: divname must be passed through to show() unchanged
		//NOTE: show() resets opendiv, which is a global variable
		
		//Until showdiv() fires, this function only changes the color of the division header

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

	show(divname);
	return;
	}


	function show(divname)
	{
	var div_expand = document.getElementById(divname);
	var div_collapse
	
	if ( opendiv != "none" )
		{
		div_collapse = document.getElementById(opendiv);
		}

	if ( opendiv != divname ) //new division being opened
		{
		div_expand.style.display="block";

		if ( opendiv != "none" )
			{
			div_collapse.style.display = "none";
			}
			
		opendiv = divname;
		}
	
	else  // previsous division being closed
		{
			opendiv = "none";
			div_collapse.style.display = "none";
		}

		return;
	}
	
	function bright(aname)
	{
		fontcolor=aname.style.color;
		aname.style.color="red";
		return; 
	}

	function norm(aname) 
		 { aname.style.color=fontcolor }
	 

	function dim(aname)
	{
		fontcolor=aname.style.color;
		aname.style.color="gray";
		return
	}

	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; 
	}

        //show links at bottom of page
	 
	function showlinks(sCalledFrom)
	{
		var aTextLinks = new Array();
		var sLink, x, y=1;
		aTextLinks[0] = new Array(2);
		aTextLinks[0][0] = "Home Page";
		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/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/training.htm";
		aTextLinks[9] = new Array(2);
		aTextLinks[9][0] = "LeaderPerfect Institutes";
		aTextLinks[9][1] = "../institutes/leaderperfect-institutes.htm";
		aTextLinks[10] = new Array(2);
		aTextLinks[10][0] = "About Us";
		aTextLinks[10][1] = "aboutus/aboutus.htm";
		aTextLinks[11] = new Array(2);
		aTextLinks[11][0] = "Our Team";
		aTextLinks[11][1] = "aboutus/associates.htm";
		aTextLinks[12]= new Array(2);
		aTextLinks[12][0] = "FAQs";
		aTextLinks[12][1] = "faqs/faqs.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] = "Newsletter";
		aTextLinks[14][1] = "newsletter/newsletter.htm";
		aTextLinks[15] = new Array(2);
		aTextLinks[15][0] = "Trust-Centered Leadership";
		aTextLinks[15][1] = "leadership/tcl";
		aTextLinks[16] = new Array(2);
		aTextLinks[16][0] = "Non-Profits";
		aTextLinks[16][1] = "nonprofits/nonprofits.htm";
		aTextLinks[17] = new Array(2);
		aTextLinks[17][0] = "NLP";
		aTextLinks[17][1] = "nlp/nlp.htm";
		aTextLinks[18] = new Array(2);
		aTextLinks[18][0] = "Graves Systems";
		aTextLinks[18][1] = "graves/graves.htm";
		aTextLinks[19] = new Array(2);		
		aTextLinks[19][0] = "Site Map";
		aTextLinks[19][1] = "sitemap.htm";

		sLink = '<P CLASS="pagelinks">';
		document.write(sLink);

		for (x = 0; x < aTextLinks.length; x++)
		{
			if( aTextLinks[x][0] != sCalledFrom ) // Omit page called from
			{
				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 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, Inc.<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=textstring+'1-877-753-4685 (Toll Free)</span></P>';

	document.write(textstring);
	return;
	}


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

	document.write(textstring);
	return;
	}

		
        // Position mouseover images outside the viewing area, but ready for quicker loading

				 
	function loadaltimages()
	{
		var aAltImages = new Array();
		var sImage, x;
		document.write('<DIV ID="Altbuttons" CLASS="AltButtons">');

		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 showcopyright()
	{
	var textstring;
	textstring='<P CLASS="copyright"> Copyright 2001-2011, Strategic Leadership Development International, Inc., All Rights Reserved</P>'
	document.write(textstring);
	return;
	}

