// Update variables
var CurrentSettingID;
var FetchForumThreadTimer = 900000;
var FetchGalleriImageTimer = 900000;
var FetchVideoClipTimer = 900000;

//setTimeout('FetchForumThreads()', FetchForumThreadTimer);
//setTimeout('FetchGalleriImages()', FetchGalleriImageTimer);
//setTimeout('FetchVideoClips()', FetchVideoClipTimer);

function FetchForumThreads() {
	var params = {
		method: 'getforumthreads',
		setting: CurrentSettingID
	};

	new Ajax.Request('/section/frontpage/FrontpageAjax.ashx', { parameters: params, onSuccess: FetchForumThreadsSuccess });
}
function FetchForumThreadsSuccess(response) {
	var OData = eval(response.responseText);
	//setTimeout('FetchForumThreads()', FetchForumThreadTimer);
}

function FetchGalleriImages(settingID) {
	var params = {
		method: 'getgalleryimages',
		setting: settingID
	};

	new Ajax.Request('/section/frontpage/FrontpageAjax.ashx', { parameters: params, onSuccess: FetchGalleriImagesSuccess });
}
function FetchGalleriImagesSuccess(response) {
	//setTimeout('FetchGalleriImages()', FetchGalleriImageTimer);
}

function FetchVideoClips(settingID) {
	var params = {
		method: 'getvideoclips',
		setting: settingID
	};

	new Ajax.Request('/section/frontpage/FrontpageAjax.ashx', { parameters: params, onSuccess: FetchFetchVideoClipsSuccess });
}
function FetchFetchVideoClipsSuccess(response) {
	//setTimeout('FetchVideoClips()', FetchVideoClipTimer);
}
try {
} catch (e) {}
