<%@ page language="java" import="java.util.*" errorPage="error.jsp"%>

<html>
<head>
<title>Menu of Home energy service</title>
    <jsp:useBean id="em" scope="session" class="EntrakMain"/>
    <jsp:useBean id="mcpm" scope="session" class="MainControlPanel_Map"/>

<%

    mcpm.setConnection(em.con);
    mcpm.setDatabase(em.database);

   // mcpm.setUrlMap(em.urlMap);
   // mcpm.setUrlHelp(em.urlHelp);
   // mcpm.setHostOfDBMS(em.hostOfDBMS);
   // mcpm.setUsername(em.username);
   // mcpm.setPassword(String.copyValueOf(em.password));

    //mcpm.setUrlEntrakHome("file:///d:\\smart_home\\entrakWC\\entrak_sayeed_130701");
    //System.out.println("JSPMCPM_MenuBar, urlEntrakHome : " + mcpm.getUrlEntrakHome());

    //mcpm.setup();

    //mcpm.setUrlEntrakHome("file:///d:\\smart_home\\entrakWC\\entrak_sayeed_130701\\classes");
    //System.out.println("JSPMCPM_MenuBar, urlEntrakHome : " + mcpm.getUrlEntrakHome());

    //for admin
    //em.saveProperties4admin();

%>


<SCRIPT LANGUAGE="JavaScript">
<!--
function popWin(the_page,the_target,the_width,the_height) {
		window.open(the_page,the_target,"status=no,menubar=no,scrollbars=no,resizable=no,width=" + the_width + ",height=" + the_height);
}
//-->
</SCRIPT>

  <SCRIPT LANGUAGE="JavaScript">
<!--
function popwin(aPage, aTarget, w, h, var1, var2){
        window.open(aPage,aTarget,'status=no,top=0,left=0,scrollbars=' +((var1=='scroll' || var2=='scroll')? 'yes' : 'no')+ ',resizable=' +((var1=='resize' || var2=='resize')? 'yes' : 'no')+ ',width='+w+',height='+h);
}
//-->
</SCRIPT>



<SCRIPT LANGUAGE="JavaScript">
    <!--- Hide script from old browsers

    // This function gets the URL of the right frame
        function getMapURL() {
            var mapURL=""+parent.detailFrame.location.href;
            return mapURL;
    }// end script hiding from old browsers -->

</SCRIPT>



<SCRIPT LANGUAGE="JavaScript">


    //Global window number
    winNum = 0;
    profileWinNum = 0;

    //Global window name
    profileWin = new Array();
    //profileWin = "";
    imgWin = new Array();


    function openEPM(aPage, aTarget, w, h, var1, var2) {

        if(profileWin[profileWinNum] == null) {



            var mapURL=""+parent.detailFrame.location.href;
            var p=""+aPage+"?mapURL="+mapURL;
            profileWin[profileWinNum] = window.open(p,aTarget+"_"+profileWinNum.toString(),'status=yes,top=0,left=0,dependent=yes,scrollbars=' +((var1=='scroll' || var2=='scroll')? 'yes' : 'no')+ ',resizable=' +((var1=='resize' || var2=='resize')? 'yes' : 'no')+ ',width='+w+',height='+h);
            
            profileWinNum++;
        }//
        else {
            
        }//else
    }//



</SCRIPT>


<SCRIPT language="JavaScript">

    function underConstruction() {
        alert("This option is under construction");
    }

</SCRIPT>
<!-- Rollover Image Script - Place within <head> tag -->
<script language="JavaScript" type="text/javascript">
<!-- Hide from older browsers
function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

// end hiding contents -->
</script>
</HEAD>


<body>

<table cellspacing="20" width="480" height="100">

<tr>
   <td> 

<a href="hw_monitoring_main.jsp" target="_parent" onMouseOut="RestoreImg()" onMouseOver="SwitchImg('document.montoring','document.montoring','images/monitoring_rollover_button.JPG')"><img src="images/monitoring_normal_button.JPG" name="montoring" width="81" height="22" alt="monitoring" border="0"></a>
<br><br><br>
</td>
</tr>
<tr>
       <td><a href="hw_control_main.jsp" target="_parent" onMouseOut="RestoreImg()" onMouseOver="SwitchImg('document.control','document.control','images/control_rollover_button.JPG')"><img src="images/control_normal_button.JPG" name="control" width="82" height="24" alt="control" border="0"></a>
<br><br><br>

</td>
</tr>
<tr>
       <td> <a href="hw_information_main.jsp" target="_parent" onMouseOut="RestoreImg()" onMouseOver="SwitchImg('document.information','document.information','images/information_rollover_button.JPG')"><img src="images/information_normal_button.JPG" name="information" width="83" height="22" alt="information" border="0"></a>
</td>
</tr>
</table>






</body>

</html>





