<!--var displaywinvar textwinvar docwinvar imgwinvar vidwinvar audwinvar vidWidth = 240var vidHeight = 196var docWidth = 500var docHeight = 450var audWidth = 230var audHeight = 120var flaHeight = 560var flaWidth = 700var borderWidth = 70var borderHeight = 78var	toolStatus = 0var scrollStatus = 0var resize = 0var glMediaType = nullvar	screenHeight = screen.heightvar	screenWidth = screen.widthvar theWinName = "displaywin"var destinvar paramfunction waitOpen(openUrl,parameters,state) {			     displaywin=window.open(openUrl, theWinName, parameters)								displaywin.moveTo(0,0)								focusOtherWindow("text")       	displaywin.focus()			}function calculateMoveTo() {								//	leftPos = (screenWidth - 565)/2								//	topPos = (screenHeight - 570)/2}function focusOtherWindow(type) {				if(glMediaType == "aud") {										if(type == "text") {																if(window.textwin && window.textwin.open) {																						textwin.moveTo(0,parseInt(audHeight) + borderHeight + 28)																					window.textwin.focus()																}										} else {																if(window.displaywin && window.displaywin.open) {																					displaywin.moveTo(0,0)																					window.displaywin.focus()																}										}				}}function createNewTextWin(theURL,winName,myWidth,myHeight,toolStatus,scrollStatus,resize,position)  {   					myURL=theURL							myWinName=winName								parameters = 'width=' + myWidth + ',height=' + myHeight + ',toolbar=' + toolStatus + ',scrollbars=' + scrollStatus + ',location=0,directories=no,status=no,resizable=' + resize + ',menubar=0'   									textwin= window.open(myURL, myWinName, parameters)									if(position != null && position == "top") {										textwin.moveTo(0,0);									} else {										textwin.moveTo(0,parseInt(audHeight) + borderHeight + 28);									}									focusOtherWindow()   						textwin.focus()   	}function createCustomWin(mediaType, destination, objWidth, objHeight) {											if (mediaType == "img" || mediaType == "map") {												myWidth = parseInt(objWidth) + borderWidth												myHeight = parseInt(objHeight) + borderHeight							} else if (mediaType == "fla") {										myWidth = flaWidth										myHeight = flaHeight						} else  {										myWidth = (eval(mediaType + "Width") + borderWidth)										myHeight = (eval(mediaType + "Height") + borderHeight)							}								if (mediaType == "doc") {															scrollStatus = 1															resize = 1								} else {															scrollStatus = 0															resize = 0							}																parameters = 'width=' + myWidth + ',height=' + myHeight + ',toolbar=' + toolStatus + ',scrollbars=' + scrollStatus + ',location=0,directories=no,status=no,resizable=' + resize + ',menubar=0'        if(window.displaywin && window.displaywin.open && !window.displaywin.closed)  {  																	destin = destination																	param = parameters																								displaywin.close()																	timerID=setTimeout('testMe()',1000)								} else  {  																																			waitOpen(destination,parameters)        }}function createMediaWin(mediaType, destination, objWidth, objHeight) {						if(mediaType) {									glMediaType = mediaType						}						if (mediaType == "img" || mediaType == "map") {												myWidth = parseInt(objWidth) + borderWidth												myHeight = parseInt(objHeight) + borderHeight																		} else if (mediaType == "fla") {									myWidth = flaWidth									myHeight = flaHeight							} else {										myWidth = (eval(mediaType + "Width") + borderWidth)										myHeight = (eval(mediaType + "Height") + borderHeight)							}								if (mediaType == "doc") {															scrollStatus = 1															resize = 1								} else {															scrollStatus = 0															resize = 0							}																parameters = 'width=' + myWidth + ',height=' + myHeight + ',toolbar=' + toolStatus + ',scrollbars=' + scrollStatus + ',location=0,directories=no,status=no,resizable=' + resize + ',menubar=0' 								//displaywin = eval(mediaType + 'win')								destin = destination								param = parameters								if(mediaType == "img") { 												if(window.displaywin && window.displaywin.open && !window.displaywin.closed)  {  																	destin = destination																	param = parameters																	displaywin.close()																	timerID=setTimeout('testMe()',1000)															} else  { 																		waitOpen(destination,parameters)       							 }														} else {															waitOpen(destination,parameters) 							}    }function closeChildWindow()  {									winNum = closeChildWindow.arguments.length									for (var i=0; i< winNum; i++) {															theWindow = closeChildWindow.arguments[i]														//	alert("WIN: " + theWindow) 															if(theWindow && theWindow.open && !theWindow.closed)  {  																					theWindow.close()  															} 														 								}						}function testMe() {						waitOpen(destin,param)}//-->
