Magic8Computing 0 Newbie Poster

I have managed to get a random image setup to work on my cell using ASP and now want it to change the table size of the table over top of the image depending on the image, i know in my head what needs to be done (I think) just dont know how. I think i need to assign the random image to a variable and call that when calling the background image and then i can do an if statement on the variable, is this right? and can anybody help with the code please,

this is what i have

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title>MotoVate Productions</title>

  <style type="text/css">
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-color: #000;
    }
  </style>

  <link href="styles.css" rel="stylesheet" type="text/css" />

  <!--#include virtual="/includes/RandomImage.inc"-->

</head>

<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" class="footer_txt">

      <table width="910" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="746">&nbsp;</td>
          <td width="278" rowspan="2"><img src="MotoVate.jpg" width="278" height="120" align="right" /></td>
        </tr>
        <tr>
          <td width="746" valign="bottom">
          
            <div id="header_menu">
				<ul>
					<li class="current"><a href="index.html" ><b>HOME</b></a></li>
       				<li><a href="aboutme.html"><b>WHO ARE WE</b></a></li>
      				<li><a href="gallery/gallery.html"><b>WHAT WE DO</b></a></li>
   					<li><a href="contactme.html"><b>CONTACT</b></a></li>	
				</ul>
			</div>
   
          
          </td>
        </tr>
        <tr height="395">
          <td colspan="2" background="<%=RandomImage("/images/","/images/hp-1.jpg")%>" height="395" valign="top">
          
<% if Background = "hp-1.jpg" then %>