1 
  2 /**
  3  * @description static item on the page
  4  * @field
  5  */
  6 var sntEventsHolderObj = new SntEventsHolder();
  7 window.sntEventsHolder = sntEventsHolderObj;
  8 
  9 
 10 /**
 11  * @function
 12  * @description Getting instance of EventsHolder obj
 13  * @returns and SntEventsHolder object stored in window
 14  */
 15 function getSntHolderInstance(){
 16 	return window.sntEventsHolder;
 17 }
 18 
 19 /**
 20  * @function
 21  * @description Get Element By Id (getElementById() internal method) or null. Created for short writing
 22  * @returns DOM elemnt or null
 23  */
 24 function $$(id){
 25 	return document.getElementById(id) || null;
 26 }
 27 
 28 window.getSntHolderInstance = getSntHolderInstance;
 29 /**
 30  * @function
 31  * @description Receive message from any Player engine on the page
 32  * @param command It's Event ID from list of players engine events
 33  * @param player Player ID
 34  * @param args Array with data
 35  */
 36 function sntReceiveMessage(command, player, args){	
 37 	window.sntEventsHolder.receiveMessage(command, player, args);
 38 }
 39 
 40