d=document
d.CxSW=Math.min(screen.availWidth-30,720)
d.CxImgN=['about','press','what','when','who','science','insurance','drowsy','contact','site','home']
d.CxAlt=['ABOUT US','PRESS ROOM','WHAT WE DO','WHEN YOU NEED US','WHO WE ARE','COMPLEXITY SCIENCE','INSURANCE WORLD','DROWSY DRIVER','CONTACT US','SITE MAP','HOME PAGE','COMMODICAST']
d.CxHtm=['about','press','what','when','who','science','insurance','drowsy','contact','site','index','commodicast']
d.CxTags=['A Hatchery of Innovation','A Hatchery of Business Innovation','A Hatchery of Business Innovation for the Simple and Complex','Leadership in Complexity Science','Leading the Way in Complexity Science Solutions','Mining Data, Producing Solutions','	Mining Data, Producing Intelligent Business Solutions','Mining Complex Business Solutions','Complex Problems, Simple Solutions','Crafting Simple and Complex Business Solutions']
function DWhead(h,t){
 d.write('<table title="head" width="'+d.CxSW+'" border="0" cellspacing="0" cellpadding="0"><tr valign="TOP">\
   <td align="LEFT"><a name="top" href="logo.htm"><img src="i/logo.gif" width="185" height="134" border="0" alt="About Our Logo"></a>\
   <td><br><table title="headline" align="CENTER" width="488" height="64" background="i/headline_blank.jpg" border="0" cellspacing="0" cellpadding="0">\
	<tr><td class="hh">'+h+'</table><div class="tag"><br>'+t+'</div></table>')
}
function DWleft(n){
 d.write('<table title="side&main" width="'+d.CxSW+'" border="0" cellspacing="0" cellpadding="0"><tr valign="TOP">\
   <td align="LEFT" background="i/bkg_side.gif"><table title="side" width="174" border="0" cellspacing="0" cellpadding="0" align="LEFT">\
	<tr><td><img src="i/top3.gif" width="174" height="3"><br>')
 var N=d.CxImgN,i,t
 for(i=0;i<N.length;i++){t=N[i]
  if(t!=n)d.write('<a href="'+d.CxHtm[i]+'.htm" onmouseout="ImgR()" onmouseover="ImgS(\''+t+
	"','i/link_"+t+'_2.gif\')">')
  d.write("<img src=\"i/link_"+t+'_'+(t==n?2:1)+'.gif" name="'+t+
	'" border="0" width="174" height="18" alt="'+d.CxAlt[i]+'">'+
	(t!=n?'</a>':'')+'<br>')
}}
function DWleftE(){
 d.write('</table></td><td width="20"><td><table title="" width="'+(d.CxSW-174-20)+'" border="0" cellspacing="0" cellpadding="0"><tr><td>')
}
function DWright(k){
 d.write('<table title="right box" width="'+(k+9)+'" border="0" cellspacing="0" cellpadding="0" align="RIGHT">\
   <tr><td width="5"></td><td class="br"><table width="'+k+
   '" border="0" cellspacing="2" cellpadding="5" align="CENTER"><tr><td class="bg">')
}
function DWrightE(){
 d.write('</table></table>')
}
function DWmainE(){
 d.write('<td width="10"></table></table>')
}
function DWfoot(){
 d.write('<table title="foot menu" width="'+d.CxSW+'" border="0" cellspacing="0" cellpadding="1"><tr><td class="ww">')
 var i,L=d.CxAlt.length
 for(i=0;i<L;i++){
  d.write('<a href="'+d.CxHtm[i]+'.htm" class="w" onmouseout="ImgR()" onmouseover="ImgS(\'foot'+i+
    "','i/foot_box.gif\')"+'"><img src="i/foot_arrow.gif" name="foot'+i+'" width="6" height="8" border="0" align="BOTTOM">'+d.CxAlt[i]+'</a>')
  if(i==5)d.write('<br>')
  else if(i!=L-1)d.write(' | ')
 }; ImgL('i/foot_box.gif')
 d.write('</table><table title="&copy;" width="'+d.CxSW+'" border="0" cellspacing="0" cellpadding="1"><tr>\
   <td class="bb" align="LEFT">&nbsp;Go To: <a href="#top">^TOP^</a> &nbsp;| &nbsp; <a href="index.htm">HOME</a></td>\
   <td class="bb" align="RIGHT">&COPY; 1999-2002 Complexica | Last modified '+
   d.lastModified+' | Email: <a href="mailto:rfrye@cybermesa.com">webmaster</a>&nbsp;</table>')
}
function ImgL(){
 if(d.images){
  if(!d.CxImgA) d.CxImgA=new Array()
  var i=d.CxImgA.length,n=d.CxImgN,j
  for(j=0;j<n.length;j++){
   d.CxImgA[i]=new Image
   d.CxImgA[i++].src='i/link_'+n[j]+'_'+2+'.gif'
}}}
function ImgLa(){
 if(d.images){
  if(!d.CxImgA) d.CxImgA=new Array()
  var i=d.CxImgA.length,a=ImgLa.arguments,j
  for(j=0;j<a.length;j++){d.CxImgA[i]=new Image; d.CxImgA[i++].src=a[j]
}}}
function ImgS(n,s){
 var x=eval('d.'+n)
 if(x !=null){
  if(!x.oSrc) x.oSrc=x.src
  x.src=s; d.CxImgO=x 
}}
function ImgR(){
 var x=d.CxImgO
 if(x&&x.oSrc) x.src=x.oSrc
}
function RanTag(){
 return d.CxTags[Math.floor(d.CxTags.length*Math.random())]
}
