function
MenuBuild()//Building and configuring menu
{
    is = new BrowserCheck()		//Checking browser version
    // TE=new TreeItem(0,0,"items2","","");//creating menu object

    //creating menu object
    //     TreeItem(id,parid,name,    link,target,image,im2)
    TE=new TreeItem(0, 0,    "items2","",  "",    "",   "");

    TE.xpos=30;TE.ypos=35;		//x and y position
    TE.align="hor";	//ALIGnment "vert" - vertical "hor" - horizontal
    TE.bckColor="#ccffcc";		//back color
    TE.selBckColor="#009933";		//back color for selected items
    // TE.fntColor="#ff33cc";		//font color
    // TE.fntColor="#009933";		//font color
    TE.fntColor="#005700" ;		//font color
    TE.selFntColor="#ffffff";		//font color for selected items
    TE.width=130;			//column width
    TE.fntSize=1;			//font size
    TE.iHeight=15;			//item height
    TE.imWidth=20;			//icon image width
    TE.bSize=2;				//border width
    TE.face="Arial";			// font face
    TE.b=true;				// bold style
    TE.i=true;				// italic style
    TE.u=false;				// underlined style
    TE.bColor="#000000";		//border color
    TE.arrIm="list-img0.gif";

    // inserting items into menu
    //A(ItemID,ParentID,"title",URL,icon URL,rollower icon URL);

 TE.A(1,0,"Medical","","","");

  TE.A(12, 1,"Cancer","","","");
   TE.A(121, 12,"Brain Cancer","/browse/cancer/brain.html","DXContent","");
   TE.A(122, 12,"Breast Cancer","/browse/cancer/breast.html","DXContent","");
   TE.A(123, 12,"Leukemia","/browse/cancer/leukemia.html","DXContent","");
   TE.A(124, 12,"Lung Cancer","/browse/cancer/lung.html","DXContent","");
   TE.A(125, 12,"Throat Cancer","/browse/cancer/throat.html","DXContent","");
   TE.A(126, 12,"Other Cancer","/browse/cancer/general.html","DXContent","");

  TE.A(16,1,"Chronic Illness","","DXContent","");
   TE.A(161, 16,"Multiple Sclerosis","/browse/chronic/ms.html","DXContent","");
   TE.A(162, 16,"Chronic Fatigue","/browse/chronic/cfs.html","DXContent","");
   TE.A(163, 16,"Fibromyalgia","/browse/chronic/fm.html","DXContent","");

  TE.A(11, 1,"Pregnancy","","","");
   TE.A(111, 11,"High Risk","/browse/pregnancy/highrisk.html","DXContent","");
   TE.A(112, 11,"General Pregnancy","/browse/pregnancy/general.html","DXContent","");

  TE.A(15,1,"Heart Ailments","","DXContent","");
   TE.A(151, 15,"Heart-General","/browse/heart/general.html","DXContent","");
   TE.A(152, 15,"Stroke","/browse/heart/stroke.html","DXContent","");

  TE.A(19,1,"Psychological","","DXContent","");
   TE.A(191, 19,"Bipolar","/browse/psych/bipolar.html","DXContent","");
   TE.A(192, 19,"Psychological","/browse/psych/general.html","DXContent","");

  TE.A(20,1,"Neurological","","DXContent","");
   TE.A(201, 20,"Tourette","/browse/neuro/tourette.html","DXContent","");

  TE.A(18,1,"Special Needs","/browse/specialneeds/general.html","DXContent","");
  TE.A(13,1,"Paralysis","/browse/paralyse.html","DXContent","");
  TE.A(14,1,"Fertility","/browse/fertility.html","DXContent","");
  TE.A(17,1,"General Medical","/browse/general.html","DXContent","");

 TE.A(2,0,"Livelihood","/browse/livelihood.html","DXContent","");

 TE.A(3,0,"Shidduchim","/browse/shidduch.html","DXContent","");
 TE.A(4,0,"Kids At Risk","/browse/kidsatrisk.html","DXContent","");

    TE.WriteCSS();
    TE.WriteDiv();
}

//Inits menu Events
function MenuInit()
{
    TE.EventInit();
}

//Reseting menu
function Reset()
{
    TE.Reset();
}
