/*
$(window).ready(function() { 
        $('.popbox').css('display','none'); 
});
*/

$(document).ready(function() {

//$('ul#recentposts').newsticker().slideDown();

//        $('.popbox').toggle(1600);
        $('.bgthumb').click(function() { $('.popbox').toggle(1000); });

        if (!$.browser.msie) {
        $('.page_item a, #dtit a, #bioLink, #hdBiolink').click(function() { 
                var whichurl = $(this).attr('href');
		$('#framecontent div.popbox').hide('fast', function() {
			$('#framecontent div.fade').css('opacity','0.3');
                        $('#loading').fadeIn(0, function() { 
                                setTimeout(function() { 
                                        location.href=whichurl; 
                                }, 1); 
                        }) 
                });
                return false;
        });
	}


	$('#idSiteMeterHREF').attr('target','_blank').click(function() { $(this).blur(); return false; }).css('cursor','default');

        if ($.browser.msie) {
                        if (!$.cookie("msienote")) {
                                $('#msienote').show();
                        }
                        $('#closemsienote').click(function(){
                                $('#msienote').hide();
                                $.cookie("msienote", "closed", {path: '/'});
                        });
                        $('#downloadfirefox').click(function(){window.location='http://firefox.com';});
        }

}); /* document ready */

