
/* function setFooter()
hacks uvm template to set footer color (below the menu)
*/

function setFooter() {
	// $('footer').style.background = "#DE9442";
	
//	addRSS();
	// bannerLink();
	
}

function bannerLink() {

	jquery('#uvmcustombanner2 img').onclick = function() {
		window.location = "http://www.uvm.edu/ctl";
	}
	jquery('#global').onclick = function() {
		window.location = "http://www.uvm.edu/ctl";
	}
}

function addRSS() {
	if (window.location.search == "?Page=events/index.php") {
		var baseurl = window.location.href.substr(0, window.location.href.indexOf('?'));
		var feedurl = baseurl + "events/feed.php";

//		<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS 2.0\" href=\"".$ctl_base_url."events/feed.php\" />
		
	}
}


function showDesc(url) {
	// popup window here w/ description info.....
//	var url = "showDesc.php?e="+id;
	var newwin = window.open(url, "event", "width=500, height=400, location=0, status=0, directories=0");
}


function updateContent(id, reallyLongString) {
	$(id).innerHTML = decodeURIComponent(reallyLongString);
}

function openWin(filename) 
	{
    var newWin = window.open(filename,'Register','width=650,height=500,left=40,top=40,scrollbars=1,menubar=1,status=0,location=0,resizable=1,directories=0');
}


