x<!--
//--------this submenu is compatible with Netscape 6 & 7 -----------Raj Narang----------
//do browser detect stuff

wd = screen.width;

if (wd == 1280)
{var x = 370; z = 590; a=465; b = 780; c = 695;  d = 272; m = 504;}
if (wd == 1152)
{var x = 304; z = 510; a=465; b = 715; c = 695;  d = 272; m = 440;}
if (wd == 1024)
{var x = 235; z = 460; a=500; b = 670; c = 565;  d = 457; m = 350;}
if (wd == 800)
{var x = 245;m = 347;z = 390;a = 225;b = 455; d = 50; c = 565;}
if (wd == 640)
{var x=506;}

var NS = (navigator.appName == "Netscape");
//alert(NS);
var ver = navigator.appVersion
//alert(ver);
var isNS = (NS && ver.indexOf(5) < 0);
//alert(ver.indexOf(5));
var isNS6 = (NS && ver.indexOf(5) >= 0);
var isMacIE = ( (navigator.userAgent.indexOf("IE 4")  > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );

/*if(NS)
{
	var layerRef = (isNS) ? "document" : "document.all"; 
}
else{
	var layerRef = (isNS6) ? "document.getElementById" : "document.all";
}
*/

var layerRef = (isNS) ? "document" : ((isNS6) ? "document.getElementById" : "document.all");
//alert(layerRef);
var styleRef = (isNS) ? "" : ".style";

var isDynamic = ( (document.getElementById || document.layers || document.all) && !isMacIE );
//track which menu is active
var activeMenu = 0;

//display a selected menu
//alert(isNS6);
function activateMenu(menuLayerRef, offset, voffset) {

        if (isDynamic && activeMenu != menuLayerRef) {

                if (activeMenu) hideMenu("menu" + activeMenu);
                        
                menuID = "menu" + menuLayerRef;
                activeMenu = menuLayerRef;
                hmenuoff = offset;
                vmenuoff = voffset;
                if (isNS) {

						document[menuID].top = 10 + voffset;
                        document[menuID].left = offset;
						document[menuID].zIndex = 2;
                }else if(isNS6)
					{
                        document.getElementById(menuID).style.top = 358 + voffset;
                        document.getElementById(menuID).style.left = offset;
						document.getElementById(menuID).style.zIndex = 2;
					}
				else {
                        document.all[menuID].style.pixelTop = 358 + voffset;
                        document.all[menuID].style.pixelLeft = offset;
						
                } // if is NS else

                showMenu(menuID)
        } // if is dynamic and new menu needed
        // kill menu if browser is IE
        if (isDynamic && !isNS && !isNS6) window.event.cancelBubble = true;
} // activateMenu

function showMenu(layerID) {
        if(isNS6)
	{
		eval(layerRef + '("' + layerID + '")' + styleRef + '.visibility = "visible"');
	}else{
		eval(layerRef + '["' + layerID + '"]' + styleRef + '.visibility = "visible"');
	}
}


function hideMenu(layerID) {
	if(isNS6)
	{
		        eval(layerRef + '("' + layerID + '")' + styleRef + '.visibility = "hidden"');
	}else{
        eval(layerRef + '["' + layerID + '"]' + styleRef + '.visibility = "hidden"');
	}
}

// get rid of menus when outside menu or button
function killMenu(e) {
  //check if theres a menu active

  if (activeMenu) {
    menuID = "menu" + activeMenu;
    if (isNS) {
	// top menus
        if (activeMenu <=7) {
	  menuX1 = document[menuID].left;
	  menuX2 = menuX1 + document[menuID].clip.right;
	  menuY1 = document[menuID].top;
	  menuY2 = menuY1 + document[menuID].clip.bottom;
	//alert(menuX1+"  "+menuX2+"  "+menuY1+"  "+menuY2);
	} // if menu 1 through 5
	// side menus
        if (activeMenu >=8) {
 	  menuX1 = 0;
          menuX2 = 245;
	  menuY1 = document[menuID].top;
	  menuY2 = menuY1 + document[menuID].clip.bottom;
        } // if menu 6 or greater
        if ((e.pageX < menuX1) || (e.pageX > menuX2) ||
             (e.pageY < menuY1) || (e.pageY > menuY2)) {
             hideMenu(menuID);
	     activeMenu = 0;
        } // if in menu
    }else if(isNS6)
	{
		hideMenu(menuID);
		activeMenu = 0;
	} else { // if not NS
	hideMenu(menuID);
	activeMenu = 0;
    }  //if isNS else
  }  //if activeMenu
}  //function

// initialize the menu system
function init() {
  if (isDynamic) {
    if (isNS) { 
	document.captureEvents(Event.MOUSEOUT); 
	document.onmouseout = killMenu;
    }else if (isNS6) { 
	document.onmouseout = killMenu;
	}else {
	document.onmouseover = killMenu;
    } // if NS else
		
  } // if dynamic
} // init


document.write("</head>\
<body bgcolor=\"#FFFFFF\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"2\" leftmargin=\"0\">");

if (isDynamic) {
document.write("<DIV id=\"menu1\" class=\"menu\" onMouseover=\"activateMenu(1,x,31)\">\
<TABLE border=\"0\" WIDTH=\"650\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\
      <TR>\
        <TD>\
        <TABLE WIDTH=\"100%\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\
          <TR>\
            <TD HEIGHT=\"30\" CLASS=\"rol\"><A href=\"about.htm\">About </A> &nbsp;| &nbsp; <A href=\"authority.htm\">Authorities</A>  &nbsp;| &nbsp; <A href=\"director_message.htm\">Our Vision</A>  &nbsp;| &nbsp; <A href=\"act.htm\">Act</A> &nbsp;| &nbsp;  <A href=\"infra.htm\">Infrastructure</A> &nbsp;| &nbsp; <A href=\"contactus.htm\">Contact Us</A> &nbsp;| &nbsp; <A href=\"notices/rti_pio.pdf\" target=\"_blank\" >Right to Information - PIO</A> &nbsp;</TD>\
          </TR><TR>\
          </TABLE></TD>\
      </TR>\
    </TABLE>\
</DIV>");

document.write("<DIV id=\"menu2\" class=\"menu\" onMouseover=\"activateMenu(2,m,31)\">\
<TABLE border=\"0\" WIDTH=\"350\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\
      <TR>\
        <TD>\
        <TABLE WIDTH=\"100%\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\
          <TR>\
            <TD HEIGHT=\"30\" CLASS=\"rol\"><A href=\"curri.htm\">Curriculum</A> &nbsp;| &nbsp; <A href=\"cources.htm\">Courses</A> &nbsp;| &nbsp; <A href=\"exam.htm\">Examination and Evaluation </A></TD>\
          </TR><TR>\
          </TABLE></TD>\
      </TR>\
    </TABLE>\
</DIV>");

document.write("<DIV id=\"menu3\" class=\"menu\" onMouseover=\"activateMenu(3,z,31)\">\
<TABLE border=\"0\" WIDTH=\"538\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\
      <TR>\
        <TD>\
        <TABLE WIDTH=\"100%\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\
          <TR>\
            <TD HEIGHT=\"30\" CLASS=\"rol\"><A href=\"content/hostel_rules.pdf\" target=\"_blank\">Hostel&nbsp;Rules</A>&nbsp;|&nbsp;<A href=\"achieve.htm\">Achievements</A>&nbsp;|&nbsp;<A href=\"committee.htm\">Committees</A>&nbsp;|&nbsp;<A href=\"facilities.htm\">Facilities</A>&nbsp;|&nbsp;<A href=\"events.htm\">Events</A> &nbsp;|&nbsp;<A href=\"guest_lectures.htm\">Guest&nbsp;Lectures</A>&nbsp;|&nbsp;<A href=\"construction.htm\">Internship</A></TD>\</TR><TR>\
          </TABLE></TD>\
      </TR>\
    </TABLE>\
</DIV>");

document.write("<DIV id=\"menu4\" class=\"menu\" onMouseover=\"activateMenu(4,a,31)\">\
<TABLE border=\"0\" WIDTH=\"300\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\
      <TR>\
        <TD>\
        <TABLE WIDTH=\"100%\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\
          <TR>\
            <TD HEIGHT=\"30\" CLASS=\"rol\"></TD>\
          </TR><TR>\
          </TABLE></TD>\
      </TR>\
    </TABLE>\
</DIV>");

document.write("<DIV id=\"menu5\" class=\"menu\" onMouseover=\"activateMenu(5,b,31)\">\
<TABLE border=\"0\" WIDTH=\"345\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\
      <TR>\
        <TD>\
        <TABLE WIDTH=\"100%\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\
          <TR>\
            <TD HEIGHT=\"30\" CLASS=\"rol\" align=\"right\"><A href=\"eligibility.htm\">Eligibility</A> &nbsp;| &nbsp; <A href=\"fee.htm\">Fee Structure</A> &nbsp;| &nbsp; <A href=\"Prospectus.pdf\">Prospectus</A> &nbsp;| &nbsp; <A href=\"apply.htm\">Apply</A></TD>\
          </TR><TR>\
          </TABLE></TD>\
      </TR>\
    </TABLE>\
</DIV>");


document.write("<DIV id=\"menu6\" class=\"menu\" onMouseover=\"activateMenu(6,d,31)\">\
<TABLE border=\"0\" WIDTH=\"360\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\
      <TR>\
        <TD>\
        <TABLE WIDTH=\"100%\" BORDER=\"0\" VSPACE=\"0\" HSPACE=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\
          <TR>\
            <TD HEIGHT=\"30\" CLASS=\"rol\" align=\"right\"><A href=\"academic_council.htm\">Academic Council</A> &nbsp;| &nbsp; <A href=\"executive_council.htm\">Executive Council</A> &nbsp;| &nbsp; <A href=\"general_council.htm\">General Council</A></TD>\
          </TR><TR>\
          </TABLE></TD>\
      </TR>\
    </TABLE>\
</DIV>");

}

//-->
