function writeSwadePgIncludes()
{
pageIncludes = '<script>NS4 = (document.layers);IE4 = (document.all);ver4 = (NS4 || IE4);	 IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);   isMac = (navigator.appVersion.indexOf("Mac") != -1);  isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));function popUp(){return};function popDown(){return};if (!ver4) event=null;//--></script><script LANGUAGE="Javascript1.2" TYPE="text/javascript">if (isMenu) {menuVersion = 3;menuWidth = 120;childOverlap = 65;childOffset = -20;perCentOver = null;secondsVisible = .5;fntCol = "blue";fntSiz = "8";fntBold = false;fntItal = false;fntFam = "Arial,sans-serif";backCol = "#DDDDDD";overCol = "#FFCCCC";overFnt = "purple";borWid = 2;borCol = "black";borSty = "solid";itemPad = 1;imgSrc = "tri.gif";imgSiz = 10;separator = 1;separatorCol = "black";keepHilite = true; clickStart = false;clickKill = false;isFrames = false;navFrLoc = "top";mainFrName = "main";NSfontOver = true;}</script>';
document.write(pageIncludes);
}

function writeGalleryPagesHeader()
{
GalleryPgHdr = '<table border=0 cellpadding=1 cellspacing=1 align=center width=500><tr><td align="center" colspan="2"><img src="images/gallery_title.gif" width="400" height="100"></td></tr><tr><td align="right" width="824"><img src="images/gallery_map.gif" border="0" width="478" height="95" usemap="#gallery_map"><map name="gallery_map"><area shape="rect" coords="3,3,56,95" href="pr_flag.html" alt="Pride Flags" title="Pride Flags"><area shape="rect" coords="61,4,109,92" href="labrys.html" alt="Labrys" title="Labrys"><area shape="rect" coords="115,7,171,88" href="btri.html" alt="Black Triangle" title="Black Triangle"><area shape="rect" coords="176,5,235,92" href="ptri.html" alt="Pink Triangle" title="Pink Triangle"><area shape="rect" coords="238,6,279,93" href="rbn.html" alt="Ribbons" title="Ribbons"><area shape="rect" coords="282,9,330,92" href="gender.html" alt="Gender Symbols" title="Gender Symbols"><area shape="rect" coords="337,9,386,92" href="lambda.html" alt="Lambda" title="Lambda"><area shape="rect" coords="390,10,435,90" href="icons.html" alt="Web Icons" title="Web Icons"><area shape="rect" coords="439,10,477,90" href="misc.html" alt="Miscellaneous Symbols" title="Miscellaneous Symbols"></map></td><td align="left" width="194"><a href="anis.html"><img src="images/ani/ani_rainbow_triangle.gif" width="80" height="50" border="0"></a><BR><a href="anis.html"><img src="images/ani_map.gif" border="0" height="37" width="80"></a></td></tr><tr><td align="center" height="10" valign="middle" colspan="2"><img src="../images/rainbar.jpg" height="2" width="400"><tr><td align="center" bgcolor=#e0e0e0 colspan="2"><table width="80%" border="0" cellspacing="0" cellpadding="4"><tr><td height=25 valign=middle class="msg" align="center"><a href="symbols.html">Wanna know the history of some of these symbols&#63</a></td></tr><tr><td height="4"><img src="../images/clr.gif" height="1" width="1"></td></tr><tr><td> If you would like to use any of the images from Swade\'s LGBT Symbols Gallery, click on the desired image\'s underlined link, complete the form and I\'ll send the image to you via eMail.</td></tr><tr><td align="center" class="menubar"><b>Please!&nbsp;&nbsp;Do not link to the images on this page!</b></td></tr><tr><td height="4"><img src="../images/clr.gif" height="1" width="1"></td></tr></table></td></tr><tr><td align="center" bgcolor=#e0e0e0 class="noter" colspan="2">Would you like to&nbsp;<a href="gallery_link.html">place a link</a> to my <i>LGBT Symbols Gallery</i> on your web site?</td></tr><tr><td align="center" bgcolor=#e0e0e0 colspan="2"><a href="gallery_link.html"><img src="../images/banners/swade_gallery_banner.gif" width="400" height="40" border="0"></a></td></tr></table>';
document.write(GalleryPgHdr);
}
function writeArtPagesHeader()
{
ArtPgHdr = '<table width="500" border="0" cellspacing="1" cellpadding="0" align="center"><tr align="center"><td colspan="3"><img src="images/clr.gif" height="8" width="8" alt="spacer image"></td></tr><tr align="center"><td colspan="3" class="titlerA">Swade\'s Original LesbiErotic Line Art</td></tr><tr align="center"><td colspan="3" class="noter">All Artwork is the exclusive property of <a href="mailto:swade@swade.net?subject:Your_Art">Swade</a>&nbsp;and may not be reproduced without written permission of the artist.</td></tr></table>';
document.write(ArtPgHdr);
}

