function clickToTalk() {
		bSide = location.search.substr(1);
		bSideX = "?bSide=" + bSide;
		phpAddress = "http://web2.concordia.ca/click2talk/econcordia/clickApplet.htm" + bSideX;
		testwindow=window.open(phpAddress, "mywindow",	"location=0,status=0,scrollbars=0,width=260,height=470");
}

function showOptions() {
		var doOnLoad=function() {toCenter(document.getElementById('helpNotes'));};
		if (!window.addEventListener) { // MSIE
				window.attachEvent('onload', doOnLoad);
		} else {
				window.addEventListener('load', doOnLoad, false);
		}
}


function toCenter(el) {                                                                                                  	
		// Hack to replace BG
		if (window.optionsBackground) el.style.backgroundImage=window.optionsBackground;
			
		var bl = document.getElementById("blackOut");
			
		el.style.display = 'block';
		bl.style.display = 'block';

		el.style.position = "absolute";
			
		if (window.innerWidth) {
				var screenMaxW = window.innerWidth;
				var screenMaxH = window.innerHeight;
		} else if (document.documentElement && document.documentElement.clientWidth) {
				var screenMaxH = document.documentElement.clientHeight;
				var screenMaxW = document.documentElement.clientWidth;
		} else if (document.body) {
				var screenMaxW = document.body.clientWidth;
				var screenMaxH = document.body.clientHeight;
		}
		var x = (screenMaxW - el.clientWidth)/2;
		var y = (screenMaxH - el.clientHeight)/2;


		if (document.all) {	
				iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body;
				y = y + iebody.scrollTop;
				bl.style.height = iebody.scrollHeight;

		} else {
				el.style.position = "fixed";
				bl.style.position = "fixed";
		}

		el.style.left = x + 'px'; el.style.top = y + 'px';
}

