$(document).ready(function() {
						   
	Cufon.replace('.title')('h1')('h2')('.firstLi a',{hover:'true',textShadow: '1px 1px rgba(0, 0, 0, 0.3)'});

    $('#fader').cycle();
	
});

////////////////////////////
// http://adipalaz.com/experiments/jquery/accordion.html
///////////////////////////
(function($) {
//http://www.mail-archive.com/jquery-en@googlegroups.com/msg43851.html
$.fn.orphans = function(){
    var txt = [];
    this.each(function(){$.each(this.childNodes, function() {
        if (this.nodeType == 3 && $.trim(this.nodeValue)) txt.push(this)
    })}); 
    return $(txt);
};
//http://www.learningjquery.com/2008/02/simple-effects-plugins:
$.fn.fadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
$.fn.slideFadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
};
})(jQuery);
////////////////////////////
$(function() {
    $('.collapse').hide(); 
    $('.expand').orphans().wrap('<a href="#" title="expand/collapse"></a>');

    
    //demo 3 - div.demo:eq(2) - slide effects:
    $('.expand').click(function() {
        $(this).toggleClass('open').siblings().removeClass('open').end()
        .next('.collapse').slideFadeToggle('slow','linear').siblings('.collapse:visible').slideFadeToggle('slow','linear');
        return false;
    });
	
	//var newheight = $('#content').height() - $('#subnav').height() - 45 - ( parseInt($("#left").css("padding-top")) + parseInt($("#left").css("padding-bottom")) );
	
	var margin = $('#subnav').height() + (parseInt($("#left").css("padding-top")) + parseInt($("#left").css("padding-bottom")));
	$('#banners').css('position','absolute').css("margin-top", margin);

	});


$(document).ready(function () {	
	
	$('.firstLi').hover(
		function () {
			$('ul', this).slideDown(100);

		}, 
		function () {
			$('ul', this).slideUp(100);			
		}
	);
	
});

