$(document).ready(function () {
	$('div.menualani ul li a').hover(function() {
		if ($(this).is(':animated')) {
		$(this).stop().animate({width: "230px"}, {duration: 450, easing:"easeOutQuad"});
	} else {
		$(this).stop().animate({width: "230px"}, {duration: 400, easing:"easeOutQuad"});
	}
	}, function () {
		if ($(this).is(':animated')) {
			$(this).stop().animate({width: "75px"}, {duration: 400, easing:"easeInOutQuad"})
		} else {
		$(this).stop('animated:').animate({width: "75px"}, {duration: 450, easing:"easeInOutQuad"});
		}
	});
	
	
	$('.sss a').click(function() {
		$(this).parent().children('div').animate({opacity: 'toggle', height: 'toggle'}, 'fast');
		return false;
	});
	
	$('div.jd_news_scroll').jdNewsScroll();
	
	window.setTimeout(function() {
		check();
	}, 5000);
	
});

function elementicek(element) {
	return document.getElementById(element);
}

function Toggle(element) {
	var e = elementicek(element);
	if (e.style.display == 'none')
		e.style.display = '';
	else
		e.style.display = 'none';
}


function check(){
	$.get("../checkNotification.php?checkNum=1");
	window.setTimeout(function() {check();}, 5000);
}
