﻿
$(document).ready(function() {
   
    setTimeout("AjaxCallMentors()",15000); 
  
 });


function AjaxCallMentors()
{
     var data = Math.random()+"&count=4&loc=base"
      
      $.ajax({
                   type: "GET",
                   url: "/publisha.templates/randommentors.aspx",
                   datatype:'html',
                   data: data,
                   async: false,
                   success: function(msg){
                        
                      
                      if (msg.length > 11 )
                      {
                       $('#MasterMentorControl').html(msg);
                      }
                        
                      setTimeout("AjaxCallMentors()",15000);            

                   },
                   error: function(msg){
                        document.write("<!-- an error occured with adserver : " +msg+"-->");
                   }
                   
              });
}
