document.write('<link rel="stylesheet" type="text/css" href="http://bar2.feerik.com/bar2.css" />');

var i = 0; var sites = Array();

if(!window.location.href.match(new RegExp('ohmydollz.com',"g"))&&!window.location.href.match(new RegExp('suceursdesang',"g"))) sites[i++] = Array("OhMyDollz", "http://www.ohmydollz.com/?aw=bar", "bar_doll");

if(!window.location.href.match(new RegExp('drapeaunoir.com',"g")) && (Math.random() > 0.7 || window.location.href.match(new RegExp('ageofmagic.net',"g"))) && !window.location.href.match(new RegExp('ohmydollz.com',"g")) ) 
sites[i++] = Array("Drapeau Noir", "http://www.drapeaunoir.com/?aw=bar&clang=fr", "bar_drapeau");
else  
sites[i++] = Array("Age Of Magic", "http://www.ageofmagic.net/?aw=bar", "bar_aom")

if(!window.location.href.match(new RegExp('poneyvallee.com',"g"))&&!window.location.href.match(new RegExp('suceursdesang',"g"))) sites[i++] = Array("Poney Vall&eacute;e", "http://www.poneyvallee.com/?aw=bar", "bar_poney");

if(!window.location.href.match(new RegExp('ilodino.com',"g"))  && (Math.random() > 0.7 || window.location.href.match(new RegExp('itcg.eredan.com',"g")))) 
sites[i++] = Array("Ilodino", "http://www.ilodino.com/?aw=bar", "bar_dino");
else 
sites[i++] = Array("Eredan iTCG", "http://itcg.eredan.com/fr/?aw=bar", "bar_eredan_itcg")

if(!window.location.href.match(new RegExp('eredan.com',"g")) && (Math.random() > 0.5 || window.location.href.match(new RegExp('dragontopia.fr',"g"))) && !window.location.href.match(new RegExp('ohmydollz.com',"g")) ) 
sites[i++] = Array("Eredan GT", "http://gt.eredan.com/?aw=bar", "bar_eredan_gt");
else 
sites[i++] = Array("Dragontopia", "http://www.dragontopia.fr/?aw=bar", "bar_dt")


if(Math.random() < 0.20)
sites[i++] = Array("Neoxiris", "http://www.neoxiris.com/?aw=bar", "bar_nx");
else if(!window.location.href.match(new RegExp('mafiarox.com',"g"))&&!window.location.href.match(new RegExp('ohmydollz.com',"g"))&&!window.location.href.match(new RegExp('poneyvallee.com',"g"))&&!window.location.href.match(new RegExp('ekoloko',"g"))) 
sites[i++] = Array("Mafiarox", "http://www.mafiarox.com/?aw=bar", "bar_mafia");
else if(!window.location.href.match(new RegExp('piratefight.com',"g"))&&!window.location.href.match(new RegExp('ekoloko',"g"))) 
sites[i++] = Array("Pirates", "http://www.piratefight.com/?aw=bar", "bar_pirate");

var pct = Math.round(100 / (sites.length+1));
var s = '<table id="bar_reseau" class="bar_sprite sprite-fond" width="100%" height="24" cellpadding="0" cellspacing="0" border="0"><tr><td width="*" align="center" valign="middle"><table width="100%" height="22" cellpadding="0" cellspacing="0" border="0"><tr>';
s += '<td width="'+pct+'%" align="center"><a href="http://blog.feerik.com" target="_blank"><img src="http://bar2.feerik.com/feerik.png"align="absmiddle" border="0"></a></td>';
for(i=0;i<sites.length;i++){
	var A = sites[i];
	s += '<td width="'+pct+'%" align="center"><a href="'+A[1]+'" target="_blank" class="bar_sprite '+A[2]+'">'+A[0]+'</a></td>';
}
s += '</tr><tr height="2"><td colspan="8"></td></tr></table></td></tr></table>';
document.write(s);
