// JavaScript Document

 $(document).ready(function(){
   //$("#flash-content").insertAfter("#barseemore");
   
   $(function() {
		$('#slideshow').cycle({ 
		speed:  1000, 
		sync:   1, 
		before: onBefore 
		}); 
		function onBefore() { 
		$('#stitle') 
			.html(this.alt); 
		}; 
	});
	
	$("UL#topLevel li:last, UL#topLevel div:last, UL#secondary li:last").addClass("last");
	$("li.leftNavSecond:last + li.navBorderBottom").addClass("navBorderTop");
	$("li.leftNavSecond:last + li.leftNavThird:last +li").addClass("navBorderTop");
	$("UL#secondary > li:last").removeClass("navBorderBottom");
	
	$("hr").replaceWith("<div class='hr'></div>");
	
	$(".rounded").parent().css('padding', '5px').addClass("rounded");
	
		$(function () {
		var tabs = $('#wct > div');
		tabs.hide().filter(':first').show();
		
		$('#wct ul.tabs a').click(function () {
			tabs.hide();
			tabs.filter(this.hash).show();
			$('#wct ul.tabs a').removeClass('selected');
			$(this).addClass('selected');
			return false;
		}).filter(':first').click();
	});
		
			$('#wct ul.tabs a').click(function () {
												
	});

	$(function(){$('.scroll-pane').jScrollPane({showArrows:true, animateTo:true, animateInterval:150});});

		
 });
