// Drop & Slide Menu DSMenuPart3 (06-03-2005)
// by Vic Phillips http://www.vicsjavascripts.org.uk

// Layer
//  0 - DSMenuOff
//  1 - DSNoteP3
//  2 - DSNoteP3Txt
//  3 - DSExtDiv
//  4 - DSNoteP2
//  5 - DSNoteP2Txt
//  6 - DSSubDiv
//  7 - DSNoteP1
//  8 - DSNoteP1Txt
//  9 - DSMenuBG
// 10 - dsTBG
// 11 - DSMouseOver
// 12 - DSTopicImg
// 13 - dsTN
// 14 - Menu
// 15 - TitleMouseOver
// 16 - TitleImage
// 17 - MenuName

// No Need to Change
var dsHTML='';
var DSMenuH=null;
var DSDropCk='Up';
var DSScrollTop=null;
var DSWH=null;
var DSWW=null;
var DSOverID='';
var DSTopicNo=null;
var DSSubNo=null;
var DSExtNo=null;
var DSSubInner=null;
var DSNote3Note='None';
var DSMenuDropH=null;

var DSTimeOut=null;
var DSTimeSL=null;
var DSTimeSR=null;
var DSExtTO=null;
var DSNote3TO=null;

var DSLastSubID=null;
var DSLastExtR=null;
var DSTemp3=null;
var DSLastID=null;
var dsSR=null;
var dsER=null;
var DSTopicPosTop=null;

var DSTopicAry=new Array();
var DSTopicTxtAry=new Array();
var DSTopicMOutAry=new Array;
var DSTopicMOverAry=new Array;
var DSTopicNoteAry=new Array();
var DSTopicLkAry=new Array();
var DSRecSubAry=new Array;
var DSRecExtAry=new Array();
var DSTxtOSAry=new Array();
var DSBGMOutAry=new Array;
var DSBGMOverAry=new Array
var dsDivAry=new Array();
var dsDivCnt=0;
var DSSTO;

var DSToDay=new Date;
var DSToDay=DSToDay.getDate()+'/'+(DSToDay.getMonth()+1)+'/'+ DSToDay.getYear();

if (DSTopicImgW=='None'){DSTopicImgW=0;}
var DSTopicXPos=Math.floor(DSMenuX+(DSMenuW/2)+(-DSTopicW/2));
var DSTopicImgPos=Math.floor(DSMenuX+(DSMenuW/2)+(-DSTopicImgW/2));
var DSMOverPos=Math.floor((DSMenuW-DSTopicW)/2)+2;
if (!document.all){
 DSMOverPos+=2;
}
var DSTopicMOutPos=Math.floor((DSTopicW/2)+(-DSTopicImgW/2));

if (DSImagePath=='None'){
 DSImagePath='';
}

if (DSTitleImg!='None'){
 if (DSTitleMOver=='None'){
  DSTitleMOver=DSImagePath+DSTitleImg;
 }
 else {
  DSTitleMOver=DSImagePath+DSTitleMOver;
 }
 DSTitleImg=DSImagePath+DSTitleImg;
}

 document.write(
 '<style>',
 '.DSTopic {position:absolute;cursor:hand; }',
 '.DSSubMenu  {position:absolute; visibility:hidden; background-color:'+DSSubBG+';}',
 '.DSSubMenuTopic {position:relative; cursor:hand;  background-color:'+DSBGOut+'; ',
 ' text-align:'+DSSubFontA+'; color:'+DSTextOut+'; ',
 ' Font-Size:'+DSSubFontSize+'; Font-Style:'+DSSubFontS+'; Font-Weight:'+DSSubFontW+';  Font-Family:'+DSSubFontF+'; }',
 '.DSNote {position:absolute; padding-left:5px; ',
 ' color:'+DSTextOut+'; text-align:'+DSNoteFontA+';',
 ' Font-Size:'+DSNoteFontSize+'; Font-Style:'+DSNoteFontS+'; Font-Weight:'+DSNoteFontW+';  Font-Family:'+DSNoteFontF+'; }',
 '</style>',
 '')


function DSWWHFind(){
 if (document.all){
  DSScrollTop='document.body.scrollTop';
  DSWH=document.documentElement.clientHeight;
  DSWW=document.documentElement.clientWidth;
  if (DSWH==0){
   DSWH=document.body.clientHeight;
   DSWW=document.body.clientWidth;
  }
 }
 else if (document.getElementById){
  DSScrollTop='window.pageYOffset';
  DSWH=window.innerHeight;
  DSWW=window.innerWidth;
 }
 DSWC=Math.round(DSWW/2);
}

function dsC(ID){
 if (document.all){ return (document.all[ID]); }
  else { return (document.getElementById(ID)); }
}

function DSScrollCk(){
 if (eval(DSScrollTop)>DSScrollOld+1||eval(DSScrollTop)<DSScrollOld-1){
  DSTopicStart();
  DSRise();
  }
 DSScrollOld=eval(DSScrollTop);
}

