$(document).ready(function(){
						   
    $('.splashViewAll:last').css('border-bottom', 'solid 0px #fff');
		
	$('#glDropDownSelectorList a:first').css('border-top', 'solid 1px #cac8bc');
	$('#glDropDownSelectorList a:first').css('margin-top', '3px');

	$('.glDropDownSelector').click(function(){
		$('#glDropDownSelectorList').slideToggle();
	});
	
	
    // Used to display 3 portfolio items in each row
     var item = 2;
     $('.portItemLinked').each(function(){
        $('.portItemLinked').eq(item).css('margin-right', '0');
        $('.portItemLinked').eq(item).after('<div class="clearfix"></div>');
        
        item = item + 3;
     });
		
	if($(".googleBox").val() == '')
    {
        $(".googleBox").addClass('GoogleBoxBackground');
    }
    
    $(".googleBox").click(function(){
        if($(".googleBox").val() == '')
        {
            $(".googleBox").removeClass('GoogleBoxBackground');
        }
    });
    
    $(".googleBox").blur(function(){
        if($(".googleBox").val() == '')
        {
            $(".googleBox").addClass('GoogleBoxBackground');
        }
    });

	$("sup").each(function () {
	      $(this).replaceWith("<span class='supReplace'>" + $(this).text() + "</span>");
	});
	


					   
});