jQuery(function(){
	if (!jQuery.browser.msie) {
		jQuery.root.find("#recentnews li")
			.fadeTo(500, 0.8)
			
			.mouseenter(function(){
				jQuery(this).stop().fadeTo(200, 1);
			})
			
			.mouseleave(function(){
				jQuery(this).stop().fadeTo(200,0.8);
			});
	}
});

if (jQuery.browser.msie) {
	
	jQuery.root.find('#wrap')
		.css("overflow","hidden")
		.height( jQuery.window.height() )
		.width(  jQuery.window.width() );
		
	jQuery.root.find('#footer').css({
		position:'absolute',
		bottom:'0'
	});
	
}

function showPage() {
	if ( jQuery.browser.msie) {
		return;
	}
	setTimeout(
		function(){
			var selector = '#recentnews';
			jQuery(selector)
				.css({
					opacity:0,
					visibility:'visible'
				})
				.animate({opacity:1}, function(){
					selector = '#header';
					jQuery(selector)
						.css({
							opacity:0,
							visibility:'visible'
						})
						.animate({opacity:1}, function() {
							selector = '#footer';
								jQuery(selector)
									.css({
										opacity:0,
										visibility:'visible'
									})
									.animate({opacity:1});
						});
				});
		},
		250);
}

window.onload = function() {
	try {
		var c = new slideShow("#slideshow", 5000);
		c.start();
	}catch(e) {}
}

