window.onload = function insertHyperlink() {
	if (document.getElementsByTagName) {			// check that UA understands this method
		if (document.getElementById) {  			// check that UA understands this method
		
			// one of two functions that create a faux hyperlink from this site to www.fwbo-files.com, including a Google specific rel="nofollow" attribute, just to be sure!
			
			// funtion one
			//function filesCitation() {
					if (document.getElementsByTagName("p")) {		// check that there's a <p>aragraph in the page	
					var $paragraph = document.getElementsByTagName("p");		//extract the <p>aragraphs				
					for (var $i2 = 0; $i2 < $paragraph.length; $i2++) {		// cycle through the <p>aragraphs
						var $switch = $paragraph[$i2].getElementsByTagName("span"); // extract any <span>s
						for (var $i3 = 0; $i3 < $switch.length; $i3++) {		// cycle through the <span>s
							if ($switch[$i3].className === "files") {			// check that the <span> in this cycle has a class="files"
								$reference = $switch[$i3];
								var $citation = $reference.getAttribute("title");		// extract the target page location from the <span>'s title attribute
								var $url = "http://fwbo-files.com/FWBOFiles/fwbofiles.htm" + $citation;		// create a full URL	
								var $link = document.createElement("a");			// cretae an <a>nchor
								$link.setAttribute("href",$url);		//attach an href atirbute to the <a>nchor
								$link.setAttribute("rel","nofollow");	//attach the Google prorietary attribut rel with a value of "nofollow" just in case Google ever gets around to executing JavaScript
								$link.setAttribute("title","This link is only approximate to the quoted paragraph");		// attach a title attribute cavet to the user
								var $cite = document.createElement("cite");		// enclose the reference to the FWBO Files in a <cite>
								var $opensquare = document.createTextNode("[ "); // square brackets to follow suit with the rest of the site's annotations
								var $closesquare = document.createTextNode(" ]");
								var $linktext = document.createTextNode("The FWBO Files");
								while ($reference.childNodes[0]) {			// cycle through the <span>'s children	
									$reference.removeChild($reference.childNodes[0]);		// delete the <span>'s original child nodes
								}
								$cite.appendChild($linktext);		// begin appending the components
								$link.appendChild($cite);
								$reference.appendChild($opensquare);
								$reference.appendChild($link);
								$reference.appendChild($closesquare); // finish
							}
						}
					}
				}
			//};	//function one ends
	
			//function two
			//function filesReference() {
				var $capture = document.getElementsByTagName("span");
				for (var $i = 0; $i < $capture.length; $i++) {
					if ($capture[$i].className === "hyperlink") {
				 		var $switch = $capture[$i];
				 		var $url= $switch.firstChild;
				 		var $test = document.createTextNode($url);
				 		$url2 = $url.nodeValue;
						var $href = "http://" + $url2 + "/";
						var $anchor = document.createElement("a");
						$anchor.setAttribute("href",$href);
						$anchor.setAttribute("rel","nofollow");
						while ($switch.childNodes[0]) {			// cycle through the <span> children	
							$switch.removeChild($switch.childNodes[0]);			// delete the child nodes
						}
						$switch.appendChild($anchor);
						$anchor.appendChild($url);
						}
					}		
				}	 	
			//}		//function two ends	
		}
	}
