function navOver(imgName,on_off)
{
var a = document.getElementById(imgName);

if (on_off == "OverOn")
	{
	a.src = "/_images/navigation/"+imgName+"-hig.gif";
	}
else
	{
	a.src = "/_images/navigation/"+imgName+".gif";
	}
}


function swap_visible_blocks(div_to_hide, div_to_show)
{
hide_div = div_to_hide;
show_div = div_to_show;

var h = document.getElementById(hide_div);
var s = document.getElementById(show_div);

h.style.display = 'none';
s.style.display = 'block';
}


function nav_rollover(which_div, class_name) {
var a = document.getElementById(which_div);
a.className = class_name;
}


function hide_div(which_div)
{
var a = document.getElementById(which_div);
a.style.display = "none";
}


function show_div(which_div)
{
var a = document.getElementById(which_div);
a.style.display = "block";
}


function showCampaign()
{
var a = document.getElementById("campaign_support");
if (a.style.display == "block")
	{
	a.style.display = "none";
	}
else
	{
	a.style.display = "block";
	}
}


function showPetition()
{
var a = document.getElementById("petition_support");
if (a.style.display == "block")
	{
	a.style.display = "none";
	}
else
	{
	a.style.display = "block";
	}
}


function showPoll()
{
var a = document.getElementById("poll_support");
if (a.style.display == "block")
	{
	a.style.display = "none";
	}
else
	{
	a.style.display = "block";
	}
}


function showAddSubject()
{
var a = document.getElementById("addSubject");
if (a.style.display == "block")
	{
	a.style.display = "none";
	}
else
	{
	a.style.display = "block";
	}
}


function changeRotate (max_rotations)
{
var mr = parseInt(max_rotations);
var nextRotateNum = currentRotateNum+1;
if (nextRotateNum == (mr+1))
	{
	nextRotateNum = 1;
	}

var currentRotate = "rotate"+currentRotateNum;
var nextRotate = "rotate"+nextRotateNum;

var currentRotateDiv = document.getElementById(currentRotate);
var nextRotateDiv = document.getElementById(nextRotate);

currentRotateDiv.style.display = "none";
nextRotateDiv.style.display = "block";

currentRotateNum = nextRotateNum;
}


function PP(ppURL,string_date)
{
var v_ppURL = ppURL;
var v_string_date = string_date;

var d = document.getElementById("calendar_calendar_day");
var e = document.getElementById("calendar_calendar_day_title_left");

CalendarPopupFrame.location.href = v_ppURL;

e.innerHTML = v_string_date;
d.style.display = "block";
}


function PP_close()
{
var d = document.getElementById("calendar_calendar_day");
d.style.display = "none";
}