<%

If LCase(Request.Servervariables("REQUEST_METHOD")) = "post" Then
	If Request("un") = "admin" And Request("up") = "admin" Then
		Session("Administrator") = " (God Mode)"
	End If
End If
%>
<html>
<STYLE>
BODY {SCROLLBAR-FACE-COLOR: #cccccc; SCROLLBAR-HIGHLIGHT-COLOR: #cfcfcf; SCROLLBAR-SHADOW-COLOR: #c0c0c0; SCROLLBAR-3DLIGHT-COLOR: #c3c3c3; SCROLLBAR-ARROW-COLOR:  #f1f1f1; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #e7e7e7; }
</STYLE>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
top.document.title = 'eMagineering<%=Session("Administrator")%>';

function subm(selection) {

	var area = MM_findObj('area');
	var topic = MM_findObj('topic');
	
	if (selection == 'admin') {
		area.value = 'Administration: ';
		topic.value = 'Main Menu';
		top.menu.location='menu-admin.asp';
		top.content.location='default-admin.asp';
		
	} else if (selection == 'support') {
		area.value = 'Support Desk: ';
		topic.value = 'Main Menu';
		top.menu.location='menu-support.asp';
		top.content.location='default-support.asp';
		
	} else if (selection == 'billing') {
		area.value = 'Billing Department: ';
		topic.value = 'Main Menu';
		top.menu.location='menu-billing.asp';
		top.content.location='default-billing.asp';
		
	} else if (selection == 'messaging') {
		area.value = 'Messaging: ';
		topic.value = 'Main Menu';
		top.menu.location='menu-messaging.asp';
		top.content.location='default-messaging.asp';
		
	} else if (selection == 'scheduling') {
		area.value = 'Scheduling: ';
		topic.value = 'Main Menu';
		top.menu.location='menu-scheduling.asp';
		top.content.location='default-scheduling.asp';
		
	} else {
		alert('selection item not defined.');
	}

}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link rel="stylesheet" href="/style-sheets/arrivares.css" type="text/css">
<link rel="stylesheet" href="/style-sheets/emagineering.css" type="text/css">
<script language="JavaScript">function doClock(){ // By Paul Davis - www.kaosweaver.com
  var t=new Date(),a=doClock.arguments,str="",i,a1,lang="1";
  var month=new Array('January','Jan', 'February','Feb', 'March','Mar', 'April','Apr', 'May','May', 'June','Jun', 'July','Jul', 'August','Aug', 'September','Sep', 'October','Oct', 'November','Nov', 'December','Dec');
  var tday= new Array('Sunday','Sun','Monday','Mon', 'Tuesday','Tue', 'Wednesday','Wed','Thursday','Thr','Friday','Fri','Saturday','Sat');
  for(i=0;i<a.length;i++) {a1=a[i].charAt(1);switch (a[i].charAt(0)) {
  case "M":if  ((Number(a1)==3) && ((t.getMonth()+1)<10)) str+="0";
  str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];break;
  case "D": if ((Number(a1)==1) && (t.getDate()<10)) str+="0";str+=t.getDate();break;
  case "Y": str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);break;
  case "W":str+=tday[t.getDay()*2+Number(a1)];break; default: str+=unescape(a[i]);}}return str;
}
</script>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head>

<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="/includes/images/nav-bar-V.jpg" height="150" style="background-image: url(http://admin.emagineering.com/images/ccccff-bg.jpg);" height="100">
  <tr bgcolor="#cccccc"> 
    <td rowspan="4" width="200" valign="top" height="100"><img src="/images/manage-top-join.gif"></td>
  </tr>
<!--  <tr bgcolor="#cccccc"> 
    <td rowspan="1" width="200" valign="top" height="100"><img src="/images/manage-top-join.gif"></td>
    <td></td>
    <td rowspan="1" background="/images/ccccff-bg.jpg" align="right" valign="Top"><Br><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000"><H2>Administration:&nbsp;&nbsp;</H2> Main Menu&nbsp;&nbsp;</Font></td>
	</tr>-->
    <tr>
    <td width="100%" valign="top" align="center"><Table border="0" cellspacing="0" cellpadding="0" width="100%">
    	<tr><td align="right" colspan="6"><input type="text" class="emag-menu-bold" value="Welcome, Matthew Dittrich!" style="{ width:250; text-align: right; border:none; background-image: url(http://admin.emagineering.com/images/ccccff-bg.jpg); }" id=area name=area>&nbsp;<br></b><input type="text" class="emag-menu" value="159 messages" style="{ width:250; text-align: right; border:none; background-image: url(http://admin.emagineering.com/images/ccccff-bg.jpg); }" id=topic name=topic>&nbsp;<br><br></td></tr>
    	<!--
    	</table></td>
  </tr>
  <tr>
      <td width="100%" valign="middle" align="center"><Table border="0" cellspacing="0" cellpadding="0" width="100%">-->
    	<tr valign="middle">
	    <td width="15" height="30" align="center"><font color="#e6e6e6" size="2" face="Verdana, Arial, Helvetica, sans-serif"></font></td>
	    <td width="20%" height="30" style="{ background-image: url(http://admin.emagineering.com/images/button-back.gif); background-repeat:no-repeat; background-position:center; }" align="center"><a href="#" onClick="subm('admin');" ><font color="#000099" size="2" face="Verdana, Arial, Helvetica, sans-serif">Administration</font></a></td>
	    <td width="20%" height="30" style="{ background-image: url(http://admin.emagineering.com/images/button-back.gif); background-repeat:no-repeat; background-position:center; }" align="center"><a href="#" onClick="subm('support');" ><font color="#000099" size="2" face="Verdana, Arial, Helvetica, sans-serif">Support Desk</font></a></td>
	    <td width="20%" height="30" style="{ background-image: url(http://admin.emagineering.com/images/button-back.gif); background-repeat:no-repeat; background-position:center; }" align="center"><a href="#" onClick="subm('billing');" ><font color="#000099" size="2" face="Verdana, Arial, Helvetica, sans-serif">Billing Dept</font></a></td>
	    <td width="20%" height="30" style="{ background-image: url(http://admin.emagineering.com/images/button-back.gif); background-repeat:no-repeat; background-position:center; }" align="center"><a href="#" onClick="subm('messaging');" ><font color="#000099" size="2" face="Verdana, Arial, Helvetica, sans-serif">Messaging</font></a></td>
	    <td width="20%" height="30" style="{ background-image: url(http://admin.emagineering.com/images/button-back.gif); background-repeat:no-repeat; background-position:center; }" align="center"><a href="#" onClick="subm('scheduling');" ><font color="#000099" size="2" face="Verdana, Arial, Helvetica, sans-serif">Scheduling</font></a></td>
    	</tr>
       </table></td>
<!--<td rowspan="1" background="/images/ccccff-bg.jpg" align="right" valign="Top"><Br><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000"><H2>Administration:&nbsp;&nbsp;</H2> Main Menu&nbsp;&nbsp;</Font></td>-->
   </tr>
</table>
<br><br><br>
<form method="post" action="" name="log">
<input tabindex="-1" type="password" name="up" value="">
<input tabindex="-1" type="password" name="un" value="">
<input tabindex="-1" type="submit" name="submit" value="">
</form>
</body>
</html>
