
function redirect_lookup(article_id)
{
	//This is written by the admin combiner application
	var redirects = '12286422,12292357,12245372,12236216,12234549,12229174,12238097,12163799,12152080,12148632,12136060,12115398,12093995,12094169,12094170,12047859,12026215,11924596,11897205,11857127,11871452,11825019,11822644,11805718,11791966,11786800,11779299,11726785,11719150,11689758,11664539,11662834,11574009,11463338,11447110,11438579,11417360,11389952,11382012,11385784,11340684,11190823,11172107,11137844,11133094,11138572,11123521,11099220,11027360,11009551,11009033,10959133,10966214,10948009,10951275,10926629,10891072,10891076,10891156,10865021,10865616,10865544,10861940,10841058,10831605,10834767,10770930,10766312,10759046,10759045,10731029,10688133,10678855,10668511,10662905,10613183,10469809,10598667,10598439,10603417,10603419,10592399,10598983,10594890,10576690,10541048,10566085,10541229,10541680,10541677,10541678,10537658,10541233,10530201,10525427,10493015,10481949,10478549,10432915,10432007,10431874,10423154,10419110,10410380,10292543,10293880,10276465,10208380,10203337,10181311,10170634,10146209,10129337,10130016,10127315,10133087,10108806,10108803,10104028,10067554,10056474,10061700,10049471,10016889,9999152,9976790,9976756,9971025,9964499,9965900,9922634,9893965,9881873,9876219,9851212,9854222,9851044,9833564,9833167,9833168,9758376,9765306,9767240,9767244,9769649,9758608,9679299,9530403,9430237,9427587,9421300,9415819,9403803,9415303,9413408,9352128,9346236,9348985,9352636,9352662,9339606,9269719,9182218,9186825,9195212,9126220,9132575,9113431,9090256,9101802,9107646,9050920,9057199,9028171,9003612,9007729,9014237,9003398,9007732,8973965,8965754,8938065,8934170,8965287,8913523,8920507,8925558,8932174,8886107,8880217,8889838,8885700,8758670,8729028,8718136,8686210,8686897,8618129,8566148,8531642,8526725,8526619,8526212,8545021,8538820,8488746,8432833,8436952,8436538,8437577,8410772,8394074,8392842,8324720,8327291,8367776,8365506,8380635,8371937,8315148,8306472,8291272,8285476,8296233,8266113,8270831,8282113,8234845,8198268,8206710,8191591,8190934,8119048,8114636,8108674,8094462,8095943,8060946,7997401,7976974,7971179,7972150,7978019,7980951,8015582,7956363,7956368,7954260,7862590,7859150,7866891,7862590,7859150,7820222,7780374,7773343,7770411,7713456,7692465,7695052,7677893,7679696,7648238,7627690,7619800,7622985,7618653,7592011,7574827,7602774,8111224,7566121,7545352,7516004,7510476,7510303,7508274,7501264,7519098,7472690,7481972,7471626,7454432,7454955,7454531,7364062,7436620,7437398,7473012,7388948,7395206,7386429,7339309,7340188,7334683,7331220,7331395,7257414,7266843,7277660,7242680,7203541,7153543,7158497,7149592,7131023,7128720,7150779,7150799,7133919,7138434,7131649,7131021,7131553,7128720,7127677,7131459,7088495,7095339,7082604,7084112,7095000,7076521,7010291,7009262,6988854,7017631,7008355,6984849,6972545,7081862,6989332,6994515,6985269,6971656,6973749,6920041,6884611,6822519,6730469,6709988,6715494,6709727,6698077,6692985,6659811,6616188,6577885,6584221,6525410,6521227,6509394,6499345,6478949,6481726,6475722,6476268,6391301,6395420,6395729,6399427,6304443,6282367,6283225,6289841,6246080,6210627,6221084,6214432,6263880,6109106,6104814,6114622,6113313,5923164,5896086,5900881,5901567,5901534,5858585,5854892,5846985,5864787,5867869,5867991,6020827,6024440,6028852,6046987,6056917,6057032,6065285,6065876,6113471,9075016,9304005,9870779,10755645,11155771,11156030,11367364,11480293,11804528,11804532,11920022,11958506,11977426,11984337,12045787,12075982,12098807,12098998,12131568,';
	
	var redirect_matches = new Array([12286100,'12286422 12292357'],[12245264,'12245372'],[12234568,'12236216 12234549 12229174 12238097'],[12156971,'12163799'],[12147073,'12152080'],[12142189,'12148632'],[12134102,'12136060'],[12114847,'12115398'],[12092491,'12093995'],[12089751,'12094169 12094170'],[12045787,'12047859'],[12020752,'12026215'],[11919325,'11924596'],[11893188,'11897205'],[11853719,'11857127 11871452'],[11817859,'11825019'],[11820094,'11822644'],[11805248,'11805718'],[11791971,'11791966'],[11784083,'11786800'],[11781453,'11779299'],[11725085,'11726785'],[11715945,'11719150'],[11689548,'11689758'],[11663194,'11664539'],[11661112,'11662834'],[11573222,'11574009'],[11460398,'11463338'],[11445015,'11447110'],[11435845,'11438579'],[11406655,'11417360'],[11387103,'11389952'],[11379425,'11382012 11385784'],[11335951,'11340684'],[11185647,'11190823'],[11168374,'11172107'],[11137883,'11137844'],[11128901,'11133094 11138572'],[11120752,'11123521'],[11105271,'11099220'],[11021379,'11027360'],[11006669,'11009551'],[11007756,'11009033'],[10955391,'10959133 10966214'],[10947913,'10948009 10951275'],[10920840,'10926629'],[10887199,'10891072'],[10888465,'10891076'],[10888281,'10891156'],[10862383,'10865021 10865616 10865544 10861940'],[10835304,'10841058'],[10828992,'10831605 10834767'],[10772643,'10770930'],[10761571,'10766312 10759046 10759045'],[10727622,'10731029'],[10687432,'10688133'],[10677542,'10678855'],[10664270,'10668511'],[10659422,'10662905'],[10609290,'10613183'],[10468908,'10469809'],[10594684,'10598667 10598439'],[10601526,'10603417'],[10600231,'10603419'],[10594391,'10592399'],[10592185,'10598983 10594890'],[10566085,'10576690'],[10539649,'10541048'],[10562435,'10566085'],[10537858,'10541229'],[10539147,'10541680'],[10539289,'10541677'],[10538947,'10541678'],[10534060,'10537658 10541233'],[10525748,'10530201'],[10524476,'10525427'],[10489307,'10493015'],[10479615,'10481949'],[10477442,'10478549'],[10431524,'10432915'],[10427154,'10432007'],[10429734,'10431874'],[10421154,'10423154'],[10414149,'10419110'],[10406942,'10410380'],[10292554,'10292543 10293880'],[10271170,'10276465'],[10205392,'10208380'],[10200890,'10203337'],[10180393,'10181311'],[10167512,'10170634'],[10140435,'10146209'],[10127034,'10129337 10130016'],[10120020,'10127315 10133087'],[10106681,'10108806'],[10106539,'10108803'],[10098036,'10104028'],[10063103,'10067554'],[10047974,'10056474 10061700'],[10047974,'10049471'],[10015072,'10016889'],[9997294,'9999152'],[9973617,'9976790'],[9973195,'9976756'],[9964442,'9971025'],[9960752,'9964499'],[9964890,'9965900'],[9909937,'9922634'],[9891201,'9893965'],[9878865,'9881873'],[9877703,'9876219'],[9843143,'9851212'],[9852319,'9854222'],[9843503,'9851044'],[9828903,'9833564 9833167 9833168'],[9756253,'9758376 9765306 9767240 9767244 9769649'],[9755586,'9758608'],[9676577,'9679299'],[9528092,'9530403'],[9430933,'9430237'],[9416751,'9427587'],[9416032,'9421300'],[9409288,'9415819'],[9401802,'9403803 9415303 9413408'],[9352152,'9352128'],[9346671,'9346236 9348985 9352636 9352662'],[9333208,'9339606'],[9266792,'9269719'],[9181821,'9182218 9186825 9195212'],[9126975,'9126220 9132575'],[9105960,'9113431'],[9079299,'9090256  9101802 9107646'],[9043850,'9050920 9057199'],[9021387,'9028171'],[9003395,'9003612 9007729 9014237'],[8995836,'9003398 9007732'],[8960784,'8973965 8965754'],[8934266,'8938065 8934170 8965287'],[8918588,'8913523'],[8920565,'8920507 8925558 8932174'],[8879049,'8886107 8880217'],[8886079,'8889838 8885700'],[8757050,'8758670'],[8709263,'8729028'],[8715277,'8718136'],[8677847,'8686210 8686897'],[8614034,'8618129'],[8566913,'8566148'],[8521914,'8531642 8526725 8526619 8526212 8545021 8538820'],[8513724,'8488746'],[8432707,'8432833 8436952 8436538 8437577'],[8401030,'8410772'],[8391200,'8394074'],[8324862,'8392842 8324720 8327291'],[8372805,'8367776 8365506 8380635'],[8369634,'8371937'],[8299250,'8315148'],[8303927,'8306472'],[8289716,'8291272 8285476 8296233'],[8262700,'8266113 8270831 8282113'],[8232663,'8234845'],[8202776,'8198268 8206710'],[8186864,'8191591 8190934'],[8118236,'8119048'],[8108915,'8114636 8108674'],[8094408,'8094462 8095943'],[8054950,'8060946'],[7991922,'7997401'],[7968470,'7976974 7971179 7972150 7978019 7980951 8015582'],[7946381,'7956363'],[7954214,'7956368'],[7956165,'7954260'],[7858769,'7862590 7859150 7866891'],[7858769,'7862590 7859150'],[7820266,'7820222'],[7774010,'7780374'],[7773862,'7773343 7770411'],[7711976,'7713456'],[7691475,'7692465 7695052'],[7682958,'7677893 7679696'],[7642754,'7648238'],[7624105,'7627690'],[7612850,'7619800'],[7618357,'7622985 7618653'],[7585568,'7592011 7574827 7602774 8111224'],[7563221,'7566121'],[7541667,'7545352'],[7516111,'7516004'],[7507474,'7510476'],[7506503,'7510303'],[7494276,'7508274 7501264 7519098'],[7446396,'7472690 7481972'],[7470654,'7471626'],[7452276,'7454432'],[7450216,'7454955'],[7450632,'7454531'],[7362103,'7364062 7436620 7437398 7473012'],[7384500,'7388948 7395206'],[7379984,'7386429'],[7341018,'7339309'],[7332101,'7340188'],[7331234,'7334683'],[7321942,'7331220 7331395'],[7245484,'7257414 7266843 7277660'],[7228908,'7242680'],[7203920,'7203541'],[7152291,'7153543'],[7154247,'7158497'],[7140440,'7149592'],[7122582,'7131023 7128720 7150779 7150799'],[7137856,'7133919 7138434'],[7128230,'7131649'],[7128628,'7131021'],[7128512,'7131553'],[7122582,'7128720'],[7126815,'7127677 7131459'],[7086955,'7088495 7095339'],[7062207,'7082604 7084112 7095000'],[7073463,'7076521'],[7009632,'7010291'],[7005274,'7009262'],[7010491,'6988854 7017631 7008355 6984849 6972545 7081862'],[6985832,'6989332 6994515 6985269 6971656 6973749'],[6922237,'6920041'],[6876137,'6884611'],[6816368,'6822519'],[6730467,'6730469'],[6430845,'6709988 6715494'],[6709137,'6709727'],[6697789,'6698077'],[6692593,'6692985'],[6683490,'6659811'],[6608752,'6616188'],[6572728,'6577885 6584221'],[6518857,'6525410 6521227'],[6511417,'6509394'],[6499060,'6499345'],[6500155,'6478949'],[6481457,'6481726'],[6475326,'6475722 6476268'],[6388583,'6391301 6395420 6395729 6399427'],[6309143,'6304443'],[6285553,'6282367'],[6285557,'6283225 6289841'],[6251668,'6246080 6210627 6221084 6214432 6263880'],[6105251,'6109106 6104814 6114622 6113313'],[5919266,'5923164'],[5896136,'5896086 5900881 5901567 5901534'],[6344385,'5858585 5854892 5846985 5864787 5867869 5867991'],[6016263,'6020827 6024440 6028852 6046987 6056917 6057032 6065285 6065876'],[6093885,'6113471'],[9074614,'9075016'],[9298212,'9304005'],[9865462,'9870779'],[10748255,'10755645'],[11151753,'11155771'],[11151657,'11156030'],[11363890,'11367364'],[11470798,'11480293'],[11800732,'11804528'],[11799659,'11804532'],[11915056,'11920022'],[11964263,'11958506'],[11980916,'11977426 11984337'],[12041505,'12045787'],[12077380,'12075982'],[12129769,'12131568']);

	var array_length = redirect_matches.length;
	var i = 0;

	//First see if we have a match at all
	if ( redirects.indexOf(article_id) > -1 )
	{
		//If we do have a match, we loop through the full array to find the id we redirect to
		for (i; i < array_length; i++) 
		{
		   var redirects_tmp = redirect_matches[i][1];
			if ( redirects_tmp.indexOf(article_id) > -1 )
			{
				return(redirect_matches[i][0]);
			}
		}
	}
	else return(article_id);
}
	
