
/**** 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 boxes=new Object();
function swapTab(id,n) {
  var B=boxes[id]; if (!B) { var B=boxes[id]=new Object(); B.curTab=1;  }
  if (n==B.curTab) return;
  var div=GetElement(id+'_content'+B.curTab); div.style.display='none';
  var div=GetElement(id+'_content'+n); div.style.display='';
  var tab=GetElement(id+'_tab'+B.curTab); tab.className='taboff';
  var tab=GetElement(id+'_tab'+n); tab.className='tabon';
  B.curTab=n;
}
/***************************/



function SubmitForm(cmd) { var F=document.forms.theForm; if (!F)return; if (cmd!=null) { var C=F.cmd; if (C) C.value=cmd;  } F.submit(); }


/*** Template ***/
function rowHover(row,n) { if (row.xclass==null) row.xclass=row.className; row.className=row.xclass + ((n)?'over':''); }



/*** DHTML ***/
var DOM=(document.getElementById)?1:0;
function GetElement(id) { if (!DOM) return; return(document.getElementById(id)); }
/*** / ***/