function writeLesPagesHeader()
{
lesPgHdr = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr align="center"><td colspan="4"><img src="../../images/titles/lesb_ttl.gif" alt="[Swades Links for Lesbians and All Women!]" width="500" height="33"></td></tr><tr><td height="5" colspan="4"><img src="../../images/clr.gif" width="1" height="4"></td></tr><tr><td colspan="4"><img src="../../images/clr.gif" width="1" height="5"></td></tr><tr align="center" valign="middle"><td colspan="4">Find out the latest <a href="http://search.newsworks.com/addquery.html?qt=lesbian" target="_blank">NEWS STORIES ABOUT LESBIANS</a> from 130 news services!<br>NOTICE!&nbsp;&nbsp;Clicking this link will open a new window ... </td></tr><tr align="center"><td colspan="4" height="10"><img src="../../images/rainbar.jpg" width="500" height="3"></td></tr><tr align="center"><td><a href="http://www.pedowatch.org" target="_blank"><img src="../../images/pedostop.gif" border="0" alt="[ Pedophiles are predators and cannot be cured.  Report child pornographers and molestors to www.pedowatch.org ]" width="150" height="70"></a></td>  <td><a href="http://www.swade.net/swadepages/gallery/"><img src="../../images/banners/swade_gallery_banner.gif" alt="[Swade&#39s Gay and Lesbian Symbols Gallery]" width="400" height="40" border="0"></a></td>  <td><a href="../../lesbian/tribal_chant/les_hist.html"><img src="../../images/banners/tribal_ad.gif" width="120" height="90" alt="Swade\'s Tribal Chant Women\'s herstory!" border="0"></a></td>  <td>&nbsp;</td></tr><tr align="center"><td colspan="4"><img src="../../images/clr.gif" width="1" height="5"></td></tr><tr align="center"><td colspan="4">Got a <a href="http://www.swade.net/swadepages/addalink.htm">link</a> to add?</td></tr></table>';
document.write(lesPgHdr);
}
function writeEroPagesHeader()
{
eroPgHdr = '<table width="300" border="0" cellspacing="0" cellpadding="0" align="center"><tr align="center"><td width="453"><img src="swades_lesbierotica_wh.jpg" border=0 height=86 width=300 alt="Swade\'s LesbiErotica"></td></tr><tr><td class="noter" align="center">All Stories, Poetry and Artwork are the exclusive property of <a href="mailto:swade@swade.net?subject=LesbiErotica">Swade</a>&nbsp;and may not be reproduced without written permission of the author.<br>*sigh*</td></tr><tr><td height="5" class="noter" align="center"><img src="img/clr.gif" width="1" height="5"></td></tr></table>';
document.write(eroPgHdr);
}
function writeEroPagesFooter()
{
eroPgFtr = '<table border="2" cellspacing="0" cellpadding="0" align="center"><tr><td><table border="0" cellspacing="4" cellpadding="4" align="center"><tr align="center"><td colspan="7" class="msg">&nbsp;Poetry</td></tr><tr><td align="left">&nbsp;<a href="convince.html">Betting My Heart</a></td><td colspan="2">&nbsp;<a href="mellow.html">When That One Night Is Mellow</a></td><td>&nbsp;<a href="naked.html">Naked Before You</a></td><td>&nbsp;<a href="deborah.html">Deborah</a></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr align="center"><td colspan="7" class="msg">&nbsp;Prose</td></tr><tr align="left"><td>&nbsp;<a href="flaked_pate.html">Flaked Pate</a></td><td>&nbsp;<a href="azalea.html">Azalea Dance, Opus 1</a></td><td>&nbsp;<a href="telefon.html">Telefon</a></td><td>&nbsp;<a href="wrench.html">Chained Wrench</a></td><td>&nbsp;<a href="fantasea.html">Fantasea</a></td><td>&nbsp;<a href="workshop.html">Workshop</a></td><td>&nbsp;<a href="altercation.html">The Altercation</a></td></tr></table></td></tr></table>';
document.write(eroPgFtr);
}

