


document.write("<STYLE> " +
	"body,td,table,div,span { font-family: verdana,arial,tahoma,helvetica; font-size: 11px; } " +
	"li { text-align: left; } " +
	"ul { MARGIN-TOP: 3px; MARGIN-BOTTOM: 3px; } " +
	"body { MARGIN-TOP: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; background-color: #EDEDEF; } " +
	"A, A:link, A:visited { TEXT-DECORATION: none; color : #A10F05; font-weight: bold;  } " +
	"A:hover { TEXT-DECORATION: underline; color : #A10F05; font-weight: bold; } " +
	"a:link img, a:visited img { border-color: #A10F05; } " +
	"a:hover img { border-color: #A10F05; } " + 
	".cellpad { padding: 3px; } " +
	".thintext { font-weight: normal; } " +
	".columntext { padding-left: 50px; padding-right: 50px; } " +
	".pagetitle { font-size: 18px; color: #11109B; font-weight: bold; font-family: verdana,arial,tahoma,helvetica;} " +
	".subtitle, .subtitle:link, .subtitle:visited { TEXT-DECORATION: none; font-size: 14px; color: #11109B; font-weight: bold; font-family: verdana,arial,tahoma,helvetica;} " +
	".subtitle:hover { TEXT-DECORATION: underline; font-size: 14px; color: #11109B; font-weight: bold; font-family: verdana,arial,tahoma,helvetica;} " +
	".smalltitle { font-size: 10px; color: #11109B; font-weight: bold; font-family: verdana,arial,tahoma,helvetica;} " +
	".largetext { font-size: 12px; color: #000000  } " +
	".smalltext { font-size: 9px; color: #000000  } " +
	".whitetext { TEXT-DECORATION: none; font-size: 9px; color: #ffffff; font-weight: normal;  } " +
	".whitetext:link { TEXT-DECORATION: none; color: #ffffff; font-weight: normal;  } " +
	".whitetext:visited { TEXT-DECORATION: none; color: #ffffff; font-weight: normal;  } " +
	".whitetext:hover { TEXT-DECORATION: underline; color: #ffffff; font-weight: normal;  } " +
	".sitemenu { background-image:url('image/site/sitemenubg.gif'); background-repeat:repeat; background-position: left; } " +
	".justify { text-align: justify } " +
	".greyband { FONT-SIZE: 9px; FONT-FAMILY: verdana,arial,tahoma,helvetica; color: #d8d8db; background-image:url('image/site/greyband.gif'); background-repeat:repeat-y; background-position: left; } " + 
	".greybandpart { FONT-SIZE: 9px; FONT-FAMILY: verdana,arial,tahoma,helvetica; color: #d8d8db; } " + 
	".menusection { FONT-SIZE: 9px; FONT-FAMILY: verdana,arial,tahoma,helvetica; color : #FFFFFF; } " + 
	"</STYLE>");


function writegap() { document.write(getgap()); }
function getgap() { return "<DIV><IMG SRC='image/site/bg.gif' ALIGN=CENTER WIDTH=1 HEIGHT=10></DIV>"; }
function writewhitegap() { document.write(getwhitegap()); }
function getwhitegap() { return "<DIV><IMG SRC='image/site/white.gif' ALIGN=CENTER WIDTH=1 HEIGHT=4></DIV>"; }

