jQuery(document).ready(function(){	
	jQuery("#slider").easySlider({
		auto: true, 
		pause: 5000,
		continuous: true
	});
});
var headline_count;
var current_headline=0;
jQuery(document).ready(function(){
  headline_count = jQuery("li.news_li").size();
  jQuery("li.news_li:eq("+current_headline+")").css('top', '11px');
  setInterval(headline_rotate,5000); //time in milliseconds
});
function headline_rotate() {
  old_headline = current_headline % headline_count;
  new_headline = ++current_headline % headline_count;
  jQuery("li.news_li:eq(" + old_headline + ")").css('top', '35px');
  jQuery("li.news_li:eq(" + new_headline + ")").show().animate({top:11},"slow");     
}
jQuery(document).ready(function(){
jQuery("img.fadeout").hover(
function() {
jQuery(this).stop().animate({"opacity": "0"}, "slow").css({"z-index":"2"});
},
function() {
jQuery(this).stop().animate({"opacity": "1"}, "slow");
});
 
});
// initialise plugins
jQuery(function(){
	jQuery('ul#menu').superfish();
});
jQuery(function() {
	// set opacity to nill on page load
	jQuery("ul#menu span").css("opacity","0");
	jQuery("ul#menu span.active").css("opacity","1");
	// on mouse over
	jQuery("ul#menu span").hover(function () {
		// animate opacity to full
		jQuery(this).stop().animate({
			opacity: 1
		}, 'slow');
	},
	// on mouse out
	function () {
		// animate opacity to nill
		jQuery(this).stop().animate({
			opacity: 0
		}, 'slow');
	});
	
	// on mouse over
	jQuery("ul#menu span.active").hover(function () {
		// animate opacity to full
		jQuery(this).stop().animate({
			opacity: 1
		}, 'slow');
	},
	// on mouse out
	function () {
		// animate opacity to nill
		jQuery(this).stop().animate({
			opacity: 1
		}, 'slow');
	});
});
jQuery(document).ready(function(){	
	jQuery('.right_column > dl.news_list:first').css("padding-top","15px");
});
jQuery(document).ready(function(){	
	jQuery('.left_sidebar ul li:first-child').addClass("first");
});
jQuery(document).ready(function(){	
	jQuery('.right_column dl.case_list:last').css("margin-bottom","0");
});
jQuery(document).ready(function(){	
	jQuery('.search-results .post:odd').addClass("gehang");
	jQuery('.search-results .post:first').css("padding-top","35px");
});
jQuery(document).ready(function(){	
	jQuery('.bathroom li:first-child').addClass("first");
	jQuery('.bathroom li:last-child').addClass("last");
});

jQuery(document).ready(function(){	
	jQuery('ul.selection li span:contains("1")').addClass("yes");
});
jQuery(document).ready(function(){	
	jQuery('ul.selection li:contains("1")').addClass("display_blcok");
});
