var gillsans = { src: '/wp-content/themes/nwh/sifr/flash/gillsans.swf' };

sIFR.useStyleCheck = true;

sIFR.activate(gillsans);

sIFR.replace(gillsans, {
    selector: 'h1',
    wmode: 'transparent',
    css: '.sIFR-root { color: #2e8ea9; }'
});


sIFR.replace(gillsans, {
    selector: 'h2',
    wmode: 'transparent',
    css: '.sIFR-root { color: #2e8ea9; }'
});

sIFR.replace(gillsans, {
    selector: 'h3.green',
    wmode: 'transparent',
    css: ['.sIFR-root { color: #8B8F35; }',
    'a { color: #8B8F35; text-decoration: none }',
    'a:hover { color: #8B8F35; text-decoration: none }'
    ]
});

sIFR.replace(gillsans, {
    selector: 'h3',
    wmode: 'transparent',
    css: ['.sIFR-root { color: #bd580d; }',
    'a { color: #bd580d; text-decoration: none }',
    'a:hover { color: #bd580d; text-decoration: none }'
    ]
});

// =================
// = nav rollovers =
// =================
$(document).ready(function() {
    if(!($.browser.msie && parseInt($.browser.version) < 7)) {
        $('#nav div').not('.active').not('.nav_home').hover(function() {
    		var myclass = $(this).attr('class');
    		var which = myclass.substr(myclass.indexOf('_'), myclass.length);
    		var newclass = 'nav' + which +'_roll';

    		$(this).addClass(newclass);

    	}, function() {
    		var myclass = $(this).attr('class');
    		var which = myclass.substr(myclass.indexOf('_', 5), myclass.length);

    		$(this).removeClass('nav' + which);
    	});        
    } else {
        // ie6
        DD_belatedPNG.fix('.png, #nav img, .notch');
    }
});