function writeborder(contents, width, align, color) { 
	if (writeborder.arguments.length<2) {
		document.write(getborder(contents));
	} else if (writeborder.arguments.length<3) {
		document.write(getborder(contents, width));
	} else if (writeborder.arguments.length<4) {
		document.write(getborder(contents, width, align));
	} else {
		document.write(getborder(contents, width, align, color));
	}
}
function getborder(contents, width, align, color) {
	if (getborder.arguments.length<2 || width<0) {
		width=200;
	} else if (width=="leftcol") {
		width=416;
	} else if (width=="rightcol") {
		width=256;
	}
	if (getborder.arguments.length<3) {
		align="center";
	}
	if (getborder.arguments.length<4 || color<0) {
		color="A8A8A8";
	}
	str = "<TABLE WIDTH=" +width+ " BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#" +color+ " ALIGN=" +align+ ">" +
		"<TR HEIGHT=1><TD WIDTH=1><IMG SRC='image/site/clear.gif' width=1 height=1></TD> " +
			"<TD WIDTH=" +(width-2)+ "><IMG SRC='image/site/clear.gif' width=" +(width-2)+ " height=1></TD> " +
			"<TD WIDTH=1><IMG SRC='image/site/clear.gif' width=1 height=1></TD> " +
		"</TR>" +
		"<TR><TD WIDTH=1></TD>";
	if (color=="000000") {
		str += "<TD BGCOLOR=#FFFFFF>";
	} else {
		str += "<TD BGCOLOR=#FFFFFF class='cellpad'>";
	}
	str += contents + "</TD><TD WIDTH=1></TD></TR> " +
		"<TR HEIGHT=1><TD WIDTH=1><IMG SRC='image/site/clear.gif' width=1 height=1></TD> " +
			"<TD WIDTH=" +(width-2)+ "><IMG SRC='image/site/clear.gif' width=" +(width-2)+ " height=1></TD> " +
			"<TD WIDTH=1><IMG SRC='image/site/clear.gif' width=1 height=1></TD> " +
		"</TR>" +
		"</TABLE>";
		
	return str;

}


function writeimageborder(path, width, height, align, aligngap) { 
	if (writeimageborder.arguments.length<4) {
		document.write(getimageborder(path, width, height));
	} else if (writeimageborder.arguments.length<5) {
		document.write(getimageborder(path, width, height, align));
	} else {
		document.write(getimageborder(path, width, height, align, aligngap));
	}
}
function getimageborder(path, width, height, align, aligngap) {

	str = "";

	if (getimageborder.arguments.length<4) {
		align="center";
	}
	if (getimageborder.arguments.length<5 || (align!="left" && align!="right")) {
		aligngap=0;
	}
	if (aligngap>0) {
		str += "<TABLE WIDTH=" +(width+2+aligngap)+ " BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=" +align+ "><TR>";
		if (align=="right") { str += "<TD WIDTH=" +aligngap+ " NOWRAP></TD>"; }
		str += "<TD width=" +(width+2)+ ">";
	}
	str += getborder("<IMG SRC='" +path+ "' width=" +width+ " height=" +height+ ">", (width+2), align, "000000");

	if (aligngap>0) {
		str += "</TD>";
		if (align=="left") { str += "<TD WIDTH=" +aligngap+ " NOWRAP></TD>"; }
		str += "</TR></TABLE>";
	
	}
	
	return str;
}



function writelinerow() { document.write("<TR><TD bgcolor=#000000><IMG SRC='image/site/rowline.gif' WIDTH=840 HEIGHT=1></TD></TR>"); }
function writeheaderrow() { document.write("<TR><TD><TABLE WIDTH=840 BORDER=0 CELLPADDING=0 CELLSPACING=0> " +
				"<TR> " +
					"<TD BGCOLOR=#123586><A HREF='index.html'><IMG BORDER=0 SRC='image/site/siteheader1.jpg' WIDTH=362 HEIGHT=124></A></TD> " +
					"<TD BGCOLOR=#123586><A HREF='index.html'><IMG BORDER=0 SRC='image/site/siteheader2.jpg' WIDTH=477 HEIGHT=124></A></TD> " +
					"<TD BGCOLOR=#000000><IMG SRC='image/site/black.gif' WIDTH=1 HEIGHT=124></TD> " +
				"</TR></TABLE></TD></TR>"); 
}

function writemenulink(name, link, curpage) {
	if (curpage==link) {
		document.write("&nbsp;&nbsp;&nbsp;&nbsp;<font color=#BB0000>" +name+ "</font><BR> ");
	} else {
		document.write("&nbsp;&nbsp;&nbsp;&nbsp;<A class='whitetext' HREF='" +link+ ".html'>" +name+ "</A><BR> ");
	}

}

