//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 knockoutJrBantamwt 	= 	{ src: '../_swf/knockoutJrBantamwt.swf' };
	
	sIFR.activate(knockoutJrBantamwt);
	
	sIFR.replace(knockoutJrBantamwt, {
		selector: '#content h1, #contentfull h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '42px' , 'color' : '#88121b', 'text-transform' : 'uppercase', 'letter-spacing' : '1'}
		}
	});
	
	sIFR.replace(knockoutJrBantamwt, {
		selector: '#sidebar h1, #introWrap h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '42px' , 'color' : '#DFD4C4', 'text-transform' : 'uppercase', 'letter-spacing' : '1' }
		}
	});
	
	sIFR.replace(knockoutJrBantamwt, {
		selector: '#columns h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '42px' , 'color' : '#1a1615', 'text-transform' : 'uppercase', 'letter-spacing' : '1' }
		}
	});
}

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","");
	});
});
