	// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. 
	// but you can experiment with effect on loadtime.
	if (mtDropDown.isSupported()) {

		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left offset positions of the menus from their actuators
		// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
		// something like -5, 5
		//
		// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
		// of the actuator from which to measure the offset positions above. Here we are saying we want the 
		// menu to appear directly below the bottom left corner of the actuator
		//==================================================================================================
		var ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.topRight);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		
		// menu : AboutUs
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		
     	//	dim dbcon As New SqlConnection()
        //  dbcon.ConnectionString = ConfigurationSettings.AppSettings("SqlConnection")
        //If dbcon.State = ConnectionState.Closed Then dbcon.Open()
        //Dim cmd As New SqlCommand()
        //Dim reader As SqlDataReader
        //Dim str As String
        //cmd.CommandText = "Select * from sitemenu where parentmenuid=2 order by menuid"
        //cmd.Connection = dbcon
        //reader = cmd.ExecuteReader()		
		//While reader.read
		  //  menu1.addItem("- rssubmnu1("menuname")","rssubmnu1("filename")");
			//menu1.addItem("- Corporate Profile", "missionvision.aspx"); // send no URL if nothing should happen onclick
			//reader.movenext
		//wend
				
		menu1.addItem("- Police Mission, CID Mission", "missionvision.html");  // send no URL if nothing should happen onclick
		menu1.addItem("- Organisation", "mainaboutusorg.html"); // send no URL if nothing should happen onclick
		menu1.addItem("- Chiefs - Then & Now", "chiefs.html");
		menu1.addItem("- CID-Today -", "smainaboutuscidtoday.html");
		// menu
		//==================================================================================================

		//==================================================================================================
		// add a sub-menu
		//==================================================================================================
		// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
		// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
		// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
		//==================================================================================================
		
		// submenu : Organisation
		var subMenu1 = menu1.addMenu(menu1.items[1]);
		subMenu1.addItem("- Organisation Structure", "orgstructure.html");
		//subMenu1.addItem("- Message from DGP - AP Police", "aboutusmsgdgp.aspx");
		subMenu1.addItem("- Message from Addl. DG - CID", "aboutusmsgs.html");
		// submenu
		
		// submenu : History
		//var subMenu2 = menu1.addMenu(menu1.items[2]);
		//subMenu2.addItem("- Establishment Details", "htmlfiles/establishment.html");
		//subMenu2.addItem("- Chiefs - Then & Now", "htmlfiles/chiefs.html");		
		// submenu
		
		// submenu : CIDToday
		var subMenu3 = menu1.addMenu(menu1.items[3]);
		subMenu3.addItem("- Current Leadership", "currentleadership.html");
		subMenu3.addItem("- CID Functions", "cidfunctions.html");
		subMenu3.addItem("- Action Plans", "actionplans.html");
		// submenu

		// menu : WantedCriminals
		var menu2 = ms.addMenu(document.getElementById("menu2"));		
		menu2.addItem("- Top Ten Most Wanted Criminals", "topwc.jsp");
		menu2.addItem("- All Wanted Criminals", "allwc.jsp");
		// menu
		
		// menu : MissingPersons
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("- Missing Persons' Details", "http://results2.ap.nic.in/wcd/simple_search.jsp");		
		//menu3.addItem("- All Missing Persons", "htmlfiles/allmp.html");
		// menu

		// menu : UnclaimedVehicles
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("- All Missing Vehilces", "./AllMissingVehicles.jsp");
		menu5.addItem("- All Unclaimed Vehicles", "alluv.html");	
		menu5.addItem("- Vehicle Information Document", "vehinfodoc.html");	
		menu5.addItem("- All Missing Mobiles", "missingmobiles.jsp");
		menu5.addItem("- All Unclaimed Mobiles", "allum.html");	
		// menu
			
		// menu : UnidentifiedBodies
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("- Recent Unidentified Bodies", "http://results2.ap.nic.in/wcd/ui_search.jsp");
		//menu4.addItem("- All Unidentified Bodies", "alluibodies.html");
		// menu
				
		// menu : WhiteCollerCrimes
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		//menu6.addItem("- All White Collar Crimes", "allwcc.aspx");		
		menu6.addItem("- Cyber Crimes", "cybercrimes.html");		
		menu6.addItem("- Economic Offences", "economicoffences.html");		
		menu6.addItem("- Report Internet Fraud", "InternetFraudComplaintCenter.jsp");		
		// menu
		
		// menu : PublicAletrs
		var menu7 = ms.addMenu(document.getElementById("menu7"));				
		menu7.addItem("- ATM Security", "atmsecurity.html");
		menu7.addItem("- ATM Steal", "atmsteal.html");
                                    menu7.addItem("- Before You Invest", "beforeinvest.html");
                                    menu7.addItem("- Burglary Prevention", "burglaryprevention.html");
                                    menu7.addItem("- Before Buying House or Flat", "b4buyhouserflat.html");
		menu7.addItem("- Crime Alerts", "allcrimealerts.html");		
		menu7.addItem("- Counterfeit Currency", "counterfeitcurrency.html");
        menu7.addItem("- Companies Rejected by RBI", "rbialerts.html");
        menu7.addItem("- Foreign Jobs", "foreignjobs.html");
		menu7.addItem("- It Notifications", "itnotifications.html");

		menu7.addItem("- House Safety", "housesafealalerts.html");
		menu7.addItem("- Parental Guide to Internet Safety", "parentguide.html");
		menu7.addItem("- Road Safety", "roadsafety.html");
		menu7.addItem("- Suspicious Objects", "suspiciousobjects.html");
        menu7.addItem("- Tips for Secure E-Mail", "emailtips.html");                                      
		menu7.addItem("- Youth and Drugs", "youngdrugs.html");
		// menu
				
		// menu : Library&References
		var menu8 = ms.addMenu(document.getElementById("menu8"));
		menu8.addItem("- Significant Dates", "significantdates.html");
		menu8.addItem("- Famous Cases", "famouscases.html");
		menu8.addItem("- Publications & Handbooks", "publications.html");
		menu8.addItem("- IT Act", "librefitact2000.html");
		//menu8.addItem("- The Freedom of IT Act", "freedomitact2002.aspx");
		menu8.addItem("- Crime Statistics", "ucrimereports.html");		
		menu8.addItem("- Organised Crime Act", "organizedcrimeact.html");		
		menu8.addItem("- Judgements", "judgements.html");
		menu8.addItem("- Archives of Press Releases", "recentpressreleases.html");
		menu8.addItem("- Interpol Application Forms", "interpolforms.html");
		// menu

		// menu : PressRoom
		var menu9 = ms.addMenu(document.getElementById("menu9"));		
		menu9.addItem("- Recent Press Releases", "recentpressreleases.html");
		//menu9.addItem("- Field News", "fieldnews.aspx");
		//menu9.addItem("- Gotcha", "gotcha.aspx");
		menu9.addItem("- CID e-News", "cidenews.html");
		// menu
		
		// menu : JailReleases
		var menu10 = ms.addMenu(document.getElementById("menu10"));		
		menu10.addItem("- Recent Jail Releases", "alljr.jsp");
		// menu

		// menu : CriminalGangs
		var menu12 = ms.addMenu(document.getElementById("menu12"));		
		menu12.addItem("- Dacoit Gangs", "specialuser.html");
		menu12.addItem("- Robery Gangs", "specialuser.html");
		menu12.addItem("- OtherTypes", "#");
		
		var subMenu4=menu12.addMenu(menu12.items[2]);

                subMenu4.addItem("- Kidnapping For Begging","specialuser.html");
                subMenu4.addItem("- Kidnapping For Prostitution","specialuser.html");
                subMenu4.addItem("- Kidnapping For Ransom","specialuser.html");
		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the HTML for the menus into the page with document.write(). It must be
		// called within the body of the HTML page.
		//==================================================================================================
		mtDropDown.renderAll();
	}

