zapatec-core.js
Summary
Defines Zapatec namespace.
Copyright (c) 2004-2006 by Zapatec, Inc.
http://www.zapatec.com
1700 MLK Way, Berkeley, California,
94709, U.S.A.
All rights reserved.
if (typeof Zapatec == 'undefined') {
Zapatec = function() {};
}
Zapatec.version = '07-01';
if (typeof Zapatec.zapatecPath == 'undefined') {
Zapatec.zapatecPath = function() {
if (document.documentElement) {
var aTokens = document.documentElement.innerHTML.match(
/<script[^>]+src="([^"]*zapatec(-core|-src)?.js[^"]*)"/i);
if (aTokens && aTokens.length >= 2) {
aTokens = aTokens[1].split('?');
aTokens = aTokens[0].split('/');
if (Array.prototype.pop) {
aTokens.pop();
} else {
aTokens.length -= 1;
}
return aTokens.length ? aTokens.join('/') + '/' : '';
}
}
return '';
} ();
}
Documentation generated by
JSDoc on Thu Aug 16 12:18:39 2007