//define Links line object
function linkline (display, tp, lnk, lbl, description) {
	this.length=6;
	this.disp=display;
	this.type=tp;
	this.link=lnk;
	this.label=lbl;
	this.desc=description;
}
//Array of Links
var links = new Array(42);
links[0]=42;
links[1]=new linkline(true,"On Books and Writing","http://www.bookslut.com","Bookslut","A monthly web magazine and daily blog dedicated to those who love to read");
links[2]=new linkline(true,"On Books and Writing","http://www.booksquare.com","Booksquare","Dissecting the publishing industry with love and skepticism");
links[3]=new linkline(true,"On Books and Writing","http://vikk.typepad.com","Down the writer's path","the rabbit hole that leads into the wonderland of writing and publishing");
links[4]=new linkline(true,"On Books and Writing","http://www.emergingwriters.typepad.com","Emerging Writers Network","A network of emerging writers, established writers deserving of wider recognition and readers of literary books.");
links[5]=new linkline(true,"On Books and Writing","http://www.locallit.com","Local LIT","Literary events, news and resources in Philadelphia - and beyond");
links[6]=new linkline(true,"On Books and Writing","http://www.phillybookgeek.com","Philly Book Geek","Your source for all things literary - serving Philly and all nearby 'burbs");

links[7]=new linkline(true,"Bookstores","http://www.bigbluemarblebooks.com","Big Blue Marble Bookstore","A neighborhood bookstore in Mt. Airy and beyond");
links[8]=new linkline(true,"Bookstores","http://www.pennbookcenter.com","Penn Book Center","Serving the academic community on the campus of the University of Pennsylvania");
links[9]=new linkline(true,"Bookstores","http://www.robinsbookstore.com","Robin's Bookstore","Sponsor of poetry readings in Center City Philadelphia");

links[10]=new linkline(true,"Literary Magazines","http://www.thecafereview.com/","The Caf&eacute; Review ","A quarterly journal of poetry");
links[11]=new linkline(true,"Literary Magazines","http://www.thecollagist.com", "The Collagist", "Online literature from Dzanc Books");
links[12]=new linkline(false,"Literary Magazines","http://www.duckymag.com", "Ducky","Contemporary English-language poetry, fiction, interviews, criticism, and ephemera");
links[13]=new linkline(false,"Literary Magazines","http://gumballpoetry.com/","Gumball Poetry","Poetry in gumball machines and on the web");
links[14]=new linkline(true,"Literary Magazines","http://www.hungermtn.org","Hunger Mountain Magazine","The Vermont College Journal of Arts & Letters");
links[15]=new linkline(true,"Literary Magazines","http://www.madpoetssociety.com/","The Mad Poets Review","To promote thought-provoking, moving poetry");
links[16]=new linkline(false,"Literary Magazines","http://www.marshillreview.com", "Mars Hill Review", "&quot;This journal reaches across the cultural divides of our country&quot;");
links[17]=new linkline(true,"Literary Magazines","http://www.kennesawreview.org","Kennesaw Review","An online literary journal");
links[18]=new linkline(true,"Literary Magazines","http://www.philadelphiastories.com","Philadelphia Stories Magazine","Fiction/Art/Poetry of the Delaware Valley");
links[19]=new linkline(true,"Literary Magazines","http://www.reliefjournal.com","Relief","A Quarterly Christian Expression");
links[20]=new linkline(true,"Literary Magazines","http://www.manayunkartcenter.org/svja.html","Schuylkill Valley Journal of the Arts","Part of the Humanities Program of the Manayunk Art Center");
links[21]=new linkline(true,"Literary Magazines","http://www.upstreet-mag.org/","Upstreet","A literary Magazine");

links[22]=new linkline(true,"Publishers","http://www.finishinglinepress.com/", "Finishing Line Press", "Providing a place for today's poets since 1998.");
links[23]=new linkline(true,"Publishers","http://www.dzancbooks.org/", "Dzanc Books", "Created to advance great writing and champion writers who don't fit neatly into the marketing niches of for-profit presses.");

links[24]=new linkline(true,"Schools","http://www.vermontcollege.edu/mfaw/index.asp","Vermont College MFA in Writing Program","named among top five low-residency MFA programs in the U.S. by <I>Atlantic Monthly</I>");
links[25]=new linkline(true,"Schools","http://www.english.upenn.edu/~wh/","Kelly Writers House","at the University of Pennsylvania");
links[26]=new linkline(true,"Schools","http://www.abingtonfriends.net/","Abington Friends School","A Quaker coeducational college-preparatory school serving students in preschool through grade 12.");
links[27]=new linkline(false,"Schools","http://www.germantownfriends.org","Germantown Friends School","An independent Quaker day school for grades K-12");
links[28]=new linkline(true,"Schools","http://www.cheltenhamadultschool.org/","Cheltenham Township Adult School","Providing educational, cultural, vocational and recreational opportunities for adults in Cheltenham Township and neighboring communities.");

