
$(window).load(function() {	

		$("#news-list").newsticker(5000);
		
		//for IE7
		if($.browser.msie && $.browser.version=="7.0"){
			$("#main-menu-btns").css("z-index","119")
		}
		
		//button hover
		for(var i=1;i<7;i++){
			if($("#btn"+i).attr("class")!="current"){
				$("#btn"+i).mouseenter(function(){
				  $(this).animate({"top": "30px"}, 150);
				});
				
				$("#btn"+i).mouseleave(function(){
				  $(this).animate({"top": "0px"}, 150);
				});
			}else{
				var pos = $("#btn"+i+" a").backgroundPosition();
				$("#btn"+i+" a").css('background-position', pos.replace('-63','73'))
				$("#btn"+i).css('z-index', '121')
				$("#btn"+i+" a").html('')
				$("#btn"+i+" a").removeAttr('href')
			}
		}
		

});




(function($) {
  jQuery.fn.backgroundPosition = function() {
    var p = $(this).css('background-position');
    if(typeof(p) === 'undefined') return $(this).css('background-position-x') + ' ' + $(this).css('background-position-y');
    else return p;
  };
})(jQuery);
