//  contact.js  8/09/2004  tjb  Active Space Media

function conImageMouseover (i, obj)
{
  if (obj) obj.className = "mOverStyle";
  mousedSlot = i;
  setCaptionColor (captionColorHilite);
  setCaptionText (i);
  return true;
}

function conImageMouseout (obj)
{
  if (obj) obj.className = "mOutStyle";
  if (mousedSlot >= 0) setCaptionText (-1);
  mousedSlot = -1;
  return true;
}

function setCaptionText (imageNum)
{
  var div = document.getElementById ("caption");

  if (imageNum >= 0)
  {
    div.innerHTML = "<span class='capline'>"+contactImages[imageNum][1]+"</span>";
  }
  else div.innerHTML = "";
}

function conImageClick (imageNum)
{
  var title, winSize = {};

  if (imageNum == 0) // map
  {
    title = "Map & Directions";
    winSize.w = 506 + 60;
    winSize.h = 400 + 445;
  }
  else if (imageNum == 1) // aerial
  {
    title = "Aerial View";
    winSize.w = 504 + 60;
    winSize.h = 442 + 445;
  }
  else if (imageNum == 2) // building
  {
    title = "Azimuth's Building";
    winSize.w = 520 + 60;
    winSize.h = 396 + 445;
  }
  else
  {
    alert ("No such contact image number - " +imageNum);
    return;
  }

  var conImage = eval ("document.images.con" +imageNum);
  var baseImage = conImage.src.substring (0, conImage.src.length-6);

  var features = "location=0,menubar=0,width="+winSize.w+",height="+winSize.h+",resizable=1,scrollbars=1";
  var w = window.open ("", "_contactImages", features, false);
  w.resizeTo (winSize.w, winSize.h);  // resize for reuse for different-sized images
  if (window.focus) w.focus();

  var doc = w.document;
  doc.writeln ('<html><head><title>'+title+' - Azimuth : architecture, inc</title>');
  doc.writeln ('<link rel="stylesheet" type="text/css" href="../css/contact.css">');
  doc.writeln ('</head><body><table border="0" cellpadding="0" cellspacing="0"><tr>');
  doc.writeln ('<td><img src="images/transparent.gif" width="4" height="1" border="0"></td><td>');
   
  doc.writeln ('<span class="contactCompany"><b>Azimuth : architecture, inc.</b></span><br>');
  doc.writeln ('<span class="contactContact">4228 N Central Expy, Ste 100  Dallas, TX  75206-6553</span><br>');
  doc.writeln ('<span class="contactContact">214.261.9060 / fax 214.261.9049</span><br>&nbsp;<br>');
  doc.writeln ('<img src="images/transparent.gif" width="1" height="4" border="0"><br>');

  doc.writeln ('<table border="0" cellpadding="0" cellspacing="0"><tr>');
  doc.writeln ('<td><img src="'+baseImage+'-L.jpg"></td>');

  doc.writeln ('</tr><tr><td><br>');
  doc.writeln ('<span class="contactDir">Azimuth : architecture, inc. is located just Northeast of the intersection of</span><br>');
  doc.writeln ('<span class="contactDir">N. Central Expressway and N. Fitzhugh Avenue in the State Bank Building.</span><br>');
  doc.writeln ('&nbsp;<br>');
  doc.writeln ('<span class="contactDir"><b>From North Central Expressway:</b></span><br>');
  doc.writeln ('<span class="contactDir">Take US-75 South towards Downtown Dallas.</span><br>');
  doc.writeln ('<span class="contactDir">Exit Henderson Ave. &ndash; Knox St. / Fitzhugh Ave.</span><br>');
  doc.writeln ('<span class="contactDir">Turn Left onto N Fitzhugh Ave.</span><br>');
  doc.writeln ('<span class="contactDir">Turn Left onto the N. Central Expressway Service Road.</span><br>');
  doc.writeln ('<span class="contactDir">Our building is on the Right.</span><br>');
  doc.writeln ('<span class="contactDir">Surface parking is available.</span><br>');
  doc.writeln ('<span class="contactDir">Take the elevator up to the First Floor.</span><br>');
  doc.writeln ('<span class="contactDir">Azimuth : architecture is in Suite 100.</span><br>');
  doc.writeln ('&nbsp;<br>');
  doc.writeln ('<span class="contactDir"><b>From Downtown Dallas:</b></span><br>');
  doc.writeln ('<span class="contactDir">Take US-75 North from Downtown Dallas.</span><br>');
  doc.writeln ('<span class="contactDir">Exit Henderson Ave. &ndash; Blackburn St. / Fitzhugh Ave.</span><br>');
  doc.writeln ('<span class="contactDir">Stay on the N. Central Expressway Service Road past Fitzhugh Ave.</span><br>');
  doc.writeln ('<span class="contactDir">Our building is on the Right.</span><br>');
  doc.writeln ('<span class="contactDir">Surface parking is available.</span><br>');
  doc.writeln ('<span class="contactDir">Take the elevator up to the First Floor.</span><br>');
  doc.writeln ('<span class="contactDir">Azimuth : architecture is in Suite 100.</span><br>');
  doc.writeln ('&nbsp;<br>');

  doc.writeln ('<table border="0" cellpadding="0" cellspacing="0"><tr>');
  doc.writeln ('<td><form>');
  doc.writeln ('<input type="button" value="Print" onClick="window.print()">');
  doc.writeln ('&nbsp;');
  doc.writeln ('<input type="button" value="Close" onClick="window.close()">');
  doc.writeln ('</form>');

  doc.writeln ('</td></tr></table>');
  doc.writeln ('</td></tr></table>');
  doc.writeln ('</td></tr></table></body></html>');
  doc.close();
}
