function externalLinks() {
	 if (!document.getElementsByTagName) return;
	 var anchors = document.getElementsByTagName("a");
	 for (var i=0; i<anchors.length; i++) {
	   var anchor = anchors[i];
	   if (anchor.getAttribute("href") &&
		   anchor.getAttribute("rel") == "external")
		 anchor.target = "_blank";
	 }
}

// Script Brioude
function Ref_Brioude()
{
	var id=7272;
	url1='http://www.botraiders.com|http://www.botraider.com';
	url2='http://www.referencement-2000.com';
	url3='http://www.plusdehits.com';
	
	if (document.referrer.length > 0)
	{
		urlreg = '('+url1+'|'+url2+'|'+url3+')';
		hasard = Math.round(Math.random()*10000);
		var refer= escape(document.referrer);
		var tagdebut= '<LINK rel="stylesheet" type="text/css" href="http://stats.ref2000.com/stats.css?idbrioude='+id;
		tagdebut+='&thereferer=';
		var tagfin ='">';
		var tagmilieu='';
		var pagescript= escape(window.location);
		var page = "&page="+pagescript;
		page+='&hasard=';
		reg1 = /(xml_bi|cpc_bi)/;
		ok2 = reg1.exec(window.location);
		var reg = new RegExp(urlreg,'i');
		ok = reg.exec(document.referrer);
		if ((!ok)&&(!ok2))
		{
			document.write(''+tagdebut+refer+tagfin);
		}
	}
}

function Link_to_Botraider(bot_address, window_number)
{
	window.location = bot_address;
}

function scrolltime()
{
	scrolling_over=1;
}

function scrollfinish()
{
	if(scrolling_over)
	{
		document.getElementById("flashinfo").stop();
		document.location.reload(1);
	}
}

scrolling_over = 0;
setTimeout("scrolltime()",60000);
