
var $j = jQuery.noConflict();
$j(document).ready(function() 
{
	$j("#menu li").mouseover(function(){hover(this);})
	$j("#menu li").mouseout(function(){normal(this);})

	function hover(elem)
	{
		if('actual' != $j(elem).attr('class'))
		{
			$j(elem).attr('class','active');
		}
	}
	
	function normal(elem)
	{
		if('actual' != $j(elem).attr('class'))
		{
			$j(elem).attr('class','');
		}
	}
});

$j(function() 
{
	$j('a.lightbox').lightBox({
		imageLoading: '/layout/loading.gif',
		imageBtnPrev:			'/layout/lightbox/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
		imageBtnNext:			'/layout/lightbox/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
		imageBtnClose:			'/layout/lightbox/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
		imageBlank:				'/layout/lightbox/lightbox-blank.gif'
	});
	
	  
		$j(".reply").click(function(){reply(this);return false})
    
    function reply(elem)
    {
      comment_form = $j('#comment_form').parent().html();
      
      $j(elem).parent().append(comment_form);
      $j(elem).parent().css('border','1px solid #61B469');
      $j(elem).parent().css('padding','5px');
    }
    
    
    
	
});