function writeGLBTHeader()
{
GLBTHeader = '<table width="91%" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td align="center" colspan="4"><img src="../images/titles/glbttitl.gif"></td></tr><tr align="center" valign="middle"><td colspan="4">Find out the latest <a href="http://cnn.looksmart.com/r_search?l&izch&pin=020115x7b8091e254817094851&qc=&col=cnni&qm=0&st=1&nh=10&rf=1&venue=all&keyword=&qp=&search=0&key=gay" target="_blank">NEWS STORIES ABOUT GAYS &amp; LESBIANS</a> from 130 news services! <i>NOTICE!</i><i>&nbsp;&nbsp;Clicking this link will open a new window ... </i></td></tr><tr align="center"><td colspan="4" height="10"><img src="../images/rainbar.jpg" width="610" height="3"></td></tr><tr align="center"><td><i><a href="http://www.pedowatch.org"><img src="../images/pedostop.gif" border="0" alt="[ Pedophiles are predators and cannot be cured.&nbsp;&nbsp;Report child pornographers and molestors to www.pedowatch.org ]" width="160" height="80"></a></i></td><td><i><a href="../gallery/index.html"><img src="../images/banners/swade_gallery_banner.gif" alt="[Swade&#39s Gay and Lesbian Symbols Gallery]" width="400" height="40" border="0"></a></i></td><td><a href="../lesbian/tribal_chant/les_hist.html"><img src="../images/banners/tribal_ad.gif" width="120" height="90" alt="Swade\'s Tribal Chant Women\'s herstory!" border="0"></a></td><td>&nbsp;</td></tr><tr align="center"><td colspan="4"><img src="../images/clr.gif" width="1" height="5"></td></tr><tr align="center"><td colspan="4">Got a <a href="../site/addalink.html">link</a> to add?</td></tr><tr><td align="center">&nbsp;</td><td align="center">&nbsp;</td><td align="center">&nbsp;</td><td align="center">&nbsp;</td></tr></table>';
document.write(GLBTHeader);
}



// function click()
//  {
//	if (event.button==2)
//	 {
//	    alert('STOP!\nMany Artworks and Writings contained within SWADEPAGES are protected by copyright.\nCopying Artworks and writings by Swade without consent is copyright infringement!\nIf you would like to use Artwork or Writings from SwadePages, please eMail Swade and request permission.');
//  var myBars = 'directories=no,location=no,menubar=no,statusbar=no';
//  myBars += ',titlebar=no,toolbar=no';
//  var myOptions = 'scrollbars=no,width=350,height=350,resizeable=no,top=290,left=180';
//  var myFeatures = myBars + ',' + myOptions;
//  var newWin = open('../scripts/noclick_win.html', 'failure1', myFeatures);
//	 }
// }document.onmousedown=click

