fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=4;
_subOffsetLeft=-2;


with(LinkInfoStyle=new mm_style()){
styleid=5;
bordercolor="#1CBE42";
borderstyle="dotted";
borderwidth=2;
fontfamily="verdana,helvetica";
fontsize="14px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#3399CC";
headercolor="#FFFF33";
offbgcolor="#ffffff";
offcolor="#666666";
onbgcolor="#ccffcc";
oncolor="#000000";
padding=5;
separatoralign="left";
separatorcolor="#1CBE42";
separatorwidth="30%";
}

with(menuStyle=new mm_style()){
styleid=4;
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
onitalic=1;
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorpadding=2;
separatorsize=1;
separatorwidth="90%";
subimage="";
subimagepadding=2;
}

with(EasySampleStyle=new mm_style()){
styleid=3;
bordercolor="#000000";
borderstyle="solid";
borderwidth=0;
fontfamily="Arial";
fontsize="95%";
fontstyle="normal";
fontweight="bold";
//high3dcolor="Transparent";
//low3dcolor="#E08430";
offbgcolor="transparent";
offcolor="#000000";
onbgcolor="#999999";
oncolor="#ffffff";
padding=4;
separatorcolor="#000000";
separatorsize=1;
subimage="/Ministry/images/arrow.gif";
subimagepadding=8;

}



with(BlackOrange=new mm_style()){
styleid=2;
fontfamily="Arial";
bordercolor="#000000";
borderstyle="solid";
borderwidth=0;
fontsize="11px";
fontstyle="normal";
fontweight="normal";
offbgcolor="#E8E8E8";
offcolor="#000000";
onbgcolor="#999999";
oncolor="#ffffff";
padding=4;
separatorcolor="#999999";
separatorsize=1;
subimage="/Ministry/images/arrow_right.gif";
subimagepadding=3;
//outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=5)";
}

with(ScrollingSampStyle=new mm_style()){
bordercolor="#666666";
borderstyle="solid";
borderwidth=1;
fontfamily="comic sans ms,verdana,helvetica";
fontsize="60%";
fontstyle="normal";
fontweight="normal";
offbgcolor="#ffffff";
offcolor="#666666";
onbgcolor="#ff9933";
oncolor="#000000";
padding=3;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
style=EasySampleStyle;

aI("showmenu=About;text=&nbsp;About Us&nbsp;;");
aI("showmenu=Affiliated;text=&nbsp;Affiliated Offices&nbsp;;");
aI("showmenu=Information;text=&nbsp;Information &amp; Reports&nbsp;;");
aI("showmenu=Acts;text=&nbsp;Acts, Bills &amp; Rules&nbsp;;");
aI("showmenu=Right;text=&nbsp;Right to Information&nbsp;;");
<!--aI("text=&nbsp;Right to Information&nbsp;url=/Ministry/right_to_information.html;");-->
aI("text=&nbsp;Faq's&nbsp;;url=/Ministry/faqs_index.html;");
}

with(milonic=new menuname("About")){
//overflow="scroll";
style=BlackOrange;
top="offset=0";
aI("text=About MCA;url=/Ministry/aboutusMCA.html;")
aI("text=Citizen Charter;url=/Ministry/citizen_charter.html;")
aI("showmenu=MCAOffice;text=MCA Offices&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;")
aI("text=Contact Us;url=/Ministry/contactus.html;")
}

with(milonic=new menuname("MCAOffice")){
margin=3;
style=BlackOrange;
aI("text=Minister's Office;url=/Ministry/pdf/minister.pdf;target=_new");
aI("text=List of Officials at Head Quarters;url=/Ministry/pdf/headquater.pdf;target=_new");
aI("text=Regional Directors;url=/Ministry/rd.html;");
aI("text=Registrar of Companies;url=/Ministry/roc.html;");
}


with(milonic=new menuname("Affiliated")){
style=BlackOrange;
top="offset=0";
aI("text=Official Liquidators;url=/Ministry/pdf/official_liquidators.pdf;target=_new");
aI("text=Company Law Board;url=/Ministry/clb.html;");
aI("text=The Monopolies and Restrictive Trade Practices Commission (MRTPC);url=/Ministry/mrtpc.html;");
aI("text=The Director General of Investigation and Registration;url=/Ministry/dgir.html;");
aI("text=Serious Fraud Investigation Office (SFIO);url=http://www.sfio.nic.in;target=_new");
aI("text=Competition Commission of India (CCI);url=http://www.cci.gov.in;target=_new");
aI("text=Cost Audit Branch (CAB);url=/Ministry/cab.html;");
aI("text=Indian Institute of Corporate Affairs (IICA);url=http://www.iica.in;target=_new");
}

