

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------

//<span class='serhid'></span> for hidden text
var s = new Array();

s[0] = "Absolute Web Dev | James Richardson 2.0 Web 2.0 Developer| Web Tutorials, Forum, and Services^index.php^<p>Absolute Web Dev is for James Richardson, Web 2.0 Developer official Web Site. I am an experienced, Independent, Web designer and Web developer. This is a web tutorial and forum site designed to bring you all of the necessary elements required to build a professional and competitive web site. Please contact me if you have any questions or need my services for your web site.</p>^Web, developer, James, Richardson, 2.0, Independent, designer, Database, websites, Current, Events, Archive";

s[1] = "Absolute Web Dev | About^about.php^<p>This is the official Web Development site of James Richardson, Web 2.0 Developer. Thank You for visiting my site! Absolute Web Dev is about bringing to you all of the necessary elements needed for designing and developing quality and professional web sites.</p>^Overview, Purpose, Philosophy, Genesis, Mission, Statement, faq, docs, instructions. Free, Open, Source, ";

s[2] = "Absolute Web Dev | Tutorials^tutorials.php^<p>Welcome to the Absolute Web Dev tutorials page. All tutorials are made by request. If you need a tutorial, please email me with your request and I will create a tutorial that will fulfill your needs.</p>^Photoshop, DreamWeaver, Illustrator, PHP, HTML, XHTML, CSS, Database, SQL, Flash, Programing, Office, JavaScript, Design";

s[3] = "Absolute Web Dev | Forum^forum.php^<p>Welcome to Absolute Web Dev Forum. Feel free to Register and ask me a question about web development or, if you can answer or contribute to the aswering of someones question, feel free to respond. All listings are reviewed by me so please make your comments usefull. If you will, please leave links to related websites or other references that someone can go to for further information on a given subject. Thank you for your contribution to Absolute Web Devs Web Forum.</p>^Photoshop, DreamWeaver, Illustrator, PHP, HTML, XHTML, CSS, Database, SQL, Flash, Programing, Office, JavaScript, Design";

s[4] = "Absolute Web Dev | Services^services.php^<p>The services available at Absolute Web Dev website design, branding, programming, search engine optimization, marketing, and content management. Absolute Web Dev is committed to helping you raise your web site&rsquo;s design and development to a professional level quickly and increase your web sites traffic and profitability. Please Email me if you need work done on your web site and I can fit you into my schedule. My websites are constructed to accomodate people who are not knowledgable with web programming.</p>^ Website, Web, site, Design, brand, Branding, Program, Database, Implementation, Search, Engine, Optimization, SEO, Marketing, Strategies, Content, Management, Systems, managing, recognition, differentiation";

s[5] = "Absolute Web Dev | Portfolio^portfolio.php^<p>I have produced much more work than what is listed here; However, the following work is my most prevalent work. The most current posted Websites are at the beginning of the Website list. I currently use DreamWeaver for my code editor due to DreamWeaver&rsquo;s CSS capabilities. Previously, HomeSite was my primary web editor and TopStyle Lite was my CSS editor. I began my drawing and photo editing with FireWorks; But, now I use mostly Illustrator and PhotoShop for my photo editing. FireWorks is a great dynamic website coding tool and has recently replaced ImageReady as Abobe&rsquo;s primary dynamic web software program. I also included my hand drawing pictures to show my hand drawing skills. </p>^ Website, Websites, DreamWeaver, code, CSS, drawing, photo, editing, FireWorks, Illustrator, Photoshop, editing, dynamic, coding, ImageReady, Abobe, software, hand, skills, MySQL, portfolio, my, work, programming, art, references, drawings";


s[6] = "Absolute Web Dev | Contact^contact.php^<p>If you want to view my resume please email me and I will send you a link to my online resume. If you just need a copy of my resume in a text format, you can email me and tell me what format you need it in and I will send you a copy. If you have any further questions regarding my Services, don&rsquo;t hesitate to contact me as I am eager to work for you. If you wish to contact me be telephone, you will need to request that information via. Thank You for your interest in Absolute Web Dev&rsquo;s Services and have a great day.</p>^ faq, docs, instructions, contact, information, comments, webmaster";

s[7] = "Absolute Web Dev | Archive | Tutorial^archive.php?choice=tutorial_list^<p>This is the archive section for the tutorials.  This archive is listed at the most current tutorial.</p>^ ^Photoshop, DreamWeaver, Illustrator, PHP, HTML, XHTML, CSS, Database, SQL, Flash, Programing, Office, JavaScript, Design, tutorials, list";

s[8] = "Absolute Web Dev | Archive | current events^archive.php?choice=current_events^<p>This is the archive section for the current events.  This archive is listed at the most current current events.</p>^ ^current, event, list, archive";

s[9] = "Absolute Web Dev | Archive | discussion^archive.php?choice=discussion^<p>This is the archive section for the Forum.  This archive is listed at the most Forum Topic.</p>^ ^Photoshop, DreamWeaver, Illustrator, PHP, HTML, XHTML, CSS, Database, SQL, Flash, Programing, Office, JavaScript, Design, forum, topics, archive, list";


// ---------- end of script properties and sites ----------


var cookies = document.cookie;
var p = cookies.indexOf("d=");

if (p != -1) {
	var st = p + 2;
	var en = cookies.indexOf(";", st);
	if (en == -1) {
		en = cookies.length;
	}
	var d = cookies.substring(st, en);
	d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
	m = 1;
}

var r = new Array();
var co = 0;

if (m == 0) {
	var woin = new Array();
	var w = d.split(" ");
	for (var a = 0; a < w.length; a++) {
		woin[a] = 0;
		if (w[a].charAt(0) == '-') {
			woin[a] = 1;
		}
	}
	for (var a = 0; a < w.length; a++) {
		w[a] = w[a].replace(/^\-|^\+/gi, "");
	}
	a = 0;
	for (var c = 0; c < s.length; c++) {
		pa = 0;
		nh = 0;
		for (var i = 0; i < woin.length; i++) {
			if (woin[i] == 0) {
				nh++;
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa++;
				} else {
					pa = 0;
				}
			}
			if (woin[i] == 1) {
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa = 0;
				}
			}
		}
		if (pa == nh) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;
}

if (m == 1) {
	d = d.replace(/"/gi, "");
	var a = 0;
	var pat = new RegExp(d, "i");
	for (var c = 0; c < s.length; c++) {
		var rn = s[c].search(pat);
		if (rn >= 0) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;

}


function return_query() {
	document.jse_Form.d.value = od;
}

function num_jse() {
	document.write(co);
}

function out_jse() {
	if (co == 0) {
		document.write('<h3>Your search did not match any documents.  Make sure all keywords are spelt correctly. Try different or more general keywords. You may need to clear your cookies for this search to work.</h3>');
		return;
	}
	for (var a = 0; a < r.length; a++) {
		var os = r[a].split("^");
		if (bold == 1 && m == 1) {
			var br = "<b>" + d + "</b>";
			os[2] = os[2].replace(pat, br);
		}
		if (include_num == 1) {
			document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br />', os[2], '');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br />', os[2], '');
		}
	}

}
