if(typeof FOK=="undefined"){
	var FOK={};
	FOK.register = {}
}

FOK.nieuwsTableBlock = function(type){
	this.header = '<table class="nieuwsTableBlock" cellspacing="0">';
	this.footer = '</table>';
	this.lines  = '';

	if(type=='video'){
		this.base = 'video/';
		this.video==1;
	}else{
		this.base = 'nieuws/';
	}

	this.addLine = function(id,time,header,replies,video){

		var videoIcon = '';
        // videolinks tijdelijk uitgeschakeld
		if(video==1){
			//videoIcon = ' <img src="'+basehref_tpl+'/i/dblarrow.gif" />';
		}
		if(this.video==1){
			//videoIcon = ' <img src="'+basehref_tpl+'/i/dblarrow.gif" />';
		}


		this.lines+= '<tr><td class="time">'+time+videoIcon+'</td><td>&nbsp;<img src="'+basehref_tpl+'/i/pipe.gif" align="top" height="12" /> <a href="'+this.base+id+'" title="'+header+'">'+header+'</a></td><td><img src="'+basehref_tpl+'/i/pipe.gif" align="top" height="12" width="2" /> </td><td class="replies">'+replies+'</td></tr>';
	}

	this.getBlock = function(){
		return this.header + this.lines + this.footer;
	}
}

FOK.rightBarHeadlinesBlock = function(type){
	this.header = '<table class="rightBarHeadlinesBlock">';
	this.footer = '</table>';
	this.lines  = '';

	switch (type){
		case 'games':
			this.link = 'http://games.fok.nl/news.php?newsid=';
			this.footer+='<p class="readMoreBlock" style="margin-top:-8px"><img src="'+basehref_tpl+'/i/dblarrow.gif" alt="&raquo;"/> <a href="http://games.fok.nl">ga naar FOK!games</a><br /></p>';
		break;
		case 'forum':
			this.link = 'http://forum.fok.nl/topic/';
			this.footer+='<p class="readMoreBlock" style="margin-top:-8px"><img src="'+basehref_tpl+'/i/dblarrow.gif" alt="&raquo;"/> <a href="http://forum.fok.nl">ga naar het FOK!forum</a><br /></p>';
		break;
		case 'weblog':
			this.link = 'http://weblog.fok.nl/viewSingleItem/';
			this.footer+='<p class="readMoreBlock" style="margin-top:-8px"><img src="'+basehref_tpl+'/i/dblarrow.gif" alt="&raquo;"/> <a href="http://weblog.fok.nl">ga naar de FOK!weblog</a><br /></p>';
		break;
		case 'sport':
			this.link = 'http://sport.fok.nl/sport/nieuws/';
			this.footer+='<p class="readMoreBlock" style="margin-top:-8px"><img src="'+basehref_tpl+'/i/dblarrow.gif" alt="&raquo;"/> <a href="http://sport.fok.nl">ga naar FOK!sport</a><br /></p>';
		break;
		case 'nieuws':
			this.link = basehref+'nieuws/';
		break;
		default:
			this.link = '';
	}

	this.addLine = function(id,time,longheader,header,replies){

		this.lines+= '<tr><td><span class="trackerItems"><a class="aTracker" href="'+this.link+id+'" title="'+time+' - '+longheader+'">'+header+'</a></span></td><td class="replies">'+replies+'</td></tr>';
	}

	this.getBlock = function(){
		return this.header + this.lines + this.footer;
	}
}