//	setup.js

var	d=document,
	dw=d.write,
	now=new Date(),
	expires,
	monthNames=['January','February','March','April','May','June','July','August','September','October','November','December'],
	isDOM=d.getElementById?1:0,
	isDOM=d.getElementById?1:0,
	isIE=d.all?1:0,
	isNS4=navigator.appName=='Netscape'&&!isDOM?1:0,
	isIE4=isIE&&!isDOM?1:0,
	isOp=self.opera?1:0,
	isDyn=isDOM||isIE||isNS4,
	isWin=navigator.platform.indexOf('Win')!=-1?1:0,
	dirOffset=d.firstChild.innerHTML,
	cookieEnabled,
	urlquery=d.location.toString().split('?'),
	cookieEnabled=(navigator.cookieEnabled)?1:0;

// find the top directory offset from js call to _library/setup.js
dirOffset=dirOffset.substr(0,dirOffset.indexOf('_library/setup.js'))
dirOffset=dirOffset.substr(dirOffset.lastIndexOf('"')+1)

if(top.location!=self.location) top.location=self.location

var temp=d.location.href.split("?")[0].split('/')
var dirPath=temp[temp.length-1].toString()
for(var i=1;i<=dirOffset.length/3;i++) dirPath = temp[temp.length-1-i] + '/' + dirPath

if(d.title!="Australian Longevity Order Form"){
	var mF1=dirPath=='default.htm'?'F':''
	var mF2=dirPath=='products/index.htm'?'F':''
	var mF3=dirPath=='company/index.htm'?'F':''
	var mF4=dirPath=='company/opportunities.htm'?'F':''
	var mF5=dirPath=='media/downloads/index.htm'?'F':''
	var mF6=dirPath=='faq/index.htm'?'F':''

	dw('<body  topmargin="30">')
	dw('  <table border="0" cellpadding="0" cellspacing="0" width="95%">')
	dw('    <tr><td rowspan="2"><p align="center"><img border="0" src="'+dirOffset+'images/logo-al.jpg" width="250" height="53"></p></td>')
	dw('      <td valign="top" align="right"><font face="Verdana" size="2"><a href="'+dirOffset+'testimonials/index.htm">Customer References</a>&nbsp; |&nbsp; <a href="'+dirOffset+'media/listen/index.htm">Listen Live</a>&nbsp; |&nbsp; <a href="'+dirOffset+'company/contact.htm">Contact Us</a>&nbsp; |&nbsp; <a href="'+dirOffset+'site.htm">Site Map</a>&nbsp;&nbsp;</font></td>')
	dw('    </tr>')
	dw('	<tr><td align="right">')
	dw('<a href="'+dirOffset+'default.htm"><img border="0" src="'+dirOffset+'images/home'+mF1+'.jpg" width="100" height="20" hspace="1"></a>')
	dw('<a href="'+dirOffset+'products/index.htm"><img border="0" src="'+dirOffset+'images/products'+mF2+'.jpg" width="100" height="20" hspace="1"></a>')
	dw('<a href="'+dirOffset+'company/index.htm"><img border="0" src="'+dirOffset+'images/company'+mF3+'.jpg" width="100" height="20" hspace="1"></a>')
	dw('<a href="'+dirOffset+'company/opportunities.htm"><img border="0" src="'+dirOffset+'images/opportunities'+mF4+'.jpg" width="100" height="20" hspace="1"></a>')
	dw('<a href="'+dirOffset+'media/downloads/index.htm"><img border="0" src="'+dirOffset+'images/resources'+mF5+'.jpg" width="100" height="20" hspace="1"></a>')
	dw('<a href="'+dirOffset+'faq/index.htm"><img border="0" src="'+dirOffset+'images/faq'+mF6+'.jpg" width="100" height="20" hspace="1"></a>')
	dw('	</td></tr>')
	dw('  </table>')
}