function DSTopicMake() {
 DSMakeTopics();
 DSWWHFind();
 DSScrollOld=eval(DSScrollTop);
 DSSTO=setInterval("DSScrollCk()",1000);

 dsHTML='<div id=DSTitle class=DSTopic onmouseover=javascript:DSDrop();return false; ></div>';
 dsHTML+='<div id=DSTitleMOver class=DSTopic onmouseover=javascript:DSDrop();return false; ></div>';
 dsHTML+='<div id=DSTitleMOut class=DSTopic onmouseover=javascript:DSDrop();return false; ></div>';
 dsHTML+='<div id=DSTitleTxt class=DSTopic onmouseover=javascript:DSDrop();return false; ></div>';
 dsHTML+='<div id=DSMenuBG class=DSTopic onmouseover=javascript:DSBGMOver(); ></div>';
 dsHTML+='<div id=DSMenuOff class=DSTopic onmouseover=javascript:DSRise(); >.</div>';
 for ( NMi=DSTopicAry.length-1;NMi>0;NMi--){
  dsHTML+='<div id='+('dsTBG'+NMi)+' class=DSTopic style="overflow:hidden;visibility:hidden;" ';
  dsHTML+=' onmouseover=javascript:DSTopicOver(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+=' onclick=javascript:DSTopicClick(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+='>';

  dsHTML+='<div id='+('dsTN'+NMi)+' class=DSTopic ';
  dsHTML+=' onmouseover=javascript:DSTopicOver(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+=' onclick=javascript:DSTopicClick(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+='>&nbsp;'+DSTopicTxtAry[NMi]+'&nbsp;</div>';

  dsHTML+='<img id='+('dsTMO'+NMi)+' class=DSTopic ';
  dsHTML+=' onmouseover=javascript:DSTopicOver(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+=' onclick=javascript:DSTopicClick(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+=' src='+DSTopicMOutAry[NMi]+' width='+DSTopicImgW+' height='+DSTopicH+'>';

  dsHTML+='<img id='+('dsTMV'+NMi)+' class=DSTopic ';
  dsHTML+=' onmouseover=javascript:DSTopicOver(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+=' onclick=javascript:DSTopicClick(\''+DSTopicAry[NMi]+'\');return false; ';
  dsHTML+=' src='+DSTopicMOverAry[NMi]+' width='+DSTopicImgW+' height='+DSTopicH+'>';
  dsHTML+='</div>';
 }

 dsHTML+='<div id=DSNP1 class=DSNote onmouseover=javascript:DSSubBGOver();>&nbsp;';
 dsHTML+='<div id=DSNP1Txt class=DSNote onmouseover=javascript:DSSubBGOver();>&nbsp;</div></div>';
 dsHTML+='<div id=DSNP2 class=DSNote onmouseover=javascript:DSExtBGOver();  >&nbsp;';
 dsHTML+='<div id=DSNP2Txt class=DSNote onmouseover=javascript:DSExtBGOver();  >&nbsp;</div></div>';
 dsHTML+='<div id=DSNP3 class=DSNote >&nbsp;';
 dsHTML+='<div id=DSNP3Txt class=DSNote  >&nbsp;</div></div>';

 dsDivAry[dsDivCnt]=document.createElement('DIV');
 document.getElementsByTagName('BODY')[0].appendChild(dsDivAry[dsDivCnt]);
 dsDivAry[dsDivCnt].innerHTML=dsHTML;
 dsDivCnt++;

 DSTopicStart();
}

function DSTopicStart() {
 dsNP1=dsC('DSNP1');
 dsNP1S=dsNP1.style;
 dsNP1T=dsC('DSNP1Txt');
 dsNP1TS=dsNP1T.style;
 dsNP2=dsC('DSNP2');
 dsNP2S=dsNP2.style;
 dsNP2T=dsC('DSNP2Txt');
 dsNP2TS=dsNP2T.style;
 dsNP3=dsC('DSNP3');
 dsNP3S=dsNP3.style;
 dsNP3T=dsC('DSNP3Txt');
 dsNP3TS=dsNP3T.style;
 dsTitleMOS=dsC('DSTitleMOut').style;

 DSSubVis('hidden');
 DSExtVis('hidden');
 DSDropCk='Up';
 clearTimeout(DSTimeOut);
 dsTitleS=dsC('DSTitle').style;
 dsTitleS.top=(eval(DSScrollTop)+DSMenuY)+'px';
 dsTitleS.left=DSMenuX+'px';
 dsTitleS.width=DSMenuW+'px';
 dsTitleS.height=(DSTopicH+DSTitleFontSep)+'px';
 dsTitleS.backgroundColor=DSTitleBGOut;
 dsTitleS.visibility='visible';
 dsTitleS.zIndex=(DSMenuLayer+14);
 dsTitleS.border='solid black 1px';

 dsTitleTS=dsC('DSTitleTxt').style;
 dsTitleTS.top=(eval(DSScrollTop)+DSMenuY+DSTopicFontP+(DSTitleFontSep/2))+'px';
 dsTitleTS.left=(DSMenuX+DSTitleFontI)+'px';
 dsTitleTS.width=DSMenuW+'px';
 dsTitleTS.height=(DSTopicH-DSTopicFontP)+'px';
 dsTitleTS.color=DSTitleTxtOut;
 dsTitleTS.visibility='visible';
 dsTitleTS.zIndex=(DSMenuLayer+17);
 dsTitleTS.fontSize=(DSTitleFontSize)+'px';
 dsTitleTS.fontFamily=DSTitleFontF;
 dsTitleTS.fontWeight=DSTitleFontW;
 dsTitleTS.fontStyle=DSTitleFontS;
 dsTitleTS.textAlign=DSTitleFontA;
 dsC('DSTitleTxt').innerHTML=DSMenuTitle;

 if (DSTitleImg!='None'){
  dsTitleMOS.top=(eval(DSScrollTop)+DSMenuY+(DSTitleFontSep/2))+'px';
  dsTitleMOS.left=(DSMenuX+(DSMenuW-DSTopicImgW)/2)+'px';
  dsTitleMOS.width=(DSTopicImgW)+'px';
  dsTitleMOS.height=(DSTopicH)+'px';
  dsTitleMOS.visibility='visible';
  dsTitleMOS.zIndex=(DSMenuLayer+16);
  dsC('DSTitleMOut').innerHTML='<img src='+DSTitleImg+' width='+DSTopicImgW+' height='+DSTopicH+' >';

  dsTitleMVS=dsC('DSTitleMOver').style;
  dsTitleMVS.top=(parseInt(dsTitleMOS.top))+'px';
  dsTitleMVS.left=(parseInt(dsTitleMOS.left))+'px';
  dsTitleMVS.width=(DSTopicImgW)+'px';
  dsTitleMVS.height=(DSTopicH)+'px';
  dsTitleMVS.visibility='visible';
  dsTitleMVS.zIndex=(DSMenuLayer+15);
  dsC('DSTitleMOver').innerHTML='<img src='+DSTitleMOver+' width='+DSTopicImgW+' height='+DSTopicH+' >';

  dsTitleTS.left=(parseInt(dsTitleMOS.left)+DSTitleFontI)+'px'
  dsTitleTS.width=(DSTopicImgW)+'px';
 }
 dsBGS=dsC('DSMenuBG').style;
 dsBGS.height='0px';
 dsBGS.width=DSMenuW+'px';
 dsBGS.left=(DSMenuX)+'px';
 dsBGS.top=(eval(DSScrollTop)+DSMenuY)+'px';
 dsBGS.backgroundColor=DSMenuC;
 dsBGS.visibility='hidden';
 dsBGS.border='solid black 1px';
 dsBGS.zIndex=(DSMenuLayer+9);
 dsOffS=dsC('DSMenuOff').style;
 dsOffS.height='10px';
 dsOffS.width=DSWW+'px';
 dsOffS.left='0px';
 dsOffS.top=(eval(DSScrollTop)-20)+'px';
 dsOffS.visibility='visible';
 dsOffS.zIndex=(DSMenuLayer);
 for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
  dsC('dsTBG'+(DSTopicAry.length-DSi)).style.top=((-(DSi*(DSTopicH+DSTopicSep)))+eval(DSScrollTop)+DSMenuY)+'px';
  dsC('dsTBG'+DSi).style.left=(DSTopicXPos)+'px';
  dsC('dsTBG'+DSi).style.width=(DSTopicW)+'px';
  dsC('dsTBG'+DSi).style.color=DSTextOut;
  dsC('dsTBG'+DSi).style.height=(DSTopicH)+'px';
  dsC('dsTBG'+DSi).style.zIndex=(DSMenuLayer+10);

  dsC(('dsTN'+DSi)).style.top=(DSTopicFontP)+'px';
  dsC('dsTN'+DSi).style.height=(DSTopicH-DSTitleFontP)+'px';
  dsC('dsTN'+DSi).style.color=DSTextOut;
  dsC('dsTN'+DSi).style.zIndex=(DSMenuLayer+13);
  dsC('dsTN'+DSi).style.fontSize=(DSTopicFontSize)+'px';
  dsC('dsTN'+DSi).style.fontFamily=DSTopicFontF;
  dsC('dsTN'+DSi).style.fontWeight=DSTopicFontW;
  dsC('dsTN'+DSi).style.fontStyle=DSTopicFontS;
  dsC('dsTN'+DSi).style.textAlign=DSTopicFontA;

  dsC('dsTMO'+DSi).style.left=((DSTopicW-DSTopicImgW)/2)+'px';
  dsC('dsTMO'+DSi).style.width=(DSTopicImgW)+'px';
  dsC('dsTMO'+DSi).style.height=(DSTopicH)+'px';
  dsC('dsTMO'+DSi).style.padding='0px';
  dsC('dsTMO'+DSi).style.zIndex=(DSMenuLayer+12);
  dsC('dsTMV'+DSi).style.left=((DSTopicW-DSTopicImgW)/2)+'px';
  dsC('dsTMV'+DSi).style.width=(DSTopicImgW)+'px';
  dsC('dsTMV'+DSi).style.height=(DSTopicH)+'px';
  dsC('dsTMV'+DSi).style.padding='0px';
  dsC('dsTMV'+DSi).style.zIndex=(DSMenuLayer+11);

  if (DSTopicMOutAry[DSi]=='None'){
   DSTxtOSAry[DSi]=0;
   DSBGMOutAry[DSi]=DSBGOut;
   DSBGMOverAry[DSi]=DSBGOver;
   dsC('dsTBG'+DSi).style.backgroundColor=DSBGMOutAry[DSi];
   dsC('dsTN'+DSi).style.width=(DSTopicW)+'px';
   dsC('dsTN'+DSi).style.left=(DSTopicFontI)+'px';
   dsC('dsTMO'+DSi).style.visibility='hidden';
   dsC('dsTMV'+DSi).style.visibility='hidden';
  }
  else {
   DSTxtOSAry[DSi]=((DSTopicW-DSTopicImgW)/2);
   DSBGMOutAry[DSi]=DSMenuC;
   DSBGMOverAry[DSi]=DSMenuC;
   dsC('dsTBG'+DSi).style.backgroundColor=DSBGMOutAry[DSi];
   dsC('dsTN'+DSi).style.width=(DSTopicW-((DSTopicW-DSTopicImgW)))+'px';
   dsC(('dsTN'+DSi)).style.left=(DSTopicFontI+DSTxtOSAry[DSi])+'px';
  }
 }
 DSNoteInit();
 dsNP1S.zIndex=(DSMenuLayer+7);
 dsNP1TS.zIndex=1;
 dsNP2S.zIndex=(DSMenuLayer+4);
 dsNP2TS.zIndex=1;
 dsNP3S.zIndex=(DSMenuLayer+1);
 dsNP3TS.zIndex=1;

 DSVis='hidden';
 for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
  DSTopicVis();
 }
}

function DSNoteInit() {
 for (DSNi=1;DSNi<4;DSNi++){
  dsC('DSNP'+DSNi).style.visibility='hidden';
  dsC('DSNP'+DSNi).style.height=(DSNoteH)+'px';
  dsC('DSNP'+DSNi).style.width=(DSMenuW)+'px';
  dsC('DSNP'+DSNi).style.left=(DSMenuX)+'px';
  dsC('DSNP'+DSNi).style.backgroundColor=DSNoteBG;
  dsC('DSNP'+DSNi+'Txt').style.height=(DSNoteH-DSNoteFontP)+'px';
  dsC('DSNP'+DSNi+'Txt').style.width=(DSMenuW-(DSNoteFontP*2))+'px';
  dsC('DSNP'+DSNi+'Txt').style.left=(0)+'px';
  dsC('DSNP'+DSNi+'Txt').style.top=(0)+'px';
 }
}

function DSDrop(){
 if (DSDropCk=='Up'){
  dsTitleS.backgroundColor=DSTitleBGOver;
  dsTitleTS.color=DSTitleTxtOver;
  dsTitleMOS.visibility='hidden';
  dsNP1S.left=(DSMenuX)+'px';
  dsNP2S.left=(DSMenuX)+'px';
  dsNP3S.left=(DSMenuX)+'px';
  clearTimeout(DSTimeSL);
  clearTimeout(DSTimeSR);
  DSVis='visible';
  dsBGS.visibility=DSVis;
  for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
   dsC('dsTBG'+DSi).style.left=(DSTopicXPos)+'px';
  }
  DSSubVis('hidden');
  DSExtVis('hidden');
  setTimeout('DSDropDo()',100);
 }
}

function DSDropDo(){
 if(parseInt(dsC('dsTBG1').style.top)<parseInt(dsTitleS.top)+DSTopicH+DSTopicSep*2+DSTitleFontSep){
  for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
   dsC('dsTBG'+DSi).style.top=((parseInt(dsC('dsTBG'+DSi).style.top)+10))+'px';
   if ((parseInt(dsC('dsTBG'+DSi).style.top))>parseInt(dsTitleS.top)&&dsC('dsTBG'+DSi).style.visibility=='hidden'){
   DSTopicVis();
   }
  }
  DSMenuDropH=(parseInt(dsC('dsTBG'+(DSTopicAry.length-1)).style.top)-eval(DSScrollTop)+DSTopicH*2-DSMenuY);
  if (DSMenuDropH>0){
  dsBGS.height=(DSMenuDropH)+'px';
  }
  DSTimeOut=setTimeout('DSDropDo()',1);
 }
 else {
  dsOffS.height=(DSWH)+'px';
  setTimeout('DSDropCk=\'Down\'',200);
 }
}

