jQuery (function (){

	if (jQuery.browser.msie && jQuery.browser.version<7.0)
		jQuery("div, img").pngFix(); 

	jQuery(".sidebar_left ul, #widgets_sidebar ul").each (function(){
		jQuery(this).find("li:first").css ({"border-top-width":"0px"});
		jQuery(this).find("li:last").css ({"border-bottom-width":"0px"});
	})
	
	jQuery("ul.children").each (function(){
		jQuery(this).parent().addClass ("noPad");
		jQuery(this).find("li:last").css ({"border-bottom-width":"0px","padding-bottom":"0px"});
		jQuery(this).find("li:last a").css ({"border-bottom-width":"0px"});
	})
	
	jQuery(".navigationArea a").hover (function(){ jQuery(this).addClass("hover"); }, function(){ jQuery(this).removeClass("hover"); })
	jQuery(".navigationArea a").click (function(){ jQuery(".navigationArea a").removeClass("hover"); jQuery(this).addClass("hover"); })
	
	jQuery(".round_pane .round_Inside .round_Inside2").corner("bottom round 5px").parent().css('padding', '0px 1px 1px').corner("bottom round 6px")
	
	var tabContainers = jQuery('#tabContent > div');
	tabContainers.hide().filter(':first').show();
	
	jQuery('#tabNav li').click(function () {
		tabContainers.hide();
		var filT = "#" + jQuery(this).attr("id") + "_content";
		tabContainers.filter(filT).show();
		jQuery('#tabNav li').removeClass('active');
		jQuery(this).addClass('active');
		return false;
	}).filter(':first').click();
	
	window.setTimeout(function (){
		var content = jQuery("#content").height();
		jQuery("#sidebar_left").height (content);
		var sidebar_left_m = jQuery("#sidebar_left_loaded").height();
		var sidebar_left_r = (content - sidebar_left_m)-6; //Getting AdSpace
		jQuery("#sidebar_left_r").height(sidebar_left_r);
		
		var sidebar_right_m = jQuery("#sidebar_right_loaded").height();
		var sidebar_right_r = (content - sidebar_right_m)-6; //Getting AdSpace
		jQuery("#sidebar_right_r").height(sidebar_right_r);
		
		jQuery("#wrap-one").height (content-40);
		if (isSingle==1){
			jQuery("#wrapSingle").height (content);
		}
	},1200);
	
})
