function writeLink()
	{
		document.write("<a href='"+this.url+"' title='"+this.summary+". "+this.region+"-"+this.topic+"-"+this.type+"'>"+this.title+"</a> <small><i>"+this.time+"</i></small>");
	}
	function Story(title,summary,region,topic,type,time,url,imageTags)
	{
		this.title=title;
		this.summary=summary;
		this.region=region;
		this.topic=topic;
		this.type=type;
		this.time=time;
		this.url=url;
		this.writeLink=writeLink;
	}
	stories = new Array(10);
			stories[0] = new Story(	"\'The Forge at Gort\' literary festival, March 26 & 27, 2010",
						"Third festival outing of music and literature&lt;br /&gt;The  ...",
						"National",
						"Arts and Media",
						"Press Release",
						"F9 3:23pm",
						"http://www.indymedia.ie/article/95752");
				stories[1] = new Story(	"The Materialist Conception of Science",
						"Philosophy of Science&lt;br /&gt;With regard to the natural s ...",
						"International",
						"Anti-Capitalism",
						"Opinion/Analysis",
						"F9 11:40am",
						"http://www.indymedia.ie/article/95751");
				stories[2] = new Story(	"Israeli Assassins ‘had Irish passports’",
						"What will the irish Gov\'t do about this if it is f ...",
						"International",
						"Crime and Justice",
						"Other Press",
						"F9 3:11am",
						"http://www.indymedia.ie/article/95750");
				stories[3] = new Story(	"Donegal Alternatives to Pylons Public Meeting",
						"Donegal Alternatives to Pylons are holding a Publi ...",
						"Donegal",
						"Rights and Freedoms",
						"Event Notice",
						"F8 11:37pm",
						"http://www.indymedia.ie/article/95749");
				stories[4] = new Story(	"Shannonwatch \'Black Hearts\' Vigil",
						"Regular monthly vigil at Shannon Airport, just bef ...",
						"Clare",
						"Anti-War",
						"Event Notice",
						"F8 9:51pm",
						"http://www.indymedia.ie/article/95748");
				stories[5] = new Story(	"Community Power at the Rossport Solidarity Camp",
						"DIY wind power course review&lt;br /&gt;From Wednesday th ...",
						"Mayo",
						"Education",
						"Feature",
						"F8 6:03pm",
						"http://www.indymedia.ie/article/95731");
				stories[6] = new Story(	"Open Meeting to organise International Women\'s Day Celebrations,",
						"Open meetings to organise International Womens Day ...",
						"Cork",
						"Gender and Sexuality",
						"Event Notice",
						"F8 6:01pm",
						"http://www.indymedia.ie/article/95746");
				stories[7] = new Story(	"Indymedia : Site quarantine notice",
						"Ratcatcher engineers have deemed that this site ,n ...",
						"National",
						"drafts",
						"News Report",
						"F8 5:52pm",
						"http://www.indymedia.ie/article/95745");
				stories[8] = new Story(	"IPSC Dublin Branch Organising Meeting - New people always welcome",
						"Would you like to come along to the next Dublin Br ...",
						"Dublin",
						"Rights and Freedoms",
						"Event Notice",
						"F8 3:32pm",
						"http://www.indymedia.ie/article/95744");
				stories[9] = new Story(	"IPSC Discussion Evening: The Siege of Gaza (with Khalil Shaheen, PCHR & Hilary Minch, GFM)",
						"Khalil Shaheen from the PCHR, a Gaza-based human r ...",
						"Dublin",
						"Rights and Freedoms",
						"Event Notice",
						"F8 3:23pm",
						"http://www.indymedia.ie/article/95743");
			function writeStoryMarquee(width, height, direction, style)
	{
		document.write("<marquee onMouseOver='stop()' onMouseOut='start()'");
		if(style!=null) document.write(" style='"+style+"'");
		if(width!=null) document.write(" width='"+width+"'");
		if(height!=null) document.write(" height='"+height+"'");
		if(direction!=null) document.write(" direction='"+direction+"'");
		document.write(">");
		for(i=0;i<stories.length;i++)
		{
			stories[i].writeLink();
			if(direction=="up" || direction=="down") document.write("<br><br>");
			else document.write("&nbsp;&nbsp;&nbsp;");
		}
		document.write("</marquee>");
	}
	function writeStoryTable(width, height, align, style)
	{
        	document.write("<table ");		
        	if(style!=null) document.write(" style='"+style+"'");		
        	if(width!=null) document.write(" width='"+width+"'");		
        	if(height!=null) document.write(" height='"+height+"'");		
        	if(align!=null) document.write(" align='"+align+"'");		
        	document.write(">");		
            	document.write("<tr><th>");			
            	document.write("Indymedia Ireland");
	    	document.write("</th></tr>");
            	document.write("<tr><th>");			
            	document.write(" /  / ");
	    	document.write("</th></tr>");
        	for(i=0;i<stories.length;i++)		
        	{			
            		document.write("<tr><td>");			
            		stories[i].writeLink();
	    		document.write("</td></tr>");
        	}
		document.write("</table>");
        }