//Global JS
//SIFR IT UP

var whitney 		= 	{ src: '../_swf/whitney-bold.swf' };
var whitneyitalic	= 	{ src: '../_swf/whitney-italic.swf' };
var gothambook 		= 	{ src: '../_swf/gotham-book.swf' };
var gothammedium	= 	{ src: '../_swf/gotham-medium.swf' };
var gothambold 		= 	{ src: '../_swf/gotham-bold.swf' };

sIFR.activate(whitney);
sIFR.activate(whitneyitalic);
sIFR.activate(gothambook);
sIFR.activate(gothammedium);
sIFR.activate(gothambold);

sIFR.replace(gothambook, {
	selector: '#content h1',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '40px' , 'color' : '#67300f', 'letter-spacing' : -1}
	}
});

sIFR.replace(gothammedium, {
	selector: '#content h2, #contentfull h2',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '24px' , 'color' : '#67300f', 'letter-spacing' : -.5}
			 }
});

sIFR.replace(gothammedium, {
	selector: '.location h3',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '20px' , 'color' : '#67300f'}
	}
});

sIFR.replace(gothammedium, {
	selector: '.columns4 p',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '16px' , 'color' : '#ffffff', 'text-align' : 'center', 'leading' : 5}
	}
});

sIFR.replace(gothambold, {
	selector: '.col h3',
	wmode : 'transparent'
	,css: {
	'.sIFR-root': { 'font-size' : '20px' , 'color' : '#003b62', 'text-align' : 'center'}
	}
});


$(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","");
	});
	
});