function openWin2()
{
  var myBars = 'directories=no,location=no,menubar=no,statusbar=no';
  myBars += ',titlebar=no,toolbar=no';
  var myOptions = 'scrollbars=no,width=340,height=330,resizeable=no,top=290,left=180';
  var myFeatures = myBars + ',' + myOptions;
  var newWin = open('noclick.html', 'failure1', myFeatures);
}


function writeSwadePgTop()
{
pageTop = '<table width="771" border="0" cellspacing="0" cellpadding="0"><tr><td width="771" align="right"><a href="index.html" target="_top"><img src="headers/swadepages_titlebar.jpg" width="780" height="32" border="0"></a></td></tr><tr><td width="771" height="3" class="menuBar"><img src="IMAGES/clr.gif" width="771" height="3"></td></tr></table><table width="780" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff"><tr height="22"><td><img src="images/clr.gif" border="0" height="1" width="20" alt=""><A href="#" onMouseOut="MM_swapImgRestore()" onmouseover="popUp(\'elMenu1\',event)/* + HideSch() + */ ;MM_swapImage(\'lesbian\',\'\',\'headers/les_off.gif\',1)"><img src="headers/les_on.gif" width="64" height="26" border="0" name="lesbian"></a><img src="images/clr.gif" width="5" height="22"><A class=linknav href="#" onMouseOut="popDown(\'elMenu2\');MM_swapImgRestore()" onmouseover="popUp(\'elMenu2\',event)/* + HideSch() + */ ;MM_swapImage(\'gay\',\'\',\'headers/gay_off.gif\',1)"><img src="headers/gay_on.gif" width="45" height="26" border="0" name="gay"></a><img src="images/clr.gif" width="5" height="24"><A class=linknav href="#" onMouseOut="popDown(\'elMenu3\');MM_swapImgRestore()" onmouseover="popUp(\'elMenu3\',event)/* + HideSch() + */ ;MM_swapImage(\'art\',\'\',\'headers/art_off.gif\',1)"><img src="headers/art_on.gif" width="40" height="26" border="0" name="art"></a><img src="images/clr.gif" width="5" height="22"><A class=linknav href="#" onMouseOut="popDown(\'elMenu4\');MM_swapImgRestore()" onmouseover="popUp(\'elMenu4\',event)/* + HideSch() + */ ;MM_swapImage(\'other\',\'\',\'headers/oth_off.gif\',1)"><img src="headers/oth_on.gif" width="108" height="26" border="0" name="other"></a><img src="images/clr.gif" width="5" height="22"><A class=linknav href="#" onMouseOut="popDown(\'elMenu5\');MM_swapImgRestore()" onmouseover="popUp(\'elMenu5\',event)/* + HideSch() + */ ;MM_swapImage(\'about\',\'\',\'headers/abt_off.gif\',1)"><img src="headers/abt_on.gif" width="66" height="26" border="0" name="about"></a><img src="images/clr.gif" width="5" height="22"><A class=linknav href="#" onMouseOut="popDown(\'elMenu6\');MM_swapImgRestore()" onmouseover="popUp(\'elMenu6\',event)/* + HideSch() + */ ;MM_swapImage(\'site\',\'\',\'headers/site_off.gif\',1)"><img src="headers/site_on.gif" width="33" height="26" border="0" name="site"></a><img src="images/clr.gif" width="5" height="22"></td><td align="right"><a href="mailto:swade@swade.net?subject=SwadePages"><img src="images/ani/splash_email.gif" width="20" height="20" border="0" alt="eMail Swade"></a></td></tr></table><table width="771" border="0" cellspacing="0" cellpadding="0"><tr><td width="780" height="2" class="menuBar"><img src="IMAGES/clr.gif" width="771" height="2"></td></tr></table>';
document.write(pageTop);
}

