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://es.ohmydollz.com/?aw=bar", "bar_doll");
//if(!window.location.href.match(new RegExp('ageofmagic.net',"g"))) 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://es.poneyvallee.com/?aw=bar", "bar_poney");
if(!window.location.href.match(new RegExp('ilodino.es',"g"))) sites[i++] = Array("Ilodino", "http://www.ilodino.es/?aw=bar", "bar_dino");
if(!window.location.href.match(new RegExp('gt.eredan.com',"g"))) sites[i++] = Array("Eredan GT", "http://gt.eredan.com/es/?aw=bar", "bar_eredan_gt");
if(!window.location.href.match(new RegExp('itcg.eredan.com',"g"))) sites[i++] = Array("Eredan iTCG", "http://itcg.eredan.com/es/?aw=bar", "bar_eredan_itcg");

//var dtgt = Math.random();
//if(!window.location.href.match(new RegExp('eredan.com',"g")) && (dtgt > 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/es/?aw=bar", "bar_eredan_gt");
//else if(!window.location.href.match(new RegExp('dragontopia.fr',"g"))) 
//sites[i++] = Array("Dragontopia", "http://www.dragontopia.fr/?aw=bar", "bar_dt")
//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 nb = sites.length+1;
if(window.location.href.match(new RegExp('itcg.eredan.com',"g"))||window.location.href.match(new RegExp('gt.eredan.com',"g"))||window.location.href.match(new RegExp('dragontopia.fr',"g")))
	nb++;
if(window.location.href.match(new RegExp('ohmydollz.com',"g")))
	nb++;
var pct = Math.round(100 / (nb));


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://bloges.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>';
}
/*
if(window.location.href.match(new RegExp('ohmydollz.com',"g")))
	s += '<td width="'+pct+'%" align="center"><a href="http://browsergameoftheyear.com/playervoting/casual/ohmydollz" target="_blank" class="bar_sprite bar_vote" style="color:#FFCCFF">Vote For Us !</a></td>';*/


if(window.location.href.match(new RegExp('itcg.eredan.com',"g")))
	s += '<td width="'+pct+'%" align="center"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/itcg.eredan&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:120px; height:20px"></iframe></td>';
if(window.location.href.match(new RegExp('gt.eredan.com',"g")))
	s += '<td width="'+pct+'%" align="center"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/eredan.GT&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:120px; height:20px"></iframe></td>';
if(window.location.href.match(new RegExp('dragontopia.fr',"g")))
	s += '<td width="'+pct+'%" align="center"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/dragontopia&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:120px; height:20px"></iframe></td>';

s += '</tr><tr height="2"><td colspan="7"></td></tr></table></td></tr></table>';
document.write(s);
