jQuery.noConflict();

jQuery(document).ready(function() {
 
	jQuery(".plus-tab").toggle(function(){
		jQuery(this).addClass("active"); 
	}, function () {
		jQuery(this).removeClass("active");
	});
	
	jQuery(".plus-tab").click(function(){
		jQuery(this).next(".blog-meta-tags").slideToggle("slow,");
	});
	
	
	// Reset Font Size
	var originalFontSize = jQuery('.post-body').css('font-size');
	jQuery(".resetFont").click(function(){
		jQuery('.entry').css('font-size', originalFontSize);
	});
	// Increase Font Size
	jQuery(".fontSize .larger").click(function(){
		var currentFontSize = jQuery('.entry').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*1.2;
		jQuery('.entry').css('font-size', newFontSize);
		return false;
	});
	// Decrease Font Size
	jQuery(".fontSize .smaller").click(function(){
		var currentFontSize = jQuery('.entry').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*0.8;
		jQuery('.entry').css('font-size', newFontSize);
		return false;
	});
	
});

jQuery (function (){
	jQuery("ul#topNav li").hover (function (){
		jQuery(this).addClass('hover');
    },function (){
		jQuery(this).removeClass('hover');
    });
	
	var tabContainers = jQuery('div#ajaxContent > div');
	tabContainers.hide().filter(':first').show();

	jQuery('ul#ajaxTab li').click(function () {
		tabContainers.hide();
		tabContainers.filter("#container_" + jQuery (this).attr("id")).show();
		jQuery('ul#ajaxTab li').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
	
	jQuery (".footerArea .fCol").each (function (){ jQuery(this).find("li:last").css ('border-bottom-width', '0px'); });
	
	jQuery ("#roundB, #roundW").corner('round 5px');
	jQuery ("#topMenu ul li a ").corner('round top 5px');
	
	jQuery(".featEChoice .feat .firstBlock .image, .eCPost .image, .hCPost .image, .lCPost .image, .lCPost2 .image").hover(function() {
		jQuery(this).css({'z-index' : '10'});
		jQuery(this).find('img').addClass("hover").stop()
			.animate({
				top: '-20px', 
				left: '-20px', 
				padding: '20px' 
			}, 200);
		
		} , function() {
		jQuery(this).css({'z-index' : '0'});
		jQuery(this).find('img').removeClass("hover").stop()
			.animate({
				top: '0', 
				left: '0', 
				padding: '0px'
			}, 400);
	});
	
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu2", //menu DIV id
		orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
		classname: 'ddsmoothmenu2', //class added to menu's outer DIV
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	})
	
	
	jQuery('#slideContent').coinslider({ width: 518, height:342, navigation: false, delay: 5000 });
	
});