links[29]=new linkline(true,"Writers/Artists","http://www.archimg.com/","Architectural Imaging","Web Design, 3D Illustration");
links[30]=new linkline(true,"Writers/Artists","http://www.gregoryfrost.com","Greg Frost","Author of novels, short stories and articles");
links[31]=new linkline(true,"Writers/Artists","http://www.roxanegay.com","Roxane Gay","Writer");
links[32]=new linkline(true,"Writers/Artists","http://www.davidjauss.com","David Jauss","Fiction writer, poet, essayist, editor and teacher");
links[33]=new linkline(true,"Writers/Artists","http://www.broadjam.com/srmallon","S.R.Mallon","Composer of experimental music");
links[34]=new linkline(true,"Writers/Artists","http://www.justinemusk.com","Justine Musk","Dark Urban Fantasy");
links[35]=new linkline(true,"Writers/Artists","http://www.catherinestine.com","Catherine Stine","Author, Teacher, Artist");
links[36]=new linkline(true,"Writers/Artists","http://www.maryltabor.com/","Mary L. Tabor","Author, Teacher");
links[37]=new linkline(true,"Writers/Artists","http://www.karendtaylor.net/","Karen D Taylor","Writer, Editor, Singer");
links[38]=new linkline(true,"Writers/Artists","http://www.eisaulen.com","Eisa Nefertari Ulen","Author, Journalist, Essayist");
links[39]=new linkline(true,"Writers/Artists","http://www.timwise.org","Tim Wise","Antiracist Writer and Educator");
links[40]=new linkline(true,"Writers/Artists","http://www.womeninwarzones.org","Women in War Zones","Sexual Violence In The Congo");
links[41]=new linkline(true,"Writers/Artists","http://cassendrexavier.homestead.com","Cassendre Xavier","Performing songwriter and recording artist");
links[42]=new linkline(false,"Writers/Artists","","Place Holder","");

function BuildLinkTable(pad){
	//Links logic
	var cat="";
	var tablestr='<table style="margin-bottom:24px;">';
	tablestr += '<tr><td style="font-size:18px;"><a name="LinksTop"/>L I N K S</td></tr>';
	//tablestr += '<tr><td><img src="HW20-links-blue.gif" border="0" alt="links"></td></tr>';
	//top links
	tablestr += '<tr><td style="font-size:11px;">';
	for (i=1;i<links[0];i++) {
		if (links[i]["disp"]) {
			if(cat!=links[i]["type"]){ //new category head
				cat=links[i]["type"];
				tablestr += '<a href="#' + cat.substring(0,5) + '">';
				tablestr += cat + '</a> &nbsp; &nbsp; ';
			}
		}
	}
	tablestr += '</td></tr>';
	cat="";

	//Links content
	for (i=1;i<links[0];i++) {
		if (links[i]["disp"]) {
			if(cat!=links[i]["type"]){ //new category head
				cat=links[i]["type"];
				tablestr += '<tr><td style="font-size:15px; padding:16px 0px 4px 0px; letter-spacing:3px;">';
				tablestr += '<a name="' + cat.substring(0,5) + '">';
				tablestr += cat.toUpperCase();
				tablestr += ' &nbsp; <a style="font-size:11px; vertical-align:middle; letter-spacing:normal;" href="#LinksTop">back to top</a>';
				tablestr += '</td></tr>';		
			}
			tablestr += '<tr><td style="font-size:13px; padding:4px 0px 0px 16px;;">';
			tablestr += '<a href="' + links[i]["link"] + '" target="_new" >';
			tablestr += '<b>' + links[i]["label"] + '</b></a> &nbsp; ';
			tablestr += '</td></tr>';
			tablestr += '<tr><td style="font-size:11px; padding:0px 0px 4px 32px;">' + links[i]["desc"];
			tablestr += '</td></tr>';
		}
	}
	tablestr += '</table>';
	if(W3C){
		document.getElementById("picture").className="picboxfade";
		document.getElementById("content").className="conscr";
		document.getElementById("content").style.paddingTop=pad + "px";
		document.getElementById("content").innerHTML=tablestr;
	}else if (IE4||IE5){
		document.all.picture.className="picboxfade";
		document.all.content.className="conscr";
		document.all.content.style.paddingTop=pad + "px";
		document.all.content.innerHTML=tablestr;
	}
}