﻿$(document).ready(function() {
	$('#formaddcomment').corner('bottom 10px');
	$('#userfooter').corner('bottom 10px');
	$('.shortstory').corner('10px');
	$('.fullstory_caption').corner('10');
	$('#power_reg_button').click(function() {
		$('#reg_window').animate({'top':'+=320px'}, 100);
	});
	$('#commentbox').hide();
	$('#reg_close').click(function() {
		$('#reg_window').animate({'top':'-=320px'}, 100);
	});
	
	$('.short_story').mouseover(function()
        {
            $(this).stop(); 
			$(this).find('.news-item-more a').stop();
			$(this).find('.news-item-more a').css('height','20px').animate({backgroundPosition: '(0px -15px)'},100);
        }).mouseout(function()
        {
			$(this).stop(); 
			 $(this).find('.news-item-more a').stop();
			 
            $(this).find('.news-item-more a').css('height','15px').animate({backgroundPosition: '(0px 0px)'},100);
        });
	
	$('#addcomment').click(function() {
		$('#commentbox').fadeIn(200);
		$(this).hide();
	});
});
