var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); // cached javascript var ajax = { GetGameMouseOver:function(gameId,boxArt,div,callback,context){return new ajax_request(this.url + '?_method=GetGameMouseOver&_session=no','gameId=' + enc(gameId)+ '\r\nboxArt=' + enc(boxArt)+ '\r\ndiv=' + enc(div),callback, context);}, AddToWishList:function(gameID,callback,context){return new ajax_request(this.url + '?_method=AddToWishList&_session=no','gameID=' + enc(gameID),callback, context);}, AddToCollectionsList:function(gameID,callback,context){return new ajax_request(this.url + '?_method=AddToCollectionsList&_session=no','gameID=' + enc(gameID),callback, context);}, RemoveItemFromList:function(listItemID,listID,callback,context){return new ajax_request(this.url + '?_method=RemoveItemFromList&_session=no','listItemID=' + enc(listItemID)+ '\r\nlistID=' + enc(listID),callback, context);}, UpdateListDateChanged:function(listID,callback,context){return new ajax_request(this.url + '?_method=UpdateListDateChanged&_session=no','listID=' + enc(listID),callback, context);}, MoveFromWishListToCollectionList:function(gameID,itemType,listID,listItemID,callback,context){return new ajax_request(this.url + '?_method=MoveFromWishListToCollectionList&_session=no','gameID=' + enc(gameID)+ '\r\nitemType=' + enc(itemType)+ '\r\nlistID=' + enc(listID)+ '\r\nlistItemID=' + enc(listItemID),callback, context);}, MoveToCollectionList:function(gameid,callback,context){return new ajax_request(this.url + '?_method=MoveToCollectionList&_session=no','gameid=' + enc(gameid),callback, context);}, UpdateItemPriority:function(itemidlist,callback,context){return new ajax_request(this.url + '?_method=UpdateItemPriority&_session=no','itemidlist=' + json_from_object(itemidlist),callback, context);}, AddToWishListFromSearch:function(gameProductId,callback,context){return new ajax_request(this.url + '?_method=AddToWishListFromSearch&_session=no','gameProductId=' + enc(gameProductId),callback, context);}, AddToCollectionListFromSearch:function(gameProductId,callback,context){return new ajax_request(this.url + '?_method=AddToCollectionListFromSearch&_session=no','gameProductId=' + enc(gameProductId),callback, context);}, EmailList:function(listtype,emailid,callback,context){return new ajax_request(this.url + '?_method=EmailList&_session=no','listtype=' + enc(listtype)+ '\r\nemailid=' + enc(emailid),callback, context);}, GetGameSearchResults:function(pageno,searchterm,callback,context){return new ajax_request(this.url + '?_method=GetGameSearchResults&_session=no','pageno=' + enc(pageno)+ '\r\nsearchterm=' + enc(searchterm),callback, context);}, RecordVeEvent:function(veEvent,numberNewTiles,callback,context){return new ajax_request(this.url + '?_method=RecordVeEvent&_session=no','veEvent=' + enc(veEvent)+ '\r\nnumberNewTiles=' + enc(numberNewTiles),callback, context);}, SupportAjax:function(timeout,callback,context){return new ajax_request(this.url + '?_method=SupportAjax&_session=no','timeout=' + enc(timeout),callback, context);}, LookupAddress:function(singleLine,address,city,state,zip,timeOutVar,whatWeAreLookingUp,callback,context){return new ajax_request(this.url + '?_method=LookupAddress&_session=no','singleLine=' + enc(singleLine)+ '\r\naddress=' + enc(address)+ '\r\ncity=' + enc(city)+ '\r\nstate=' + enc(state)+ '\r\nzip=' + enc(zip)+ '\r\ntimeOutVar=' + enc(timeOutVar)+ '\r\nwhatWeAreLookingUp=' + enc(whatWeAreLookingUp),callback, context);}, FindStores:function(latitude,longitude,timeOutVar,callback,context){return new ajax_request(this.url + '?_method=FindStores&_session=no','latitude=' + enc(latitude)+ '\r\nlongitude=' + enc(longitude)+ '\r\ntimeOutVar=' + enc(timeOutVar),callback, context);}, GetDrivingDirections:function(startLat,startLong,endLat,endLong,timeOutVar,callback,context){return new ajax_request(this.url + '?_method=GetDrivingDirections&_session=no','startLat=' + enc(startLat)+ '\r\nstartLong=' + enc(startLong)+ '\r\nendLat=' + enc(endLat)+ '\r\nendLong=' + enc(endLong)+ '\r\ntimeOutVar=' + enc(timeOutVar),callback, context);}, UpdateUserProfile:function(key,val,callback,context){return new ajax_request(this.url + '?_method=UpdateUserProfile&_session=no','key=' + enc(key)+ '\r\nval=' + enc(val),callback, context);}, UpdateUserPreferences:function(key,val,onoff,callback,context){return new ajax_request(this.url + '?_method=UpdateUserPreferences&_session=no','key=' + enc(key)+ '\r\nval=' + enc(val)+ '\r\nonoff=' + enc(onoff),callback, context);}, url:'/ajax/Gamecrazy.Web.Classes.ajax,Gamecrazy.Web.ashx' } function HtmlControl(id) { var ele = null; if(typeof(id) == 'object') ele = id; else ele = document.getElementById(id); if(ele == null) return null; var _o = ele.cloneNode(true); var _op = document.createElement('SPAN'); _op.appendChild(_o); this._source = _op.innerHTML; } HtmlControl.prototype.toString = function(){ return this._source; } function HtmlControlUpdate(func, parentId) { var f,i,ff,fa=''; var ele = document.getElementById(parentId); if(ele == null) return; var args = []; for(i=0; i 2) for(i=2; i9999||year<1970||month<1||month>12||day<0||day>31||hours<0||hours>23||minutes<0||minutes>59||seconds<0||seconds>59)throw("ArgumentException");this.Year = year;this.Month = month;this.Day = day;this.Hours = hours;this.Minutes = minutes;this.Seconds = seconds;} DateTime.prototype.toString = function(){return digi(this.Year,4) + digi(this.Month,2) + digi(this.Day,2) + digi(this.Hours,2) + digi(this.Minutes,2) + digi(this.Seconds,2);} function TimeSpan(){this.Days=0;this.Hours=0;this.Minutes=0;this.Seconds=0;this.Milliseconds=0;} TimeSpan.prototype.toString = function(){return this.Days+'.'+this.Hours+':'+this.Minutes+':'+this.Seconds+'.'+this.Milliseconds;} function AjaxImage(url){var img=new Image();img.src=url;return img;} function _getTable(n,e){for(var i=0; i