$(document).ready(function(){
	$('#newsContainer').vTicker({
		speed: 500,
		pause: 3000,
		showItems: 1,
		animation: 'fade',
		mousePause: true,
		height: 0,
		direction: 'up'
	});
	$('a.highslide').click(function() {
		return hs.expand(this,	{ outlineType: 'rounded-white' });
	});
	
	
	$(".leftmenu2").bind("click", function(){
		if($("#s"+$(this).attr("id")).css("display") == "none"){
			$(".submenus").slideUp();
			$("#s"+$(this).attr("id")).slideDown("slow");
		}else{
			$("#s"+$(this).attr("id")).slideUp("slow");
		}
	});
	
	$(".imageC").bind("click", function(){
		$(".hiddenNews").fadeOut("slow");
		var show_id = $(this).attr("id");
		$("#show"+show_id).fadeIn("slow");
		$(this).attr("src", "/images/des_21.jpg");
		$(".imageC").each(function(index){
			$("#News"+index).attr("src", "/images/des_24.jpg");
		});
		$(this).attr("src", "/images/des_21.jpg");
	});
	
});

