
/**** 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.params=new Object(); this.insert=FlashObject_Insert; this.addParam=FlashObject_AddParam; }
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+'">':'');
  for (p in this.params) { html+='<param name="'+p+'" value="'+this.params[p]+'"/>'; }
  html += '<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"';
  for (p in this.params) { html+=' '+p+'="'+this.params[p]+'"'; }
  html += '/></object>'; div.innerHTML = html;
}
function FlashObject_AddParam(p,v) { this.params[p]=v; }
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; NavReady=0;
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) { if (!NavReady) return; 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) {  if (!NavReady) return; clearTimeout(NavTimer); if (n==0) { NavTimer=setTimeout('swapNav()',1000); } }
function SetButton(N) {  if (!NavReady) return;  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) {  if (!NavReady) return; 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) {  if (!NavReady) return; 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 P=GTA(td,"path"); if (P) { if (P==URL.substring(0,P.length)) { C=j; cTD=td; break; } } }
if (C) { cTD.className='navcellon'; var img=document.getElementById("navimage"+C); img.src=GTA(img,"onsrc"); }
NavReady=1;
}

function getURL() { return(window.location.toString().toLowerCase().replace(/\?.*/g,'').replace(/http:\/\/[^\/]*/,'')); }
function GTA(T,N) { var V=T[N]; if (V) return(V); if (T.attributes) { var A=T.attributes[N]; if (A) { V=A.value; if (V) return(V); } } return(''); }


var boxes=new Object();
function GetTabBox(id) { var B=boxes[id]; if (!B) { B=boxes[id]=new Object(); B.id=id; B.curTab=1; B.maxHeight=0;  } return(B); }
function CheckBoxHeight(B,H) { if (!B.Tall)return; if (H>B.maxHeight) { B.maxHeight=H; var div=document.getElementById('tabcontentarea_'+B.id); if (div) div.style.height=B.maxHeight; } }
function SizeTabBoxes(id,n) { var B=GetTabBox(id); B.Tall=1; var H=0; for (var j=1; j<=n; j++) { var div=document.getElementById(id+'_content'+j); if (div) { var ds=div.style.display; div.style.display=''; var dh=div.scrollHeight; if (dh>H)H=dh; div.style.display=ds; }  } CheckBoxHeight(B,H); }
function swapTab(id,n) { var B=GetTabBox(id); 
  if (n==B.curTab) return;
  var div=document.getElementById(id+'_content'+B.curTab); CheckBoxHeight(B,div.scrollHeight); div.style.display='none';
  var div=document.getElementById(id+'_content'+n); div.style.display=''; CheckBoxHeight(B,div.scrollHeight);
  var tab=document.getElementById(id+'_tab'+B.curTab); tab.className='taboff';
  var tab=document.getElementById(id+'_tab'+n); tab.className='tabon';
  B.curTab=n; 
}


// javascript:alert(window.frames.main.SizeTabBoxes('ID0EFFDA',4))