$(document).ready(function(){
	$("#tertContent blockquote p:last-child").css({
		'text-align':'right',
		'padding-right':'10px'
	});
	$(".highlight p:eq(0)").css({
		'text-transform':'uppercase'
	});
	/*$("#content h1[title]").each(function(){
		altAtr = $(this).html();
		$(this).wrapInner("<span></span>")
		$(this).append('<img src="/images/pagetitles/'+$(this).attr('title').toLowerCase()+'.png" alt="'+altAtr+'" rel="title" />');
		$(this).children("span").css({
			"display":"none"
		});
	});*/
	$("#content.narrow img").not("[rel='title']").each(function(){
		//alert($(this).width());
		if($(this).width()>210)$(this).width(210);
	});
	$('#home').flash({
		src: '/swf/breastCenterHome.swf',
		width: 530,
		height: 400,
		wmode: 'transparent'
	}).css('width','530px');
	Cufon.replace('#content:not(.home) h1');
	
	$('#photos').flash({
		src: '/swf/photoViewer2.swf',
		width: 625,
		height: 600,
		wmode: 'transparent'
	}).css({
		width:'630px',
		height:'625px'
	});
    
    // Add 'active' class to current nav
    $('#navigationSecondary a').each(function() {
        var currentURL = location.pathname;
        if ($(this).attr('href') == currentURL) {
            $(this).addClass("active");
        }
    });  
    $('#navigationPrimary > li > a').each(function() {
        var currentPath = '/' + location.pathname.split("/", 2)[1] + '/';
        var myPath = $(this).attr('href').replace(/[^\/]+\.php/, '');
        if (myPath == currentPath && myPath != '/') {
            $(this).addClass('active');
        }
    });
	$('img').bind("contextmenu",function(e){  
		//you can enter your code here, e.g a menu list  
		//cancel the default context menu  
		
		return false;  
	});  
	if($.browser.safari){
		$("#masthead h1 a").css('left','213px');
	}
});