// setup profiles for various popups
var profiles = {
	blank:{height:800,width:800,status:1,toolbar:1},
	window200:{height:200,width:200,status:1,resizable:0},
	windowCenter:{height:300,width:400,center:1}
};

$j(function() {
	// make a nice rotator
	$j(".featured,.caption").animate({opacity: .8});
	$j('#ticker').cycle({fx:'scrollRight',timeout: 10000,before: onBefore,after: onAfter});
	//fix png transparency in IE<6
	$j('img[@src$=.png], div#donate').ifixpng();
	// For popup windows set a class="popup" and rel="profilenameyouwantuse"
	$j('a[@class^=popup]').popupwindow(profiles);
});

// callback functions for rotator
function onBefore() {
	$j('.featured').fadeOut("fast");
  $j('.caption').fadeOut("fast");
}
function onAfter() {
	$j('.featured').fadeIn("slow");
	$j('.caption').fadeIn("slow");
}
