$(document).ready(function(){
	$('#tab1 .gallery ul').cycle({
	    timeout:0,
		prev: 'a#pp',
		next: 'a#pn'
	});
	$('#tab2 .gallery ul').cycle({
	    timeout:0,
		prev: 'a#vp',
		next: 'a#vn'
	});
	HackIssues();
	FooterSwitch();
});

function HackIssues()
{
    $('#iContent .pageTitle[id*=IssueTitle] ~ br').remove();
    $('#iContent .pageTitle[id*=IssueTitle]').remove();    
}

function FooterSwitch()
{
    PickAddress();
    $('.footer-box #office-select').change(function(){
        PickAddress();
    });
}
function PickAddress()
{
        var ofShow = $('.footer-box #office-select option:selected').val();
        $('.footer-box .addies li').hide();
        $('.footer-box .addies li:eq('+ofShow+')').show();
}