var ALIB = {
	path: '', imported: {},
	require: function(l) {
		if (!(l in this.imported)) {
			if (l.indexOf('png') == -1) {document.write('<script type="text/javascript" src="'+this.path+'lib/'+(this.imported[l] = l).replace(/\./gi, '/')+'.js"></script>');} else {var ie6 = '<!--[if lt IE 7]><script type="text/javascript"';if ((l.match('fixmap')) == 'fixmap') ie6 += ' defer';ie6 += ' src="'+this.path+'lib/'+(this.imported[l] = l).replace(/\./gi, '/')+'.js"></script><![endif]-->';document.write(ie6);
			}}return this;
	},
	init: function() {
		for (var i=0, m=null, s=document.getElementsByTagName('script'); i<s.length; i++)
		   if (s[i].src.match(/(.*alib\/)core\.js(\?v=(.*))?/)) { 
		      this.path = RegExp.$1; 
		      this.version = RegExp.$3||1;
		      break;
		   }
		return this;
	},
	css: function(p, local, condition) {
        if (typeof condition == 'function' && !condition()) return;
        if (typeof p == 'string') document.writeln('<link rel="stylesheet" type="text/css" href="'+(local?this.path:'')+p+'"/>');
        else { 
			document.writeln('<style type="text/css">');
			for (var sel in p) document.writeln(sel+' {'+p[sel]+'}');
			document.writeln('</style>');
		}
	}
}.init();