with(milonic=new menuname("Information")){
style=BlackOrange;
top="offset=0";
aI("text=Nidhi Companies;url=/Ministry/nidhi.html;");
//aI("text=Defaulting Companies;url=/Ministry/default_companies.html;");
aI("text=Vanishing Companies <img src='/Ministry/images/latestupdate_new.gif' border='0'>;url=/Ministry/vanishing.html;");
aI("text=Section 25 Companies;url=/Ministry/pdf/Section25_Companies_6nov2008.pdf;target=_new");
aI("text=Chit Fund Companies;url=/Ministry/pdf/Chit_Fund_Companies_6nov2008.pdf;target=_new");
aI("text=NBFC Companies;url=/Ministry/pdf/Nbfc_Companies_6nov2008.pdf;target=_new");
aI("text=Plantation Companies&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/Ministry/pdf/Plantation_Companies_6nov2008.pdf;target=_new");
aI("text=IEPF;url=/Ministry/iepf_info.html;");
aI("text=Quotations and Tenders;url=/Ministry/quote_tenders.html;");
aI("text=Annual Reports;url=/Ministry/annual_report.html;");
aI("text=Other Reports;url=/Ministry/other_report.html;");
aI("text=Corporate Growth;url=/Ministry/corporate_growth.html;");
aI("text=Concept Paper;url=/Ministry/pdf/conceptpaper.pdf;target=_new");
aI("text=Press Release;url=/Ministry/press_release.html;");
}

with(milonic=new menuname("Acts")){
style=BlackOrange;
top="offset=0";
aI("text=Acts,Bills &amp; Rules;url=/Ministry/acts_bills.html;");
aI("text=Circulars;url=/Ministry/circulars.html;");
aI("text=Notifications&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/Ministry/notifications.html;");
aI("text=Guidelines;url=/Ministry/guidelines.html;");
}

with(milonic=new menuname("Right")){
style=BlackOrange;
top="offset=0";
aI("text=Right to Information&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=/Ministry/right_to_information.html;");
aI("text=Archive;url=/Ministry/right_to_information_archive.html;");
}



drawMenus();


var win;
		function openNewWindow(url)
		{
		  win=window.open(url,"blank","scrollbars=no,menu=0,location=0,toolbar=0,statusbar=0,resizable=no,WIDTH=790 HEIGHT=515,left=0,top=0");
		}
		
		window.onunload = function(evt)
		{
			//alert("in warn user");
			evt=window.event;
			if(evt != null)
			{
				evt.returnValue= "Closing this window will lead to errors in the course";
			}			
			return "Closing this window will lead to errors in the course";

		}
function openbankwin()
{
 window.open("/MCA21/dca/banks/banks_new.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=580, height=370 top=200 left=150")
}

function opensys()
{
window.open("/MCA21/dca/common/system.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=450, height=300 top=200 left=150")

}

function openpfo()
{
window.open("/MCA21/dca/pfo/facilitation.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width=880, height=760 top=-10 left=100")

}
function opencbt()
{

window.open("/MCA21/dca/cbt/MasterScreen.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=830, height=600 top=10 left=100")

}
function callus()
{
  window.open("/MCA21/dca/common/callus.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=760, height=470 top=200 left=150")
}

function openComplaintsForm(){
	var URL = '/DCAPortalWeb/dca/EFormDisplay.do?method=getForm&contentId=1021&taskID=9501&sessioncheck=yes';
	window.open(URL,"FormWindow",'toolbar=0,status=1,menubar=0,resizable=1,scrollbars=1');
}

function UnavailService()
{
alert("This Service is temporarily unavailable. Sorry for the inconvenience caused");
}
function onlineService(id)
{	downService=1
	if(downService==0)
		alert("This Service is temporarily unavailable. Sorry for the inconvenience caused");
		else
	{
		switch(id)
		{
		case 17:
			window.location.href="/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=17";
		  	break    
		case 18:
	  		window.location.href="/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=18"
		  	break
		case 23:
	  		window.location.href="/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=23"
		  	break
		case 24:
	  		window.location.href="/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=24"
		  	break
		case 21:
	  		openDINForm();
			break
		case 100:
	  		window.location.href="/DCAPortalWeb";
			document.forms[0].target.value="_blank";
			
		  	break
		case 101:
	  		document.forms[0].action="/MCASearch/results.jsp"
	  		document.forms[0].submit();
		  	break
		default:
			window.location.href="/DCAPortalWeb";
			document.forms[0].target.value="_blank";
		}
	}
}
function func_blank()
{
	document.forms[0].target="_blank";
	}
function getDINApplication(){
//alert("It will take sometime to open the form. Please press OK to proceed");
	var URL = '/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=34';
	window.open(URL,"FormWindow",'toolbar=0,status=1,menubar=0,resizable=1,scrollbars=1');
}