
bbcjs.trace('<b style="color:Green">jst_win.js was included.</b>',2);new function(){var win=bbcjs.win={numWindows:0,open:function(url,width,height){var w,t,opts='';bbcjs.trace("Window open function called...",3);if(typeof(this.url)!="undefined")t=this;else t=new win.Window(url,width,height);if(typeof(url)=="undefined")url=t.url;for(var i in t.features){opts+=i+"="+t.features[i]+",";}
opts=opts.substring(0,opts.length-1);bbcjs.trace("Feature String is: <br /><b>"+opts+"</b>",4);bbcjs.trace("Opening new window for:<br />&nbsp;&nbsp;&nbsp;"+t.url,3);bbcjs.trace("&nbsp;&nbsp;&nbsp;Window name is: <b>"+t.name+"</b>",4);bbcjs.trace("Full window.open command:<br />window.open('"+t.url+"', '"+t.name+"', '"+opts+"', "+t.replace+")",5);w=window.open(url,t.name,opts,t.replace);if(w.focus)w.focus();t.openWindow=w;return w;}};win.Window=function(url,width,height){this.url=url;this.features={width:width,height:height,location:'no',scrollbars:'yes',fullscreen:'no',status:'yes',menubar:'no',toolbar:'no',directories:'no',resizable:'yes'};win.numWindows++;this.name='popwin_'+(win.numWindows);this.replace=false;this.openWindow=false;};win.Window.prototype.open=win.open;}();