zapatec.js
Summary
Loads generic modules required for all widgets.
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(-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 '';
} ();
}
Zapatec.include = function(sSrc, sId) {
if (Zapatec.doNotInclude) {
return;
}
document.write('<script type="text/javascript" src="' +
sSrc + (typeof sId == 'string' ? '" id="' + sId : '') + '"></script>');
};
Zapatec.include(Zapatec.zapatecPath + 'utils.js', 'Zapatec.Utils');
Zapatec.include(Zapatec.zapatecPath + 'zpeventdriven.js', 'Zapatec.EventDriven');
Zapatec.include(Zapatec.zapatecPath + 'preloadimages.js', 'Zapatec.PreloadImages');
Zapatec.include(Zapatec.zapatecPath + 'stylesheet.js', 'Zapatec.StyleSheet');
Zapatec.include(Zapatec.zapatecPath + 'transport.js', 'Zapatec.Transport');
Zapatec.include(Zapatec.zapatecPath + 'zpdrag.js', 'Zapatec.Drag');
Zapatec.include(Zapatec.zapatecPath + 'zpwidget.js', 'Zapatec.Widget');
Documentation generated by
JSDoc on Thu Aug 16 12:18:39 2007