// JavaScript Document

$(document).ready(function () {
    corners();
    effects();
    nav();
    //Tracking outbound links
    $('a.outbound').click(function () {
        var $a = $(this);
        var href = $a.attr('href');
        var category = 'outbound'; // set this to whatever you want
        var event = 'click'; // set this to whatever you want
        var label = href; // set this to whatever you want
        _gaq.push(['_trackEvent', category, event, href]);
        setTimeout('document.location = "' + href + '"', 200);
    });


});

function corners() {
	$('#main_nav').corner("round tl 10px").corner("round tr 10px");
	$('.type_one h2, .type_two h2, .type_three, .type_four').corner("round 3px");
}

function effects() {
	$('#main_nav').wrap('<div id="main_nav_effect" />');
	$('.type_two .item:last-child, .type_three .item:last-child').css('border-bottom', 'none').css('padding-bottom', '0px');
}

function nav() {
	$('#main_nav ul li:last-child, #footer_nav ul li:last-child').css('border-right', 'none');
}
