$(document).ready(function(){
    
    if ($('#slider').length){
    
   $('#slider').s3Slider({
     timeOut: 5000 }); 
     }
    
    
   var TabbedContent = {
	init: function() {	
		$(".tab_item").mouseover(function() {
		
			var background = $(this).parent().find(".moving_bg");
			
			$(background).stop().animate({
				left: $(this).position()['left']
			}, {
				duration: 300
			});
			
			TabbedContent.slideContent($(this));
			
		});
	},
	
	slideContent: function(obj) {
		
		var margin = $(obj).parent().parent().find(".slide_content").width();
		margin = margin * ($(obj).prevAll().size() - 1);
		margin = margin * -1;
		
		$(obj).parent().parent().find(".tabslider").stop().animate({
			marginLeft: margin + "px"
		}, {
			duration: 300
		});
	}
} 
    
    
    
    
    
    
    
    
    
    
    

	TabbedContent.init();

 /* =======================================
    Site Round Corners
    ======================================= */
    
     $(".frontContentBase").corner("sc:#60679F");
     $("#blogContainer").corner("cc:#AEB2CF top");
     $(".contentContainner").corner("cc:#000000 top");
     
      
});     

/*
 slide("#sliding-navigation", 25, 15, 150, .8);

/* =======================================
    FrontPage sliding Menus
    ======================================= 
    
function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
 // creates the target paths
 var list_elements = navigation_id + " li.sliding-element";
 var link_elements = list_elements + " a";

 // initiates the timer used for the sliding animation
 var timer = 0;

 // creates the slide animation for all list elements
 $(list_elements).each(function(i)
 {
 // margin left = - ([width of element] + [total vertical padding of element])
$(this).css("margin-left","-180px");
 // updates timer
 timer = (timer*multiplier + time);
 $(this).animate({ marginLeft: "0" }, timer);
 $(this).animate({ marginLeft: "15px" }, timer);
 $(this).animate({ marginLeft: "0" }, timer);
 });

// creates the hover-slide effect for all link elements
 $(link_elements).each(function(i)
 {
 $(this).hover(
 function()
 {
 $(this).animate({ paddingLeft: pad_out }, 150);
 },
 function()
 {
 $(this).animate({ paddingLeft: pad_in }, 150);
 });
 });
}  */

