//
//  Javascript functions for www.quicklogicpuzzles.com
//
//   Place the following within <head> </head> tags: 
//     <SCRIPT LANGUAGE="JavaScript" SRC="qlplegal.js"><!--  
//      [[separate line>>]]// -->  
//      [[separate line>>]]</script>
//



//  Function displayLegalNotice
//   Called from a web page at the spot where the legal notice is placed. 
//   Also the function displays the file name below the legal notice. 
//
function displayLegalNotice () 
{

// var pageURL = window.location.href;

var wlpname = window.location.pathname;
var pagename = wlpname.substring(wlpname.lastIndexOf('/') + 1); 

document.write('<strong>LEGAL NOTICE</strong>      <br>      &nbsp;&nbsp;&nbsp;&nbsp;The <strong>Quick Logic Puzzles</strong> presented on this web site in various forms are intended solely and exclusively for personal, non-commercial purposes. Such puzzles are <font size=\"1\"><strong>NOT</strong></font> in the public domain. Without explicit written consent, the puzzles are not to be posted, published, presented, distributed, contained, or collected in any print, electronic, digital, Internet, or other media formats, which may exist at present or later be developed. The puzzles are to be used specifically for an individual\'s private intellectual enjoyment -- and such enjoyment, intellectual or otherwise, is neither guaranteed nor explicitly or implicitly warrantied in any legal sense.  Quick Logic Puzzles are provided "as is."<br>     &nbsp;&nbsp;&nbsp;&nbsp;There is only one exception to the stated policy of personal use: it is permissible for educators to use the puzzles from &lt;<strong>QuickLogicPuzzles.com</strong></strong>&gt; for educational purposes in the classrooms of primary, secondary, and tertiary schools. Please keep the copyright information on any and all copies, facsimiles, or duplications of this site\'s material.      <br>     &nbsp;&nbsp;&nbsp;&nbsp;All rights not expressly granted herein for any and all material, text, content, puzzles, logos, and other items are reserved to R. W. Williams, the web site operator, designer, and registrant of &lt;<strong>QuickLogicPuzzles.com</strong>&gt;.  All other materials are coyrighted and/or trademarked by their respective organizations, companies, or other legal entities.       <br>      &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"contact.html\">Contact</a> me for the commercial use of <strong>Quick Logic Puzzles</strong> or for purposes not expressly granted in this legal notice. Thanks for reading the fine print.  ');

document.write("<br><br>[ Page's file name: " + pagename + " ]");

}
//  end of displayLegalNotice function 
// 

// <font size=\"1\" color=\"#FFFFFF\">....</font>
// &lt;<font size=\"1\" color=\"#FFFFFF\">.</font><strong>QuickLogicPuzzles.com
// </strong><font size=\"1\" color=\"#FFFFFF\">.</font>&gt; 

//
//

//  Function displayNavLinks
//   Called from a web page at the spot where the 
//     navigation liks are to be placed. 
//   A Finite State Machine is established via this function
//     and via the use of defined variables on each web page 
//     which calls this function. 
//   Each web page must contain the following within <head> </head>: 
//     <SCRIPT LANGUAGE="JavaScript"><!--  
//      [[separate line>>]]var pagenr = 1; // respective page number
//      [[separate line>>]]// -->  
//      [[separate line>>]]</script>
//
//   If a web page is not specifically listed in navigation links,
//     then the page must have this assigned: var pagenr == 0 
//

function displayNavLinks () {
// document.write('<font face="Arial,sans-serif" size="2" color="#000000">');

// if home page
if (pagenr == 1)
document.write('<strong>Home</strong>');
else 
document.write('<a href=\"index.html\">Home</a>');

// spacing btw links 
// document.write('<img src=\"images/1pix-000000.gif\" width=\"3\" height=\"3\" 
// border=\"0\" vspace=\"3\" hspace=\"8\">');
document.write('<img src=\"images/1pix-FFFFFF.gif\" width=\"3\" height=\"3\" border=\"0\" vspace=\"3\" hspace=\"8\">');

// if latest puzzle page
if (pagenr == 2)
document.write('<strong>Latest Puzzle</strong>');
else 
document.write('<a href=\"latest.html\">Latest Puzzle</a>');

// spacing btw links 
// document.write('<img src=\"images/1pix-000000.gif\" width=\"3\" height=\"3\" 
// border=\"0\" vspace=\"3\" hspace=\"8\">');
document.write('<img src=\"images/1pix-FFFFFF.gif\" width=\"3\" height=\"3\" border=\"0\" vspace=\"3\" hspace=\"8\">');

// if all puzzle page
if (pagenr == 3)
document.write('<strong>All Puzzles</strong>');
else
document.write('<a href=\"puzzles.html\">All Puzzles</a>');

// spacing btw links 
// document.write('<img src=\"images/1pix-000000.gif\" width=\"3\" height=\"3\" 
// border=\"0\" vspace=\"3\" hspace=\"8\">');
document.write('<img src=\"images/1pix-FFFFFF.gif\" width=\"3\" height=\"3\" border=\"0\" vspace=\"3\" hspace=\"8\">');

// if logic page
if (pagenr == 4)
document.write('<strong>Logic</strong>');
else
document.write('<a href=\"logicqlp.html\">Logic</a>');

// spacing btw links 
// document.write('<img src=\"images/1pix-000000.gif\" width=\"3\" height=\"3\" 
// border=\"0\" vspace=\"3\" hspace=\"8\">');
document.write('<img src=\"images/1pix-FFFFFF.gif\" width=\"3\" height=\"3\" border=\"0\" vspace=\"3\" hspace=\"8\">');

// if customized puzzles page
if (pagenr == 5)
document.write('<strong>Customized</strong>');
else
document.write('<a href=\"cpuzzles.html\">Customized</a>');

//spacing btw links 
// document.write('<img src=\"images/1pix-000000.gif\" width=\"3\" height=\"3\" 
// border=\"0\" vspace=\"3\" hspace=\"8\">');
document.write('<img src=\"images/1pix-FFFFFF.gif\" width=\"3\" height=\"3\" border=\"0\" vspace=\"3\" hspace=\"8\">');


// if contact page
if (pagenr == 6)
document.write('<strong>Contact</strong>');
else
document.write('<a href=\"contact.html\">Contact</a>');

// document.write('</font>');

} 
// end of displayNavLinks() function

//
// 

// Function deframe
//  Called from a web page at the spot where copyright is placed. 
//    &copy; 2004 R. W. <span onClick='javascript:deframe()'>Williams</span>
//
function deframe() {
	if (top != self) { 
		top.location = self.location; 
	} 
}
// End of deframe() function 
//