// This function combined with writeBottomFormat() writes a table to the page that is be used to contain page content.
// Table width, top spacing (margin), bottom spacing (margin), border width, and content area can be customized via optional parameters passed to the function.
// if no arguments are passed to the function default perameters are used.
function writeTopFormat(alignContent,twidth,leftMarginWidth,contentWidth,topMarginHeight,borderWidth)
{	
    var argv = writeTopFormat.arguments;
    var argc = writeTopFormat.arguments.length; 
	
	var alignContent = argv[0];
	var twidth = argv[1];
	var leftMarginWidth = argv[2];
	var contentWidth = argv[3];
	var topMarginHeight = argv[4];
	var borderWidth = argv[5];	
	
	if ((alignContent == null)||(alignContent == ''))
      alignContent = "left";	
	if ((twidth == null)||(twidth == ''))
      twidth = "771";
	if ((leftMarginWidth == null)||(leftMarginWidth == ''))
      leftMarginWidth = '20'; 
	if ((contentWidth == null)||(contentWidth == ''))
      contentWidth = '749';
	if ((topMarginHeight == null)||(topMarginHeight == ''))
      topMarginHeight = '22';
	if ((borderWidth == null)||(borderWidth == ''))
	  borderWidth = '1';	

    var topFormatTable = 
       '<a name="top"></a><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="../images/clr.gif" alt="spacer" width="10" height="80"></td></tr></table><table width="' + twidth + '" border="0" cellspacing="0" cellpadding="0"><tr><td width="' + leftMarginWidth + '"><img src="../images/clr.gif" width="20" height="1" alt=""></td><td width="' + borderWidth + '"><img src="../images/clr.gif" width="1" height="1" alt=""/></td><td width="' + contentWidth + '">&#160;</td><td><img src="../images/clr.gif" width="1" height="1" alt=""/></td></tr><tr><td  height="' + borderWidth + '"><img src="../images/clr.gif" width="20" height="1"></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder" width="' + borderWidth + '"><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td height="' + topMarginHeight + '"><img src="../images/clr.gif" width="20" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td><img src="../images/clr.gif" width="20" height="1"></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td align="' + alignContent +'">'; 
    document.write(topFormatTable); 
} 

