var gLoop;if(typeof gLoop=='undefined'){gLoop=new Object();gLoop.init=loopInit;gLoop.init();}function loopInit(){this.objects=new Array();this.objectIdx=100;this.addClass=loopAddClass;this.intervalTime=50;this.intervalCall=loopIntervalCall;this.timer=setInterval("gLoop.intervalCall()",this.intervalTime);this.intervalCounter=0;}function loopIntervalCall(){var objIdx,obj;for(objIdx in this.objects){obj=this.objects[objIdx];if(obj.loop)obj.loop();}this.intervalCounter++;}function loopAddClass(cls,pri){if(!pri){pri=this.objectIdx;this.objectIdx+=10;}var obj=this.objects[pri]=new Object();obj.init=window[cls+'Init'];obj.init();}