var bspview=new Object();
bspview.init=function(){
var _1=document.getElementsByTagName("script");
for(var i=0;i<_1.length;i++){
if(_1[i].src.substr(_1[i].src.length-11,11)=="/_js/bsp.js"){
bspview.jsPath=_1[i].src.substr(0,_1[i].src.length-6);
break;
}
}
djConfig={parseOnLoad:true,afterOnLoad:true,isDebug:false,locale:"en-us",baseUrl:bspview.jsPath+"dojo/dojo/",addOnLoad:function(){
bspview.scriptLoad(bspview.jsPath+"dojo/dojo/dojo_bspview.js");
bspview.scriptLoad(bspview.jsPath+"bspview.js");
bspview.isScriptLoaded("window.bspview.viewDetails","window.dijit.layout.ContentPane");
}};
bspview.scriptLoad(bspview.jsPath+"dojo/dojo/dojo.js");
};
bspview.scriptLoad=function(_3){
var s=document.createElement("script");
s.type="text/javascript";
s.src=_3;
document.getElementsByTagName("head")[0].appendChild(s);
};
bspview.isScriptLoaded=function(_5,_6){
var _7=setInterval(function(){
if(dojo!==undefined&&dojo.eval(_5)&&dojo.eval(_6)){
clearInterval(_7);
setTimeout(function(){
bspview._addOnLoadLoaded=true;
bspview.addOnLoad();
},100);
}
},50);
};
bspview._addOnLoadArray=[];
bspview._addOnLoadLoaded=false;
bspview.addOnLoad=function(fn){
if(typeof (fn)==="function"){
bspview._addOnLoadArray.push(fn);
}
if(bspview._addOnLoadLoaded){
for(i=0;i<bspview._addOnLoadArray.length;i++){
bspview._addOnLoadArray[i]();
delete bspview._addOnLoadArray[i];
}
}
};
bspview.getUrlKeys=function(){
var _9=location.search.substr(1).split("&");
var _a=new Object();
for(i=0;i<_9.length;i++){
var _b=_9[i].split("=");
_a[_b[0]]=_b[1];
}
return _a;
};
bspview.maxlength=function(_c,e,_e){
var _f=_c.value;
if(e.ctrlKey||e.metaKey||e.altKey){
}else{
console.debug(e);
_f+=String.fromCharCode(e.charCode);
}
_c.value=_f.substring(0,_e);
return false;
};
if(bspview.getUrlKeys()["_design"]!=="inspect"){
var djConfig;
bspview.init();
}


