// cached javascript var StylesheetModifier = { SaveClickInfoInSession:function(headerId,category,callback,context){return new ajax_request(this.url + '?_method=SaveClickInfoInSession&_session=rw','headerId=' + enc(headerId)+ '\r\ncategory=' + enc(category),callback, context);}, GetClickedHeaderIdFromSession:function(callback,context){return new ajax_request(this.url + '?_method=GetClickedHeaderIdFromSession&_session=rw','',callback, context);}, GetClickedCategoryFromSession:function(callback,context){return new ajax_request(this.url + '?_method=GetClickedCategoryFromSession&_session=rw','',callback, context);}, GetCssClasses:function(PaletteIdStr,callback,context){return new ajax_request(this.url + '?_method=GetCssClasses&_session=rw','PaletteIdStr=' + enc(PaletteIdStr),callback, context);}, GetCurrentPaletteInfo:function(themeId,callback,context){return new ajax_request(this.url + '?_method=GetCurrentPaletteInfo&_session=rw','themeId=' + enc(themeId),callback, context);}, GetAvailableFonts:function(callback,context){return new ajax_request(this.url + '?_method=GetAvailableFonts&_session=rw','',callback, context);}, GetAvailableBgImage:function(paletteId,callback,context){return new ajax_request(this.url + '?_method=GetAvailableBgImage&_session=rw','paletteId=' + enc(paletteId),callback, context);}, GetCssClassesTheme:function(callback,context){return new ajax_request(this.url + '?_method=GetCssClassesTheme&_session=rw','',callback, context);}, GetThemeIdFromSiteId:function(siteId,callback,context){return new ajax_request(this.url + '?_method=GetThemeIdFromSiteId&_session=rw','siteId=' + enc(siteId),callback, context);}, GetJSONString:function(JSONStrArg,callback,context){return new ajax_request(this.url + '?_method=GetJSONString&_session=rw','JSONStrArg=' + enc(JSONStrArg),callback, context);}, SaveThemeInDB:function(themeName,pOColl,themeId,callback,context){return new ajax_request(this.url + '?_method=SaveThemeInDB&_session=rw','themeName=' + enc(themeName)+ '\r\npOColl=' + enc(pOColl)+ '\r\nthemeId=' + enc(themeId),callback, context);}, SaveSystemColorInDb:function(systemColor,callback,context){return new ajax_request(this.url + '?_method=SaveSystemColorInDb&_session=rw','systemColor=' + enc(systemColor),callback, context);}, ConvertToPaletteObjectList:function(themeID,callback,context){return new ajax_request(this.url + '?_method=ConvertToPaletteObjectList&_session=rw','themeID=' + enc(themeID),callback, context);}, RemoveTheme:function(themeId,themeName,callback,context){return new ajax_request(this.url + '?_method=RemoveTheme&_session=rw','themeId=' + enc(themeId)+ '\r\nthemeName=' + enc(themeName),callback, context);}, PublishTheme:function(themeId,callback,context){return new ajax_request(this.url + '?_method=PublishTheme&_session=rw','themeId=' + enc(themeId),callback, context);}, CheckIfSystemPalette:function(paletteKeyId,callback,context){return new ajax_request(this.url + '?_method=CheckIfSystemPalette&_session=rw','paletteKeyId=' + enc(paletteKeyId),callback, context);}, SaveGradient:function(gradientStr,callback,context){return new ajax_request(this.url + '?_method=SaveGradient&_session=rw','gradientStr=' + enc(gradientStr),callback, context);}, SaveFonts:function(fontStr,callback,context){return new ajax_request(this.url + '?_method=SaveFonts&_session=rw','fontStr=' + enc(fontStr),callback, context);}, CheckIfNavigationHover:function(cssClass,callback,context){return new ajax_request(this.url + '?_method=CheckIfNavigationHover&_session=rw','cssClass=' + enc(cssClass),callback, context);}, CheckIfFooter:function(cssClass,callback,context){return new ajax_request(this.url + '?_method=CheckIfFooter&_session=rw','cssClass=' + enc(cssClass),callback, context);}, RemoveCssFiles:function(themeName,callback,context){return new ajax_request(this.url + '?_method=RemoveCssFiles&_session=rw','themeName=' + enc(themeName),callback, context);}, SaveCssFiles:function(themeId,themeName,pOColl,callback,context){return new ajax_request(this.url + '?_method=SaveCssFiles&_session=rw','themeId=' + enc(themeId)+ '\r\nthemeName=' + enc(themeName)+ '\r\npOColl=' + enc(pOColl),callback, context);}, CheckIfSiteBackgroundImageExists:function(imagePath,callback,context){return new ajax_request(this.url + '?_method=CheckIfSiteBackgroundImageExists&_session=rw','imagePath=' + enc(imagePath),callback, context);}, LoadAvailableImagesNameInDropDownList:function(callback,context){return new ajax_request(this.url + '?_method=LoadAvailableImagesNameInDropDownList&_session=rw','',callback, context);}, InsertUpdateBackgroundImageInDB:function(imageName,imagePath,repeat,paletteId,isDefault,callback,context){return new ajax_request(this.url + '?_method=InsertUpdateBackgroundImageInDB&_session=rw','imageName=' + enc(imageName)+ '\r\nimagePath=' + enc(imagePath)+ '\r\nrepeat=' + enc(repeat)+ '\r\npaletteId=' + enc(paletteId)+ '\r\nisDefault=' + enc(isDefault),callback, context);}, GetBgImageInfo:function(BgImageIdStr,callback,context){return new ajax_request(this.url + '?_method=GetBgImageInfo&_session=rw','BgImageIdStr=' + enc(BgImageIdStr),callback, context);}, GetDefaultBgImageInfoFromPaletteId:function(PaletteId,callback,context){return new ajax_request(this.url + '?_method=GetDefaultBgImageInfoFromPaletteId&_session=rw','PaletteId=' + enc(PaletteId),callback, context);}, RemoveBgImageInfo:function(BgImageIdStr,callback,context){return new ajax_request(this.url + '?_method=RemoveBgImageInfo&_session=rw','BgImageIdStr=' + enc(BgImageIdStr),callback, context);}, DeleteBgImage:function(BgImageIdsToBeDeleted,callback,context){return new ajax_request(this.url + '?_method=DeleteBgImage&_session=rw','BgImageIdsToBeDeleted=' + enc(BgImageIdsToBeDeleted),callback, context);}, SetBgImgForPalette:function(BgImageIdStr,paletteIdStr,Repeat,isDefault,callback,context){return new ajax_request(this.url + '?_method=SetBgImgForPalette&_session=rw','BgImageIdStr=' + enc(BgImageIdStr)+ '\r\npaletteIdStr=' + enc(paletteIdStr)+ '\r\nRepeat=' + enc(Repeat)+ '\r\nisDefault=' + enc(isDefault),callback, context);}, GetImageHeight:function(absoluteUrl,keyWord,callback,context){return new ajax_request(this.url + '?_method=GetImageHeight&_session=rw','absoluteUrl=' + enc(absoluteUrl)+ '\r\nkeyWord=' + enc(keyWord),callback, context);}, GetSnakePath:function(AbsPath,firstFolder,callback,context){return new ajax_request(this.url + '?_method=GetSnakePath&_session=rw','AbsPath=' + enc(AbsPath)+ '\r\nfirstFolder=' + enc(firstFolder),callback, context);}, url:'/ajax/WebSearch.CMS.Design.StylesheetModifier,WebSearch.CMS.Design.ashx' } function AjaxImage(url){var img=new Image();img.src=url;return img;} function digi(v, c){v = v + "";var n = "0000";if(v.length < c) return n.substr(0, c-v.length) + v;return v;} function DateTime(year,month,day,hours,minutes,seconds){if(year>9999||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 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; i