/*******************************************************************************

	CSS on Sails Framework
	Title: GiveSmart
	Author: XHTMLized (http://www.xhtmlized.com/)
	Date: March 2011

*******************************************************************************/

$(document).ready(function() {

	if($.browser.msie && $.browser.version=="6.0") {
		$('.header ul li:first-child').addClass('first');
		$('.footer ul.site-links li:first-child').addClass('first');
		$('.navigation li:first-child').addClass('first');
		$('.listed-content li:first-child').addClass('first');
		$('.article-info li:first-child').addClass('first');
		$('.sidebar .section:first-child').addClass('section-first');
	}
	
	// Font resizer
	$('.font-resizer a').click(function() {
		var textSize = $(this).attr('class');
		$('.wrapper').removeClass('smaller-font normal-font larger-font').addClass(textSize);
		return false;
	});

	// Home feature cycling
    $('div.home-features div.features').cycle({ 
        timeout: 12000, 
        fx:    'scrollRight', 
        pause:   1,
        pager:  'div.home-features div.pager .nav',
        prev:   'div.home-features div.pager .prev', 
        next:   'div.home-features div.pager .next' 
    });

});

// DD_belatedPNG fix for IE6
if (typeof DD_belatedPNG !== 'undefined') {
	var PNG_fix_selectors = [
		'.home-features .desc',
        '.home-features h2',
		'.home-features .pager .inner',
        '.home-features .pager .right',
		'.banner img',
		'.img-holder-big'
	];
	DD_belatedPNG.fix(PNG_fix_selectors.join(','));
}


