function w(x) { document.write(x) }
function preTitle() {
	w('<table cellpadding="0" cellspacing="0" width="100%"><tr><td style="background: #66BB22 url(logo.gif) right no-repeat; height: 89px; vertical-align: bottom">')
//	w('<img src="logo.gif" alt="Celsia Syetems registered logo" style="float: right; margin: 10px 10px 0x 10px">')
//w('<table border=1 cellpadding="0" cellspacing="0" width="100%"><tr><td>')
}
function postTitle(active) {
//	w('</td></tr><tr><td style="background: #66BB22">')
//w('</td><td rowspan="3">')
//w('<img src="logo.gif" alt="Celsia Syetems registered logo" style="float: right; margin: 10px 10px 0x 10px">')
//w('</td></tr><tr><td height="100%">hello</td></tr><tr><td>')
	w('<center><table cellpadding="0" cellspacing="0" class="menu"><tr>')
	menuLeft(active);
}
function menuLeft(active) {
	c = (active ? 'Y' : 'W')
	cc = (active ? '#FFEE44' : '#FFFFFF')
   w('<td style="background: '+cc+' url(tab2L'+c+'G.gif) no-repeat top left;">')
   w('<table cellpadding="0" cellspacing="0" style="background: url(tab2R'+c+'G.gif) no-repeat top right;">')
   a = (active ? '' : ' style="background: url(tabGB.gif) repeat-x bottom;"');
   w('<tr><td'+a+'>')
}
function tweenMenu(active) {
	menuRight();
	menuLeft(active);
}
function menuRight() {
   w('</td></tr></table></td>')
}
function postMenu() {
	menuRight();
	w('</tr></table></center>')
//w('</td></tr></table>')
	w('</td></tr>')
	w('<tr align="center"><td style="background: #FFEE44" class="menu">&nbsp;')
}
function tweenSub() {
	w(' | ')
}
function postSub() {
	w('</td></tr>')
	preBody()
}
function preBody() {
   w('<tr><td style="padding: 1em 1em 1em 2em; background: white;">')
}
function postBody() {
	postBodyMsg('Develop your market advantage now. Call us on 01298 77166',
				   'Manufactured and distributed exclusively&nbsp;by&nbsp;<a href="http://www.ambromley.co.uk" onClick="javascript:urchinTracker(\'/outgoing/ambromley\');">A&nbsp;M&nbsp;Bromley</a>');
}
function postBodyMsg(m1, m2) {
	w('</td></tr>')
	w('<tr>')
	w('<td style="background-color: #FFEE44;">')
	w('<p style="float:left; padding: 0em 0.5em 0em 0.5em;">'+m1+'</p>')
	w('<p style="float:right; padding: 0em 0.5em 0em 0.5em;">'+m2+'</p></td></tr></table>')
}
function wsl(wi,h) {
        w('<div class="sandbagL" style="width:'+wi+'; height:'+h+'"></div>');
}
function wsr(wi,h) {
        w('<div class="sandbagR" style="width:'+wi+'; height:'+h+'"></div>');
}
function obsW(str) {
        var a = str.split("qz");
        for (var i = 0; i < a.length; i++) w(a[a.length - i - 1]);
}
