<!--
// Make sure "href" values in your menu do not end with a "/" as in "http//www.mydomain.com/directory/"
// For help, read the article at: http://www.tjkdesign.com/articles/navigation_links_and_current_location.asp
function TJK_hank(){// v1.6 Copyright (c) 2006 TJKDesign - Thierry Koblentz
var zMenu = "TJK_nav";
var defaultPage = "default.asp";
var classToApply = "";
var leaveItAlone = "";
//***********************************************************************//
if (document.getElementById && document.createElement && document.getElementById(zMenu)){
// taking care of URLs with no document name (for example: "http://www.tjkdesign.com/")
var strLocation = (top.location.pathname.lastIndexOf("/")+1 == top.location.pathname.length) ? top.location.hostname + top.location.pathname+defaultPage : top.location.hostname + top.location.pathname;
var a = document.getElementById(zMenu).getElementsByTagName("a");
		for (var x=0,i=a.length;x<i;x++){
// check if there is a value (a class name) set for the "leaveItAlone" variable
		var nothingToDo = (a[x] && a[x].className && a[x].className==leaveItAlone) ? true : false;
// we are allowed to take care of this one, now we check for href value and for fake Anchors
			if (!nothingToDo && a[x] && a[x].href && a[x].href.lastIndexOf("#")+1!=a[x].href.length){
// we check if the document is included in the URL path or, if there is a perfect match in case there is no document name in the href value (for example: http://www.tjkdesign.com/articles/)
				if (a[x].href.indexOf(strLocation,0)>0 || a[x].href == top.location.protocol + "//" + top.location.hostname + top.location.pathname){
// if there is no value set for the "classToApply" variable we replace the anchor with an EM element
						if (classToApply==""){
							var objNode = a[x];
							var strLink = objNode.firstChild.data;
// This is a nice way to do it, but in NN6 and FF 0.8 ULs get duplicated, as "phantom lists"
//							var objLink = document.createElement('em');
//							objLink.appendChild(document.createTextNode(strLink));
//							objNode.parentNode.replaceChild(objLink,objNode);
// Not as nice as the above, but offers better browser support							
							objNode.parentNode.innerHTML="<em>"+strLink+"</em>";							
// there is a value set for the "classToApply" variable so we style the anchor instead of replacing it with an EM
						}else{
							a[x].className += " "+classToApply;
					}
				}
			}
		}
	}
}
//TJK_StaySTART
// Stay! v1.1.1 Copyright (c) 2006 TJKDesign - Thierry Koblentz 
document.write(unescape("%3Cscript%20type%3D%22text/javascript%22%3E%0A%3C%21--%0Avar%20zBrowser%20%3D%20%22%22%3B%0Afunction%20TJKforIE6Win%28%29%20%7BsetInterval%28%22TJKnoScrollIE6Win%28%29%22%2C%201%29%7D%3B%0Afunction%20TJKforIE5Win%28%29%20%7BsetInterval%28%22TJKnoScrollIE5Win%28%29%22%2C%201%29%7D%3B%0Afunction%20TJKforOthers%28%29%7B%0Aif%20%28%28typeof%20pageYOffset%20%21%3D%20%22undefined%22%29%20%26%26%20%28pageYOffset%20%3D%3D%200%29%29%7B%0Adocument.getElementById%28%22TJK_Wrapper%22%29.style.position%20%3D%20%22relative%22%3B%0Adocument.getElementById%28%22TJK_Fixed%22%29.style.position%20%3D%20%22fixed%22%3B%0A%7D%3B%7D%0Afunction%20TJKnoScrollIE5Win%28%29%7Bdocument.getElementById%28%22TJK_Fixed%22%29.style.top%20%3D%20document.body.scrollTop%20+%20%22px%22%7D%3B%0Afunction%20TJKnoScrollIE6Win%28%29%7Bdocument.getElementById%28%22TJK_Fixed%22%29.style.top%20%3D%20document.documentElement.scrollTop%20+%20%22px%22%7D%3B%0A//--%3E%0A%3C/script%3E%0A%3C%21--%5Bif%20lt%20IE%207%5D%3E%0A%3Cstyle%20type%3D%22text/css%22%3E%0A%23TJK_Wrapper%20%7Bposition%3Arelative%3Bheight%3A0%7D%0A%23TJK_Fixed%20%7Bz-index%3A3%3Bposition%3Aabsolute%3Bleft%3A0%3Btop%3A0%7D%0A%3C/style%3E%0A%3C%21%5Bendif%5D--%3E%0A%3C%21--%5Bif%20IE%205%5D%3E%0A%3Cscript%20type%3D%22text/javascript%22%3E%0A%3C%21--%0AzBrowser%20%3D%20%22ie5%22%3B%0A//--%3E%0A%3C/script%3E%0A%3C%21%5Bendif%5D--%3E%0A%3C%21--%5Bif%20IE%206%5D%3E%0A%3Cscript%20type%3D%22text/javascript%22%3E%0A%3C%21--%0AzBrowser%20%3D%20%22ie6%22%3B%0A//--%3E%0A%3C/script%3E%0A%3C%21%5Bendif%5D--%3E%0A%3Cscript%20type%3D%22text/javascript%22%3E%0A%3C%21--%0Afunction%20TJK_Stay%28%29%7B%0Aif%20%28zBrowser%20%3D%3D%20%22ie5%22%29%20TJKforIE5Win%28%29%3B%0Aif%20%28zBrowser%20%3D%3D%20%22ie6%22%29%20TJKforIE6Win%28%29%3B%0Aif%20%28zBrowser%20%3D%3D%20%22%22%29%20TJKforOthers%28%29%3B%0A%7D%0A//--%3E%0A%3C/script%3E%0A"));
//TJK_StayEND
// Copyright 2005 | Thierry Koblentz, www.TJKDesign.com
// v1.1 | www.TJKDesign.com
// use class "noPop" with anchors you want the script to ignore 
function TJKpop(){
	var e = document.getElementById("buy");
	if (e){var a=e.getElementsByTagName("a");
		for (var i=0;i<a.length;i++){
			if (a[i].getAttribute("href") != null && a[i].getAttribute("href").indexOf("https://") >= 0){
				a[i].title+=" (opens in new window)";
				a[i].target= "_blank";
			}else{
				a[i].target= "_top";
			}
		}
	}
}
//-->