function DSRise(){
 dsTitleS.backgroundColor=DSTitleBGOut;
 dsTitleTS.color=DSTitleTxtOut;
 dsTitleMOS.visibility='visible';
 if (DSDropCk=='Down'){
  DSLastID=null;
  clearTimeout(DSTimeOut);
  clearTimeout(DSTimeSL);
  clearTimeout(DSTimeSR);
  clearTimeout(DSExtTO);
  clearTimeout(DSNote3TO);
  DSVis='hidden';
  setTimeout('DSSubVis(\'hidden\')',120);
  setTimeout('DSExtVis(\'hidden\')',220);
  setTimeout('DSNoteInit()',320);
  for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
   dsC(('dsTBG'+DSi)).style.left=(DSTopicXPos)+'px';
  }
  dsNP1S.visibility='hidden';
  dsNP2S.visibility='hidden';
  dsNP3S.visibility='hidden';
  DSMouseOut();
  setTimeout('DSRiseDo()',100);
 }
}

function DSRiseDo(){
 for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
  dsC('dsTBG'+DSi).style.top=(dsC('dsTBG'+DSi).offsetTop-10)+'px';
  if (dsC('dsTBG'+DSi).offsetTop<parseInt(dsTitleS.top)+10&&dsC(('dsTBG'+DSi)).style.visibility=='visible'){
   DSTopicVis();
  }
 }
 if ( parseInt(dsBGS.height)>20){
  dsBGS.height=(parseInt(dsC('dsTBG'+(DSTopicAry.length-1)).style.top)-eval(DSScrollTop)+DSTopicH*2-DSMenuY)+'px';
  dsOffS.height='10px';
 }
 if(parseInt(dsC('dsTBG'+(DSTopicAry.length-1)).style.top)>(eval(DSScrollTop)-10+DSMenuY)){
  DSTimeOut=setTimeout('DSRiseDo()',1);
 }
 else {
  clearTimeout(DSTimeOut);
  clearTimeout(DSTimeSL);
  clearTimeout(DSTimeSR);
  clearTimeout(DSExtTO);
  clearTimeout(DSNote3TO);
  setTimeout('DSSubVis(\'hidden\')',100);
  setTimeout('DSExtVis(\'hidden\')',150);
  setTimeout('DSNoteInit()',200);
  dsBGS.visibility=DSVis;
  setTimeout('DSDropCk=\'Up\'',200);
 }
}

