
/*
-------------------------------------------------------------------
Folder Link Script Version 1.0

 By Terry L. Coffee 

This script may only be used and distributed  with the 
written consent of Terry Coffee
 
The disclaimer must remain intact.

DISCLAIMER: Use this script with caution. 
The author takes no responsibility for data loss
resulting from the use of this script.
-------------------------------------------------------------------

INSTRUCTIONS - Read Before Using Script

Step 1
Configure the variables as indicated by the comments.
 
Step 2:
Add the following code to the <head> section of your login page: 

 <script src="linklist.js"></script> 
 <script src="folder.js"></script> 

Change "linklist.js" and "folder.js" to reflect the correct path to this script
file on your server. 
 
Step 3:
Add this code at the place you want on the web page to show:
 
<SCRIPT LANGUAGE="JavaScript">
Set_disclaimer();
</script>

This should be at the bottom of the page.
 
Step 4:
Upload this script and your html pages to the relevant directories
on your server.   

*/

/*
 ---------------------------------------------------------------------------------------------------------------------
		Global to the script
  -------------------------------------------------------------------------------------------------------------------
*/


/*
 ---------------------------------------------------------------------------------------------------------------------
            Links common to this file folder - used on every page in
		that folder.
  -------------------------------------------------------------------------------------------------------------------
*/


    function Related_Links_List ()
    {

    document.write('<Div CLASS="related_links">');

     document.write('<h2>Related pages at this site:</h2>');
     document.write('<UL class=feature>');

var total = related_link_array.length;

// var front = '<LI STYLE="list-style-image: url(../Graphics/Gifs/list/dollar.gif)">&nbsp;&nbsp;'
 var  front = '<LI>';

if (total == 0) { alert ('Array file missing or empty'); return false;}

	List_Item(0);  //  ------------  List the first link


	for (index=1;index<total - 1;index++) {
			List_Item(index);
	}


	List_Item(index);   //  ------------  List the last link

     document.write('</UL>');
     document.write('</div>');

return true
}

/*
 ---------------------------------------------------------------------------------------------------------------------
            List_Item(index)
  -------------------------------------------------------------------------------------------------------------------
*/



    function List_Item(index)
    {

	var  front = '<LI>';

		document.write(front+'<A href="'+related_link_array[index][1]+'" title = "'+related_link_array[index][2]+'" target=blank rel="nofollow">'+related_link_array[index][0]+'</a> - ' + related_link_array[index][3] + ' </li>');

    }


/*
 ---------------------------------------------------------------------------------------------------------------------
            Links common to this file folder - used on every page
		in the folder.
  -------------------------------------------------------------------------------------------------------------------
*/


    function Set_footer()
    {

     document.write(' ');
     document.write('<div id="folder_links">');
     document.write('<a name="Internal _Links">&nbsp;</a>');


     document.write('<HR>');
     document.write('<center>');
     document.write('<font face="MS Serif" size=2>');

var total = link_array.length;

if (total == 0) { alert ('Array file missing or empty'); return false;}

		document.write('<A href="'+link_array[0][1]+'" title = "'+link_array[0][2]+'">'+link_array[0][0]+'</A>&nbsp;  &#124;&nbsp;');

	for (index=1;index<total - 1;index++) {

		document.write('<A href="'+link_array[index][1]+'" title = "'+link_array[index][2]+'">'+link_array[index][0]+'</A>');
	      document.write('&nbsp;  &#124;&nbsp;');

	}

		document.write('<A href="'+link_array[index][1]+'" title = "'+link_array[index][2]+'">'+link_array[index][0]+'</A>');


     document.write('</font>');
     document.write('</center>');

     document.write('<hr>');


  document.write('<div id="footer">');


     Set_disclaimer();

     document.write('</div>');

return true


}

    function Set_links()
    {

     document.write('<font face="MS Serif" size=2>');

var total = link_array.length;

if (total == 0) { alert ('Array file missing or empty'); return false;}

		document.write('<A href="'+link_array[0][1]+'" title = "'+link_array[0][2]+'">'+link_array[0][0]+'</A>&nbsp;  &#124;&nbsp;');

	for (index=1;index<total - 1;index++) {

		document.write('<A href="'+link_array[index][1]+'" title = "'+link_array[index][2]+'">'+link_array[index][0]+'</A>');
	      document.write('&nbsp;  &#124;&nbsp;');

	}

		document.write('<A href="'+link_array[index][1]+'" title = "'+link_array[index][2]+'">'+link_array[index][0]+'</A>');


     document.write('</font>');

}


    function Set_disclaimer()
    {


     document.write('<h6>Best viewed 800 x 600</h6> ');

      document.write('<h6>');

	 cdate = new Date();

      document.write('<center>Except for quoted elements explicitly noted as being credited to another entity, this work is © '+cdate.getYear()+' by Ernie Matthews and Terry Coffee. All Rights Reserved.  Reproduction or sale of material appearing in this document, in whole or in part, in any medium, including electronic, CD-ROM, or database, packaged with any commercial product, or published in print, is forbidden without prior permission. This material may not be published, broadcast, rewritten, or redistributed. All websites outside of this site are third party offers, We are not responsible for their content or any agreements you make with them... Please Read All Webpages Carefully.   External links are provided for reference purposes. We are not responsible for the content of other external internet sites. Linking does not constitute our endorsement of the content of their Web sites or of their policies or products. </center>');

     document.write('</h6>');


}

/*
 ---------------------------------------------------------------------------------------------------------------------
            Google_Analytics Link common to this file folder - used on every page

		This must be installed at the bottom of the page

  -------------------------------------------------------------------------------------------------------------------
*/


    function Google_Analytics()
    {

	var uacct = "UA-776437-1";

     document.write('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> ');
     document.write('<script type="text/javascript">_uacct = "'+uacct+'";urchinTracker();</script> ');

}