function writemainrowtop(curpage) {

	document.write("" +
	"<TR><TD> " +
		"<TABLE WIDTH=840 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR> " +
			"<TD WIDTH=147 BGCOLOR=#123586 class='sitemenu' VALIGN=TOP> " +
				"<TABLE WIDTH=147 BORDER=0 CELLPADDING=0 CELLSPACING=0> " +
					"<TR><TD class='menusection'> " +
						"<BR> " +
						"<IMG SRC='image/site/sitemenutitle1.gif' WIDTH=147 HEIGHT=15> ");
	writemenulink("News", "news", curpage);
	writemenulink("About The Internet", "about", curpage);
	writemenulink("On the Issues", "issues", curpage);
	writemenulink("Community", "community", curpage);
	writemenulink("Weblog", "weblog", curpage);
	document.write(				"<BR> " +
						"</TD></TR> " +
					"<TR><TD><IMG SRC='image/site/sitemenudivider.gif' WIDTH=147 HEIGHT=2></TD></TR> " +
					"<TR><TD class='menusection'> " +
						"<BR> " +
						"<IMG SRC='image/site/sitemenutitle2.gif' WIDTH=147 HEIGHT=15> ");
	writemenulink("Contribute", "contribute", curpage);
	writemenulink("Volunteer", "volunteer", curpage);
	writemenulink("Students", "students", curpage);
	writemenulink("Voices", "voices", curpage);
	document.write(				"<BR> " +
						"</TD></TR> " +
					"<TR><TD><IMG SRC='image/site/sitemenudivider.gif' WIDTH=147 HEIGHT=2></TD></TR> " +
					"<TR><TD class='menusection'> " +
						"<BR> " +
						"<IMG SRC='image/site/sitemenutitle3.gif' WIDTH=147 HEIGHT=15> ");
	writemenulink("Photo Archive", "photos", curpage);
	writemenulink("Register to Vote", "register", curpage);
	writemenulink("Show Your Support", "support", curpage);
	writemenulink("About the Site", "site", curpage);
	document.write(				"<BR> " +
						"</TD></TR> " +
				"</TABLE> " +
			"</TD> " +
			"<TD WIDTH=1 BGCOLOR=#000000 VALIGN=TOP><IMG SRC='image/site/black.gif' width=1 height=1></TD> " +
			"<TD VALIGN=TOP> " +
				"<TABLE WIDTH=692 BORDER=0 CELLPADDING=0 CELLSPACING=0>" +
					"<TR HEIGHT=10><TD><IMG SRC='image/site/bg.gif' WIDTH=10 HEIGHT=10></TD><TD WIDTH=682></TD></TR>" +
					"<TR><TD WIDTH=10 VALIGN=TOP><IMG SRC='image/site/bg.gif' WIDTH=10 HEIGHT=1></TD><TD WIDTH=682 VALIGN=TOP>" +
			"");
}

function writemainrowbottom(curpage) {
	document.write("</TD>");
	if (page!="index") { document.write("<TR><TD colspan=2 align=right><br><a href='index.html'>Return Home</a></TD></TR>"); }
	document.write("<TR HEIGHT=10><TD><IMG SRC='image/site/bg.gif' WIDTH=10 HEIGHT=10></TD><TD WIDTH=682></TD></TR>" +
		"</TR></TABLE></TD></TR></TABLE> " +
		"</TR>");
}


function writetop(curpage, topband) {
	page = curpage;
	if (writetop.arguments.length<2) {
		topband="";
	}
	document.write("<TABLE WIDTH=840 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
	writelinerow();
	writeheaderrow();
	writelinerow();
	document.write("<TR><TD BGCOLOR=#000000 class='greyband' align=right>" +topband+ "&nbsp;</TD></TR>");
	writelinerow();
	writemainrowtop(curpage);
}

function writebottom(curpage) {
	writemainrowbottom(curpage);
	writelinerow();
	document.write("<TR><TD BGCOLOR=#000000 class='greyband'> " +
		"<TABLE WIDTH=840 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR> " +
			"<TD WIDTH=42% class='greybandpart'>Paid for and authorized by Americans for The Internet, Inc.</TD> " +
			"<TD WIDTH=35% class='greybandpart' ALIGN=CENTER>Remember to vote early and vote often!</TD> " +
			"<TD WIDTH=23% class='greybandpart' ALIGN=RIGHT>&copy; 2004 The Internet&nbsp</TD> " +
		"</TR></TABLE>" +
		"</TD></TR>");
	writelinerow();
}


function writecolumnstart() { document.write("<TABLE WIDTH=682 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD WIDTH=416 VALIGN=TOP class='justify'>"); }
function writecolumnmid() { document.write("</TD><TD WIDTH=10></TD><TD WIDTH=256 VALIGN=TOP class='justify'>"); }
function writecolumnend() { document.write("</TD></TR></TABLE>"); }









