﻿function redirectLink(id, window, lng, label){
	if (label == '') label = redirectionList(id, lng);
	document.write('<a href="javascript:redirect('+id+',\''+window+'\');">'+label+'</a>');
}

function redirect(id, window){
	url = redirectionList(id, 'u');
	if (url != '') {
		if (window == 'blank')
			open(url);
		else
			document.location.href = url;
	}	
}

function redirectionList(id, key){
	var links = new Array();

	links[1] = new Array();
	links[1]['u'] = 'http://www.de' + 'p.pl';
	links[1]['PL'] = 'Polecamy słownik<br>niem-pol <b>DE' + 'P</b>';
	links[1]['EN'] = 'We recommend the<br><b>DE' + 'P</b> dictionary';
	links[2] = new Array();
	links[2]['u'] = 'http://www.di' + 'ct.pl';
	links[2]['PL'] = 'Polecamy słownik<br>ang-pol <b>DI' + 'CT</b>';
	links[2]['DE'] = 'Wir emfehlen das<br>Wörterbuch <b>DI' + 'CT</b>';
	
	links[5] = new Array();
	links[5]['u'] = 'http://forum.di' + 'ct.pl';
	links[6] = new Array();
	links[6]['u'] = 'http://forum.de' + 'p.pl';
	
	
	links[20] = new Array();
	links[20]['u'] = 'http://www.le' + 'ksyk' + 'a.pl';
	links[20]['PL'] = 'Polecamy słownik<br>ang-pol <b>Leks' + 'yka</b>';
	links[20]['EN'] = 'We recommend the<br><b>Leks' + 'yka</b> dictionary';
	links[21] = new Array();
	links[21]['u'] = 'http://www.li' + 'ng.pl';
	links[21]['PL'] = 'Polecamy słownik<br>wielojęzyczny <b>Li' + 'ng</b>';
	links[21]['EN'] = 'We recommend the<br><b>Li' + 'ng</b> dictionary';
	
	links[22] = new Array();
	links[22]['u'] = 'http://yugioh.tc' + 'gs.de/';
	links[22]['PL'] = 'YuGiOh';
	links[22]['EN'] = 'YuGiOh';
	links[22]['DE'] = 'YuGiOh Karten';
	links[23] = new Array();
	links[23]['u'] = 'http://forum.tc' + 'gs.de/';
	links[23]['PL'] = 'Yu-Gi-Oh! Forums.';
	links[23]['EN'] = 'Yu-Gi-Oh! Forums.';
	links[23]['DE'] = 'Yu-Gi-Oh! Forum.';
	links[24] = new Array();
	links[24]['u'] = 'http://forum.tc' + 'gs.de/showthread.php?t=66345';
	links[24]['PL'] = 'Collector\'s Tin 2006';
	links[24]['EN'] = 'Collector\'s Tin 2006';
	links[25] = new Array();
	links[25]['u'] = 'http://forum.tc' + 'gs.de/showthread.php?t=66175';
	links[25]['PL'] = 'Rebellion of the Machines';
	links[25]['DE'] = 'Rebellion of the Machines';

	if ((id != '')&&(key != '')) {
		return links[id][key];
		}
	else
		return '';
}