function appendCSSRule(selector, style)
{
	if (document.styleSheets)
	{
		if (document.styleSheets[0].insertRule) document.styleSheets[0].insertRule(selector+" { "+style+" }", document.styleSheets[0].cssRules.length);
		else if(document.styleSheets[0].addRule) document.styleSheets[0].addRule(selector, style, document.styleSheets[0].rules.length);
	}
}

function selectRefererLink()
{
	var path = document.location.pathname;
	appendCSSRule('A[href="'+path+'"]','font-weight: bold;');
}

selectRefererLink();
