var dd_,hb_=false,ax_=document,mp_=ax_.getElementsByTagName('head')[0],i7_=window;
var bpc={};

bpc.redirectFile='redirect.html';
bpc.enableOpera=false;

bpc.boot=function (){
	if(typeof (dd_)!='string'){
		var a$=document.getElementsByTagName('script'),b$,c$=0,d$,b__,e$=null;
		
		while(b$=a$[c$++]){
			d$=b$.getAttribute('src');
			if(d$){
				b__=d$.indexOf('bpc/boot.js');
				if(b__>-1){
					dd_=d$.substring(0,b__);
					break
				}
			}
		}

		if(typeof (dd_)!='string'){
			alert('Unable to read BPC path.\n Make sure you keep the \'bpc/boot.js\' in the src attribute of the script tag.');
			return
		}
	}
	
	var b$=ax_.createElement('script');
	b$.setAttribute('type','text/javascript');
	b$.setAttribute('src',dd_+(a2_.as_?'bpc/bpc_01.js':(a2_.dm_?'bpc/bpc_02.js':'bpc/bpc_03.js')));
	
	b$.onload=function (){
		v7_()
	};
	
	if(a2_.as_){
		b$.onreadystatechange=function (){
			if(this.readyState=='loaded'||this.readyState=='complete'){
				v7_()
			}
		}
	}

	mp_.appendChild(b$);
	b$=null
};

bpc.getVersion=function (){
	return '3.2-DEV (20061006-1523) STANDALONE'
};


var a2_={},kp_=navigator.userAgent.toLowerCase();
a2_.as_=ax_.all&&!kp_.match(/opera/)&&!navigator.appVersion.match(/mac/i);
a2_.dm_=i7_.controllers&&(parseInt(navigator.productSub)>20031101);
a2_.hc_=kp_.match(/opera[ \/][9]\./);
a2_.gk_=false;

if(a2_.as_){
	if(!window.XMLHttpRequest){
		XMLHttpRequest=function (){
			return new ActiveXObject('Microsoft.XMLHTTP')
		}
	}
}