var url=document.URL;
var nope=1;
for(var i=0;i<document.getElementById("top_pages").getElementsByTagName("a").length;i++){
var a=document.getElementById("top_pages").getElementsByTagName("a")[i]	
	if(a.href == url || a.href+"/" == url){
	$("#top_pages li:eq("+i+")").css({'background' : 'orange','font-weight' : 'bold'});
    $("#top_pages li:eq("+i+") a").css({'color' : 'white'});
	$("#top_pages li:eq("+i+")").fadeTo(250, 1);
	$("#top_pages li:eq("+i+")").hover(function(){$(this).fadeTo(250, 1);$(this).css({'background' : 'orange'});},function(){$(this).fadeTo(250, 1);$(this).css({'background' : 'orange'});});
	$("#top_pages li:eq("+i+") a").hover(function(){$(this).fadeTo(250, 1);$(this).css({'color':'white'});},function(){$(this).fadeTo(250, 1);$(this).css({'color' : 'white'});});

	nope=0	
	} else {
	$("#top_pages li:eq("+i+")").css({'background' : '#F7DEB9','font-weight' : 'normal'});
    $("#top_pages li:eq("+i+") a").css({'color' : 'gray'});
	$("#top_pages li:eq("+i+")").fadeTo(250, 0.9);
	$("#top_pages li:eq("+i+")").hover(function(){$(this).fadeTo(250, 1);$(this).css({'background' : 'orange'});},function(){$(this).fadeTo(250, 0.9);$(this).css({'background' : '#F7DEB9'});});
	$("#top_pages li:eq("+i+") a").hover(function(){$(this).fadeTo(250, 1);$(this).css({'color':'white'});},function(){$(this).fadeTo(250, 0.9);$(this).css({'color' : 'gray'});});
	}	
}
if(nope==1){
$("#top_pages li:eq(1)").css({'background' : 'orange','font-weight' : 'bolder'});
$("#top_pages li:eq(1) a").css({'color' : 'white'});
$("#top_pages li:eq(1)").hover(function(){$(this).fadeTo(250, 1);$(this).css({'background' : 'orange'});},function(){$(this).fadeTo(250, 1);$(this).css({'background' : 'orange'});});
$("#top_pages li:eq(1) a").hover(function(){$(this).fadeTo(250, 1);$(this).css({'color':'white'});},function(){$(this).fadeTo(250, 1);$(this).css({'color' : 'white'});});
}
$('textarea').click(function (){$(this).focus()});
$('input').click(function (){$(this).focus()});
