﻿var Class = {
  create: function() {
    return function() {
      this.initialize.apply(this, arguments);
    }
  }
}

var AnswersHighlight = Class.create();

AnswersHighlight.prototype = 
{
	initialize: function()
	{
		var url = rootUrl + '/Misc/GetAnswers.ashx';

		new Ajax.Request(url, {
		  method: 'get',
		  onSuccess: function(transport) 
		  {

			var linkIds = transport.responseText.split(';');
			for(var i = 0; i < linkIds.length; i++)
			{
				var o = $(linkIds[i]);
				if(o != null)
				{
					o.className = 'highliteLink';
				}
			}
		  }
		});
	}
};

