jQuery (function (){
	
	
	$(".widget").each (function(){
		$(this).find("ul li:last").addClass ("no-bottom-border");
	})
	
	$(".widget2").each (function(){
		$(this).find("ul li:last").addClass ("no-bottom-border");
	})
	
	$("ul.children").each (function(){
		$(this).parent().addClass ("noPad");
		$(this).find("li:last").css ({"border-bottom-width":"0px","padding-bottom":"0px"});
		$(this).find("li:last a").css ({"border-bottom-width":"0px"});
	})
	
	$(".widget_categories .widget_body ul:first li:last a").css ({"border-bottom-width":"0px"});
	$(".footer_widget").corner("round 6px");
	
	
	if (!jQuery.browser.msie){
		$(".button").corner("6px");
	}
	
	//$(".show-thumb .imagePreview").corner ("5px");
	$(".round_pane .round_Preview .round_Inside .round_Inside2").corner("round 5px").parent().css('padding', '1px').corner("round 6px");
	$(".round_pane2 .round_Preview .round_Inside .round_Inside2").corner("top round 5px").parent().css('padding', '1px 1px 0 1px').corner("top round 6px");
	$(".round_pane3 .round_Preview .round_Inside .round_Inside2").corner("bottom round 5px").parent().css('padding', '0 1px 1px 1px').corner("bottom round 6px");
	
	var content = $("#content").height();
	var sidebar_left_m = $("#sidebar_left_m").height ();
	var sidebar_left_r = content - sidebar_left_m; //Getting AdSpace
	$("#sidebar_left_r").height (sidebar_left_r);
	
	var sidebar_right_m = $("#sidebar_right_m").height ();
	var sidebar_right_r = (content - sidebar_right_m)-8; //Getting AdSpace
	$("#sidebar_right_r").height (sidebar_right_r);

	
	jQuery('#featured-container').serialScroll({
		target:'#featured',
		items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
		prev:'div.prev',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
		next:'div.next',// Selector to the 'next' button (absolute too)
		axis:'xy',// The default is 'y' scroll on both ways
		navigation:'#navigation li a',
		duration:600,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
		onBefore:function( e, elem, $pane, $items, pos ){
			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
		}
	});
	
	





	
})