$(document).ready(function(){
	// set the height of the BG image
	if( $('body').height() < $(window).height()){
		$("#bg_container img").css({'height':$(window).height() + 15,'width':$(window).width() + 15 });
	} else {
		$("#bg_container img").css({'height':$('body').height() + 15,'width':$(window).width()});
	}
	
	//detect problematic OS
	if ((navigator.appVersion.indexOf("Mac")!=-1) && $.browser.mozilla ){
		$('head').append('<link rel="stylesheet" href="/css/osxff.css" type="text/css" />');
	}
	if ((navigator.appVersion.indexOf("Mac")!=-1) && $.browser.safari ){
		$('head').append('<link rel="stylesheet" href="/css/osxs.css" type="text/css" />');
	}
});
