/* -------------------------------------------------------------------------- */
/** 
 *    @fileoverview
 *       Automatic bind Alpha Image Loader.
 *       (for WinIE5.5-6.0)
 *
 *    @version rev012.2007-09-24
 *    @requires common.js
 *    @requires alphaImageLoader.htc
 */
/* -------------------------------------------------------------------------- */


/* -------------------- Settings -------------------- */

var BA_AILOADER_HTCOMPONENT_URI  = BA.url.cssDir + 'alphaImageLoader.htc';
var BA_AILOADER_TARGETNODE_CNAME = 'useAILoader';



/* -------------------- Main -------------------- */

(function () {
	if (typeof BA == 'object' && BA.ua.isDOMReady && 
	    BA.ua.isIE && BA.ua.revision >= 5.5 && BA.ua.revision < 7 && document.documentElement.runtimeStyle) {
		var cssText = '.${0} { behavior: url(${1}); visibility: hidden }';
		var sheet   = document.getStyleSheetsBA()[0];
		if (sheet) {
			sheet.addRuleBA(cssText.formatTextBA([BA_AILOADER_TARGETNODE_CNAME, BA_AILOADER_HTCOMPONENT_URI]));
		}
	}
})();

