// mouseover functions ============================================
function sitePreloads (depth)
	{
/*	
	preload('hh',depth+'pix/hh.gif');
	preload('hh_roll',depth+'pix/hh_roll.gif');	
*/	
	preload('bn_home',depth+'pix/bn_home.gif');
	preload('bn_home_roll',depth+'pix/bn_home_roll.gif');	

	preload('bn_solutions',depth+'pix/bn_solutions.gif');
	preload('bn_solutions_roll',depth+'pix/bn_solutions_roll.gif');	

	preload('bn_company',depth+'pix/bn_company.gif');
	preload('bn_company_roll',depth+'pix/bn_company_roll.gif');	

	preload('bn_contact',depth+'pix/bn_contact.gif');
	preload('bn_contact_roll',depth+'pix/bn_contact_roll.gif');	

	preload('bn_resources',depth+'pix/bn_resources.gif');
	preload('bn_resources_roll',depth+'pix/bn_resources_roll.gif');	
	}
	
function preload(imgObj,imgSrc) 
	{
	eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
	}

function changeImage(divName,imgName,imgObj,num)
	{
	if (divName != "" && document.layers) {var div = "document."+divName+".";}
	else {var div = "";}
	eval(div+"document").images[imgName+num].src = eval(imgObj+".src");
	}
// /mouseover functions ============================================

// popup window functions ==========================================
function popFlex(URL,winName,W,H,scroll)
	{
	if (scroll == "no")
		{scroll = "scrollbars=no"}
	else if (scroll == "yes")
		{scroll = "scrollbars"}
	window.open(URL, winName,"top=0,left=30,width="+W+",height="+H+",resizable=yes,"+scroll+"")
	}	

function popMain(URL, winName)
	{
	window.open(URL, winName,"top=0,left=0,width=754,height=420,resizable=no,scrollbars");
	}	
// /popup window functions ==========================================

// includes ======================================================

// ns resize/reload functions
function nsResize() {if (ns4)	{window.captureEvents (Event.RESIZE);window.onresize = nsReload;}}
function nsReload()	{location.reload();return false;}
// /ns resize/reload functions

function headerTopNav(depth,section)
	{
document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/head_1.gif" alt="" width="360" height="57" border="0"></td>');
document.writeln('	</tr>');
document.writeln('</table>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/head_2.gif" alt="" width="162" height="50" border="0"></td>');
document.writeln('		<td><img src="'+depth+'pix/head_3.gif" alt="Genacy: the right medicine (tm)" width="198" height="50" border="0"></td>');
document.writeln('	</tr>');
document.writeln('</table>');
//<!-- header & top nav | top nav -->
document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.writeln('	<tr>');
document.writeln('		<td><img src="'+depth+'pix/head_4.gif" alt="" width="138" height="22" border="0"></td>');
document.writeln('		<td valign="top" width="100%">');
document.writeln('		<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.writeln('			<tr>');
document.writeln('				<td class="line2"><img src="'+depth+'pix/shim.gif" width="1" height="3" border="0" alt=""></td>');
document.writeln('			</tr>');
document.writeln('			<tr>');
document.writeln('				<td class="tblbg2">');

document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
document.writeln('	<tr>');
document.writeln('		<td class="line2"><img src="'+depth+'pix/shim.gif" width="3" height="19" border="0" alt=""></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="25" height="1" border="0" alt=""></td>');

if (section == "home") {document.writeln('		<td><a href="'+depth+'index.html"><img src="'+depth+'pix/bn_home_roll.gif" alt="home" width="37" height="16" border="0"></a></td>');}
else {document.writeln('		<td><a href="'+depth+'index.html" onMouseOver="changeImage(\'\',\'bn_home\',\'bn_home_roll\',\'\')" onMouseOut="changeImage(\'\',\'bn_home\',\'bn_home\',\'\')"><img name="bn_home" src="'+depth+'pix/bn_home.gif" alt="home" width="37" height="16" border="0"></a></td>');}

document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');
document.writeln('		<td class="line2"><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');

if (section == "contact") {document.writeln('		<td><a href="'+depth+'contact/contact.htm"><img src="'+depth+'pix/bn_contact_roll.gif" alt="contact" width="50" height="16" border="0"></a></td>');}
else {document.writeln('		<td><a href="'+depth+'contact/contact.htm" onMouseOver="changeImage(\'\',\'bn_contact\',\'bn_contact_roll\',\'\')" onMouseOut="changeImage(\'\',\'bn_contact\',\'bn_contact\',\'\')"><img name="bn_contact" src="'+depth+'pix/bn_contact.gif" alt="contact" width="50" height="16" border="0"></a></td>');}

document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');
document.writeln('		<td class="line2"><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');

if (section == "solutions") {document.writeln('		<td><a href="'+depth+'solutions/solutions.htm"><img src="'+depth+'pix/bn_solutions_roll.gif" alt="solutions" width="59" height="16" border="0"></a></td>');}
else {document.writeln('		<td><a href="'+depth+'solutions/solutions.htm" onMouseOver="changeImage(\'\',\'bn_solutions\',\'bn_solutions_roll\',\'\')" onMouseOut="changeImage(\'\',\'bn_solutions\',\'bn_solutions\',\'\')"><img name="bn_solutions" src="'+depth+'pix/bn_solutions.gif" alt="solutions" width="59" height="16" border="0"></a></td>');}

document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');
document.writeln('		<td class="line2"><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');

if (section == "company") {document.writeln('		<td><a href="'+depth+'company/company.htm"><img src="'+depth+'pix/bn_company_roll.gif" alt="company" width="61" height="16" border="0"></a></td>');}
else {document.writeln('		<td><a href="'+depth+'company/company.htm" onMouseOver="changeImage(\'\',\'bn_company\',\'bn_company_roll\',\'\')" onMouseOut="changeImage(\'\',\'bn_company\',\'bn_company\',\'\')"><img name="bn_company" src="'+depth+'pix/bn_company.gif" alt="company" width="61" height="16" border="0"></a></td>');}

document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');
document.writeln('		<td class="line2"><img src="'+depth+'pix/shim.gif" width="3" height="1" border="0" alt=""></td>');
document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');

if (section == "resources") {document.writeln('		<td><a href="'+depth+'resources/resources.htm"><img src="'+depth+'pix/bn_resources_roll.gif" alt="resources" width="63" height="16" border="0"></a></td>');}
else {document.writeln('		<td><a href="'+depth+'resources/resources.htm" onMouseOver="changeImage(\'\',\'bn_resources\',\'bn_resources_roll\',\'\')" onMouseOut="changeImage(\'\',\'bn_resources\',\'bn_resources\',\'\')"><img name="bn_resources" src="'+depth+'pix/bn_resources.gif" alt="resources" width="63" height="16" border="0"></a></td>');}

document.writeln('		<td><img src="'+depth+'pix/shim.gif" width="10" height="1" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('</table>');

document.writeln('				</td>');
document.writeln('			</tr>');
document.writeln('		</table>');
document.writeln('		</td>');
document.writeln('	</tr>');
document.writeln('</table>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.writeln('	<tr>');
document.writeln('		<td class="line2"><img src="'+depth+'pix/shim.gif" width="1" height="3" border="0" alt=""></td>');
document.writeln('	</tr>');
document.writeln('</table>');
//<!-- /header & top nav | top nav -->
	}
// /includes ======================================================