$(document).ready(function(){
	var doTooltip = true, doNewsTicker = true, doPngFix = false;
	if ($.browser.name == 'msie' && $.os.name == 'win'){
		doTooltip = ($.browser.versionNumber >= 7);
		doNewsTicker = ($.browser.versionNumber >= 7);
//		doPngFix = ($.browser.version.number <= 6);
//		$('ul.decimal', '#content').css('text-indent','-1.5em');
		$('ul.circle, ul.disc, ul.square', '#content').css('text-indent','-1.5em');
//		$('ul', '#content').css('text-indent', '-1.5em');
	};
	fbPageOptions = {
//	    color: 'red',
	    controlPos: 'tr',
		captionPos: 'bl',
		caption2Pos: 'tl',
		numIndexLinks: -1,
//		colorImages: 'white',
		titleAsCaption: false,
		maxIndexThumbSize: 100 
 	};
	if(doTooltip){
		$('.tooltip[title], #webmaster a[title], #content a[title], #content img[title], #header-box a[title], #right-side a[title]').tooltip({
		});
	};
	if(doNewsTicker) {
		$('#news-feed').newsfeed().css('visibility', 'visible');
	}
	if (doPngFix) {
		$('img[src$=.png]').each(function() {
			if (!this.complete) {
				this.onload = function() { fixPng(this) };
			}
			else {
				fixPng(this);
			}
		});
	}
	$('#webmaster, #copyright, #footer-links, p.center').css('text-align','center');
	$('.note-box').borderRadius(10);
	$('.flyout img').attr('alt','Click here to enlarge').attr('title','Click here to enlarge');
	$('.right-flyout img').attr('alt','Click here to enlarge').attr('title','Click here to enlarge');
	$('.left-flyout img').attr('alt','Click here to enlarge').attr('title','Click here to enlarge');
	$(function() {
		$('.flyout a, .right-flyout a, .left-flyout a').flyout({
			outEase:	'easeInCirc',
			inEase:		'easeOutBounce',
			loader:		'flyout-loader'
		});
	});
});