$(document).ready(function(){ 
	$("#header h2").pngfix();
	$("#header #slideshow").pngfix();
	$("#content-outershadow").pngfix();
	$("#leftArea #featureBox").pngfix();
	$("#leftArea #featureBoxLoc").pngfix();
	$("#leftArea #featureBox").pngfix();
	$("#contentArea .blockRightHD").pngfix();
	$("#content-outershadow").pngfix();
	$("#footer .footer-block1 ul li:last-child").css('border','solid 0px #fff');
	});


function slideSwitch() {
var active = $('#header #slideshow IMG.active');
if ( active.length == 0 ) active = jQuery('#slideshow IMG:last');
var next =  active.next().length ? active.next()
	: jQuery('#header #slideshow IMG:first');
active.addClass('last-active');
next.css({opacity: 0.0})
	.addClass('active')
	.animate({opacity: 1.0}, 1000, function() {
		active.removeClass('active last-active');
	});
}

$(document).ready(function(){ 
	setInterval( "slideSwitch()", 4000 );
	$("#mainArea #topMenu ul li:last-child").addClass('last-child');
	$("#main #contentArea p:last-child").css('margin-bottom','0');
	    jQuery("#topMenu ul li:last-child").addClass('lastChild');
		 jQuery(".topmenu ul li a").each(function (i) {
		  var aWidth = jQuery(this).width();
		   if(aWidth>90){
			  jQuery(this).css('width',aWidth -20);
			  }
			else{
				jQuery(this).css('width',aWidth +10);
				}
		 });		 
});
$(document).ready(function(){ 
		 jQuery(".topmenu ul li a").each(function (i) {
		  var aHeight = jQuery(this).height();
			if(aHeight<18){
			  jQuery(this).css('padding-top',"8px");
			  }
		 });		 
});