function DSTopicVis(){
 dsC('dsTBG'+DSi).style.visibility=DSVis;
 if (DSTopicMOutAry[DSi]!='None'){
  dsC('dsTMO'+DSi).style.visibility=DSVis;
 }
 if (DSTopicMOverAry[DSi]!='None'){
  dsC('dsTMV'+DSi).style.visibility=DSVis;
 }
 dsC('dsTN'+DSi).style.visibility=DSVis;
}

function DSSubVis(DSVis){
 for (i=0;i<DSRecSubAry.length;i++){
  if (dsC('DSSubDiv'+DSRecSubAry[i])){
   if (DSVis=='hidden'){
    dsC('DSSubDiv'+DSRecSubAry[i]).style.left=(DSMenuX)+'px';
    dsNP1S.visibility='hidden';
   }
   dsC('DSSubDiv'+DSRecSubAry[i]).style.visibility=DSVis;
  }
 }
}

function DSExtVis(DSVisExt){
 for (i1=0;i1<DSRecExtAry.length;i1++){
  if (dsC('DSExtDiv'+DSRecExtAry[i1])){
   if (DSVisExt=='hidden'){
    dsNP2S.visibility='hidden';
    dsC('DSExtDiv'+DSRecExtAry[i1]).style.left=(DSMenuX)+'px';
   }
   dsC('DSExtDiv'+DSRecExtAry[i1]).style.visibility=DSVisExt;
  }
 }
}

