<!--
nbimg = 11;
image = new makeArray(nbimg);
image[1]="<img src=\"/img/top_bnd0.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[2]="<img src=\"/img/top_bnd1.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[3]="<img src=\"/img/top_bnd2.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[4]="<img src=\"/img/top_bnd3.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[5]="<img src=\"/img/top_bnd5.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[6]="<img src=\"/img/top_bnd6.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[7]="<img src=\"/img/top_bnd7.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[8]="<img src=\"/img/top_bnd8.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[9]="<img src=\"/img/top_bnd9.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[10]="<img src=\"/img/top_bnd10.jpg\" width=\"780\" height=\"96\" border=\"0\">";
image[11]="<img src=\"/img/top_bnd11.jpg\" width=\"780\" height=\"96\" border=\"0\">";

function makeArray(n) {
  this.length = n;
  for(var i=1;i<=n;i++){
					   this[i] = ""; 
					   }
  return this;
}
var im;

function Random_img(){
	im = Math.floor(nbimg * Math.random() + 1);
	return '<a href="/home.asp">'+ image[im] +'</a>';
}

function MM_openBrWindow(theURL,winName,features){
  window.open(theURL,winName,features);
}

//Debug function 
function lib_message(txt){alert(txt); return false}

//Lib objects
function lib_obj(obj,nest){ 
if(!bw.bw) return lib_message('Old browser');
nest = (!nest)? "":'document.'+nest+'.'
this.evnt = bw.dom? document.getElementById(obj):
bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;	
if(!this.evnt) return lib_message('The layer does not exist ('+obj+')'+'- \nIf your using Netscape please check the nesting of your tags!');
this.css = bw.dom||bw.ie4?this.evnt.style:this.evnt; 
this.ref = bw.dom||bw.ie4?document:this.css.document;
this.x 	 = parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;
this.y   = parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0
this.w   = this.evnt.offsetWidth||this.css.clip.width||this.ref.width||this.css.pixelWidth||0; 
this.h   = this.evnt.offsetHeight||this.css.clip.height||this.ref.height||this.css.pixelHeight||0
this.c   = 0 //Clip values
if((bw.dom || bw.ie4) && this.css.clip){
  									   this.c = this.css.clip;
									   this.c = this.c.slice(5,this.c.length-1); 
  									   this.c = this.c.split(' ');
  									   for(var i=0;i<4;i++){
														   this.c[i] = parseInt(this.c[i]);
														   }
  									   }
this.ct  = this.css.clip.top||this.c[0]||0; 
this.cr  = this.css.clip.right||this.c[1]||this.w||0;
this.cb  = this.css.clip.bottom||this.c[2]||this.h||0; 
this.cl  = this.css.clip.left||this.c[3]||0;
this.obj = obj + "Object";
eval(this.obj + "=this");
return this;
}

//Moving object to
lib_obj.prototype.moveIt = function(x,y){
  										this.x = x;
										this.y = y;
										this.css.left = x;
										this.css.top = y
										}

//Moving object by
lib_obj.prototype.moveBy = function(x,y){
  										this.css.left = this.x+=x;
										this.css.top  = this.y+=y
										}
//Showing object
lib_obj.prototype.showIt = function(){this.css.visibility="visible"}

//Hiding object
lib_obj.prototype.hideIt = function(){this.css.visibility="hidden"}

//Writing content to object
lib_obj.prototype.writeIt = function(text,startHTML,endHTML){
	if(bw.ns4){
    if(!startHTML){startHTML=""; endHTML=""}
	  this.ref.open("text/html"); 
    this.ref.write(startHTML+text+endHTML); 
    this.ref.close()
	}else this.evnt.innerHTML=text
}

//Clipping object to ******
lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){ 
  this.ct=t; this.cr=r; this.cb=b; this.cl=l
  if(bw.ns4){
    this.css.clip.top=t;this.css.clip.right=r
    this.css.clip.bottom=b;this.css.clip.left=l
  }else{
    if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0
    this.css.clip="rect("+t+","+r+","+b+","+l+")";
    if(setwidth){this.css.pixelWidth=this.css.width=r; 
    this.css.pixelHeight=this.css.height=b}
  }
}

//Clipping object by ******
lib_obj.prototype.clipBy = function(t,r,b,l,setwidth){ 
  this.clipTo(this.ct+t,this.cr+r,this.cb+b,this.cl+l,setwidth)
}

//Clip animation ************
lib_obj.prototype.clipIt = function(t,r,b,l,step,fn,wh){
  tstep=Math.max(Math.max(Math.abs((t-this.ct)/step),Math.abs((r-this.cr)/step)),
    Math.max(Math.abs((b-this.cb)/step),Math.abs((l-this.cl)/step)))
  if(!this.clipactive){
    this.clipactive=true; if(!wh) wh=0; if(!fn) fn=0
    this.clip(t,r,b,l,(t-this.ct)/tstep,(r-this.cr)/tstep,
      (b-this.cb)/tstep,(l-this.cl)/tstep,tstep,0, fn,wh)
  }
}
lib_obj.prototype.clip = function(t,r,b,l,ts,rs,bs,ls,tstep,astep,fn,wh){
  if(astep<tstep){
    if(wh) eval(wh); 
    astep++
    this.clipBy(ts,rs,bs,ls,1);
    setTimeout(this.obj+".clip("+t+","+r+","+b+","+l+","+ts+","+rs+","
      +bs+","+ls+","+tstep+","+astep+",'"+fn+"','"+wh+"')",50)
  }else{
    this.clipactive=false; this.clipTo(t,r,b,l,1);
    if(fn) eval(fn)
  }
}

//-->
