

//javascript rules x core.js

	$(document).ready(function() {
		
		/*$('#boxes, #latest > li').hover(function() {
		$(this).addClass('hover');
		}, function() {
		$(this).removeClass('hover');
		});*/
		
		
/*
		$('#archive>li').each(function(){
		$('>div',this).hide();
		$(this).hover(function(){
		$('>div',this).fadeIn('fast');
		},function(){
		$('>div',this).fadeOut('fast');
		});
		});
*/
		
		/*$('#archive > li').hover(function() {
		$(this).addClass('hover');
		}, function() {
		$(this).removeClass('hover');
		});
		
		
		
		$('#news > li').hover(function() {
		$(this).addClass('hover');
		}, function() {
		$(this).removeClass('hover');
		});
		
		*/
		
		$("#boxes, #latest, #archive li, ul#news li, .off li").click(function(){
		window.location=$(this).find("a").attr("href");
     	return false;
		});
		
		
		$("#boxes, #latest li").hover(function() {		$(this).animate({backgroundColor:'#444',color:'#fff'},200);		}, function() {		$(this).animate({backgroundColor:'#fff',color:'#000'},400);		});
		
		$("#archive li").hover(function() {		$(this).animate({backgroundColor:'#fff',color:'#f17',borderColor:'#eee'},200).find('h3').animate({color:'#f17'},200);		}, function() {		$(this).animate({backgroundColor:'#f4f4f4',color:'#000',borderColor:'#eee'},300).find('h3').animate({color:'#000'},300);		});
		
		$("ul#news li").hover(function() {		$(this).animate({backgroundColor:'#444',color:'#fff'},200);		}, function() {		$(this).animate({backgroundColor:'#F4F4F4',color:'#000'},400);		});

		$(".off li").hover(function() {		$(this).animate({backgroundColor:'#eee',color:'#444'},200);		}, function() {		$(this).animate({backgroundColor:'#f17',color:'#fff'},400);		});
	
		$().UItoTop({ easingType: 'easeOutQuart' });
	
	
		});

