var popupWindow=null;

function movie_popup(mytitle,mywinid,mymovie)
{
  //set variables
  sWidth=400;
  //sHeight=475; //with vr text
  sHeight=425;
  LeftPosition=(screen.width-sWidth)/2;
  TopPosition=(screen.height-sHeight)/2;

  settings='width='+sWidth+',height='+sHeight+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

  popupWindow=window.open("",mywinid,settings);
  popupWindow.document.write("<!-- POPUP JAVASCRIPT from KeysToTheHouse.com -->\n");
  popupWindow.document.write("<HTML>\n");
  popupWindow.document.write("<HEAD><TITLE>");
  popupWindow.document.write(mytitle);
  popupWindow.document.write("</TITLE></HEAD>\n");
  popupWindow.document.write("<body bgcolor='black' text='white' link='yellow' vlink='yellow' alink='yellow'>\n");

  popupWindow.document.write("  <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
  popupWindow.document.write("    <tr>\n");
  popupWindow.document.write("      <td width='100%'><a href='##' onclick='self.close()'>\n");
  popupWindow.document.write("      <img border='0' src='www.KeysToTheHouse.com/ForRent/images/close_window.gif' align='middle' width='86' height='16'></a>\n");
  popupWindow.document.write("      </td>\n");
  popupWindow.document.write("    </tr>\n");
  popupWindow.document.write("  </table>\n");

  popupWindow.document.write("  <table border='0' width='100%'>\n");
  popupWindow.document.write("    <tr>\n");
  popupWindow.document.write("      <td width='100%'>\n");
  popupWindow.document.write("        <p align='center'>\n");
  popupWindow.document.write("          <EMBED SRC='");
  popupWindow.document.write(mymovie);
  popupWindow.document.write("' WIDTH=320 HEIGHT=256 AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE='http://www.apple.com/quicktime/'>\n");
  popupWindow.document.write("      </td>\n");
  popupWindow.document.write("    </tr>\n");
  popupWindow.document.write("  </table>\n");

  popupWindow.document.write("  <p align='center'><font size='1'>Place your cursor on the slide bar below the image.<br>\n");
  popupWindow.document.write("  Click and hold your mouse button down.<br>\n");
  popupWindow.document.write("  With the button held down, move your mouse to the left or right. </font></p>\n");

  popupWindow.document.write("  <p align='center'><font size='1'>Virtual Tours require the QuickTime plug-in.<br>\n");
  popupWindow.document.write("  If the tour does not begin, download QuickTime now. </font></p>\n");

  popupWindow.document.write("  <table border='0' width='100%'>\n");
  popupWindow.document.write("    <tr>\n");
  popupWindow.document.write("      <td width='100%'><p align='center'><a href='http://www.apple.com/quicktime/download/' target='_blank'><img border='0' src='images/GetQT.gif' WIDTH='58' HEIGHT='22'></a></td>\n");
  popupWindow.document.write("    </tr>\n");
  popupWindow.document.write("  </table>\n");

  popupWindow.document.write("</BODY>\n");
  popupWindow.document.write("</HTML>\n");
  popupWindow.focus();

}



function pic_popup(mytitle,mywinid,mymovie)
{
  //set variables
  sWidth=500;
  sHeight=500;
  LeftPosition=(screen.width-sWidth)/2;
  TopPosition=(screen.height-sHeight)/2;

  settings='width='+sWidth+',height='+sHeight+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

  popupWindow=window.open("",mywinid,settings);
  popupWindow.document.write("<!-- POPUP JAVASCRIPT from KeysToTheHouse.com -->\n");
  popupWindow.document.write("<HTML>\n");
  popupWindow.document.write("<HEAD><TITLE>");
  popupWindow.document.write(mytitle);
  popupWindow.document.write("</TITLE></HEAD>\n");
  popupWindow.document.write("<body bgcolor='black' text='white' link='yellow' vlink='yellow' alink='yellow'>\n");
  popupWindow.document.write("  <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
  popupWindow.document.write("    <tr>\n");
  popupWindow.document.write("       <td width='100%'><p><font size='2'><b><a href='Close Window' onclick='self.close()'>Close Window</a></b></font>\n");

  popupWindow.document.write("      </td>\n");
  popupWindow.document.write("    </tr>\n");
  popupWindow.document.write("  </table>\n");

  popupWindow.document.write("  <table border='0' width='100%'>\n");
  popupWindow.document.write("    <tr>\n");
  popupWindow.document.write("      <td width='100%'>\n");
  popupWindow.document.write("        <p align='center'>\n");
  popupWindow.document.write("          <img src='");
  popupWindow.document.write(mymovie);
  popupWindow.document.write("' width='400' >\n");
  popupWindow.document.write("      </td>\n");
  popupWindow.document.write("    </tr>\n");
  popupWindow.document.write("  </table>\n");
}