function menuInit(){}
function hide(w){}
function O(id) { return document.getElementById(id); }
function mPos(itemid)
{
	var o = O(itemid);
	var l = t = 0;
	if (o.offsetParent)
	{
		l = o.offsetLeft;
		t = o.offsetTop;
		while (o = o.offsetParent)
		{
			l += o.offsetLeft;
			t += o.offsetTop;
		}
	}
	return "{positions:{position:[{top:" + t + ",left:" + l + "}]}}";
}

function mSMD(itemid, subid)
{
    if (mIsIE())
        document.body.onmouseover = function() { mHd(document.body, document.body.event); }
    else
        document.body.setAttribute("onmouseover", "javascript:mHd(this, event);");
        
	var totWidth = mBdW();
	var pos = mPos(itemid);
	pos = eval(pos);
	var obj1 = O(subid);
	var obj = O(itemid);
	mHdB();
	obj1.style.display = "";
	obj1.style.width = parseInt(obj1.clientWidth) < 150 ? "150px" : obj1.clientWidth + "px";
	var left = pos[0].left;
	if ((totWidth - left) < obj1.clientWidth)
	{
		obj1.style.left = pos[0].left + obj.clientWidth - obj1.clientWidth + 2 + "px";
		obj1.style.top = pos[0].top + obj.clientHeight + "px";
	}
	else
	{
		obj1.style.left = left + "px";
		obj1.style.top = pos[0].top + obj.clientHeight + "px";
	}
}

function lu(abc)
{
	location.href = "http://www.bseindia.com" + abc;
}
function mSML(parent, self)
{
	var totWidth = mBdW();
	var pos = mPos(parent);
	pos = eval(pos);
	var obj1 = O(self);
	var obj = O(parent);
	var pIDs = "";
	var o = obj1;

	while (o.attributes.getNamedItem("parent"))
	{
		pIDs += "," + o.attributes.getNamedItem("parent").nodeValue + ",";
		o = O(o.attributes.getNamedItem("parent").nodeValue);
	}

	mHdA("level2", pIDs);
	obj1.style.display = "";
	var left = pos[0].left + obj.clientWidth;
	if ((totWidth - left) < obj1.clientWidth)
	{
		obj1.style.left = pos[0].left - obj1.clientWidth + "px";
		obj1.style.top = pos[0].top + "px";
	}
	else
	{
		obj1.style.left = left + "px";
		obj1.style.top = pos[0].top + "px";
	}
}
function mIsIE(){
	var browser = navigator.appName;
	var b_version = navigator.appVersion;
	var version = parseFloat(b_version);
	if (browser == "Microsoft Internet Explorer" && (version >= 4))
		return true;
	else
		return false;
}

function mHdA(level, pIDs)
{
	if(mIsIE())
	{
		var arr1 = document.getElementsByTagName("span");
		for (var i = 0; i < arr1.length; i++)
		{
			if (arr1[i].name == level)
			{
				if (pIDs.indexOf("," + arr1[i].id + ",") <= -1)
					arr1[i].style.display = "none";
			}
		}
	}
	else
	{
		var arr = document.getElementsByName(level);
		for (var i = 0; i < arr.length; i++)
		{
			if (pIDs.indexOf("," + arr[i].id + ",") <= -1)
				arr[i].style.display = "none";
		}
	}
}
function mHd(obj, e)
{
	if(!e)
		e= window.event;

    if (e)
    {
        var pnode = "";
        reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;

        if (reltg)
        {
            //SV("txt", reltg.nodeName);
            pnode = reltg.parentNode;
            if (reltg.id != 'dvI' && reltg.id != 'ma' && reltg.id != 'mtb' && reltg.id != 'mtrc' && pnode.id != 'mtrc' && pnode.id != 'mRoot' && reltg.className != "dv")
            {
                mHdB();
                if (mIsIE())
                    document.body.onmouseover = null;
                else
                    document.body.setAttribute("onmouseover", null);
            }
        }
    }
}
function mHdB() { mHdA("level1", ""); mHdA("level2", ""); }
function mBdW() { return document.getElementById("tblroot").clientWidth;}

