/*
 * @filename maintrigger.js
 * @author Sothea Nim (snim@alcor.concordia.ca)
 * @description This file is used for running all self-developed js plugins
 */

function main_trigger() {
	autocomplete_off();
	announcement();
	emergency_alert();
}

function popUp(URL, width, height, toolbar, scrollbars, location, statusbar, menubar, resizable) {
	
	tbar = toolbar  ? toolbar : 0;
	sbar = scrollbars ? scrollbars : 0;
	loc = location ? location : 0;
	stbar = statusbar ? statusbar : '';
	mbar = menubar ? menubar : 0;
	resize = resizable ? resizable : 1;
	w = width ? width : 400;
	h = height ? height : 300;
	
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar="+tbar+",scrollbars="+sbar+",location="+loc+",statusbar="+stbar+",menubar="+mbar+",resizable="+resize+",width="+w+",height="+h+",left = 440,top = 362');");

}function announcement() {
	
	var id='announcement';
	
	$("#"+id).hide();
	$("#"+id).html('Announcememnt: Adv 1');
	
	
}function emergency_alert() {
	
	var id="emergency_alert";
	
	$("#"+id).hide();
	$("#"+id).html(domain);
	
}
