<!--#include virtual="/includes/topofpage.asp"-->
<%	
    	Session("Default_Page") = "default-destinations.asp"

	Dim SQL1
	Dim Conn, RS
	
	Dim Page 
	Page = "0"

	Set Conn = Server.CreateObject("ADODB.Connection")
	Conn.Open Application("conn_string")
	
	SQL1 = "Get_Destination @Realm_ID='" & Session("Admin_Realm") & "'"
	
	Set RS=Conn.Execute(SQL1)	
%>


<html>
<STYLE>
BODY {SCROLLBAR-FACE-COLOR: #5e5ebe; SCROLLBAR-HIGHLIGHT-COLOR: #5e5ebe; SCROLLBAR-SHADOW-COLOR: #5e5ebe; SCROLLBAR-3DLIGHT-COLOR: #5e5ebe; SCROLLBAR-ARROW-COLOR:  #6666CC; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #666666; }
</STYLE>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../Style-sheets/no-underline.css" type="text/css">
<link rel="stylesheet" href="../Style-sheets/headline.css" type="text/css">


<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Submit_Form_BrWindow(theURL,winName,features) {
  window.open('',winName,features);
  form1.target = winName;
  form1.action = theURL;
  form1.submit();
}

function Submit_Form(win) {
  form1.action = win;
  form1.target = "";
  form1.submit();
}

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.layeRS1&&i<d.layeRS1.length;i++) x=MM_findObj(n,d.layeRS1[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function toggle_manage(selobj, divID) {

	var divobj = MM_findObj(divID);

	if (selobj.value=='') {
	divobj.style.display='none';
	}

	if (selobj.value!='') {
	divobj.style.display='inline';
	}
	return true;
}

//-->
</SCRIPT>
</head>

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" onLoad="return toggle_manage(MM_findObj('Admin_Dest_ID'), 'manage');" scrolling="no">
<div id="bckgrnd" style="right:0px; BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; Z-INDEX: 1; BACKGROUND-IMAGE: url(/images/bckgrnd-right.jpg); OVERFLOW: visible; BORDER-LEFT: #000000 1px; BORDER-BOTTOM: #000000 1px; POSITION: absolute; TOP: 0px; layer-background-image: url(/images/bckgrnd-right.jpg); visibility: visible; width:100%; background-repeat: no-repeat; background-position: top right;">
<FORM action="" method=POST id=form1 name=form1>
<INPUT type="hidden" id=page name=page value="<%=Page%>">
  <table width="525" border="0" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" align="center" height="11" bgcolor="#ffffff">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2" align="center" class="headline-ffffff" height="11" bgcolor="#5e5ebe">Destinations Administration Menu</td>
    </tr>
    <tr> 
      <td colspan="2"  align="center"> 
        <SELECT id="Admin_Dest_ID" name="Admin_Dest_ID" onChange="return toggle_manage(this, 'manage');">
          <OPTION value="">Work with new or select a destination to work with</OPTION>
          <% Do until RS.EOF %>
          <OPTION value="<%=RS("Dest_ID")%>" <% If Session("Admin_Dest_ID") = RS("Dest_ID") Then Response.Write("selected")%>><%=RS("Name")%></OPTION>
          <% RS.Movenext()
		  Loop
          RS.Close
       %>
        </SELECT>
      </td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
<!--
    <tr> 
      <td width="6%" class="manage-menu" >&nbsp;</td>
      <td width="32%" ><A  href="javascript:Submit_Form('images-brands_admin.asp');" class="manage-menu">Brand Logos</a></td>
    </tr>
-->
</table>
<table width="525" border="0" cellspacing="0" cellpadding="2" align="center">
<tr><td>
<div id="manage" name="manage" style="{ width:100%;height:100%;display:none; }">
  <table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" class="manage-menu-bold">Manage Selected Destination</td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-properties.asp')" class="manage-menu">Destination Properties</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-mapping.asp')" class="manage-menu">Destination Mapping</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-geography.asp')" class="manage-menu">Destination Geography</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-content.asp')" class="manage-menu">Destination Content</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-exclusion.asp')" class="manage-menu">Destination Entities Exclusion</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-images.asp')" class="manage-menu">Destination Images</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('realm-select.asp?To=destination-realming.asp')" class="manage-menu">Destination Realming</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="javascript:Submit_Form('destination-list.asp')" class="manage-menu">List Child Destinations</a></td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    </table>
  </div>    
</td></tr>
</table>
    <table width="525" border="0" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" class="manage-menu-bold">Destination Creation</td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="destination-properties-parent.asp" class="manage-menu">Create a Parent Destination</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="destination-properties-target.asp" class="manage-menu">Create a Target Destination</a></td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2" class="manage-menu-bold">General Destination Management</td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="destination-outline.asp" class="manage-menu">Destination Outline</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="realm-select.asp?To=destination-realming.asp" class="manage-menu">Realm Management</a></td>
    </tr>
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="destination-import.asp" class="manage-menu">Import Destinations</a></td>
    </tr>    
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="destination-type_admin.asp" class="manage-menu">Manage Destination Types</a></td>
    </tr>    
    <tr>
	  <td width="6%" ></td>
      <td class="manage-menu"><a href="destination-cat-parent_admin.asp" class="manage-menu">Manage Parent Categories</a></td>
    </tr>    
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
  </table>
</FORM>
</div>
</body>
</html>
<% Session("Admin_Dest_ID") = "" %>