function DSMouseOut(){
 for ( DSi=DSTopicAry.length-1;DSi>0;DSi--){
  dsC('dsTN'+DSi).style.color=DSTextOut;
  dsC('dsTBG'+DSi).style.backgroundColor=DSBGMOutAry[DSi];
  dsC('dsTBG'+DSi).style.width=(DSTopicW)+'px';
 }
}

function DSBGMOver(){
 dsTitleS.backgroundColor=DSTitleBGOut;
 dsTitleTS.color=DSTitleTxtOut;
 dsTitleMOS.visibility='visible';
 for (DSiMO=1;DSiMO<DSTopicAry.length;DSiMO++){
  dsC('dsTBG'+DSiMO).style.backgroundColor=DSBGMOutAry[DSiMO];
  dsC('dsTN'+DSiMO).style.color=DSTextOut;
  dsC('dsTBG'+DSiMO).style.left=(DSTopicXPos)+'px';
  if ( DSTopicMOutAry[DSiMO]!='None'){
   dsC('dsTMO'+DSiMO).style.visibility='visible';
  }
  DSOverID='';
 }
 dsNP2S.visibility='hidden';
 dsNP3S.visibility='hidden';
 dsNP3S.left=DSMenuX+'px';
 DSLastID=null;
 DSLastSubID=null;
 DSCk=0;
 clearTimeout(DSTimeSL);
 clearTimeout(DSTimeSR);
 DSExtVis('hidden');
 DSSubLeft();
}

function DSTopicOver(iD){
 if(DSDropCk=='Down'&&(iD!=DSLastID)){
  DSLastID=iD
  DSOverID=iD;
  DSMouseOut();
  DSCk=0;
  DSNoteVis='visible'
  for (DSiMO=0;DSiMO<DSTopicAry.length;DSiMO++){
   if (DSOverID==DSTopicAry[DSiMO]){
    DSTopicPosTop=dsC('dsTBG'+DSiMO).style.top;
    if (parseInt(DSTopicPosTop)+DSNoteH>(parseInt(dsTitleS.top)+DSMenuDropH)){
     DSTopicPosTop=(parseInt(dsTitleS.top)+DSMenuDropH-DSNoteH)+'px'
    }
    if (dsC('DSSubDiv'+DSOverID)){
     dsC('DSSubDiv'+DSOverID).style.visibility='visible';
     dsC('DSSubDiv'+DSOverID).style.top=DSTopicPosTop;
     dsC('DSSubDiv'+DSOverID).style.left=(DSMenuX)+'px';
    }
    for (i1=0;i1<DSRecExtAry.length;i1++){
     dsC('DSExtDiv'+DSRecExtAry[i1]).style.top=DSTopicPosTop;
    }
    dsC('dsTN'+DSiMO).style.color=DSTextOver;
    dsC('dsTBG'+DSiMO).style.backgroundColor=DSBGMOverAry[DSiMO];
    if (DSTopicMOverAry[DSiMO]!='None'){
    dsC('dsTMO'+DSiMO).style.visibility='hidden';
    }
    if (DSTopicNoteAry[DSiMO]!='#EMail#'&&DSTopicNoteAry[DSiMO]!='None'){
     dsC('dsTBG'+DSiMO).style.left=(DSTopicXPos+DSMOverPos)+'px';
     if (DSTopicNoteAry[DSiMO]=='None'){
     DSNoteVis='hidden'
     }
     clearTimeout(DSTimeSL);
     clearTimeout(DSTimeSR);
     DSSubInner=DSiMO;
     DSCk=1;
     DSSubLeft();
    }
   }
  }
  if (!DSCk){
   clearTimeout(DSTimeSL);
   clearTimeout(DSTimeSR);
   DSSubLeft();
  }
  dsNP2S.visibility='hidden';
  dsNP3S.visibility='hidden';
 }
}

