var ivtWinWIL="";var setStringWIL="";var messagePendingWIL;var winStatusWIL=false;var initializedWIL=false;var errFlag=false;var loopCounter=0;var ivtDomainWIL="https://ivt.arts.ubc.ca" var ivtPageWIL='https://ivt.arts.ubc.ca/IVTWIL/IVT.html' window.addEventListener("message",messageHandlerWIL,false);function winTestWIL() {if(!window.ivtWinWIL||ivtWinWIL.closed) {if(window.winDebug)winDebug.document.write("* openIvtWin: opening window
");initializedWIL=false;ivtWinWIL=window.open(ivtPageWIL,'','height=660,width=870,scrollbars=no,top=30,left=20,screenX=20,screenY=30');} initializeWIL();} function initializeWIL() {if(window.winDebug)winDebug.document.write("* initializing, initialized="+initializedWIL+"
");if(initializedWIL)sendMessageWIL();else {if(window.winDebug)winDebug.document.write("  posting ini message
");try{ivtWinWIL.postMessage('initialize',ivtDomainWIL);} catch(err) {if(window.winDebug)winDebug.document.write("  error="+err+"
");errFlag=true;} if(errFlag) {var winError=window.open("","","width=340,height=260,top=200,left=300,screenX=300,screenY=200,scrollbars=0,scrollbars=no");var messageBox=winError.document.body;messageBox.innerHTML="

Your browser doesn't support automatic page entry.
Try manually entering the reference you selected
in the 'pageNum' box on the IVT and press Return.

PageNum

7,16

Or (especially if video doesn't play) try another
browser (Chrome, Firefox, Safari),

close

";errFlag=false;winError.focus();} else if(loopCounter<10) {loopCounter++;setTimeout('initializeWIL();',500);} else {errFlag=true;initializeWIL();}}} function setRefWIL(sno,pno) {messagePendingWIL=true;var sessionString=sno.toString();var pageString=pno.toString();setStringWIL='SR '+sessionString+','+pageString;winTestWIL();} function setListWIL(input) {messagePendingWIL=true;setStringWIL="SL "+input;winTestWIL();} function sendMessageWIL() {if(window.winDebug)winDebug.document.write("* sendMessage to IVT
");if(messagePendingWIL) {ivtWinWIL.postMessage(setStringWIL,ivtDomainWIL);if(window.winDebug)winDebug.document.write("  message="+setStringWIL+"
");} messagePendingWIL=false;ivtWinWIL.focus();} function messageHandlerWIL(event) {var origin=event.origin||event.originalEvent.origin;if(origin==ivtDomainWIL) {var messageString=event.data;if(window.winDebug)winDebug.document.write("* message received from IVT: "+messageString+"
");if(messageString=="handshake")initializedWIL=true;}}