
var GoogleCalendarString = '<p class="mtgimg"><a href="http://www.google.com/calendar/render?cid=lhcm0ivteacgrb6bdb15enrc7s@group.calendar.google.com"><img src="http://www.google.com/calendar/images/ext/gc_button1.gif" alt="BARC on Google Calendar" /></a></p>';

//var MeetingInfoText = '<a href="http://www.google.com/calendar/render?cid=lhcm0ivteacgrb6bdb15enrc7s@group.calendar.google.com">NEXT<br />MEETING</a>:<br />Oct 3rd (Tues) @ 5pm<br />in room <a href="http://campusmap.ucf.edu/">CSB-109</a> on-campus';

var MeetingInfoText = '<br />See <a href="http://www.barcdontbite.org/news/">news page</a> of our calendar for details of current events!';

//var MeetingInfoText = '<a href="http://www.google.com/calendar/event?action=TEMPLATE&amp;tmeid=Y2RpazNxaGN1aHEwZWxoZmxicmc0cTRhYWsgbGhjbTBpdnRlYWNncmI2YmRiMTVlbnJjN3NAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ&amp;tmsrc=bGhjbTBpdnRlYWNncmI2YmRiMTVlbnJjN3NAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ">Vote NO on<br />#3 Meeting</a>:<br />Sept 26th (Tues) @ 6:30pm<br />at <a href="http://www.dandelioncommunitea.com/">Dandelion Comm. Cafe</a>';

var MeetingInfo = '<p id="mtgtext">' + MeetingInfoText + '</p>';
var MeetingInfoIE6 = '<p id="mtgtext" style="margin: 10px 0px 15px 7px;">' + MeetingInfoText + '</p>';

function getmtginfo() 
{ 
	//document.getElementById('mtginfo').innerHTML = GoogleCalendarString + MeetingInfo;
	//document.write(GoogleCalendarString + MeetingInfo);
}

window.onload = init;
function init()
{
	var ver = getInternetExplorerVersion();
	var mtginfo = document.getElementById('mtginfo');
	
	if(ver > 0 && ver < 7) 
	{
		mtginfo.style.padding = '0px 11px 0px 11px';
		mtginfo.innerHTML = GoogleCalendarString + MeetingInfoIE6;
	}
	else
	{
		mtginfo.innerHTML = GoogleCalendarString + MeetingInfo;		
	}
	mtginfo.style.display = 'block';
}

function getInternetExplorerVersion()
{
	var rv = -1;
	if (navigator.appName == 'Microsoft Internet Explorer')
	{
		var ua = navigator.userAgent;
		var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		if (re.exec(ua) != null)
			rv = parseFloat( RegExp.$1 );
	}
	return rv;
}

// fixes scrolling inside of div{overflow:auto}
/*var targBox = "content_box";
function init() {
	if (document.getElementById) {
		var atags = document.getElementsByTagName("a");
		for (var i=0;i<atags.length;i++) {
			var ca = atags[i];
			if (ca.href.indexOf("#") > -1) {
				ca.onclick = function() {
					scrollDivToAnchor(this.href.split("#")[1]);
				}
			}
		}
	}
}
function scrollDivToAnchor(a) {
	var b = document.getElementById(targBox);
	b.scrollTop = document.getElementById(a).offsetTop - b.offsetTop;
}*/