var winpops = null;
var urlAddress = "http://www.afgcleveland.org/index.html";
var pageName = "AFG";

function openMapWindow(strImageName, strTitle0, strTitle1, strTitle2)
{
  if ( ( winpops == null )
    || winpops.closed )
  {
    winpops = open( "", "winpops", "width=700,height=545,left=60,top=20,menubar=0,scrollbars=yes" );
  }
  else
  {
    winpops.focus();
  }
winpops.document.write( '<HTML><HEAD><title>Cleveland, Ohio Area Al-Anon Location Map</TITLE><SCRIPT LANGUAGE="JavaScript" SRC="afg_scripts.js"></SCRIPT>'
+ '<link rel="stylesheet" href="afg_style.css"><BODY topmargin="3" leftmargin="10" rightmargin="0" bottommargin="0" background="Images/wp-background.gif"><div align="left">'
+ '<table border="0" width="662" cellpadding="0" style="border-collapse: collapse" height="70" background="Images/wp-map.gif"><tr><td height="70" width="149" valign="top">'
+ '<font size="7" color="#FFFFFF"><b>M</b></font><p style="margin-left: 44px; margin-top: -54px">'
+ '<font size="5" color="#FFFFFF"><b>ap</b></font></p></td><td height="70" valign="top">'
+ '<p align="left" style="margin-top: 10px; margin-bottom: 0"><font size="2" color="#333300">'
+ '<b>' + strTitle0 + '<br>&nbsp;&nbsp;&nbsp;' + strTitle1 + '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + strTitle2 + '</b></p></td></tr></table>'
+ '<table border="1" width="662" height="442" cellpadding="0" style="border-collapse: collapse" cellspacing="0" bordercolor="#000000"><tr><td>'
+ '<img border="0" src="Maps/' + strImageName + '"></td></tr></table>'
+ '<table border="0" width="660" cellpadding="0" style="border-collapse: collapse" height="24"><tr><td>'
+ '<font face="Verdana, Arial, Geneva, Tahoma, Helvetica, sans-serif" size="2">'
+ '<p style="margin-top: 4px; margin-bottom: 0" align="right"><a class="link_button" href="javascript:window.print();">Print This Map</a></font></td></tr></table></div>'
+ '</body></html>');
  winpops.document.close();
}

function openMeetWindow(strCity)
{
  if ( ( winpops == null )
    || winpops.closed )
  {
    winpops = open( "", "meetWin", "width=690,height=480,left=10,top=10,menubar=0" );
  }
  else
  {
    winpops.focus();
  }
 winpops.document.write( '<html><head><title>Cleveland, Ohio Area Al-Anon - Meetings</title><link rel="stylesheet" href="afg_style.css"><meta name="Author" content="Jim P."></head>'
+ '<body border="0" cellspacing="0" cellpadding="0" cols="1" width="770" topmargin="5" leftmargin="5" rightmargin="0" bottommargin="0" background="Images/wp-background.gif">'
+ '<table border="0" width="690" cellpadding="0" style="border-collapse: collapse" background="Images/wp-schedule-header(4).gif" height="123">'
+ '<tr><td width="103">&nbsp;</td><td width="567">&nbsp;</td></tr><tr><td width="103" height="39">&nbsp;</td>'
+ '<td width="567" height="39" align="center"><p align="left"><b><font face="Times New Roman" size="5" color="#FFFFFF">' + strCity + '</font></b></td></tr>'
+ '<tr><td width="103" height="47">&nbsp;</td><td width="567" height="47">&nbsp;</td></tr></table>'
+ '<table border="0" width="670" cellpadding="0" bgcolor="#FFFFFF" style="border-collapse: collapse; margin-left:10"><tr><td>'
+ '<iframe name="I3" src="meet-iframe.html#' + strCity + '" width="670" height="330" border="0" frameborder="0" style="padding:0px; margin-left:0px; margin-bottom:0px;">'
+ 'Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></td></tr></table></body></html>');
  winpops.document.close();
}

function openQuesWin(htmlName)
{
  if ( ( winpops == null )
    || winpops.closed )
  {
window.open(htmlName,'FAQ','width=400,height=400,left=10,top=10,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); 
  }
  else
  {
    winpops.focus();
  }
}

function openPopupPdf()
{
  if ( ( winpops == null )
    || winpops.closed )
  {
    winpops = open( "popup-pdf.html", "pdfWin", "width=472,height=208,left=10,top=10,menubar=0" );
  }
  else
  {
    winpops.focus();
  }
}

function openSeePdf(seePdfName)
{
  if ( ( winpops == null )
    || winpops.closed )
  {
    winpops = open("pdf/" + seePdfName, "seepdfWin", "menubar=0" );
  }
  else
  {
    winpops.focus();
  }
}
