﻿
var IsDebug=false;

window.onerror=function(msg,url,num) {
	//$.post('/errorhandling/reporterr.aspx', { error: msg, location: url, line: num});
	return !IsDebug;
}

$(function() {
	general_pageLoad();
	var prm = Sys.WebForms.PageRequestManager.getInstance();
	prm.add_endRequest(function() { general_pageLoad(); });
});
function general_pageLoad() {
	setInterval(function() { $.get('/scripts/ajax_controls/keepalive.aspx'); }, 840000); // 14 mins * 60 * 1000

	$('.rotAnn:first').show();
	setInterval(function() {
		jQuery('.rotAnn').filter(':visible').fadeOut(700, function() {
			if ($(this).next('.rotAnn').length) {
				jQuery(this).next().fadeIn(700);
			} else {
				jQuery('.rotAnn:first').fadeIn(700);
			}
		});
	}, 5000);
}

