var dir;
function OnLoad() 
{      
// Create a search control      
var searchControl = new GSearchControl();
      // Add in a full set of searchers
var localSearch = new GlocalSearch();      
searchControl.addSearcher(new GwebSearch());     
 // Tell the searcher to draw itself and tell it where to attach      

      // Execute an inital search
// create a drawOptions object
var drawOptions = new GdrawOptions();

// tell the searcher to draw itself in linear mode
drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED);
searchControl.draw(document.getElementById("searchcontrol"), drawOptions);
}

function Header(level, size, title) {

	var position = 'center';

	border = 0;
	switch (level)
	{
		case 0:	dir='./';
			break;
			
		case 1:	dir='../';
			break;
			
		case 2:	dir='../../';
			break;
					
	}

	Logo   = '<a href="' + dir + 'index.html"><img src="' + dir + 'gif/goldkeys_logo.jpg" align="left" width=150 border=0 hspace=-50 ></a>' ;
		
	/*
	 *	Print Header 
	 */
	document.writeln ('<table border = ' + border + '><tr><td>');
	document.writeln (Logo);
	document.writeln ('</td><td align="center" width="500">');
	document.writeln ('<font color="#E6A626" size=+' + size + '><STRONG>' + title + '</STRONG></FONT>');
	document.writeln ('</td></tr></table><p>&nbsp;');
	
	/*
	 *	Print horizonal.  This may come out.
	 */
	imgsrc = '<img src="' + dir + 'gif/rainbow_bar.gif" border=0 height=15 width=700><p>';
	imgsrc='';
	document.writeln (imgsrc);
	
	/*
	 *	Indent body ater all of the headers and titles
	 */
	 
	 document.writeln ('<table border=' + border + '><tr><td width="70">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><P>');	 
}

function Footer(url, title)
{

	if (url == "#REF")
	{
		url = document.referrer;
	}
	
	if (url != '')
	{
		document.writeln ('<center><br clear="all"><P>&nbsp;<P><a href="' + url + '">Return to ' + title + '</a></center>' );
	}
	
	/*
	 *	Write closing invitation to contact us
	 */

	document.write ('<P>&nbsp;<P><hr><small>We hope you have enjoyed visiting our Web site.<br>');
	document.write ('If you have any questions or comments, please email us at:<br><br>');
	document.write ('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Steven Goldsmith, <a href="mailto:sgoldsmith@goldkeys.com">sgoldsmith@goldkeys.com</a><br>');
	document.write ('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mary Goldsmith, <a href="mailto:sgoldsmith@goldkeys.com">mgoldsmith@goldkeys.com</a>');
	document.writeln ('<center><p><small>&#169; Copyright 1996 - 2009, Goldkeys Services</small></center>');
	document.writeln ('</small>');
	document.writeln ('</td></tr></table>');
	document.writeln ('</body></html>');
}