function writeBottomFormat(bottomMarginHeight,borderWidth)
{
    var argv = writeBottomFormat.arguments;
	var bottomMarginHeight = argv[0];
	var borderWidth = argv[1];		

	if ((bottomMarginHeight == null)||(bottomMarginHeight == ''))
      bottomMarginHeight = '22';
	if ((borderWidth == null)||(borderWidth == ''))
      borderWidth = '1';	
	      
    var bottomFormatTable = '</td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td height="' + bottomMarginHeight + '"><img src="../images/clr.gif" width="20" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td height="' + borderWidth + '"><img src="../images/clr.gif" width="20" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td><p>&nbsp;</p><p align="center"><a href="#top" class="top">Top</a></p><p>&nbsp;</p></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="noter"><script>lastModif()</script></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr></table><script type="text\/javascript">function Go(){return}<\/script><script type="text\/javascript" src="..\/scripts\/swadesubmenu.js"><\/script><script type="text\/javascript" src="..\/scripts\/swademenu_com.js"><\/script><noscript>Your browser does not support this script!&nbsp;&nbsp; To view SwadePages properly, please download a recent version of Netscape or Internet Explorer.<\/noscript>'; 
   document.write(bottomFormatTable); 
}
function writeBottomFormatTwo(bottomMarginHeight,borderWidth)
{
    var argv = writeBottomFormatTwo.arguments;
	var bottomMarginHeight = argv[0];
	var borderWidth = argv[1];		

	if ((bottomMarginHeight == null)||(bottomMarginHeight == ''))
      bottomMarginHeight = '22';
	if ((borderWidth == null)||(borderWidth == ''))
      borderWidth = '1';	
    var bottomFormatTwoTable = '</td><td class="frameborder"><img src="../../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td height="' + bottomMarginHeight + '"><img src="../../images/clr.gif" width="20" height="1" alt="" /></td><td class="frameborder"><img src="../../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td height="' + borderWidth + '"><img src="../../images/clr.gif" width="20" height="1" alt="" /></td><td class="frameborder"><img src="../../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../../images/clr.gif" width="1" height="1" alt="" /></td><td class="frameborder"><img src="../../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td><img src="../../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../../images/clr.gif" width="1" height="1" alt="" /></td><td><p>&nbsp;</p><p align="center"><a href="#top" class="top">Top</a></p><p>&nbsp;</p></td><td><img src="../../images/clr.gif" width="1" height="1" alt="" /></td></tr><tr><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td><td class="noter"><script>lastModif()</script></td><td><img src="../images/clr.gif" width="1" height="1" alt="" /></td></tr></table><script type="text\/javascript">function Go(){return}<\/script><script type="text\/javascript" src="..\/..\/scripts\/swadesub2menu.js"><\/script><script type="text\/javascript" src="..\/..\/scripts\/swademenu_com.js"><\/script><noscript>Your browser does not support this script!&nbsp;&nbsp; To view SwadePages properly, please download a recent version of Netscape or Internet Explorer.<\/noscript>'; 	      

   document.write(bottomFormatTwoTable); 
}
// Function to handle a resize event in NS 4.x (not currently used
function handle(evnt)
{
 alert('The window was resized');
 top.frames[0].document.location.reload();
 top.frames[1].document.location.reload();
 top.frames[2].document.location.reload();
 return true;
}
// Function that writes a table with a i pixel border to the page. Intended for displaying user information and error mesages returned form the server
function writeNewMessage(message, t_width, align, vspace, margins )
{ 
var argv = writeNewMessage.arguments;
var argc = writeNewMessage.arguments.length;
var t_width = argv[1];
var align = argv[2];
var vspace = argv[3];
var margins = argv[4];
if ((t_width == null)||(t_width == ""))
t_width = "100%";
if ((align == null)||(align == ""))
align = "center";
if ((vspace == null)||(vspace == ""))
vspace = "26";
newMessage =
'<table width="691" border="0" cellspacing="0" cellpadding="0"><tr><td width="20" height="' + vspace + '"><img src="images/clr.gif" width="20" height="1"></td><td class="pageColor" width="20"><img src="images/clr.gif" width="20" height="1"></td><td class="pageColor" width="691" ><img src="images/clr.gif" width="1" height="1"></td><td class="pageColor" width="20"><img src="images/clr.gif" width="20" height="1"></td></tr><tr><td><img src="images/clr.gif" width="20" height="1"></td><td class="pageColor">&nbsp;</td><td class="pageColor" align="center"><table width="' + t_width + '" border="0" cellspacing="0" cellpadding="0"><tr><td class="bordercolor" colspan="5"><img src="images/clr.gif" width="1" height="1"></td></tr><tr><td class="bordercolor" width="1"><img src="images/clr.gif" width="1" height="1"></td><td width="20" class="message"><img src="images/clr.gif" width="20" height="1"></td><td width="649" class="message">&nbsp;</td><td width="20" class="message"><img src="images/clr.gif" width="20" height="1"></td><td class="bordercolor" width="1"><img src="images/clr.gif" width="1" height="1"></td></tr><tr><td class="bordercolor"><img src="images/clr.gif" width="1" height="1"></td><td class="message"><img src="images/clr.gif" width="20" height="1"></td><td class="message" align="' + align + '">' + message + '</td><td class="message"><img src="images/clr.gif" width="20" height="1"></td><td class="bordercolor"><img src="images/clr.gif" width="1" height="1"></td></tr><tr><td class="bordercolor"><img src="images/clr.gif" width="1" height="1"></td><td class="message"><img src="images/clr.gif" width="20" height="1"></td><td class="message">&nbsp;</td><td width="20" class="message"><img src="images/clr.gif" width="20" height="1"></td><td class="bordercolor"><img src="images/clr.gif" width="1" height="1"></td></tr><tr><td class="bordercolor" colspan="5"><img src="images/clr.gif" width="1" height="1"></td></tr></table></td><td class="pageColor"><img src="images/clr.gif" width="20" height="1"></td></tr></table>';
document.write(newMessage);
}
// uses relative addressing to open a new window to a context sensitive  help page, where s is the page_name and the path is src="help/page_name.htm"
function openHelpWindow(s)
{
    // relative url for context sensitive help is path + page_name.htm
    var helpUrl = "\Help/" + s;
    var newWin = open( helpUrl,'Help','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=300,top=0,left=0' );
}
function MM_preloadImages() 
{ //v3.0
  var d=document; 
  if (d.images)
  { 
    if (!d.MM_p) 
      d.MM_p=new Array();
    var i,j = d.MM_p.length, a=MM_preloadImages.arguments; 
    for (i=0; i<a.length; i++)
      if (a[i].indexOf("#")!=0)
      { 
        d.MM_p[j]=new Image; 
        d.MM_p[j++].src=a[i];
      }
  }
}

