 /** bbcws library v1.11 */var bbcws = {name:"bbcws",dom:false};bbcws.Client=function(){if(document.getElementById){bbcws.dom={};bbcws.dom.w3c=true;}else {bbcws.dom.w3c=false;}// test for Error - a 'true' JavaScript 1.5 piece of functionality - Mac IE5 will return undefined for this.	if(!window.Error){window.Error="error";}if(window.Error != "error"){bbcws.true1_5=true;}else{bbcws.true1_5=false;}bbcws.global={};bbcws.global.platform="other";if(navigator.appVersion.indexOf("Windows") != -1){bbcws.global.platform="Windows";}if(window.ActiveXObject){bbcws.global.hasActiveX = true;}}// make a client object in order to set global bbcws vars...bbcws.clnt=new bbcws.Client();bbcws.hasActiveX=function(){if(bbcws.global.hasActiveX){return true;}return false;}bbcws.hasDOM=function(){if(bbcws.dom){return true;}return false;}bbcws.isW3C=function(){if(bbcws.dom.w3c){return true;}return false;}bbcws.getPlatform=function(){return bbcws.global.platform;}bbcws.getDomain=function(){return document.domain;}bbcws.getURL=function(){return window.location.href;}function trace(){};bbcws.HTML=function(){}bbcws.HTML.prototype=bbcws;bbcws.html=new bbcws.HTML();bbcws.HTML.Flash=function(){this.requiredVersion=7;this.maxVersion=-1;this.actualVersion=0; this.hasRightVersion=false;this.jsVersion = 1.0;this.path="";this.getString="str"this.flVersion="00008";this.flName="dev";this.flColor = "#FFFFFF";this.flWidth = "300";this.flHeight = "220";this.flQuality = "high";this.flScale = "noscale";this.flSalign = "tl";this.flGetFlashPlayerURL="http://www.adobe.com/products/flashplayer/";this.noFlashContent='<table cellspacing="0" cellpadding="0" border="0" width="352">'		+ '<tr>'		+ '<td>'		+ '<table cellspacing="1" cellpadding="30" border="0" bgcolor="#cccccc" width="100%" height="33">'		+ '<tr>'		+ '<td bgcolor="#fafafa"><div style="font-family : Verdana; color : #666666; font-size : 12px;"><span style="font-family : Verdana; color : #333333; font-size : 18px; font-weight : 800;"><strong>Flash plug-in required</strong></span>'		+ '<P>To view the advanced features of this page you need to have the Macromedia Flash plugin installed on your system.'		+ '<P>The file is 466k in size and will take approximately 2 minutes to download with a 56k modem.'		+ '<P><a target="_blank" href="http://www.macromedia.com/software/flashplayer/"><b>Click here to download the Flash plugin from the Macromedia website</b></a></div></td>'		+ '</tr>'		+ '</table></td>'		+ '</tr>'		+ '</table>';}bbcws.HTML.Flash.prototype=bbcws;bbcws.HTML.Flash.prototype.placeMovie=function(obj){var arr=['requiredVersion','maxVersion','jsVersion','path','getString','flVersion','flName','flColor','flWidth','flHeight','flQuality','flScale','flSalign','flGetFlashPlayerURL','noFlashContent'];if(obj){for(var i=0;i<arr.length;i++){if(obj[arr[i]]){this[arr[i]]=obj[arr[i]];}}}this.detectSettings();document.write(this.doPlace());}bbcws.HTML.Flash.prototype.detectSettings=function(){// if user of api doesn't set a max version, set it to 10 as a default...if(this.maxVersion==-1){this.maxVersion=10;}if(this.hasActiveX()&&this.getPlatform()=="Windows"){	var mv=this.maxVersion;	var i=2;	while(i<=mv){		if(this.getversion(i)){this.actualVersion=i;}		i++;		}	}if(navigator.plugins){	if(navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]){		var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";		var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;		var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));		var i=2;		while(i<=this.maxVersion){if(flashVersion==i){this.actualVersion=i}i++;}		if(flashVersion>=this.maxVersion){this.actualVersion=this.maxVersion;}		}	}	if(navigator.userAgent.indexOf("WebTV") != -1){this.actualVersion=3;}if(this.actualVersion>=this.requiredVersion){this.hasRightVersion=true;}}bbcws.HTML.Flash.prototype.doPlace=function(){var last=this.path.substring((this.path.length-1));if(last!="/"&&last!=""){this.path+="/";}this.url=this.path+""+this.flName;if(this.hasRightVersion){return this.rightVersion();}else{return this.wrongVersion();}}bbcws.HTML.Flash.prototype.wrongVersion=function(){return this.noFlashContent;}bbcws.HTML.Flash.prototype.rightVersion=function(){var content='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' 	+ this.flWidth 	+ '" HEIGHT="' 	+ this.flHeight 	+ '" id="Untitled-1" ALIGN="">'	+ '<PARAM NAME=movie VALUE="' 	+ this.url 	+ '"><PARAM NAME=flashvars VALUE="' 	+ this.getString 	+ '"><PARAM NAME=base VALUE="' 	+ this.path 	+ 'v_' 	+ this.flVersion 	+ '/swf"><PARAM NAME=quality VALUE="' 	+ this.flQuality 	+ '"><PARAM NAME=bgcolor VALUE="' 	+ this.flColor 	+ '"><PARAM NAME=menu value=false /><param name="allowScriptAccess" value="sameDomain" /><PARAM NAME="scale" value="' 	+ this.flScale 	+ '" /><PARAM NAME="salign" value="' 	+ this.flSalign 	+ '" />'	+ '<EMBED src="' 	+ this.url 	+ '" flashvars="' 	+ this.getString 	+ '" base="' 	+ this.path 	+ 'v_' 	+ this.flVersion 	+ '/swf" quality="' 	+ this.flQuality 	+ '" scale="' 	+ this.flScale 	+ '" salign="' 	+ this.flSalign 	+ '" bgcolor="' 	+ this.flColor 	+ '" WIDTH="' 	+ this.flWidth 	+ '" HEIGHT="' 	+ this.flHeight 	+ '" MENU="false" allowScriptAccess="sameDomain" NAME="Untitled-1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="'	+ this.flGetFlashPlayerURL	+ '"></EMBED>'	+ '</OBJECT>';return content;}bbcws.HTML.Flash.prototype.getversion=function(version){this.sf="ShockwaveFlash.ShockwaveFlash."+version;var f="try{var ax=new ActiveXObject(this.sf);return true;}catch(e){return false;}";this.func=new Function(f);return this.func();}bbcws.html.flash=new bbcws.HTML.Flash();