function leftMenu(){
	dw('<table border="0" cellpadding="0" cellspacing="0">')
	dw('	<tr><td valign="top" align="center">')
	dw('		<br><p><img border="0" src="'+dirOffset+'images/Business-Opportunity[1].jpg" width="150" height="100"></p>')
	dw('		<table border="0" cellspacing="0" cellpadding="0" width="85%">')
	dw('			<tr><td width="7"><img src="'+dirOffset+'images/lefttop.GIF" width="7" height="7"></td><td class="btop"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td><td width="7"><img src="'+dirOffset+'images/righttop.GIF" width="7" height="7"></td></tr>')
	dw('			<tr><td class="blt"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td>')
	dw('				<td><div align="center">')
	dw('                    <table border="0" cellpadding="0" cellspacing="0" width="100%">')
	dw('                      <tr><td width="100%"><img border="0" src="'+dirOffset+'images/latest.jpg" width="200" height="30"></td></tr>')
	dw('                      <tr><td><center>')
	dw('                            <table border="0" cellpadding="0" cellspacing="0" width="95%" style="font-family: Verdana; font-size: 8pt">')
	dw('		  			  	<tr><td><center><br><p><a href="'+dirOffset+'articles/news/SlenderfxProductLaunch.pdf">Youngevity Announces The Launch Of Slender Fx</a></p><p><a href="'+dirOffset+'articles/news/YoungevityPressRelease.pdf">American Longevity Changes Name To Youngevity</a></p><p><a href="'+dirOffset+'articles/news/DiamondLeadership.pdf">Australia Diamond Leadership Retreat</a></p><p><a href="'+dirOffset+'articles/news/founders.jpg">New Youngevity Founders Club</a></p><p><a href="http://www.webcast2000.com:8020/content/SPECIAL/COMP24_11_2005.pls">Listen to the New Compensation Plan Changes</a></p><p><a href="'+dirOffset+'media/listen/webcast.htm">Live Company Webcasts</a></p><br>&nbsp;</td></tr>')
	dw('                            </table>')
	dw('                          </center>')
	dw('                        </td>')
	dw('                      </tr>')
	dw('                    </table>')
	dw('                  </div>')
	dw('              </td>')
	dw('				<td class="brt"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td>')
	dw('			</tr>')
	dw('			<tr><td><img src="'+dirOffset+'images/leftbottom.GIF" width="7" height="7"></td><td class="bbot"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td><td><img src="'+dirOffset+'images/rightbottom.GIF" width="7" height="7"></td></tr>')
	dw('		</table>')
      dw('   &nbsp;<br><map name="FPMap0"><area href="http://www.australianlongevity.com.au" shape="rect" coords="1, 1, 38, 17"><area href="http://www.australianlongevity.com.au" shape="rect" coords="124, 1, 161, 17"><area href="'+dirOffset+'links/wol.htm" shape="rect" coords="42, 3, 80, 14"><area href="'+dirOffset+'links/wol.htm" shape="rect" coords="84, 5, 118, 17"><area href="'+dirOffset+'links/engevity.htm" shape="rect" coords="163, 0, 197, 17"></map><img border="0" src="'+dirOffset+'images/FlagH.jpg" width="200" height="18" usemap="#FPMap0"></td>')
	dw('</tr></table>')
}

function homeRightMenu(){
	dw('<table border="0" cellpadding="0" cellspacing="0">')
	dw('	<tr><td valign="top" align="center">&nbsp;')
	dw('		<table border="0" cellspacing="0" cellpadding="0" width="85%">')
	dw('			<tr><td width="7"><img src="'+dirOffset+'images/lefttop.GIF" width="7" height="7"></td><td class="btop"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td><td width="7"><img src="'+dirOffset+'images/righttop.GIF" width="7" height="7"></td></tr>')
	dw('			<tr><td class="blt"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td>')
	dw('				<td><div align="center">')
	dw('                    <table border="0" cellpadding="0" cellspacing="0" width="100%">')
	dw('                      <tr><td width="100%"><img border="0" src="'+dirOffset+'images/info.jpg" width="200" height="42"></td></tr>')
	dw('                      <tr><td><center>')
	dw('                            <table border="0" cellpadding="0" cellspacing="0" width="95%" style="font-family: Verdana; font-size: 8pt">')
	dw('						<tr><td><center><br><p><img border="0" src="'+dirOffset+'images/bulletO.GIF" width="10" height="7">&nbsp;&nbsp;<a href="'+dirOffset+'articles/info/fda.htm">Local companies could benefit from health bill</a><p>&nbsp;&nbsp;<a href="'+dirOffset+'articles/info/omega3.htm">Something fishy about omega-3?</a></p><p><a href="'+dirOffset+'articles/info/softdrinks.htm">Health concerns see UK soft drinks consumption fall</a></p><p><a href="'+dirOffset+'articles/info/fattyacidsDCD.htm">Fatty acids help DCD kids to behave</a></p><p><a href="'+dirOffset+'articles/info/ironADHD.htm">Iron Supplements and ADHD</a></p><p><a href="'+dirOffset+'articles/info/colloidalminerals.htm">About Colloidal Minerals</a></p><p><a href="'+dirOffset+'links/ll.htm"><img border="0" src="'+dirOffset+'images/bulletO.GIF" width="10" height="7">&nbsp;&nbsp;<b>more..</b></a>&nbsp;</p></td></tr>')
	dw('                            </table>')
	dw('                          </center>')
	dw('                        </td>')
	dw('                      </tr>')
	dw('                    </table>')
	dw('                  </div>')
	dw('              </td>')
	dw('				<td class="brt"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td>')
	dw('			</tr>')
	dw('			<tr><td><img src="'+dirOffset+'images/leftbottom.GIF" width="7" height="7"></td><td class="bbot"><img border="0" src="'+dirOffset+'images/spacer.gif" width="1" height="1"></td><td><img src="'+dirOffset+'images/rightbottom.GIF" width="7" height="7"></td></tr>')
	dw('		</table>')
	dw('</td></tr></table>')
}
