// Since javascript is running hide messages
$(function () { $('.js-no').hide(); $('.js-yes').show(); } );

var chair_pic = '/photos/barbarahowe_sm.jpg';
var randomnumber=Math.floor(Math.random()*11);

function show_mailto_pic() {
	
}

jQuery.jQueryRandom = 0;
jQuery.extend(jQuery.expr[":"],
{
    random: function(a, i, m, r) {
        if (i == 0) {
            jQuery.jQueryRandom = Math.floor(Math.random() * r.length);
        };
        return i == jQuery.jQueryRandom;
    }
});

$(function () {
    $('a[href*=http:]').click(function() {
/*
        open('/redirect.php?where=' + this.href); return false;
*/
		pageTracker._trackPageview('/outgoing/'+ this.href);
    });
});

$(function() {
	$('a[rel]').cluetip( { arrows:true, fx:{ open:'fadeIn' } });
});

$(function() {
	$('a.adtip:random').trigger("hover");
});

$(function() {
    $('#quote').attr('title','Click for a new quote!')
});

$(function() {
    $("#quote").click(function(){
        $(this).fadeOut();
        $(this).load("/get_quote.php", { nocache:Math.random() },
            function() { $(this).fadeIn() }
        );
    });
});

$(function() {
    $("#election_summary button").show();
    $("#election_summary button").click(function() {
        $(this).load("/get_esum.php", { nocache:Math.random() });
    });
});