function MM_swapImgRestore() 
{ //v3.0
  var i,x,a = document.MM_sr; 
  for (i=0; a && i<a.length&&(x=a[i]) && x.oSrc; i++) 
    x.src=x.oSrc;
}

function MM_findObj(n, d) 
{ //v3.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.layers && i<d.layers.length;i++) 
    x = MM_findObj(n,d.layers[i].document); 
  return x;
}

function MM_swapImage() 
{ //v3.0
  var i,j = 0,x,a = MM_swapImage.arguments; 
  document.MM_sr = new Array; 
  for (i=0; i<(a.length-2); i+= 3)
    if ((x = MM_findObj(a[i]))!=null)
    {
      document.MM_sr[j++]=x; 
      if (!x.oSrc) 
        x.oSrc=x.src; 
      x.src=a[i+2];
    }
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function openWin()
{
  var myBars = 'directories=no,location=no,menubar=no,statusbar=no';
  myBars += ',titlebar=no,toolbar=no';
  var myOptions = 'scrollbars=no,width=400,height=90,resizeable=no,top=290,left=180';
  var myFeatures = myBars + ',' + myOptions;
  var newWin = open('alert.html', 'alert1', myFeatures);
}


function MM_goToURL() 
{ //v3.0
  var i, args=MM_goToURL.arguments; 
  document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) 
    eval(args[i]+".location='"+args[i+1]+"'");
}
function writeLogindate() {
    var this_month = new Array(12);
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September";
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
    var today = new Date();
    var day   = today.getDate()-1;
    var month = today.getMonth();
    var year  = today.getYear();
    if (year< 1900) {
	year += 1900;
    }
    //return(this_month[month]+" "+day+", "+year);
    return(this_month[month]+ "&nbsp;" + day +", " + year);
}
function loadPage(content, title)
{
   var argv = loadPage.arguments;
   top.frames[2].location.href = argv[0];
   top.frames[1].location.href = argv[1];  
}
function checkTitle(title, path, url )
{
   var argv = checkTitle.arguments;

   if ( title != top.frames.newTitle)
   {   
      // alert('I\'m testing. This is not the right title. Title is equal to :' + title +  ' and top.frames[0].newTitle is equal to: ' + top.frames.newTitle);
      top.frames[0].newTitle = argv[0];
	  // alert('top.frames[0].newTitle = argv[0] results in newTitle being equal to: '	+ top.frames[0].newTitle);
      top.frames[0].newPath = argv[1];
      // alert('top.frames[0].navdata.title equals argv[0] results in newTitle being equal to: ' + top.frames[0].navdata.title );
      top.frames[0].navdata.path = argv[1];	
      top.frames[0].navdata.store();
	  top.frames[1].location.href = argv[2];	  

   } 
   // else
   // alert('I\'m testing. Congratulations! This is the right title. Title is equal to :' + title +  ' and top.frames[0].newTitle is equal to: ' + top.frames[0].newTitle);
} 
//------------------------------------------------------------------------------------------


