﻿
var widgets = new Array("primer","footer","header","metascript","searchform","tracks","divider");
var chunks = new Array();
var snippet = new String('');
var strQ = new String(String.fromCharCode(39));

// push the address markup into the array
snippet+='<!-- prime the pump? -->';
chunks.push(snippet);
snippet='';

// push the footer markup into the array
snippet+='</div></td></tr></table><div id="footer-wrapper"><div id="footer"><span id="footer-left">';
snippet+='<a href="http://www.jccc.edu/" title="JCCC Home">Home</a> | <a href="mailto:webmaster@jccc.net?subject=Request for Website Assistance" title="Help">Help</a> | <a href="http://www.jccc.edu/home/depts/003100/site/desk_ref_toc/copyright_toc" title="Copyright">Copyright</a> | <a href="http://www.jccc.edu/home/accessibility" title="Accessibility">Accessibility</a> | <a href="http://www.jccc.edu/home/depts/003100/site/website/tocindex/siteprivacy" title="Privacy">Privacy</a> | <a href="http://www.jccc.edu/home/depts/003100/site/website/tocindex/siteuse" title="Terms of Use">Terms of Use</a></span>';
snippet+='Copyright 2008 &copy; Johnson County Community College<br/>12345 College Blvd., Overland Park, KS 66210-1299, 913-469-8500</div></div>';
snippet+='<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>';
snippet+='<script type="text/javascript">';
snippet+='_uacct = "UA-395939-6";';
snippet+='urchinTracker();';
snippet+='</script>';
chunks.push(snippet);
snippet='';
		
// push the header markup into the array
//snippet+='<map name="jccc-map" id="jccc-map">';
//snippet+='<area shape="rect" coords="0,0,1,1" href="#skipto" alt="skip navigation links" title="skip navigation links" />';
//snippet+='<area shape="rect" coords="0,0,185,40" href="http://www.jccc.edu/" alt="JCCC Home" title="JCCC Home" /></map>';
snippet+='<div id="header"><div id="header-left-logo">';
snippet+='<a href="http://www.jccc.edu/" title="JCCC Home">';
snippet+='<img src="http://www.jccc.edu/img/secondary/jccc.gif" width="146" height="40" id="jccc" alt="JCCC logo" /></a></div>';
snippet+='<div id="header-left"><img src="http://www.jccc.edu/img/home/information-for.gif" width="105" height="40" id="information-for" alt="Information for:" /></div>';
//snippet+='<a href="http://www.jccc.edu/home/depts" title="A-Z Index">A-Z Index</a><br />';
//snippet+='<a href="http://www.jccc.edu/home/site/welcome/maps" title="Maps">Maps</a><br />';
//snippet+='<a href="http://www.jccc.edu/home/site/contacts" title="Contacts">Contacts</a>';
snippet+='<div id="header-right"><span id="header-right-links">';
snippet+='<a href="http://www.jccc.edu/home/jump.php/header/visit" title="Arrange a campus visit and view calendar and news." class="">Visit</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.jccc.edu/home/jump.php/header/enroll" title="Enrollment information for credit and continuing education classes" class="">Enroll</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.jccc.edu/home/jump.php/header/classes" title="Credit and continuing education class schedules" class="">Classes</a><br/>';
snippet+='<a href="http://www.jccc.edu/home/jump.php/header/contacts" title="Contacts" class="">Contacts</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.jccc.edu/home/jump.php/header/azindex" title"A-Z Index" class="">A-Z Index</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.jccc.edu/home/jump.php/header/maps" title="Maps" class="">Maps</a></span>';
snippet+='<a href="http://my.jccc.edu/" title="MyJCCC"><img src="http://www.jccc.edu/img/home/myjccc.gif" width="129" height="40" id="myjccc" alt="MyJCCC" onmouseover=this.src="http://www.jccc.edu/img/home/myjccc_over.gif" onmouseout=this.src="http://www.jccc.edu/img/home/myjccc.gif" /></a></div></div><div id="stripe"></div>';
snippet+='<table id="content-wrapper" cellpadding="0" cellspacing="0"><tr><td id="left_sidebar">';
//snippet+='<map name="jcccinfo-map" id="jcccinfo-map">';
//snippet+='<area shape="rect" coords="101,33,146,53" href="http://www.jccc.edu/" alt="JCCC Home" title="JCCC Home" />';
//snippet+='<area shape="rect" coords="0,0,146,53" href="http://www.jccc.edu/home/site/contacts" alt="Contacts" title="Contacts" /></map>';
//snippet+='<img src="http://www.jccc.edu/img/secondary/jccc-info.gif" width="146" height="53" id="jcccinfo-image" alt="Johnson County Community College, 12345 College Blvd., Overland Park, KS 66210-1299, 913-469-8500" usemap="#jcccinfo-map" />';
//snippet+='<div id="jccc-info">Johnson County Community College<br />12345 College Blvd.<br />Overland Park, KS 66210-1299<br />	913-469-8500<br /></div>';
snippet+='<div id="left_sidebar-links"><br /><img src="http://www.jccc.edu/img/secondary/parent.gif" alt="Previous Section" width="13" height="13" />';
chunks.push(snippet);
snippet='';
		