var stbl = "";
var ctbl = "";
var sr = "";
var cr = "";
var mWid = "";
var ld = "";
var cd = "";

function mCreate()
{
	stbl = "<table id='mtb' cellspacing='0' cellpadding='0' border='0' class='items'>";
	ctbl = "</table>";
	sr = "<tr id='mtrc'><td onmouseover=\"javascript:mOver(this);mHdA('level2','');\" onmouseout='javascript:mOut(this);'>";
	cr = "</td></tr>";
	mWid = "<div id='dvI' style='width:150px;height:0px;overflow:hidden;font-size:0px'>&nbsp;</div>";
	ld = "class='dv' style='display: none;' ";
	cd = "</span>";

	var top = "<div id='tmpdv'></div><table cellpadding='0' cellspacing='1' style='height:40px; width: 100%; text-align: center;border-top:5px solid #666'><tr id='mtrc'>";
	top += "<td id='h1' class='ptr' onmouseover=\"javascript:mSMD('h1','dvh1');\">About&nbsp;us</td>";
	top += "<td id='h2' class='ptr' onmouseover=\"javascript:mSMD('h2','dvh2');\">Notifications</td>";
	top += "<td id='h3' class='ptr' onmouseover=\"javascript:mSMD('h3','dvh3');\">Indices</td>";
	top += "<td id='h4' class='ptr' onmouseover=\"javascript:mSMD('h4','dvh4');\">Public Issues / RBBS / Buyback</td>";
	top += "<td id='h5' class='ptr' onmouseover=\"javascript:mSMD('h5','dvh5');\">Listing</td>";
	top += "<td id='h6' class='ptr' onmouseover=\"javascript:mSMD('h6','dvh6');\">Corporate Filings</td>";
	top += "<td id='h7' class='ptr' onmouseover=\"javascript:mSMD('h7','dvh7');\">Training / Certification</td>";
	top += "<td id='h8' class='ptr' onmouseover=\"javascript:mSMD('h8','dvh8');\">Data</td>";
	top += "<td id='h9' class='ptr' onmouseover=\"javascript:mHdB();\" onclick=\"javascript:lu('/about/Memberbse.asp');\">Members</td>";
	top += "<td id='h10' class='ptr' onmouseover=\"javascript:mSMD('h10','dvh10');\">Investors</td>";
	top += "<td id='h11' class='ptr' onmouseover=\"javascript:mHdB();\" onclick=\"javascript:lu('/login.asp?flag=1&type=1');\">My&nbsp;BSE</td>";
	top += "</tr></table>";

	var d1 = "<span id='dvh1' name='level1' " + ld + ">"  + stbl;
	d1 += noarrow("/about/introbse.asp", "Introduction to BSE", "");
	d1 += noarrow("/about/vision.asp", "Vision", "");
	d1 += noarrow("/about/logo.asp", "Logo (Textual and Graphic)", "");
	d1 += arrow("liCS", "dvCS", "Corporate Structure");
	d1 += arrow("liBS", "dvBS", "BSE Shareholders");
	d1 += noarrow("/about/st_key/keystats010.asp", "Statistics", "");
	d1 += noarrow("/about/listholi.asp", "List of Holidays", "");
	//d1 += noarrow("/about/bseannual.asp", "BSE Annual Accounts", "");
	d1 += noarrow("/convention/index.asp", "BSE International Convention Hall", "");
	d1 += noarrow("/about/careers.asp", "Careers", "");
	d1 += noarrow("/contact/index.asp", "Contact Us", "");
	d1 += ctbl + cd;

	var d2 = "<span id='dvh2' name='level1' " + ld + ">" + stbl;
	d2 += noarrow("/cirbrief/notices.asp?day=today", "Circulars / Notices", "");
	d2 += noarrow("/cirbrief/pressrel.asp", "Media Releases", "");
	d2 += noarrow("/stockinfo/setcal.aspx", "Settlement Calendar", "");
	d2 += noarrow("/about/datal/suspend.asp", "Companies Suspended", "");
	d2 += noarrow("/about/datal/debent.asp", "SEBI Debarred Entities", "");
	d2 += ctbl + cd;

	var d3 = "<span id='dvh3' name='level1' " + ld + ">" + stbl;
	d3 += noarrow("/about/abindices/preface.asp", "Preface", "");
	d3 += noarrow("/about/abindices/betavalues.asp", "Beta Values for SENSEX Scrips", "");
	d3 += noarrow("/about/abindices/bse30.asp", "SENSEX", "");
	d3 += noarrow("/about/abindices/bse100.asp", "BSE-100 Index", "");
	d3 += noarrow("/about/abindices/bse200.asp", "BSE-200 Index", "");
	d3 += noarrow("/about/abindices/dollex1.asp", "Dollex Series of BSE Indices", "");
	d3 += noarrow("/about/abindices/bse500.asp", "BSE-500 Index", "");
	d3 += noarrow("/about/abindices/bseipo.asp", "BSE IPO Index", "");
	d3 += noarrow("/about/abindices/SectoralIndices.asp", "Sectoral Indices", "");
	d3 += noarrow("/about/abindices/bseteck.asp", "BSE TEC<i>k</i> Index", "");
	d3 += noarrow("/about/abindices/bsepsu.asp", "BSE PSU Index", "");
	d3 += noarrow("/about/abindices/bsemidsmcap.asp", "BSE Mid-Cap and BSE Small-Cap Index", "");
	d3 += noarrow("/mktlive/indiceshighlights.asp", "Indices Highlights", "");
	d3 += noarrow("/about/st_key/index_ratios.asp", "Index and Ratios", "");
	d3 += noarrow("/mktlive/mktwatch.asp", "Indices Watch", "");
	d3 += ctbl + cd;

	var d4 = "<span id='dvh4' name='level1' " + ld + ">" + stbl;
	d4 += arrow("liPI", "dvPI", "Public Issues");
	d4 += arrow("liRBB", "dvRBB", "Reverse Bookbuilding");
	d4 += noarrow("/mktlive/market_summ/buyback/display.asp", "Buyback", "");
	d4 += ctbl + cd;

	var d5 = "<span id='dvh5' name='level1' " + ld + ">" + stbl;
	d5 += noarrow("/about/Benefits.asp", "Benefits of Listing", "");
	d5 += noarrow("/about/abintrobse/listsec.asp", "Guidelines for Listing", "");
	d5 += noarrow("/about/bse_deutsche.asp", "International Listing Cooperation", "");
	d5 += noarrow("/about/list_comp.asp", "List of Companies", "");
	d5 += noarrow("/about/datal/change/changes.asp", "Change of Company Name", "");
	d5 += noarrow("/about/indonext.asp", "BSEIndonext", "");
	d5 += noarrow("/ipo/schema.asp", "Information Memorandum", "");
	d5 += noarrow("/invdesk/unknown_cat.asp", "Unknown Category", "");
	d5 += noarrow("/spice/about.asp", "Exchange Traded Funds", "");
	d5 += noarrow("/about/Circular_listcomp.asp", "Circulars to Listed Companies", "");
	d5 += noarrow("/about/Compliance.asp", "Compliance", "");
	d5 += ctbl + cd;

	var d6 = "<span id='dvh6' name='level1' " + ld + ">" + stbl;
	d6 += noarrow("/mktlive/board_meeting.asp", "Forthcoming Board Meetings", "");
	d6 += noarrow("/qresann/rstcal.asp", "Forthcoming Results", "");
	d6 += noarrow("/mktlive/corp_Act.asp", "Forthcoming Corporate Actions", "");
	d6 += noarrow("/shareholding/sharehold_search.asp", "Shareholding Patterns", "");
	d6 += noarrow("/qresann/compres.asp", "Company Results", "");
	d6 += noarrow("/qresann/announce.asp", "Corporate Announcements", "");
	d6 += noarrow("/Insidetrade.asp", "Disclosures - Insider Trading", "");
	d6 += noarrow("/Sast.asp", "Disclosures - SAST", "");
	d6 += noarrow("/mktlive/contactinformation.asp", "Contact Information", "");
	d6 += ctbl + cd;

	var d7 = "<span id='dvh7' name='level1' " + ld + ">" + stbl;
	d7 += noarrow("/training/about.asp", "BTI Information", "");
	d7 += arrow("liEnT", "dvEnT", "Education &amp; Training");
	d7 += noarrow("/whtsnew/Educationalvisit.asp", "Educational Visit", "");
	d7 += arrow("liBCMC", "dvBCMC", "BCFM Certification");
	d7 += sr + "<a id='ma' href='http://payment.bseindia.com/'>BCFM-Registration</a>" + cr;
	d7 += arrow("liNISM", "dvNISM", "NISM Certification");
	d7 += noarrow("/training/BSE_ICRA%20Certification%20%20.asp", "BSE_ICRA Certification", "");
	//d7 += arrow("liAMFI", "dvAMFI", "AMFI");
	d7 += noarrow("/whtsnew/whats_new.asp", "Whats New", "");
	d7 += ctbl + cd;

	var d8 = "<span id='dvh8' name='level1' " + ld + ">" + stbl;
	d8 += noarrow("/about/abtip.asp", "Introduction", "");
	d8 += noarrow("/about/datapdcts.asp", "Products", "");
	d8 += noarrow("/about/Faqs.asp", "FAQs", "");
	d8 += ctbl + cd;

	var d9 = "<span id='dvh10' name='level1' " + ld + ">" + stbl;
	d9 += noarrow("/invdesk/services.asp", "Guide for Investors", "");
	d9 += noarrow("/sensex/research.aspx", "Research Reports on Companies", "");
	d9 += noarrow("/cirbrief/notices_reg.asp", "Regulatory Orders", "");
	d9 += noarrow("/invdesk/invgrievstats.asp", "Complaint / Arbitration Status", "");
	d9 += noarrow("/Arbitration/ArbitAwards.aspx", "Arbitration Awards", "");
	d9 += noarrow("/invdesk/coforeign.asp", "Opportunities For Foreign Investors", "");
	d9 += noarrow("/invdesk/invGrievances.asp", "Investor Grievances", "");
	d9 += noarrow("/invdesk/Arbitrage.asp", "Arbitration", "");
	d9 += noarrow("/invdesk/FAqs.asp", "FAQs", "");
	d9 += ctbl + cd;

	var d10 = "<span id='dvCS' name='level2' " + ld + ">" + stbl;
	d10 += noarrow("/about/board.asp", "Board Of Directors", "dvCS");
	d10 += fsr('dvCS') + "<a id='ma' href='http://www.bseindia.com/deri/Deri/Deri_dergovcl.htm?L=2&id=hd1&Lid=1'>Derivatives-Governing / Clearing Council</a>" + cr;
	//d10 += fsr('dvCS') + "<a id='ma' href='http://www.bseindia.com/deri/CDX/cdx_curgovcl.htm?L=2&id=hd4&Lid=4'>CDX-Governing / Clearing Council</a>" + cr;
	d10 += noarrow("/about/mgmteam.asp", "Management Team", "dvCS");
	d10 += ctbl + cd;

	var d11 = "<span id='dvBS' name='level2' " + ld + ">" + stbl;
	d11 += noarrow("/about/agm.asp", "AGM / EGM", "dvBS");
	d11 += noarrow("/about/corporate.asp", "Corporate Actions", "dvBS");
	d11 += arrow("liFin", "dvFin", "Financial");
	d11 += noarrow("/about/infoshareholder.asp", "Information for shareholders", "dvBS");
	d11 += ctbl + cd;

	var d12 = "<span id='dvPI' name='level2' " + ld + ">" + stbl;
	d12 += noarrow("/bookbuilding/about.asp", "About Bookbuilding", "dvPI");
	d12 += noarrow("/bookbuilding/newbookbuilding.asp?status=f&ir_flag=ipo", "Forthcoming Issues", "dvPI");
	d12 += noarrow("/bookbuilding/newbookbuilding.asp?status=l&ir_flag=ipo", "Bookbuilding Live", "dvPI");
	d12 += noarrow("/bookbuilding/bookbuilding_hist.asp?ir_flag=ipo", "Historical Information", "dvPI");
	d12 += noarrow("/ipo/ipo.asp", "Fixed Price Issues", "dvPI");
	d12 += noarrow("/about/drhp.asp", "Draft Offer Documents", "dvPI");
	d12 += noarrow("/bookbuilding/scsb.asp", "ASBA Banks", "dvPI");
	d12 += noarrow("/bookbuilding/glossary.asp", "Glossary", "dvPI");
	d12 += ctbl + cd;

	var d13 = "<span id='dvRBB' name='level2' class='dv' style='display: none;'>" + stbl;
	d13 += noarrow("/bookbuilding/aboutrbbs.asp", "About Reverse Bookbuilding", "dvRBB");
	d13 += noarrow("/bookbuilding/newbookbuilding.asp?status=f&ir_flag=rev", "Forthcoming Issues", "dvRBB");
	d13 += noarrow("/bookbuilding/newbookbuilding.asp?status=l&ir_flag=rev", "Reverse Bookbuilding Live", "dvRBB");
	d13 += noarrow("/bookbuilding/bookbuilding_hist.asp?ir_flag=rev", "Historical Information", "dvRBB");
	d13 += noarrow("/bookbuilding/rbbsglossary.asp", "Glossary - RBBS", "dvRBB");
	d13 += ctbl + cd;

	var d14 = "<span id='dvEnT' name='level2' " + ld + ">" + stbl;
	d14 += noarrow("/training/programs_sub.asp", "Programmes", "dvEnT");
	d14 += noarrow("/training/feestructure.asp", "Fee Structure", "dvEnT");
	d14 += noarrow("/training/schedule.asp", "Current Schedule", "dvEnT");
	d14 += noarrow("/training/app_coupon.asp", "Application Form", "dvEnT");
	d14 += noarrow("/training/faqprog.asp", "FAQ on Training Programmes", "dvEnT");
	d14 += ctbl + cd;

	var d15 = "<span id='dvBCMC' name='level2' " + ld + ">" + stbl;
	d15 += noarrow("/training/bcde_test.asp", "Derivatives Exchange (BCDE)", "dvBCMC");
	d15 += noarrow("/training/dercert_guj.asp", "Derivatives Exchange (BCDE) in Gujarati", "dvBCMC");
	d15 += noarrow("/training/bccsmtest.asp", "Stock Markets (BCSM)", "dvBCMC");
	d15 += noarrow("/training/bcsm_guj.asp", "Securities Markets (BCSM) in Gujarati", "dvBCMC");
	d15 += noarrow("/training/bccddo.asp", "Central Depository (BCCD)", "dvBCMC");
	d15 += noarrow("/training/bccg.asp", "BSE Certification on Corporate Governance (BCCG)", "dvBCMC");
	d15 += noarrow("/training/zedca.asp", "List of Test Schedules/Centers", "dvBCMC");
	d15 += noarrow("/training/faqcert.asp", "FAQ on Certification", "dvBCMC");
	d15 += ctbl + cd;

	var d16 = "<span id='dvNISM' name='level2' " + ld + ">" + stbl;
	d16 += noarrow("/training/nism.asp", "About NISM", "dvNISM");
	d16 += noarrow("/training/nismregistration.asp", "NISM Registration", "dvNISM");
	d16 += ctbl + cd;

	var d17 = "";
/*	var d17 = "<span id='dvAMFI' name='level2' " + ld + ">" + stbl;
	d17 += noarrow("/training/AMFI_adv.asp", "Advisor Module", "dvAMFI");
	d17 += noarrow("/training/AMFI.asp", "Basic Module", "dvAMFI");
	d17 += ctbl + cd;*/

	var d18 = "<span id='dvFin' parent='dvBS' name='level2' class='dv' style='display: none;'>" + stbl;
	d18 += noarrow("/qresann/bseres.asp", "Results", "dvFin");
	d18 += noarrow("/about/bseannual.asp", "Annual Accounts", "dvFin");
	d18 += ctbl + cd;

	var eqd1 = "<span id='eqdvh1' name='level1' " + ld + ">" + stbl;
	eqd1 += arrow("etg1", "etg2", "Top Gainers");
	eqd1 += arrow("etl1", "etl2", "Top Losers");
	eqd1 += arrow("ead1", "ead2", "Advances / Declines");
	eqd1 += arrow("euc1", "euc2", "Upper Circuit Filter");
	eqd1 += arrow("elc1", "elc2", "lower Circuit Filter");
	eqd1 += noarrow("/mktlive/circuit_filter/summary/cktsummary.asp", "Circuit Summary", "");
	eqd1 += noarrow("/mktlive/newhghlow.asp", "New Highs / Lows", "");
	eqd1 += noarrow("/mktlive/groupvals.asp", "Top Turnovers", "");
	eqd1 += noarrow("/mktlive/market_summ/margin.asp", "VaR / EL Margin", "");
	eqd1 += arrow("ems1", "ems2", "Market Summary");
	eqd1 += noarrow("/mktlive/impact_cost.asp", "Impact Cost", "");
	eqd1 += arrow("evm1", "evm2", "VaR Margin Groups");
	eqd1 += arrow("eslb1", "eslb2", "SLB");
	eqd1 += ctbl + cd;

	var eql2 = "<span id='etg2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/sensex/mktwatchR.aspx?filter=gainer*all$all$", "All Market", "etg2");
	eql2 += noarrow("/sensex/mktwatchR.aspx?filter=gainer*group$all$a", "Groupwise", "etg2");
	eql2 += noarrow("/sensex/mktwatchR.aspx?filter=gainer*index$all$sensex", "Indexwise", "etg2");
	eql2 += ctbl + cd;

	eql2 += "<span id='etl2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/sensex/mktwatchR.aspx?filter=loser*all$all$", "All Market", "etl2");
	eql2 += noarrow("/sensex/mktwatchR.aspx?filter=loser*group$all$a", "Groupwise", "etl2");
	eql2 += noarrow("/sensex/mktwatchR.aspx?filter=loser*index$all$sensex", "Indexwise", "etl2");
	eql2 += ctbl + cd;

	eql2 += "<span id='ead2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/mktlive/adv_dec/advdec.asp", "All Market", "ead2");
	eql2 += noarrow("/mktlive/adv_dec/groupwise.asp", "Groupwise", "ead2");
	eql2 += noarrow("/mktlive/adv_dec/indexwise.asp", "Indexwise", "ead2");
	eql2 += ctbl + cd;

	eql2 += "<span id='euc2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/mktlive/circuit_filter/upper_cf/groupwise.asp", "Groupwise", "euc2");
	eql2 += noarrow("/mktlive/circuit_filter/upper_cf/indexwise.asp", "Indexwise", "euc2");
	eql2 += ctbl + cd;

	eql2 += "<span id='elc2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/mktlive/circuit_filter/lower_cf/groupwise.asp", "Groupwise", "elc2");
	eql2 += noarrow("/mktlive/circuit_filter/lower_cf/indexwise.asp", "Indexwise", "elc2");
	eql2 += ctbl + cd;

	eql2 += "<span id='ems2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/mktlive/market_summ/lonshrtpos.asp", "BSE Gross Deliverables", "ems2");
	eql2 += noarrow("/mktlive/market_summ/tradhigh.asp", "Trading Highlights", "ems2");
	eql2 += noarrow("/mktlive/groupvols.asp", "Top Volumes / Trades", "ems2");
	eql2 += noarrow("/mktlive/market_summ/odd.asp", "Odd Lot Market Statistics", "ems2");
	eql2 += noarrow("/mktlive/market_summ/margin_trad.asp", "Margin Trading", "ems2");
	eql2 += noarrow("/mktlive/market_summ/bulk_deals.asp", "Bulk Deals", "ems2");
	eql2 += noarrow("/mktlive/market_summ/block_deals.asp", "Block Deals", "ems2");
	eql2 += noarrow("/slb/slbssd.asp", "Short Sell", "ems2");
	eql2 += noarrow("/mktlive/market_summ/categorywise_turnover.asp", "Investor Categorywise Turnover", "ems2");
	eql2 += ctbl + cd;

	eql2 += "<span id='evm2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/mktlive/varmargin_I.asp", "Group I", "evm2");
	eql2 += noarrow("/mktlive/varmargin_II.asp", "Group II", "evm2");
	eql2 += ctbl + cd;

	eql2 += "<span id='eslb2' name='level2' " + ld + ">" + stbl;
	eql2 += noarrow("/slb/slbpd.asp", "Position Details", "eslb2");
	eql2 += noarrow("/slb/slbtd.asp", "Transaction Details", "eslb2");
	eql2 += ctbl + cd;

	O("mRoot").innerHTML = top + d1 + d2 + d3 + d4 + d5 + d6 + d7 + d8 + d9 + d10 + d11 + d12 + d13 + d14 + d15 + d16 + d17 + d18 + eqd1 + eql2;
}
function arrow(ids, idt, name)
{
	return "<tr id='mtrc'><td style='padding:5px;' onmouseout='javascript:mOut(this)' class='sub' id='" + ids + "' onmouseover=\"javascript:mOver(this);mSML('" + ids + "','" + idt + "');\">" + mWid + "<a id='ma' href='#'>" + name + "</a>" + cr;
}
function noarrow(lnk, name, id)
{
	var sr1 = "";
	if (id == "")
		sr1 = "<tr id='mtrc'><td id='mtdc' style='padding:5px;' onmouseover=\"javascript:mOver(this);mHdA('level2','');\" onmouseout='javascript:mOut(this);'>", cr = "</td></tr>";
	else
		sr1 = fsr(id);

	return sr1 + mWid + "<a id='ma' href='#' onclick=\"javascript:lu('" + lnk + "');\">" + name + "</a>" + cr;
}
function mOver(o)
{
	o.style.backgroundColor = "#0061AE";
}
function mOut(o)
{
	o.style.backgroundColor = "#0089CF";
}
function fsr(i)
{
	return "<tr id='mtrc'><td style='padding:5px;' onmouseover=\"javascript:mHdA1('level2','','" + i + "'); mOver(this);\" onmouseout='javascript:mOut(this);'>";
}
function mHdA1(level, pIDs, id)
{
	var browser = navigator.appName;
	var b_version = navigator.appVersion;
	var version = parseFloat(b_version);
	var o = O(id);
	pIDs = "";
	while (o.attributes.getNamedItem("parent"))
	{
		pIDs += o.attributes.getNamedItem("parent").nodeValue;
		o = O(o.attributes.getNamedItem("parent").nodeValue);
	}

	if (browser == "Microsoft Internet Explorer" && (version >= 4))
	{
		var arr1 = document.getElementsByTagName("span");
		for (var i = 0; i < arr1.length; i++)
		{
			if (arr1[i].name == level && arr1[i].id != id)
			{
				if (pIDs.indexOf(arr1[i].id) <= -1)
					arr1[i].style.display = "none";
			}
		}
	}
	else
	{
		var arr = document.getElementsByName(level);
		for (var i = 0; i < arr.length; i++)
		{
			if (arr[i].id != id)
			{
				if (pIDs.indexOf(arr[i].id) <= -1)
					arr[i].style.display = "none";
			}
		}
	}
}
function stt()
{
	odl = document.getElementById("dl");
	odl.innerHTML = "42";
	if (odl.style.display == "none")
		odl.style.display = "";
	else
		odl.style.display = "none";
}
