function refreshScript() {
    $("a.thumb").fancybox({
        'titleShow': false,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic'
    });
}


   $(document).ready(function() {

   $('#menu a span').css({height: "8px"});

    $('#menu a')
		.mouseover(function(){
			$(this).parent().find('span').stop().animate({height:"41px"}, {duration:100})
		})
		.mouseout(function(){
			$(this).parent().find('span').stop().animate({height:"8px"}, {duration:400, complete:function(){
				$(this).parent().find('span').css({height: "8px"})
			}})
		});

    $("a.thumb").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			
	$("#dtListLink_itemL_0").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',
				'width'				: '75%',
				'height'			: '75%'
			});
			
   $("#dtListLink_itemL_2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type'				: 'iframe',
				'width'				: '90%',
				'height'			: '90%'
			});
			
	
	$('div.shortActionContent').html(function () {
    var longhtml = $(this).parent().find('.detailContent').html();
    longhtml = $.string(longhtml).strip().stripTags();
    return longhtml.truncate(200, '...').str;
    }); 
	
  $("a.morecontent").click(function (e) {
        e.preventDefault();
        $(this).parent().find('.shortActionContent').hide();
        $(this).parent().find('.detailContent').show("slow");
        $(this).hide();
        $("a.hidecontent").click(function (e) {
            e.preventDefault();
            $(this).parent().parent().find('.detailContent').slideUp();
            $(this).parent().parent().find('.shortActionContent').show();
            $(this).parent().parent().find('.morecontent').show();
        }); 	
    });
    
    $("a.hidecontent").click(function (e) {
        e.preventDefault();
        $(this).parent().parent().find('.detailContent').slideUp();
        $(this).parent().parent().find('.shortActionContent').show();
        $(this).parent().parent().find('.morecontent').show();
    }); 	
			
   
   });
   
   
   
