/**
 * @name autoload-jquery.js
 * @description Autoloads jquery if it's not present.
 * @param (string) jqueryVersion in global scope.  ex: '1.4.3' 
 * @author mcn
 */
if (typeof jQuery == 'undefined') {  
	var jqueryVersion = typeof jqueryVersion == 'undefined' ? '1.4.3' : jqueryVersion;
	var jQuerySrcUrl  = 'https://ajax.googleapis.com/ajax/libs/jquery/' + jqueryVersion + '/jquery.min.js';
	var jqScript      = document.createElement('script');
	
	jqScript.setAttribute("type", "text/javascript");
	jqScript.setAttribute("src", jQuerySrcUrl);
	
	// appends element to above closing head tag at runtime
 	document.getElementsByTagName("head")[0].appendChild(jqScript);
}
