$(document).ready(function(){
	$('#topmenu li.dropdown').hover(
		function() { $('ul', this).fadeIn('fast'); },
		function() { $('ul', this).fadeOut('fast'); }
	);
	
	$("#news a.tabs").click(function () {
		$("#news a.tabs").removeAttr("id");
		$(this).attr("id","active");
		$('#news .box').css('display','none');
		$("#"+$(this).attr("href")).css('display','block');
		return false;
	});
	
	$('#menu a.drop').click(function () {	
		if($("#menu ul#"+$(this).attr("href")).css('display')=="none") { 
			$("#menu ul").slideUp('slow');
			$("#menu ul#"+$(this).attr("href")).slideDown('slow');
		} 
		else {
			$("#menu ul#"+$(this).attr("href")).slideUp('slow');
		}		
		return false;
	});
	
	
	$('#s7').cycle({
    fx:    'fade',
    delay: -1000,
			timeout: 13000
});
	
		$('#s88').cycle({
    fx:    'fade',
    delay: -1000,
			timeout: 13000
});
	/* peoplesay */
	
		$('#s89').cycle({
    fx:    'fade',
    delay: -1000,
			timeout: 13000
});
	/* peoplesay */	
	
	
});

$(document).ready(function(){
	
	/* Feature Image Cycle */
	$('#rotator').cycle({ 
		fx:     'fade', 
		next:   '#right', 
		prev:   '#left',
		timeout: 12000,
		    before: onBefore
	});
	
	var version = jQuery.browser.version;
	
	if (version instanceof Object){version=version.number();}
		
	if (jQuery.browser.msie && version < 7){$('#pager').css('opacity',0.5);}

});




function onBefore() {
//alert(this.alt);
$('#galtitle').html(this.title);
};
