//<!--
//1@@m1

function initMenu(Id,which,form){var CM=CatMenu1;if(which==2){CM=CatMenu2;}
if(which==3){CM=CatMenu3;}
if(which==4){CM=CatMenu4;}
var CatIdArray=new Array;var ChosenCatIdArray=new Array;var CategoryId;var chosenCategory;var numChildren;var CatId;var CatName;var level;var index;var i;var j;if(n[Id]==null)
{changeMenu(-1,which,form.name);return;}
CategoryId=Id;level=0;while(CategoryId!=0&&level<6)
{ChosenCatIdArray[level]=CategoryId;outerloop:for(i=0;i<c.length;i++)
{if(c[i]==null)
continue;for(j=0;j<c[i].length;j++)
{if(c[i][j]==CategoryId)
{CategoryId=i;CatIdArray[level]=CategoryId;break outerloop;}}}
level++;}
if(CategoryId!=0)
{changeMenu(-1,which,form.name);return;}
CatIdArray.reverse();ChosenCatIdArray.reverse();for(index=0;index<CatIdArray.length;index++)
{CM[index].length=0;chosenCategory=CatIdArray[index];numChildren=c[chosenCategory].length;for(i=0;i<numChildren;i++)
{CatId=c[chosenCategory][i];CatName=(c[CatId]==null)?n[CatId]:n[CatId]+" ->";CM[index].options[i]=new Option(CatName,CatId);if(CatId==ChosenCatIdArray[index])
CM[index].options[i].selected=true;}
CM[index].length=numChildren;if(index>0)
CM[index].options[numChildren]=new Option("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");}
for(i=index;i<CM.length;i++)
{CM[i].length=0;CM[i].options[0]=new Option("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");}}
function changeMenu(cm,which,form)
{var CM=CatMenu1;var catVAR=eval('document.'+form+'.category1');if(which==2){CM=CatMenu2;catVAR=eval('document.'+form+'.catII1');}
if(which==3){CM=CatMenu3;catVAR=eval('document.'+form+'.catIII1');}
if(which==4){CM=CatMenu4;catVAR=eval('document.'+form+'.catIV1');}
var chosenCategory;var numChildren;var CatId;var CatName;var i;if((cm!=-1)&&(CM[cm].length<1))
return;if(cm==-1)
chosenCategory=0;else
{if(CM[cm].selectedIndex==-1)
return;chosenCategory=CM[cm].options[CM[cm].selectedIndex].value;}
if(CM[cm])
{if(CM[cm].selectedIndex==CM[cm].length-1)
{catVAR.value=0;}
else
{catVAR.value=chosenCategory;}}
if(c[chosenCategory]==null)
{numChildren=0;}
else
{if(cm!=-1)
{if(form.name!="ChangePreferencesShow");else
catVAR.value=chosenCategory;}
numChildren=c[chosenCategory].length;}
if((cm+1)<CM.length)
{for(i=0;i<numChildren;i++)
{CatId=c[chosenCategory][i];CatName=(c[CatId]==null)?n[CatId]:n[CatId]+" ->";CM[cm+1].options[i]=new Option(CatName,CatId);}
CM[cm+1].length=numChildren;}
for(i=cm+2;i<CM.length;i++)
{CM[i].length=0;}
for(i=cm+1;i<CM.length;i++)
{if(i)
CM[i].options[eval(CM)[i].length]=new Option("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");}}
// b=1815757 -->