// push the metascript markup into the array
chunks.push(snippet);
snippet='';

// push the search form markup into the array
snippet+='<br /><br /><form id="qf_form" action="http://www.jccc.edu/home/search.php" method="post">';
//snippet+='<input type="text" name="keywords" id="qf_text" size="11" maxlength="2047" value="Search" onfocus="clearField(this);" />';
//snippet+='<input name="searchForm" id="qf_submit" type="submit" value="go" /></form>';
snippet+='<input type="text" name="keywords" id="qf_text" size="11" maxlength="2047" onfocus="clearField(this); this.style.background=';
snippet+=strQ;
snippet+='white;" onblur="this.style.background=';
snippet+=strQ;
snippet+='url("http://www.jccc.edu/img/search-background.gif) no-repeat white';
snippet+=strQ;
snippet+=';" />';
snippet+='<input class="searchimage" type="image" src="http://www.jccc.edu/img/search-glass.jpg" width="20" height="16" value="go" alt="Search JCCC.edu"></form>';
chunks.push(snippet);
snippet='';

// push the tracks markup into the array
snippet+='</div></td><td id="center_content"><map name="tracks-map" id="tracks-map">';
snippet+='<area shape="rect" coords="0,0,114,21" href="http://www.jccc.edu/home/groups.php?which=1" alt="Future Students" title="Future Students" />';
snippet+='<area shape="rect" coords="114,0,237,21" href="http://www.jccc.edu/home/groups.php?which=2" alt="Current Students" title="Current Students" />';
snippet+='<area shape="rect" coords="237,0,350,21" href="http://www.jccc.edu/home/groups.php?which=3" alt="Faculty &amp; Staff" title="Faculty &amp; Staff" />';
snippet+='<area shape="rect" coords="350,0,500,21" href="http://www.jccc.edu/home/groups.php?which=4" alt="Continuing Education" title="Continuing Education" />';
snippet+='<area shape="rect" coords="500,0,628,21" href="http://www.jccc.edu/home/groups.php?which=5" alt="Friends &amp; Visitors" title="Friends &amp; Visitors" /></map>';
snippet+='<img src="http://www.jccc.edu/img/secondary/tracks.gif" width="628" height="22" id="tracks-image" alt="Tracks" usemap="#tracks-map" /><br />';
snippet+='<img src="http://www.jccc.edu/img/secondary/learning.jpg" alt="Learning comes first at JCCC." width="628" height="55" id="learning" />';
chunks.push(snippet);
snippet='';

// push the divider tag into the array
chunks.push('<img src="http://www.jccc.edu/img/secondary/divider.gif" width="628" height="1" id="divider" alt="Divider" /><br /><div id="center_content-middle-left" style="width: 600px">');

function jsInclude(strWhich) {
	var j = new Number(-1);
	for (i=0;i<chunks.length;i++) {
		if (widgets[i]==strWhich) { j=i }
	}
//	alert(strWhich+'='+j);
	document.write(chunks[j]);
	return true;
}

function makeHeadElement(arrG) {
	var newElement = new Object(document.createElement(arrG[0]));
	var rePlus = /\+/g;
	var reHex = /\%([\dA-F]{2})/gi;
//	alert(arrG.length);
	for (i=1;i<arrG.length;i++){
		arrPair = arrG[i].split('=');
		var strName = new String(arrPair[0]);
		var strVal = new String(arrPair[1]);
		strVal = strVal.replace(rePlus,' ');
		strVal = strVal.replace(reHex,function($1){return(String.fromCharCode(parseInt($1.substring(1,3),16)))});
		newElement.setAttribute(strName,strVal);
//		alert(newElement.getAttribute(strName).value);
	}
	var foo = document.documentElement.childNodes.item(0).appendChild(newElement);
	return true;
}

function clearField(searchField)
	{
		if (searchField.value == "Search")
		{
			searchField.value = "";
		}
	}

makeHeadElement(new Array('meta','http-equiv=Content-Language','content=en-us'));
makeHeadElement(new Array('meta','http-equiv=Content-Type','content=text/html;+charset%3DISO-8859-1'));
makeHeadElement(new Array('link','rel=home','title=Home','href=http://www.jccc.edu'));
makeHeadElement(new Array('link','href=http://www.jccc.edu/css/trueblue/global.css','rel=stylesheet','type=text/css','title=Site+Standard','media=screen,projector'));
makeHeadElement(new Array('link','href=http://web.jccc.edu/cds/js/special.css','rel=stylesheet','type=text/css','title=Site+Standard','media=all'));
makeHeadElement(new Array('link','href=http://www.jccc.edu/css/trueblue/print.css','rel=stylesheet','type=text/css','title=Site+Standard','media=print'));
makeHeadElement(new Array('link','href=http://www.jccc.edu/css/secondary.css','rel=stylesheet','type=text/css','title=Site+Standard','media=all'));
makeHeadElement(new Array('link','href=http://www.jccc.edu/css/tertiary.css','rel=stylesheet','type=text/css','title=Site+Standard','media=all'));
makeHeadElement(new Array('link','href=http://web.jccc.edu/cds/js/rogue.css','rel=stylesheet','type=text/css','title=Site+Standard','media=all'));