// This function is used to get date values for form fields and data tables. It accepts two arguments. The first argument, "days" is an integer
// that is added to the present date to generate a new date. i.e getSomeDate(30) would be a day 30 days after the present date
// getSomeDate(0) is today's date. getSomeDate(-1) is yesterday's date etc. The second argument is an optional boolean that if true will write 
// the date to the page.
function getSomeDate(days, writeValue)
{
   var argv = getSomeDate.arguments;   
   var days = argv[0];
   var writeValue = argv[1];
   var futureDate = argv[2];
   var newDate = new Date((new Date()).getTime() + (days*24*3600000));   
   var newYear = newDate.getFullYear();
   var newMonth = newDate.getMonth();   
   var newMonth = newMonth + 1 ;
   if (newMonth == 13)
   newMonth = 1;
   var newDay = newDate.getDate();
   someDate = newMonth + '/' + newDay + '/' + newYear; 
   someDate = formatDate(someDate);
   if (writeValue == true)
   {      
      document.write(someDate);
   }
   else
      return someDate;
   
}
// This function is used to generate a 30 day date range and input those dates into two form fields named "date1" and "date2" These text input names
// are the standard names associated with date fields used with the calendar script.
function setDateRangeThirty()
{
  document.forms[0].date1.value=getSomeDate(-30); 
  document.forms[0].date2.value=getSomeDate(0);
}
// reformat a date in m/d/yy, mm-dd-yy, etc. to MM/DD/YYYY
function formatDate(dateStr) 
{
   var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{2}|\d{4})$/;
   var matchArray = dateStr.match(datePat);
   var monthValue, dayValue, yearValue; 
   month = matchArray[1]; // parse date into variables
   day = matchArray[3];
   year = matchArray[4];   
   if (month.length == 1)
   monthValue = '0' + month;
   else
   monthValue = month + '';
   if (day.length == 1)
   dayValue = '0' + day;
   else 
   dayValue = day;
   if (year < 70)
   yearValue = '2' + '0' + year;
   else if((year >= 70) && (year < 100))
   yearValue = '1' + '9' + year;
   else
   yearValue = year + '';
   dateValue = monthValue + '/' + dayValue + '/' + yearValue;
   return dateValue; 
}	

function lastModif(){
var days = new Array(8);
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date(document.lastModified)
var wday = days[dateObj.getDay() + 1]
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()
var fyear = dateObj.getYear()
if (fyear < 2000) 
fyear = fyear + 1900
document.write('Page last modified ' + wday + ", " + lmonth + " " + date + ", " + fyear)
}

var timerID = null;
var timerRunning = false;
var id,pause=4,position=4;

function ticker() {
        var i,k,msg="..June 26, 2003...Washington, DC - The Supreme Court, in a 6-3 decision reversing ruling 17 years ago, strikes down Texas state law banning private consensual sex between adults of the same sex....";
        k=(210/msg.length)+1;
        for(i=0;i<=k;i++) msg+=" "+msg;
        document.forms[0].ticker.value=msg.substring(position,position+210);
        if(position++==209) position=0;
        id=setTimeout("ticker()",1000/5); }

function action() {
        if(!pause) {
                clearTimeout(id);
                pause=2; }

        else {
                ticker();
                pause=1; } }


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function win(fileName) {
     locWin = window.open('','locations','scrollbars=yes,status=no,resizable=yes,width=700,height=480')
     locWin.location.href = fileName;
}

var initialsubj="I thought you'd be interested in this!"
var initialmsg="Hello!   I found this great web page, " + document.title +" on SwadePages and thought you'd like it too! "+window.location
var good;
function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid email address.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {

//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
   }
}
