var bbcjs = {}; bbcjs.version = 1; bbcjs.cvs_version = "$Revision: 1.33 $"; bbcjs.build_date = '$Date: 2005/06/03 14:20:11 $'; bbcjs.page = location.href.split("/")[location.href.split("/").length-1]; bbcjs.onLoadArr = []; bbcjs.o2lvl = 0; bbcjs.o2cnt = 0; bbcjs.dhtml = (document.getElementById) ? true : false; bbcjs.defaultTraceLevel = 3; bbcjs.quietMode = false; bbcjs.activex = (typeof(window.ActiveXObject)!="undefined"); bbcjs.qs = location.search.substr(1,location.search.length); bbcjs.lib = {}; bbcjs.documentLoaded = false; if (navigator.userAgent.indexOf("Mac")>-1) bbcjs.activex = false; bbcjs.trace = function (str,lvl) { if (window.self != window.parent) { if ((typeof(window.parent.frames.tools)!="undefined") && typeof(window.parent.frames.tools.jsh_debug)!="undefined" ) { if (typeof(lvl)=="undefined") lvl = bbcjs.defaultTraceLevel; window.parent.frames.tools.jsh_debug(str,lvl); } } else if ( (!bbcjs.quietMode) && (lvl == 1) && (location.href.match(/wc\.bbc/))) { str = str.replace(/\
/g,"\n"); str = str.replace(/\<[a-zA-Z0-9\=\"_\-\' \/]+\>/g,""); alert("JSTools error (this will not appear on live):\n\n"+str); } } bbcjs.clearTraceWindow = function () { if (window.self != window.parent) { if ((typeof(window.parent.frames.tools)!="undefined") && typeof(window.parent.frames.tools.jsh_debug)!="undefined" ) { if (typeof(lvl)=="undefined") lvl = bbcjs.defaultTraceLevel; window.parent.frames.tools.jsh_reset(); } } } bbcjs.clearTraceWindow(); bbcjs.trace("Loaded url: "+bbcjs.page+"",2); bbcjs.trace('jst_core.js was included.',2); bbcjs.addOnLoadItem = function (str) { bbcjs.onLoadArr[bbcjs.onLoadArr.length] = str; window.onload = bbcjs.loadedHandler; } bbcjs.loadedHandler = function () { for (var i in bbcjs.onLoadArr) { eval(bbcjs.onLoadArr[i]); } } bbcjs.copyObj = function (o) { var t = {}; if (typeof(o.length)!="undefined") t = []; for (var i in o) { if (typeof(o[i])=="object") t[i] = bbcjs.copyObj(o[i]); else t[i] = o[i]; } return t; } bbcjs.obj2list = function(o,name,hide) { var str = ""; var c=0; var display = "none"; if (typeof(hide)!="undefined"){ if (!(hide)) display = "block";} else hide = true; if (typeof(name)=="undefined") name = "_root"; if (bbcjs.o2lvl==0) str+="\n"; return str; } bbcjs.o2swap = function (nn) { var node = document.getElementById("bbcjsnode_"+nn); if (node.style.display == "block") node.style.display = "none"; else node.style.display = "block"; return false; } bbcjs.HTMLOut = function (html) { return ""+html+""; } bbcjs.Module = function (name, v, cvs, bd) { this.name = name; this.version = v; this.cvs_version = cvs; this.build_date = bd; this.getDocs = function() { window.open("http://technet.wc.bbc.co.uk/software/js/findmod.xhtml?"+this.name); } } var CONST = {}; var GLOB = {}; bbcjs.addOnLoadItem("bbcjs.documentLoaded = true;");