function DSSubLeft(){
 if (DSDropCk=='Down'){
  if (dsNP1.offsetLeft>DSMenuX+5){
   if (DSTopicNoteAry[DSOverID]!='None'){
    dsNP1S.left=(dsNP1.offsetLeft-10)+'px';
    dsNP2S.left=dsNP1S.left;
   }
   if (dsC('DSSubDiv'+DSLastR)&&dsC('DSSubDiv'+DSLastR).offsetLeft>DSMenuX){
    dsC('DSSubDiv'+DSLastR).style.left=(dsC('DSSubDiv'+DSLastR).offsetLeft-10)+'px';
   }
   DSTimeSL=setTimeout('DSSubLeft()',100);
  }
  else {
   if (DSCk){
    DSLastR=DSOverID;
    dsNP1S.top=DSTopicPosTop;
    dsNP2S.top=dsNP1S.top;
    if (DSTopicLkAry[DSSubInner]!='None'&&dsC('DSSubDiv'+DSLastR)){
     dsC('DSSubDiv'+DSLastR).style.left=(dsC('DSSubDiv'+DSLastR).offsetLeft+10)+'px';
    }
    if (DSTopicNoteAry[DSSubInner]!='None'){
     dsC('DSNP1Txt').innerHTML='<br>'+DSTopicNoteAry[DSSubInner];
    }
    dsNP1S.visibility=DSNoteVis;
    DSSubRight();
   }
  }
 }
 else {
  DSSubVis('hidden');
 }
}

function DSSubRight(){
 if (DSDropCk=='Down'){
  if (dsNP1.offsetLeft<(DSMenuX+DSMenuW)){
   if (DSTopicNoteAry[DSOverID]!='None'){
    dsNP1S.left=(dsNP1.offsetLeft+10)+'px';
    dsNP2S.left=dsNP1S.left;
   }
   if (dsC('DSSubDiv'+DSOverID)){
    dsC('DSSubDiv'+DSOverID).style.left=(dsNP1.offsetLeft)+'px';
   }
   DSTimeSR=setTimeout('DSSubRight()',100);
  }
  else {
   dsNP2S.left=(dsNP1.offsetLeft)+'px';
  }
 }
 else {
  DSSubVis('hidden');
 }
}

function DSTopicClick(iDLk){
 for (DSi=0; DSi<DSTopicAry.length;DSi++){
  if (DSTopicAry[DSi]==iDLk){
   if (DSTopicLkAry[DSi]!='None'){
    window.top.location=(DSTopicLkAry[DSi]);
   }
   if (DSTopicLkAry[DSi]!='#Date#'){
    dsNP1S.visibility='hidden';
   }
  }
 }
}

function DSSubTopOver(DSSMOID){
 if (DSSMOID!=DSLastSubID){
  DSLastSubID=DSSMOID;
  DSSubNote=eval(DSSMOID+'Note');
  dsNP2S.visibility='hidden';
  if (DSSubNote!='None'){
   dsNP2S.visibility='visible';
  }
  clearTimeout(DSExtTO);
  DSExtVis('visible');
  setTimeout('DSExtLeft()',100);
  DSCkforLinks=0;
  if (dsC('DSExtDiv'+DSSMOID)){
   DSCkforLinks=1;
  }
  for (DSi=0;DSi<DSTopicAry.length;DSi++){
   if (DSOverID==DSTopicAry[DSi]){
    for (DSi2=1;DSi2<eval(DSOverID+'SubName.length');DSi2++){
     if (dsC('DSExtDiv'+eval(DSOverID+'SubAry[DSi2]'))){
      dsC('DSExtDiv'+eval(DSOverID+'SubAry[DSi2]')).style.top=(parseInt(dsNP2S.top))+'px';
      dsC('DSExtDiv'+eval(DSOverID+'SubAry[DSi2]')).style.left=(DSMenuX)+'px';
     }
    }
   }
  }
  setTimeout('dsC(DSLastSubID).style.backgroundColor=DSBGOver;dsC(DSLastSubID).style.color=DSTextOver;',10);
 }
}

function DSSubBGOver(){
 for (DSi=0;DSi<DSTopicAry.length;DSi++){
  if (DSOverID==DSTopicAry[DSi]){
   for (DSi2=1;DSi2<eval(DSOverID+'SubName.length');DSi2++){
    dsC(eval(DSOverID+'SubAry[DSi2]')).style.backgroundColor=DSBGOut;
    dsC(eval(DSOverID+'SubAry[DSi2]')).style.color=DSTextOut;
   }
  }
 }
 for (DSi=0;DSi<eval('DSRecSubAry.length');DSi++){
  if (dsC('DSSubDiv'+DSOverID)){
   dsNP1S.visibility='hidden';
  }
 }
}

function DSSubClick(DSSCID){
 if (eval(DSSCID+'Link')!='None'){
  window.top.location=eval(DSSCID+'Link');
 }
 else {
  dsNP2S.visibility='hidden';
 }
}

function DSExtBGOver(){
 if (DSCkforLinks){
  dsNP2S.visibility='hidden';
 }
}

