
function printPage()
// Print Page 
{
	window.print();  
	return false;
}

// Glenn we will change this later

function resizeBodyContent(){
	if(document.getElementById('resourcecolumn')){
		if(document.getElementById('resourcecolumn').getElementsByTagName('div').length>0){
			document.getElementById('main').className+=" hasRight";
		}
	}
}

//window.onload = resizeBodyContent;

window.addEvent('domready', function(){
	if($('resourcecolumn')){
		if($('resourcecolumn').getElements('div').length>0){
			$('main').addClass('hasRight');
		}
	}
	uls = $$('ul.listsplit');
	if(uls){
		uls.each(function(ul){
			lis = ul.getElements('li');
			date = 0000;
			lis.each(function(li){
				lid=li.getProperty('date').split('-');
				if(lid[0]!=date){
					dli = new Element("li",{'class':'listheading','html':lid[0]}).inject(li,"before");
					date = lid[0];
				}
			});
		});
	}
	
	uls = $$('ul.listsplitalpha');
	if(uls){
	    uls.each(function(ul){
	        list = new Element('p',{'class':'anchorlist'}).inject(ul,'before');
		lis = ul.getElements('li');
		let = "";
		lis.each(function(li){
		    nlet=li.getProperty('alphaname').trim().charAt(0).toUpperCase();
		    if(nlet!=let){
			dli = new Element("li",{'class':'listheading','html':nlet}).inject(li,"before");
			if(let!="")dt = new Element("a",{'class':'returntop','href':location+'#top','html':'^ return to top ^<br />'}).inject(dli,'top');
	                da = new Element("a",{'name':nlet}).inject(dli,'top');
	                daa = new Element('a',{'href':location+'#'+nlet,'html':nlet}).inject(list);
			let = nlet;
		    }
		});
	        dli = new Element("li",{'class':'listheading'}).inject(ul);
	        dtop = new Element("a",{'class':'returntop','href':location+'#top','html':'^ return to top ^'}).inject(dli);
	    });
	}

});

