$(document).ready(function() {


$('#understanding').innerfade({ animationtype: 'fade', speed: 'slow', timeout: 2400, type: 'random', containerheight: '1em' });
$('#improvement').innerfade({ animationtype: 'fade', speed: 'slow', timeout: 2450, type: 'random', containerheight: '1em' });
$('#ownership').innerfade({ animationtype: 'fade', speed: 'slow', timeout: 2450, type: 'random', containerheight: '1em' });
$('#assurance').innerfade({ animationtype: 'fade', speed: 'slow', timeout: 2450, type: 'random', containerheight: '1em' });
$('#quality').innerfade({ animationtype: 'fade', speed: 'slow', timeout: 2400, type: 'random', containerheight: '1em' }); 

$('#MenuBar ul li').corner({
    tl: { radius: 5 },
    tr: { radius: 5 },
    bl: false,
    br: false

});

    


    $('.FormRight').corner();

    $('.FormContent').corner({
    tl: false,
    tr: false,
        bl: false,
        br: false
    });
    
    $('.FormCharts').corner();
    $('#header').corner({
        tl: false,
        tr: false,
        bl: { radius: 10 },
        br: { radius: 10 }
    });
    
//    $('#footer').corner({
//    tl: { radius: 10 },
//    tr: { radius: 10 },
//        bl: { radius: 10 },
//        br: { radius: 10 }
//    });

    $('#MessagingPanel div.Panel').corner({
        tl: { radius: 10 },
        tr: { radius: 10 },
        bl: { radius: 10 },
        br: { radius: 10 }
    });

    $('#MessagingPanel div.PanelLast').corner({
        tl: { radius: 10 },
        tr: { radius: 10 },
        bl: { radius: 10 },
        br: { radius: 10 }
    });

    $('#UserMenuPanel').corner({
        tl: { radius: 10 },
        tr: { radius: 10 },
        bl: { radius: 10 },
        br: { radius: 10 }
    });
    
   

	$('#LoginMiddle').corner({
	    tl: { radius: 6 },
	    tr: { radius: 6 },
	    bl: { radius: 6 },
	    br: { radius: 6 }
	});

	$('#LoginRight').corner({
	    tl: { radius: 6 },
	    tr: { radius: 6 },
	    bl: { radius: 6 },
	    br: { radius: 6 }
	});

	$('#SectionList li').corner({
			  tl: { radius: 3 },
			  tr: { radius: 3 },
			  bl: { radius: 3 },
			  br: { radius: 3}
	});

	
			  
			  


    $("td a.toggle").click(function() {
        var rowname = "tr.tr" + $(this).get(0).id;
        $(rowname).toggle();
    });

    $("#DescriptiveStats tr").hover(function() {
        $(this).removeClass("HoverOut");
        $(this).addClass("Hover");
    }, function() {
        $(this).removeClass("Hover");
        $(this).addClass("HoverOut");
    });



});