function DSExtLeft(){
 if (DSDropCk=='Down'){
  if (parseInt(dsNP2S.left)>(DSMenuX+DSMenuW)){
   dsNP2S.left= (parseInt(dsNP2S.left)-10)+'px';
   dsNP3S.left= dsNP2S.left;
   if (dsC('DSExtDiv'+DSLastExtR)){
    dsC('DSExtDiv'+DSLastExtR).style.left=(parseInt(dsNP2S.left))+'px';
   }
   DSExtTO=setTimeout('DSExtLeft()',100);
  }
  else {
   dsC('DSNP2Txt').innerHTML='<br>'+DSSubNote;
   DSExtTO=setTimeout('DSExtRight()',10);
  }
 }
 else {
  DSExtVis('hidden');
 }
}

function DSExtRight(){
 if (DSDropCk=='Down'){
  if (parseInt(dsNP2S.left)<(parseInt(dsNP1S.left)+DSMenuW)){
   dsNP2S.left=(parseInt(dsNP2S.left)+10)+'px';
   dsNP3S.left= dsNP2S.left;
   if (dsC('DSExtDiv'+DSLastSubID)){
    dsC('DSExtDiv'+DSLastSubID).style.left=(parseInt(dsNP2S.left))+'px';
   }
   DSExtTO=setTimeout('DSExtRight()',100);
  }
  else {
   DSLastExtR=DSLastSubID;
  }
 }
 else {
  DSExtVis('hidden');
 }
}

function DSExtClick(DSSCID){
 if (eval(DSSCID+'Link')!='None'){
  window.top.location=eval(DSSCID+'Link');
 }
}

function DSExtMenuOver(Root){
 for (DSi2=1; DSi2<eval(Root+'ExtAry.length'); DSi2++){
  dsC(eval(Root+'ExtAry[DSi2]')).style.backgroundColor=DSBGOut;
  dsC(eval(Root+'ExtAry[DSi2]')).style.color=DSTextOut;
 }
}

function DSNote3LeftBG(){
 if (parseInt(dsNP3S.left)>(DSMenuX+DSMenuW*2)){
  dsNP3S.left= (parseInt(dsNP3S.left)-10)+'px';
  DSNote3TO=setTimeout('DSNote3LeftBG()',100);
 }
 else {
  dsNP3S.visibility='hidden';
 }
}

function DSExtDivTOver(NMSMOID){
 DSTemp3=NMSMOID;
 setTimeout('dsC(DSTemp3).style.backgroundColor=DSBGOver;dsC(DSTemp3).style.color=DSTextOver',100);
 dsNP3S.top=dsNP2S.top;
 dsNP3S.visibility='visible';
 DSNote3Note=eval(DSTemp3+'Note');
 clearTimeout(DSNote3TO);
 setTimeout('DSNote3Left()',100);
}

function DSNote3Left(){
 if (parseInt(dsNP3S.left)>(DSMenuX+DSMenuW*2)){
 dsNP3S.left= (parseInt(dsNP3S.left)-10)+'px';
 DSNote3TO=setTimeout('DSNote3Left()',100);
 }
 else {
  dsNP3S.visibility='hidden';
  if (DSNote3Note!='None'){
   dsC('DSNP3Txt').innerHTML='<br>'+DSNote3Note;
   DSNote3TO=setTimeout("DSNote3Right();dsNP3S.visibility='visible';",10);
  }
 }
}

function DSNote3Right(){
 if (parseInt(dsNP3S.left)<(DSMenuX+DSMenuW*3)){
  dsNP3S.left=(parseInt(dsNP3S.left)+10)+'px';
  DSNote3TO=setTimeout('DSNote3Right()',100);
 }
 else {
 }
}

function DSCloseTopic(){
 if (DSExtNo>0&&DSSubNo>0){
  DSMakeExtDiv();
 }
 if (DSSubNo>0){
  DSMakeSubDiv();
 }
}

function DSNewTopic(DSTopTxt,DSTopImg,DSTopMOver,DSTopLk,DSTopNote){
 if (DSTopMOver!='None'){
  DSTopMOver=DSImagePath+DSTopMOver;
 }
 if (DSTopImg!='None'){
  if (DSTopMOver=='None'){
   DSTopMOver=DSImagePath+DSTopImg;
  }
  DSTopImg=DSImagePath+DSTopImg;
 }
 DSTopicNo++;
 DSTopicAry[DSTopicNo]='DSTopic'+DSTopicNo;
 DSTopicTxtAry[DSTopicNo]=DSTopTxt
 DSTopicMOutAry[DSTopicNo]=DSTopImg;
 DSTopicMOverAry[DSTopicNo]=DSTopMOver;
 DSTopicNoteAry[DSTopicNo]=DSTopNote;
 DSTopicLkAry[DSTopicNo]=DSTopLk;
 dsSR=DSTopicAry[DSTopicNo];
 eval(dsSR+'SubAry=new Array;');
 eval(dsSR+'SubName=new Array;');
 DSRecSubAry[DSRecSubAry.length]=dsSR;
 DSSubNo=0;
 DSExtNo=0;
}

function DSNewSub(SubName,SubLink,SubNote){
 if (DSExtNo>0){
  DSMakeExtDiv();
 }
 DSSubNo++
 eval(dsSR+'SubAry[DSSubNo]=\''+dsSR+'E'+DSSubNo+'\';');
 eval(dsSR+'SubName[DSSubNo]=SubName;');
 eval(dsSR+'E'+DSSubNo+'Link=SubLink;');
 eval(dsSR+'E'+DSSubNo+'Note=SubNote;');
 DSExtNo=0;
 dsER=dsSR+'E'+DSSubNo;
 eval(dsER+'ExtAry=new Array;');
}

