	<PG name="newWindow">
		<SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();
myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);
pageIcon.templateData = myXML.toObject();

rootIcon.setTitleText(templateData.learningObject[0].name);

if (pageIcon.templateData.textGraphics[0].url.indexOf('http') == 0){
  previewImage = "'" + pageIcon.templateData.newWindow[0].previewImage + "'";
} else {
  previewImage = pageIcon.templateData.newWindow[0].previewImage;
}

if (pageIcon.templateData.newWindow[0].narration != undefined){
  narration = pageIcon.templateData.newWindow[0].narration;
  rootIcon.broadcast('showAudio');
}]]></SCR>
		<DIS tabIndex="-1" id="panel" name="panel" x="-300" y="20" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS>
		<INT name="loadPanel" perpetual="0">
			<RES name="onLoad" type="event" eventName="onLoad" icon="panel" erase="1" exit="1">
				<SCR name="exit"><![CDATA[//ok to move on




]]></SCR>
			</RES>
		</INT>
		<DIS toolTip="{pageIcon.templateData.newWindow[0].tip}" scrolling="auto" id="graphic" name="graphic" x="coded" y="30" type="ext" url="{previewImage}"><![CDATA[{pageIcon.templateData.newWindow[0].tip}
]]></DIS>
		<INT name="loadImage" perpetual="0">
			<RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="1">
				<SCR name="calculate"><![CDATA[p = graphic._width / graphic._height;

maxWidth = 465;
maxHeight = 465;

//resize the panel to the graphic
panel._width = graphic._width + 20;
panel._height = graphic._height + 20;

graphic.constrain(maxWidth, maxHeight);
  
panel._x = stageWidth - panel._width - 20;
graphic._x = panel._x + 10;
textX = 20;
textY = 20;
textWidth = stageWidth - 80 - graphic._width;







]]></SCR>
			</RES>
		</INT>
		<DIS scrolling="auto" id="textBlock" h="480" name="text" x="textX" y="textY" w="textWidth" type="text"><![CDATA[{pageIcon.templateData.newWindow[0].text}]]></DIS>
		<INT name="launch" perpetual="0">
			<RES name="onRelease" type="event" eventName="onRelease" icon="graphic" erase="1" exit="1">
				<SCR name="calculate"><![CDATA[params = new Object();
params.url =  pageIcon.templateData.newWindow[0].url;
params.width =  pageIcon.templateData.newWindow[0].windowWidth;
params.height =  pageIcon.templateData.newWindow[0].windowHeight;
callJS('openWindow', params);








]]></SCR>
			</RES>
		</INT>
	</PG>
