<!--/* Pop-up window */var sUserAgent = navigator.userAgent.toLowerCase();var isIE = document.all?true:false;var isNS4 = document.layers?true:false;var isOp = (sUserAgent.indexOf('opera')!=-1)?true:false;var isMoz = (sUserAgent.indexOf('mozilla/5')!=-1 && sUserAgent.indexOf('opera')==-1 && sUserAgent.indexOf('msie')==-1)?true:false;function pop(oAnchor,sWindow,sProps){	var sUrl = '';	if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');	if(sUrl=='' && isIE) sUrl = window.event.srcElement.getAttribute('href');	if(sUrl=='') sUrl = oAnchor.href;	var sWindowName = sWindow?sWindow:'_blank';	if(!sProps) sProps = 'width=600,height=500,scrollbars,resizable,toolbar,status,menubar,location';	if(sUrl) var oPopup = window.open(sUrl,sWindowName,sProps);	// An Opera bug returns too early if you focus the window, so we don't focus it in that browser.	// Only a noticable defect (in that browser) if a window is already open and hidden behind another window.	if(oPopup && !isOp) oPopup.focus();	// If popup was created successfully, cancel link in calling window.	// Acts as regular link in browser that has popup blocking enabled.	return (oPopup)?false:true;}/* Send to a friend */function send2friend() {	document.write('<div class="replacex4"><a href="mailto:?subject=Channel 4 History website&body=I found this page on the Channel 4 History website and thought you might find it interesting: '+document.location.href+'"><span>Send to a friend</span></a></div>');}/* Image randomiser */    adImages = new Array("../images/banner1.jpg","../images/banner2.jpg","../images/banner3.jpg","../images/banner4.jpg","../images/banner5.jpg")    imgCt = adImages.length    firstTime = true function rotate() {    if (document.images) {        if (firstTime) {            thisAd = Math.floor((Math.random() * imgCt))            firstTime = false        }        else {            thisAd++            if (thisAd == imgCt) {                thisAd = 0            }        }        document.banner.src=adImages[thisAd]        setTimeout("rotate()", 100 * 5000)    } }  /* Open link in parent (legacy script) */function ChangeParentDocument(url) {  opener.location = url;}/* Pop-up window (legacy script) */function displayWindow(url, width, height) {        var Win = window.open(url,"displayWindow",'width=' + width +',height=' + height + ',resizable=no,scrollbars=no,menubar=no' );}/* Pop-up window with scrollbar (legacy script) */function displayWindow1(url, width, height) {        var Win = window.open(url,"displayWindow",'width=' + width +',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no' );}-->