function DSNewExt(ExtName,ExtLink,ExtNote){
 DSRecExtAry[DSRecExtAry.length]=dsER;
 DSExtNo++;
 eval(dsER+'ExtAry['+DSExtNo+']=\''+dsER+'E'+DSExtNo+'\';');
 eval(dsER+'E'+DSExtNo+'Name=\''+ExtName+'\';')
 eval(dsER+'E'+DSExtNo+'Note=\''+ExtNote+'\';')
 eval(dsER+'E'+DSExtNo+'Link=\''+ExtLink+'\';')
}

function DSMakeSubDiv(){
 dsHTML='<div id=DSSubDiv'+dsSR+' class=DSSubMenu onmouseover=javascript:DSSubBGOver(); >';
 for (DSi=1;DSi<eval(dsSR+'SubAry.length');DSi++){
  dsHTML+='<div id='+eval(dsSR+'SubAry[DSi]')+' class=DSSubMenuTopic ';
  dsHTML+='onmouseover=javascript:DSSubTopOver(\''+eval(dsSR+'SubAry[DSi]')+'\'); ';
  dsHTML+='onclick=javascript:DSSubClick(\''+eval(dsSR+'SubAry[DSi]')+'\'); ';
  dsHTML+='>&nbsp;'+eval(dsSR+'SubName[DSi]')+'</div>';
 }
 dsHTML+='</div>';
 dsDivAry[dsDivCnt]=document.createElement('DIV');
 document.getElementsByTagName('BODY')[0].appendChild(dsDivAry[dsDivCnt]);
 dsDivAry[dsDivCnt].innerHTML=dsHTML;
 dsDivCnt++;
 for (DSi=1;DSi<eval(dsSR+'SubAry.length');DSi++){
  dsC(eval(dsSR+'SubAry[DSi]')).style.top=(DSSubTopicSep*DSi+5)+'px';
  dsC(eval(dsSR+'SubAry[DSi]')).style.width=(DSMenuW-20)+'px';
  dsC(eval(dsSR+'SubAry[DSi]')).style.height=(DSSubTopicH)+'px';
  dsC(eval(dsSR+'SubAry[DSi]')).style.left='10px';
  dsC(eval(dsSR+'SubAry[DSi]')).style.backgroundColor=DSBGOut;
  dsC(eval(dsSR+'SubAry[DSi]')).style.cursor='hand';
 }
 dsC('DSSubDiv'+dsSR).style.width=(DSMenuW)+'px';
 dsC('DSSubDiv'+dsSR).style.height=(DSSubMenuH)+'px';
 dsC('DSSubDiv'+dsSR).style.left=(DSMenuX)+'px';
 dsC('DSSubDiv'+dsSR).style.visibility='visible';
 dsC('DSSubDiv'+dsSR).style.zIndex=(DSMenuLayer+6);
}

function DSMakeExtDiv(){
 dsHTML='<div id=DSExtDiv'+dsER+' class=DSSubMenu onmouseover=javascript:DSExtMenuOver(\''+dsER+'\'); >';
 for (DSi2=1; DSi2<eval(dsER+'ExtAry.length'); DSi2++){
  dsHTML+='<div id='+eval(dsER+'ExtAry[DSi2]')+' class=DSSubMenuTopic ';
  dsHTML+='onmouseover=javascript:DSExtDivTOver(\''+eval(dsER+'ExtAry[DSi2]')+'\'); ';
  dsHTML+='onclick=javascript:DSExtClick(\''+eval(dsER+'ExtAry[DSi2]')+'\'); ';
  dsHTML+='>&nbsp;'+eval(dsER+'E'+DSi2+'Name')+'</div>';
 }
 dsHTML+='</div>';
 dsDivAry[dsDivCnt]=document.createElement('DIV');
 document.getElementsByTagName('BODY')[0].appendChild(dsDivAry[dsDivCnt]);
 dsDivAry[dsDivCnt].innerHTML=dsHTML;
 dsDivCnt++;
 for (DSi2=1; DSi2<eval(dsER+'ExtAry.length'); DSi2++){
  dsC(eval(dsER+'ExtAry[DSi2]')).style.top=(DSSubTopicSep*DSi2+5)+'px';
  dsC(eval(dsER+'ExtAry[DSi2]')).style.width=(DSMenuW-20)+'px';
  dsC(eval(dsER+'ExtAry[DSi2]')).style.height=(DSSubTopicH)+'px';
  dsC(eval(dsER+'ExtAry[DSi2]')).style.left='10px';
  dsC(eval(dsER+'ExtAry[DSi2]')).style.backgroundColor=DSBGOut;
  dsC(eval(dsER+'ExtAry[DSi2]')).style.cursor='hand';
 }
 dsHTML+='</div>';
 dsC('DSExtDiv'+dsER).style.width=(DSMenuW)+'px';
 dsC('DSExtDiv'+dsER).style.height=(DSSubMenuH)+'px';
 dsC('DSExtDiv'+dsER).style.left=(DSMenuX+DSMenuW+DSMenuW)+'px';
 dsC('DSExtDiv'+dsER).style.visibility='visible';
 dsC('DSExtDiv'+dsER).style.zIndex=(DSMenuLayer+3);
}

DSTopicMake();


