// This function allows onclick/mouseover/mouseout event calls to be added for each
// image pairs(numbered 0 to 6) in links_BW && logoC
// These event calls replace inline event calls.
function zxcEvtCalls(zxcevt){
 var zxcp=this.parentNode;
 var zxcdivs=zxcp.childNodes;
 for (var zxc0=0;zxc0<zxcdivs.length;zxc0++){
  if (zxcdivs[zxc0]==this) break;
 }
 if (zxcp.id=='links_BW'){
  zxcMseOverOut(this,zxcevt);
  if (zxcevt.type=='click'){
   if (zxc0==0){ location.href='info_fr.php?1?1'; }
   if (zxc0==1){ location.href='YPP_fr.php?2?1'; }
   if (zxc0==2){ location.href='social_fr.php?3?1'; }
   if (zxc0==3){ location.href='medical_fr.php?4?1'; }
   if (zxc0==4){ location.href='legal_fr.php?5?1'; }
   if (zxc0==5){ location.href='J2K_fr.php?6?1'; }
   if (zxc0==6){ location.href='streetwork_fr.php?7?1'; }
   if (zxc0==7){ location.href='sense_fr.php?8?1'; }
  }
  else if (zxcevt.type=='mouseover'){
   if (zxc0==0){ on1();
   }
   if (zxc0==1){ on2();
   }
   if (zxc0==2){ on3();
   }
   if (zxc0==3){ on4();
   }
   if (zxc0==4){ on5();
   }
   if (zxc0==5){ on6();
   }
   if (zxc0==6){ on7();
   }
   if (zxc0==7){ on8();
   }
  }
  else if (zxcevt.type=='mouseout'){
   if (zxc0==0){ off1();
   }
   if (zxc0==1){ off2();
   }
   if (zxc0==2){ off3();
   }
   if (zxc0==3){ off4();
   }
   if (zxc0==4){ off5();
   }
   if (zxc0==5){ off6();
   }
   if (zxc0==6){ off7();
   }
   if (zxc0==7){ off8();
   }
  }
 }
 if (zxcp.id=='logoC'){
  if (zxcevt.type=='click'){
   if (zxc0==0){
   }
   if (zxc0==1){
   }
   if (zxc0==2){
   }
   if (zxc0==3){
   }
   if (zxc0==4){
   }
   if (zxc0==5){
   }
   if (zxc0==6){
   }
   if (zxc0==7){
   }
  }
  else if (zxcevt.type=='mouseover'){
   if (zxc0==0){
   }
   if (zxc0==1){
   }
   if (zxc0==2){
   }
   if (zxc0==3){
   }
   if (zxc0==4){
   }
   if (zxc0==5){
   }
   if (zxc0==6){
   }
   if (zxc0==7){
   }
  }
  else if (zxcevt.type=='mouseout'){
   if (zxc0==0){
   }
   if (zxc0==1){
   }
   if (zxc0==2){
   }
   if (zxc0==3){
   }
   if (zxc0==4){
   }
   if (zxc0==5){
   }
   if (zxc0==6){
   }
   if (zxc0==7){
   }
  }
 }
}

// The zxcInitPage function
// call this function as the last onload event call
// the url ? string controls the 'links_BW' and 'linksInfo'
// e.g. ?1?1
// the first ? controls the  'links_BW' images (from 1 to 7)
// the second ? controls the  'linksInfo' Left-Border and section toggle (from 1 to n)
// I have no idea what the control for zxcli is, so i killed it by putting xxx there

function zxcInitPage(){
 var zxcbw=document.getElementById('links_BW');
 var zxcli=document.getElementById('linksxxx');
 var zxcloc=window.location.toString();
 zxcloc=zxcloc.split('?');
 var zxcbwnu=parseInt(zxcloc[1]);
 var zxclinu=parseInt(zxcloc[2])||1;
 if (zxcbw&&zxcbwnu){
  if (zxcbw.ary[zxcbwnu-1]){
   zxcbw.hold=zxcbw.ary[zxcbwnu-1][2];
   zxcFadeDo(zxcbw.hold,'mouseover');
   zxcbw.holdmirror=zxcbw.mirror[zxcbwnu-1][2];
   zxcFadeDo(zxcbw.holdmirror,'mouseover');
  }
 }
 if (zxcli&&zxclinu){
  if (linksInfoAry[zxclinu]) zxcToggle(linksInfoAry[zxclinu],zxclinu,0);
  var zxcbobj=zxcli.getElementsByTagName('A')[zxclinu-1];
  if (zxcbobj){
   zxcBorder('border-Left',zxcbobj,1000,'#FFFFFF','#0000A0','solid #0000A0 1px',1,0);
   zxcTBAry[zxclinu]=[];
   zxcTBAry[zxclinu].push([zxcbobj,0]);
  }
 }
}
