
/**** FLASH ****/
function FlashObject(target,src,w,h,ver) { this.target=target; this.src=src; this.width=w; this.height=h; this.version=ver; this.id="themovie"; this.insert=FlashObject_Insert; }
function FlashObject_Insert() { var ver=(this.version)?this.version:7;  if (!this.target) return; var div=document.getElementById(this.target); if (!div)return; if (!this.src) return; var src=this.src; if (!this.width) return; if (!this.height) return; var html='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ver+',0,0,0" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+src+'" /><param name="quality" value="high" />'+((this.bgcolor)?'<param name="bgcolor" value="'+this.bgcolor+'" />':'')+((this.wmode)?'<param name="wmode" value="'+this.wmode+'">':'')+'<embed src="'+src+'" quality="high" width="'+this.width+'" height="'+this.height+'" name="'+this.id+'" align="middle"' +((this.bgcolor)?' bgcolor="'+this.bgcolor+'"':'')+ ((this.wmode)?' wmode="'+this.wmode+'"':'')+' allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'; div.innerHTML = html; }
function InsertFlash(target,src,w,h,ver) { var flash=new FlashObject(target,src,w,h,ver); flash.insert(); }
/***************/

var NavButtons=new Object(); var NavTimer=null; var curNav=null;
function GetNav(id) { var N=NavButtons[id]; if (N) return(N); var N=NavButtons[id]=new Object; N.id=id; return(N); }
function hoverNav(id,n) { var N=GetNav(id); N.hover=n; SetButton(N); clearTimeout(NavTimer); if (n) { if(curNav) { swapNav(id); } else { NavTimer=setTimeout("swapNav('"+id+"')",250); } } else { NavTimer=setTimeout('swapNav()',1000); }  }
function hoverMenu(n) { clearTimeout(NavTimer); if (n==0) { NavTimer=setTimeout('swapNav()',1000); } }
function SetButton(N) { var hc=''; if ((N.hover)||(N.on)) hc='#ADACAA'; var td=document.all['navbutton'+N.id]; if (td.className=='navcell') { td.style.backgroundColor=hc; } SetVis('navmenu'+N.id,N.on); }
function swapNav(id) { var N=GetNav(id); if (curNav) { curNav.on=0; SetButton(curNav); curNav=null; } if (id==null)return; var div=document.all['navmenu'+id]; if (!div) return; curNav=N; N.on=1; SetButton(N); }
function SetVis(id,n) { var div=document.all[id]; if (div) { div.style.visibility=(n)?'visible':'hidden'; } }

function hoverMenuLink(div,n) { div.style.background=(n)?'#F0F0F0':''; status=(n)?div.href:''; }
function goMenuLink(div) { top.location=div.href; }

function hoverBoxLink(div,n) { div.style.backgroundColor=(n)?'#E7E7E7':''; }
function hoverLeft(div,n) { div.style.backgroundColor=(n)?'#F3F3F3':''; }

function initNav() { if(!document.getElementById) return;
var URL=getURL(); var C=0; var cTD;
for (var j=1; j<=20; j++) {  var td=document.getElementById("navbutton"+j); if (!td) break; var D=td.directory; if (D) { if (('/'+D+'/')==URL.substring(0,D.length+2)) { C=j; cTD=td; break; } } }
if (C) { cTD.className='navcellon'; var img=document.getElementById("navimage"+j); img.src=img.onsrc; }
}

function getURL() { return(window.location.toString().toLowerCase().replace(/\?.*/g,'').replace(/http:\/\/[^\/]*/,'')); }
