var Ary=[];

// Format of Ary: ['Word to Replace','Link','Amazon Tracking Image']

Ary[0]=['Apache','http://www.amazon.com/gp/product/0596529945?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0596529945','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0596529945'];

Ary[1]=['Perl','http://www.amazon.com/gp/product/0596520107?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0596520107','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0596520107'];

Ary[2]=['Qmail','http://www.amazon.com/gp/product/1893115402?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1893115402','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=1893115402'];

Ary[3]=['Samba','http://www.amazon.com/gp/product/0596007698?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0596007698','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0596007698'];

Ary[4]=['Ubuntu','http://www.amazon.com/gp/product/0982099851?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0982099851','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0982099851'];

Ary[5]=['Fedora','http://www.amazon.com/gp/product/0470485043?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0470485043','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0470485043'];

Ary[6]=['Postfix','http://www.amazon.com/gp/product/1593270011?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1593270011','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=1593270011'];

Ary[7]=['Adobe','http://www.anrdoezrs.net/click-3755009-10401830','http://www.awltovhc.com/image-3755009-10401830'];

Ary[8]=['Toshiba','http://click.linksynergy.com/fs-bin/click?id=8yhc4wiTKxA&offerid=84864.10000292&type=3&subid=0','http://ad.linksynergy.com/fs-bin/show?id=8yhc4wiTKxA&bids=84864.10000292&type=3&subid=0'];

Ary[9]=['Portege','http://click.linksynergy.com/fs-bin/click?id=8yhc4wiTKxA&offerid=84864.10000184&type=3&subid=0','http://ad.linksynergy.com/fs-bin/show?id=8yhc4wiTKxA&bids=84864.10000184&type=3&subid=0'];

Ary[10]=['Tecra','http://click.linksynergy.com/fs-bin/click?id=8yhc4wiTKxA&offerid=84864.10000183&type=3&subid=0','http://ad.linksynergy.com/fs-bin/show?id=8yhc4wiTKxA&bids=84864.10000183&type=3&subid=0'];

Ary[11]=['MySQL','http://www.amazon.com/gp/product/0672329387?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0672329387','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0672329387'];

Ary[12]=['mysql','http://www.amazon.com/gp/product/0672329387?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0672329387','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0672329387'];

Ary[13]=['adobe','http://www.anrdoezrs.net/click-3755009-10401830','http://www.awltovhc.com/image-3755009-10401830'];

Ary[14]=['Comodo','http://click.linksynergy.com/fs-bin/click?id=8yhc4wiTKxA&offerid=188719.10000062&subid=0&type=4','http://ad.linksynergy.com/fs-bin/show?id=8yhc4wiTKxA&bids=188719.10000062&subid=0&type=4&gridnum=5'];

Ary[15]=['eFax','http://www.anrdoezrs.net/click-3731686-10451826','http://www.ftjcfx.com/image-3731686-10451826'];

Ary[16]=['efax','http://www.anrdoezrs.net/click-3731686-10451826','http://www.ftjcfx.com/image-3731686-10451826'];

Ary[17]=['Bash','http://www.amazon.com/gp/product/0596526784?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0596526784','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0596526784'];

Ary[18]=['bash','http://www.amazon.com/gp/product/0596526784?ie=UTF8&tag=pantek-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0596526784','http://www.assoc-amazon.com/e/ir?t=pantek-20&l=as2&o=1&a=0596526784'];








function zxcWords(zxcn,ary){

 var WAL=0;
 var zxcnu=zxcn.childNodes.length;

 // For every object (paragraph, link, etc) we come across
 for(var zxc0=0;zxc0<zxcnu;zxc0++) {

	var zxctxt=zxcn.firstChild.data;
	var zxcrn=zxcn.removeChild(zxcn.firstChild);

 
	// If it's not already a link object...
	if(zxcrn.nodeType==3&&zxcn.nodeName.toUpperCase()!='A'){
  
		// Split it into words 
		var zxcs=zxctxt.split(' ');
  
		// Process each word individually
 		for(var zxc1=0;zxc1<zxcs.length; zxc1++) {
				
			// ProcessedWord is the word we just processed, with a space afterwards
			var ProcessedWord=document.createTextNode(zxcs[zxc1]+' ');
			
			// Now let's look at every word and check to see if it matches our links
    			for (var NewLinkInfo=0;NewLinkInfo<ary.length;NewLinkInfo++){
				
				// If there is a Match...
     				if (zxcs[zxc1]==ary[NewLinkInfo][0]){

					// Create the new link
					
      					ProcessedWord=document.createElement('A');
					ProcessedWord.href=ary[NewLinkInfo][1];
					ProcessedWord.target="_NEW";
					ProcessedWord.appendChild(document.createTextNode(zxcs[zxc1]));

					// Create the Amazon tracking image from value entered in Ary
					var prodImg = new Image();
					prodImg.src = ary[NewLinkInfo][2];
					prodImg.width = "1";
					prodImg.height = "1";
					prodImg.border = "0";
					prodImg.style.margin = "0px !important";

					// Insert the Amazon tracking image
        				zxcn.appendChild(prodImg);
				}
			}

			// Place the ProcessedWord back on the page, link or no link
			zxcn.appendChild(ProcessedWord);

			// If ProcessedWord now has a link, add a space to fix formatting
			if (ProcessedWord.target=="_NEW") {
				var InsertSpace=document.createTextNode(' ');
				zxcn.appendChild(InsertSpace);
   			}

		// End For-loop - processing each non-link word individually
		}

	// End If-Loop - if object is not already a link object 
	}  

	// Else - if it is already a link....	

	else {
	
		// Move onto the next object
   		zxcWords(zxcrn,ary);
   		zxcn.appendChild(zxcrn);
  	}

 // End For-loop processing every object
 }

// End function
}


