//Global JS
//SIFR IT UP
var currentpage = window.location.hostname.toString();

if (currentpage.indexOf("cms.omedix.com") >= 0)
{
    // DON'T RUN SIFR
} else {
	// SIFR
	var helvrounded 	= 	{ src: '../_swf/helvrounded.swf' };
	
	sIFR.activate(helvrounded);
	
	sIFR.replace(helvrounded, {
		selector: '#content h1, #contentfull h1, .fullcontent h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '36px' , 'color' : '#000000'}
		}
	});
	
	sIFR.replace(helvrounded, {
		selector: '#contentBanner span, #introWrap h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '30px' , 'color' : '#ffffff'}
		}
	});
}

function footerYear () {
	var d = new Date();
	var thisYear = d.getFullYear()
	$("#thisYear").text(thisYear);
}

//OTHER STUFF
$(function(){
	footerYear ();		   
		   
	/* ZEBRAAAA */
	$(".zebra tr:nth-child(odd)").addClass("odd");
	
	/* Searchbar fixin' */
	$(".librarysearch").click(function(){
		$(this).attr("value","");
	});
});
