function footerFunctions(){
		var maxHeight = 266;
		var NowOpened =	false;
		
		rollOverEff($("#news>h2>a>img"));
		rollOverEff($("#twitter>h2>a>img"));
		
		
		if(_ua.ltIE7){
		//	$("#footer").css({
		//		'height'	:maxHeight,
		//		'postion'	:'static'
		//	});
			
			$("#footerOpened").hide();
			return false;
		}

		var FotterAnimateFlag = false;

		//Timer set
		var timer ;
		var OverTiemr;
		timer	= 	$.timer(
						function(){
							timer.stop();
							FotterAnimateFlag = true;
							$("#footer").animate(
								{
									'height'	:'48px'
								},1200,'easeOutCirc',function(){
								FotterAnimateFlag = false;
								NowOpened = false;
								$("#footerOpened img").attr("src",$("#footerOpened img").attr("src").replace("_closed.", "_opened."));
							});
						},
						900,
						false
					);
		
		
		
		OverTiemr = $.timer(function(){
						if(!FotterAnimateFlag &&$("#footer").height() != maxHeight){
							$("#footer").animate({
								'height'	:maxHeight
								},700,'easeOutExpo',function(){
								FotterAnimateFlag = false;
								NowOpened = true;
								$("#footerOpened img").attr("src",$("#footerOpened img").attr("src").replace("_opened.", "_closed."));
							});
							FotterAnimateFlag = true;
						}
					},
					300,
					false);

			
		timer.set({time:900});
		OverTiemr.set({time:300});
		
		$("#footer").bind("mouseover",function(){
			timer.stop();
			OverTiemr.play(true);
		}).bind("mouseout",function(){
			OverTiemr.stop();
			if(!FotterAnimateFlag && !timer.active){
				timer.play(true);
			}
		});
		
		$("#footerOpened").bind("mousedown",function(event){
			if(!NowOpened){
				timer.stop();
				if(!FotterAnimateFlag &&$("#footer").height() != maxHeight){
					$("#footer").animate({
						'height'	:maxHeight
						},700,'easeOutExpo',function(){
							FotterAnimateFlag = false;
						$("#footerOpened img").attr("src",$("#footerOpened img").attr("src").replace("_opened.", "_closed."));
						});
					FotterAnimateFlag = true;
				}
				NowOpened = true;
			}else{
				OverTiemr.stop();
				if(!FotterAnimateFlag && !timer.active){
						FotterAnimateFlag = true;
						$("#footer").animate(
							{
								'height'	:'48px'
							},1200,'easeOutCirc',function(){
						FotterAnimateFlag = false;
						$("#footerOpened img").attr("src",$("#footerOpened img").attr("src").replace("_closed.", "_opened."));
					});
				}
				NowOpened = false;
				
			}
		}).css("cursor","pointer");
		rollOverEff($("#news>h2>a>img"),"_on","_off");
		rollOverEff($("#twitter>h2>a>img"),"_off","_on");
}


function rollOverEff(MainTarget,ChStr1,ChStr2){
		MainTarget.bind("mouseover",function(event){
			$(event.target).attr("src",$(event.target).attr("src").replace("_off.", "_on."));
		}).bind("mouseout",function(event){
			$(event.target).attr("src",$(event.target).attr("src").replace("_on.", "_off."));
		});
}
