
function BookkeeperWidget() {


document.writeln('');
document.writeln('<br>');
document.writeln('<center>');
document.writeln('');
document.writeln('');
document.writeln('<'+'!------------- READ AND SET COOKIE FUNCTIONS ---------------->');
document.writeln('<scr'+'ipt type="text/javascr'+'ipt" language="JavaScr'+'ipt">');
document.writeln('// Copyright 2006 Bontrager Connection, LLC');
document.writeln('function ReadCookie(n) {');
document.writeln('var cookiecontent = new String();');
document.writeln('if(doc'+'ument.cookie.length > 0) {');
document.writeln('	var cookiename = n+ \'=\';');
document.writeln('	var cookiebegin = doc'+'ument.cookie.indexOf(cookiename);');
document.writeln('	var cookieend = 0;');
document.writeln('	if(cookiebegin > -1) {');
document.writeln('		cookiebegin += cookiename.length;');
document.writeln('		cookieend = doc'+'ument.cookie.indexOf(";",cookiebegin);');
document.writeln('		if(cookieend < cookiebegin) { cookieend = doc'+'ument.cookie.length; }');
document.writeln('		cookiecontent = doc'+'ument.cookie.substring(cookiebegin,cookieend);');
document.writeln('		}');
document.writeln('	}');
document.writeln('return unescape(cookiecontent);');
document.writeln('} // function ReadCookie()');
document.writeln('');
document.writeln('function SetCookie() {');
document.writeln('if(arguments.length < 2) { return; }');
document.writeln('var n = arguments[0];');
document.writeln('var v = arguments[1];');
document.writeln('var d = 0;');
document.writeln('if(arguments.length > 2) { d = parseInt(arguments[2]); }');
document.writeln('var exp = \'\';');
document.writeln('if(d > 0) {');
document.writeln('	var now = new Date();');
document.writeln('	then = now.getTime() + (d * 24 * 60 * 60 * 1000);');
document.writeln('	now.setTime(then);');
document.writeln('	exp = \'; expires=\' + now.toGMTString();');
document.writeln('	}');
document.writeln('doc'+'ument.cookie = n + "=" + escape(String(v)) + \'; path=/\' + exp;');
document.writeln('} // function SetCookie()');
document.writeln('</scr'+'ipt>');
document.writeln('');
document.writeln('');
document.writeln('<'+'!------------- SET SIZE OF WIDGET IN RESPONSE TO BUTTON CLICK ---------------->');
document.writeln('<scr'+'ipt type="text/javascr'+'ipt" language="JavaScr'+'ipt">');
document.writeln('function SetSize(size) {');
document.writeln('SetCookie("BK-Widget-Size", size);');
document.writeln('win'+'dow.location.reload();');
document.writeln('}');
document.writeln('</scr'+'ipt>');
document.writeln('');
document.writeln('');
document.writeln('<'+'!-------------READ COOKIE WHEN USER ENTERS PAGE ---------------->');
document.writeln('<scr'+'ipt type="text/javascr'+'ipt" language="JavaScr'+'ipt">');
document.writeln('var SizeCookie = ReadCookie("BK-Widget-Size");');
document.writeln('');
document.writeln('if(SizeCookie == "small")');
document.writeln('{');
document.writeln('	var iframeHeight = 475;');
document.writeln('	var iframeWidth = 550;');
document.writeln('}');
document.writeln('');
document.writeln('if(SizeCookie == "medium")');
document.writeln('{');
document.writeln('	var iframeHeight = 650;');
document.writeln('	var iframeWidth = 825;');
document.writeln('}');
document.writeln('');
document.writeln('if(SizeCookie == "large")');
document.writeln('{');
document.writeln('	var iframeHeight = 650;');
document.writeln('	var iframeWidth = 1100;');
document.writeln('}');
document.writeln('');
document.writeln('if(SizeCookie == "")');
document.writeln('{');
document.writeln('	var iframeHeight = 475;');
document.writeln('	var iframeWidth = 550;');
document.writeln('	SetCookie("BK-Widget-Size", "small");');
document.writeln('}');
document.writeln('</scr'+'ipt>');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('<table  border="0" cellspacing="0" cellpadding="0">');
document.writeln('<tr>');
document.writeln('<td colspan="3" style="background-color:#d8d8d8;">');
document.writeln('<img alt="" align=right width="5" height="5" src="http://bookkeeper-for-you.com/widget/images/corner.jpg">');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td style="background-color:#d8d8d8;">');
document.writeln('<img alt="" width="5" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('<td   style="background-color:#999999;" align="center">');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('<table border="0" width="100%" cellspacing="0" cellpadding="0">');
document.writeln('');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td colspan="3" style="background-color:#999999;">');
document.writeln('<img alt="" width="0" height="10" src = "http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td style="background-color:#999999;">');
document.writeln('<img alt="" width="20" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('<td align="center">');
document.writeln('');
document.writeln('	<center>');
document.writeln('	<table border="0" width="100%" cellspacing="0" cellpadding="0">');
document.writeln('	');
document.writeln('	<tr>');
document.writeln('	<td align="center" style="background-color:#808080;"> ');
document.writeln('	<img alt="" width="280" height="23" src="http://bookkeeper-for-you.com/widget/images/logo.jpg">');
document.writeln('	</td>');
document.writeln('	</tr>');
document.writeln('	');
document.writeln('	');
document.writeln('	<tr>');
document.writeln('	');
document.writeln('	<td style="background-color:#ffcc66;" align="center">');
document.writeln('');
document.writeln('	<SCR'+'IPT LANGUAGE="JavaScr'+'ipt">');
document.writeln('	function surftoone(form) {  ');
document.writeln('	var myindex=form.select1.selectedIndex  ');
document.writeln('	if (form.select1.options[myindex].value != "0") {   ');
document.writeln('	iframe.location=form.select1.options[myindex].value;}   ');
document.writeln('	}  ');
document.writeln('	</SCR'+'IPT> ');
document.writeln('	');
document.writeln('	<FORM style="margin-bottom:0;"  NAME="form1">');
document.writeln('	<SELECT NAME="select1" onChange="surftoone(this.form)" SIZE=1>');
document.writeln('	<OPTION SELECTED VALUE="0">Navigation ');
document.writeln('	<OPTION VALUE="http://Bookkeeper-For-You.com/widget/divider_error.cgi"> ----------');
document.writeln('	<OPTION VALUE="http://bookkeeper-for-you.com/widget/login.cgi">User Login ');
document.writeln('	<OPTION VALUE="http://Bookkeeper-For-You.com/widget/divider_error.cgi"> ----------');
document.writeln('	<OPTION VALUE="http://bookkeeper-for-you.com/widget/info/details.cgi">Details');
document.writeln('	<OPTION VALUE="http://bookkeeper-for-you.com/widget/info/request-account.cgi">Open Account ');
document.writeln('	<OPTION VALUE="http://bookkeeper-for-you.com/widget/info/support/index.cgi">Support');
document.writeln('	<OPTION VALUE="http://bookkeeper-for-you.com/widget/info/contact/index.cgi">Contact Us');
document.writeln('	<OPTION VALUE="http://bookkeeper-for-you.com/widget/index.cgi">Home');
document.writeln('	</SELECT>');
document.writeln('	</form>');
document.writeln('	</td>');
document.writeln('	</tr>');
document.writeln('	</table');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('		');
document.writeln('');
document.writeln('');
document.writeln('</td>');
document.writeln('<td style="background-color:#999999;"><img alt="" width="20" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif"></td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td colspan="3" style="background-color:#999999;">');
document.writeln('<img alt="" width="0" height="10" src = "http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td style="background-color:#999999;">');
document.writeln('<img alt="" width="20" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('<td align=center>');
document.writeln('	');
document.writeln('	<table  cellspacing="0" cellpadding="0">');
document.writeln('	<tr>');
document.writeln('	<td colspan="3"  style="background-color:#828282;">');
document.writeln('	<img alt="" align=right width="5" height="5" src="http://bookkeeper-for-you.com/widget/images/corner2.jpg">');
document.writeln('	');
document.writeln('	</td>');
document.writeln('	</tr>');
document.writeln('	');
document.writeln('	<tr>');
document.writeln('	<td style="background-color:#828282;">');
document.writeln('	<img alt="" width="5" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('	</td>');
document.writeln('	<td align=center>');
document.writeln('	');
document.writeln('	');
document.writeln('	<scr'+'ipt type="text/javascr'+'ipt" language="JavaScr'+'ipt">');
document.writeln('	<'+'!--');
document.writeln('	doc'+'ument.writeln(\'<iframe name="iframe" src="http://bookkeeper-for-you.com/widget/index.cgi" \');');
document.writeln('	doc'+'ument.writeln(\'width="\' + iframeWidth + \'"\');');
document.writeln('	doc'+'ument.writeln(\'height="\' + iframeHeight + \'"\');');
document.writeln('	doc'+'ument.writeln(\'marginwidth="0"\');');
document.writeln('	doc'+'ument.writeln(\'marginheight="0"\');');
document.writeln('	doc'+'ument.writeln(\'frameborder="0"\');');
document.writeln('	doc'+'ument.writeln(\'align="center"\');');
document.writeln('	doc'+'ument.writeln(\'hspace="0"\');');
document.writeln('	doc'+'ument.writeln(\'scrolling="auto">\');');
document.writeln('	doc'+'ument.writeln(\'</iframe>\');');
document.writeln('	//-->');
document.writeln('	</scr'+'ipt>');
document.writeln('	');
document.writeln('	');
document.writeln('	</td>');
document.writeln('	<td   style="background-color:#d8d8d8;">');
document.writeln('	<img alt="" width="5" height="0" src = "http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('	</td>');
document.writeln('	</tr>');
document.writeln('	');
document.writeln('	<tr>');
document.writeln('	<td colspan="3" style="background-color:#d8d8d8;">');
document.writeln('	<img alt="" align="left" width="5" height="5" src = "http://bookkeeper-for-you.com/widget/images/corner2.jpg">');
document.writeln('	</td>');
document.writeln('	</tr>');
document.writeln('	');
document.writeln('	</table>');
document.writeln('');
document.writeln('	');
document.writeln('	');
document.writeln('	');
document.writeln('	');
document.writeln('</td>');
document.writeln('<td   style="background-color:#999999;">');
document.writeln('<img alt="" width="20" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td valign="center" align="center" colspan="3" style="background-color:#999999;">');
document.writeln('<a href = "http://bookkeeper-for-you.com/widget/info/get-widget.cgi" target=iframe><img alt=""  style="margin-top:10;" vspace=7 border=0 width="177" height="22" src="http://bookkeeper-for-you.com/widget/images/get-widget5.png"></a>');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td valign="center" align="center" colspan="3" style="background-color:#999999;">');
document.writeln('<a href = "javascr'+'ipt:SetSize(\'small\')"><img alt="" style="margin-top:0;" vspace=5 border=0 width="61" height="21" src = "http://widgets-for-you.com/widgets/krishnamurti/images/small.png"></a>');
document.writeln('<a href = "javascr'+'ipt:SetSize(\'medium\')"><img alt="" style="margin-top:0;" vspace=5 border=0 width="61" height="21" src = "http://widgets-for-you.com/widgets/krishnamurti/images/medium.png"></a>');
document.writeln('<a href = "javascr'+'ipt:SetSize(\'large\')"><img alt="" style="margin-top:0;" vspace=5 border=0 width="61" height="21" src = "http://widgets-for-you.com/widgets/krishnamurti/images/large.png"></a>');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('</table>');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('<'+'!---- EXTERIOR TABLE ----->');
document.writeln('</td>');
document.writeln('<td  style="background-color:#828282;">');
document.writeln('<img alt="" width="5" height="0" src="http://bookkeeper-for-you.com/widget/images/pixel.gif">');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('');
document.writeln('<tr>');
document.writeln('<td colspan="3" style="background-color:#828282;">');
document.writeln('<img alt="" align="left" width="5" height="5" src = "http://bookkeeper-for-you.com/widget/images/corner.jpg">');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</center>');
document.writeln('');
document.writeln('<br><br><br>');
document.writeln('');
document.writeln('<SCR'+'IPT LANGUAGE="JavaScr'+'ipt">');
document.writeln('// this tracks location of widget');
document.writeln('varname = new Image();');
document.writeln('varname.src = \'http://widgets-for-you.com/tracking/set-cookie.cgi?bookkeeper&\' + doc'+'ument.URL;');
document.writeln('</SCR'+'IPT> ');





}
