//Global JS
//SIFR IT UP

var lucida = {
	src: '../_swf/lucida.swf'
};

sIFR.activate(lucida);

sIFR.replace(lucida, {
	selector: '#content h1',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '42px' , 'color' : '#491500'}
	}
});

sIFR.replace(lucida, {
	selector: '#content h2',
	wmode : 'transparent'
	,css: [
	'.sIFR-root { font-size:24px; color:#491500;}'
	,'a { color: #8b1909;  cursor: pointer; text-decoration: none;}'
	,'a:link { color: #491500; }'
	,'a:hover { color: #491500; }'
	]
});

sIFR.replace(lucida, {
	selector: '#contentfull h2',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '24px' , 'color' : '#491500'}
	}
});

sIFR.replace(lucida, {
	selector: '#contentfull h3',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '20px' , 'color' : '#491500'}
	}
});


sIFR.replace(lucida, {
	selector: '.promowrap h1',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '30px' , 'color' : '#2b282d'}
	}
});

sIFR.replace(lucida, {
	selector: '#homebody h3',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '20px' , 'color' : '#491500', 'font-weight' : 'bold'}
	}
});

sIFR.replace(lucida, {
	selector: '#content blockquote',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '20px'}
	}
});

$(function(){
	var sitename = "Mercer-Bucks Orthopaedics";
			
	if ($("#content h1").attr("title") != "") {
		var sectiontitle = $("#content h1").attr("title");
	} else { 
		var sectiontitle = $("#content h1").text();
	} 
	
	if (sectiontitle == undefined) {
		var sectiontitle = $("h2:first").text();
	} 
	
	var pagetitle = sectiontitle + " - " + sitename;
	
	//$("title").text(pagetitle);
	
	/* ZEBRAAAA */
	$(".staff tr:nth-child(odd)").addClass("odd");
	
	/* Searchbar fixin' */
	$("#ctl00_SEARCHCONTROL_searchKeywords").click(function(){
		$(this).attr("value","");
	});
	
});