//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 avantGarde 	= 	{ src: '../_swf/AvantGarde.swf' };
	
	sIFR.activate(avantGarde);
	
	sIFR.replace(avantGarde, {
		selector: '#content h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '28px' , 'color' : '#333333' , 'font-weight' : 'bold' }
		}
	});
	
	sIFR.replace(avantGarde, {
		selector: '#columns h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '28px' , 'color' : '#ffffff' , 'font-weight' : 'bold' }
		}
	});
}

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","");
	});
});
