/*google analytics events*/
$(document).ready(function ($) {
    var filetypes = /\.(pdf)$/i;
    var baseHref = '';
    if ($('base').attr('href') != undefined)
        baseHref = $('base').attr('href');

    $('a').each(function () {
        var href = $(this).attr('href');

        if (href && href.match(filetypes)) {
            $(this).click(function () {
                var filePath = href;
                _gaq.push(['_trackEvent', 'Download', 'PDF', filePath]);
                if ($(this).attr('target') != undefined && $(this).attr('target').toLowerCase() != '_blank') {
                    setTimeout(function () { location.href = baseHref + href; }, 200);
                    return false;
                }
            });
        }
    });
});


/*show tab*/

function showTab (a, b,c,d){
	document.getElementById( a ).style.display = "block"
	document.getElementById( b ).style.display = "none"
	document.getElementById( c ).className = "selected"
	document.getElementById( d ).className = "noneselected"
}
