$(document).ready(function(){

//Site Search Type Select box
	jQuery.fn.selectStyling = function(){
		
		 if(!$.browser.msie || ($.browser.msie&&$.browser.version>6)){
			 	
			 	var selected = $(this).find(':selected');
				$(this).after('<span class="selectBox"><span>'+selected.text()+'</span></span>').css({position:'absolute',opacity:0});
				var selectBoxSpan = $(this).next();
				var selectBoxWidth = parseInt($(this).width()) - parseInt(selectBoxSpan.css('padding-left')) - parseInt(selectBoxSpan.css('padding-right'));			
				var selectBoxSpanInner = selectBoxSpan.find(':first-child');
				selectBoxSpan.css({display:'inline-block'});
				selectBoxSpanInner.css({width:selectBoxWidth, display:'none'});
				var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));
				
				$(this).height(selectBoxHeight).change(function(){
					selectBoxSpanInner.text($(this).find(':selected').text());
				});
				
		 }
		 
	};
	$('#frmSubjectArea--childContentID').selectStyling();
});
