// script to create common header and footer on all popup screens.

var popWrapper = {
	screenreader:	mykeOS.getCookie('screenreader','off'),
	windowHeight:	500,
	popTop: function(title){
		if (!title) {title='DHTML'}
		lTop = '	<table width="600" border="0" cellpadding="0" cellspacing="0">' +
			'<tr height="22">' +
			'	<td width="17" height="22" background="../../images/topleft.gif" align=center><a href="#" onclick="window.close()"><img src="../../images/closebutton.gif" alt="hide box" name="closeButtonwin3" border="0" /></a></td>' +
			'	<td height="22" width="80" nowrap background="../../images/topbarblank.gif" class="clsBodyFixed">&nbsp;&nbsp;' + title + '&nbsp;&nbsp;</td>' +
			'	<td height="22" width="1" valign="top" align="right" background="../../images/topbarblank.gif"><IMG src="../../images/topbarleft.gif" name="tbl1win3" /></td>' +
			'	<td height="22" valign="top" background="../../images/topbarmid.gif"><IMG src="../../images/topbarmid.gif" height="22" name="tbl2win3" width="300" /></td>' +
			'	<td height="22" valign="top" width="1" background="../../images/topbarblank.gif"><IMG src="../../images/topbarright.gif" name="tbl3win3" /></td>' +
			'	<td height="22" valign="top" width="1" background="../../images/topbarblank.gif"><IMG height=22 src="../../images/topbarblank.gif" width=10 name="tbl4win3" /></td><td height="22" valign="top" background="../../images/topright.gif"><IMG src="../../images/minimise.gif" name="tbl5win3" border="0" /></td>' +
			'</tr>' +
			'<tr>'  +
			'	<td width="17" background="../../images/leftbar.gif" align="right" bgcolor="#ffffff"><img src="../../images/leftbar.gif" width="17" height="'+this.windowHeight+'" /></td>' +
			'	<td colspan="5" height="70" valign="top" class="clsBodyText" bgcolor="#ffffff"><br />';
		if (this.screenreader=='on') lTop = '<span class="clsBodyText"><big><b>'+title+'</b></big><br><br><br>';

		document.write(lTop);
	},

	popBottom: function(){
		 lBottom = '			</td>' +
			 '		<td width="17" background="../../images/rightbar.gif" valign="bottom" bgcolor="#ffffff"><img src="../../images/rightbar.gif" width="21" height="'+this.windowHeight+'" /></td>' +
			 '	</tr>' +
			 '	<tr height="21">' +
			 '		<td width="17" height="21" background="../../images/leftbar.gif" valign="bottom" bgcolor="#ffffff"><img src="../../images/bottomleft.gif"></td>' +
			 '		<td colspan="5" height="21" valign="bottom" bgcolor="#ffffff"><img src="../../images/bottommid.gif" width="562" height="21"></td>' +
			 '		<td width="17" height="21" valign="bottom"><img src="../../images/resize.gif" width="21" border="0" /></td>' +
			 '	</tr>' +
			 '</table>';

		if (this.screenreader == 'on') lBottom = '<br><br><a href="#" onclick="window.close()">Click here to close window</a></span>';

		 document.write(lBottom);
	}
	
}

