//Fix A-Z white space
if ($('.listby-alphabet').length > 0)
{
	$('.listby-alphabet').html($('.listby-alphabet').html().replace(/&[^;]+;/g, ''));
}

//text resize links
function setFontSize(newFontSize)
{
	$('body').css('fontSize',newFontSize+'em');
}
$('.headerRight ul').append('<li>Text size <a href="javascript:setFontSize(\'1\');" style="font-size:1em!important;">A</a> <a href="javascript:setFontSize(\'1.2\');" style="font-size:1.2em!important;">A</a> <a href="javascript:setFontSize(\'1.35\');" style="font-size:1.35em!important;">A</a></li>');
$('body').css('fontSize','1em');

//header search
document.getElementById('search10').onfocus=function(){if(this.value=='keyword/content search'){this.value='';}this.style.color='#000000';};
document.getElementById('search10').onblur=function(){if(this.value==''){this.value='keyword/content search';}this.style.color='#666666';};

/* empty remove */
$('.relatedCntWrapper').each(function(){if($(this).text()==''){$(this).remove();}});
if($('.mainContentRcolVar').text()==''){$('.mainContentRcolVar').css('display','none');}
if($('#vertNav li').length==1){$('#vertNav').css('display','none');}

/* home feature heights */
var homeFeatureHeight=0;
$('.homeContentPadding').each(function()
	{
		if($(this).outerHeight()>homeFeatureHeight){homeFeatureHeight=$(this).outerHeight();}

	}
);
if(homeFeatureHeight!=0)
{
	if(navigator.userAgent.match('MSIE 6')){$('.homeContentPadding').css('height',homeFeatureHeight+'px');}
		else{$('.homeContentPadding').css('minHeight',homeFeatureHeight+'px');}
}

//right col email page
$('.sbLinks').append('<li class="emailthispagelinkOuter"></li>');
$('a.emailthispagelink').clone().appendTo('.emailthispagelinkOuter');
$('.emailthispagelinkOuter a').html('<img src="/2011-layout/imgs/email.png" alt="Email to a friend" />');
$('.emailthispagelinkOuter a').attr('title','Email to a friend');
