

// DROP DOWN MENU FOR IE

	window.onload = function()
	{
		var lis = document.getElementsByTagName('li');
		for(i = 0; i < lis.length; i++)
		{
			var li = lis[i];
			if (li.className == 'nav_prizes')
			{
				li.onmouseover = function() { this.getElementsByTagName('ul').item(0).style.display = 'block'; }
				li.onmouseout = function() { this.getElementsByTagName('ul').item(0).style.display = 'none'; }
			}
		}
	}
	
// POPUP

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}


//// PRINT CERTIFICATE
//document.observe('dom:loaded', function(){
//	if ($('certificate-wrap')) {
//		var newButton = new Element('img', {'src' : 'images/button.print-certificate.gif', 'alt' : 'Print Certificate', 'class' : 'button'});
//		newButton.observe("click", function() { window.print() });		
//		$('certificate-wrap').insert({'top' : newButton});
//	}
//
//});
