1/* START Telerik.Sitefinity.Resources.Scripts.jquery.cookie.js */ 2/** 3 * Cookie plugin 4 * 5 * Copyright (c) 2006 Klaus Hartl (stilbuero.de) 6 * Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl.html 9 * 10 */ 11 12/** 13 * Create a cookie with the given name and value and other optional parameters. 14 * 15 * @example $.cookie('the_cookie', 'the_value'); 16 * @desc Set the value of a cookie. 17 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true }); 18 * @desc Create a cookie with all available options. 19 * @example $.cookie('the_cookie', 'the_value'); 20 * @desc Create a session cookie. 21 * @example $.cookie('the_cookie', null); 22 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain 23 * used when the cookie was set. 24 * 25 * @param String name The name of the cookie. 26 * @param String value The value of the cookie. 27 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. 28 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. 29 * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. 30 * If set to null or omitted, the cookie will be a session cookie and will not be retained 31 * when the the browser exits. 32 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). 33 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). 34 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will 35 * require a secure protocol (like HTTPS). 36 * @type undefined 37 * 38 * @name $.cookie 39 * @cat Plugins/Cookie 40 * @author Klaus Hartl/[email protected] 41 */ 42 43/** 44 * Get the value of a cookie with the given name. 45 * 46 * @example $.cookie('the_cookie'); 47 * @desc Get the value of a cookie. 48 * 49 * @param String name The name of the cookie. 50 * @return The value of the cookie. 51 * @type String 52 * 53 * @name $.cookie 54 * @cat Plugins/Cookie 55 * @author Klaus Hartl/[email protected] 56 */ 57jQuery.cookie = function(name, value, options) { 58 if (typeof value != 'undefined') { // name and value given, set cookie 59 options = options || {}; 60 if (value === null) { 61 value = ''; 62 options.expires = -1; 63 } 64 var expires = ''; 65 if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { 66 var date; 67 if (typeof options.expires == 'number') { 68 date = new Date(); 69 date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); 70 } else { 71 date = options.expires; 72 } 73 expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE 74 } 75 // CAUTION: Needed to parenthesize options.path and options.domain 76 // in the following expressions, otherwise they evaluate to undefined 77 // in the packed version for some reason... 78 var path = options.path ? '; path=' + (options.path) : ''; 79 var domain = options.domain ? '; domain=' + (options.domain) : ''; 80 var secure = options.secure ? '; secure' : ''; 81 document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); 82 } else { // only name given, get cookie 83 var cookieValue = null; 84 if (document.cookie && document.cookie != '') { 85 var cookies = document.cookie.split(';'); 86 for (var i = 0; i < cookies.length; i++) { 87 var cookie = jQuery.trim(cookies[i]); 88 // Does this cookie string begin with the name we want? 89 if (cookie.substring(0, name.length + 1) == (name + '=')) { 90 cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); 91 break; 92 } 93 } 94 } 95 return cookieValue; 96 } 97}; 98/* END Telerik.Sitefinity.Resources.Scripts.jquery.cookie.js */ 99/* START Telerik.Sitefinity.Web.SitefinityJS.Telerik.Sitefinity.js */ 100Type.registerNamespace("Telerik.Sitefinity"); 101$sitefinity=Telerik.Sitefinity; 102Telerik.Sitefinity.cloneObject=function(jsObject){if(typeof jsObject=="undefined"||jsObject==null){return jsObject; 103}if(jsObject instanceof Array||typeof jsObject.length=="number"){var clonedArray=[]; 104var elementCopy=null; 105for(var i=0,len=jsObject.length; 106i<len; 107i++){elementCopy=jsObject[i]; 108elementCopy=Telerik.Sitefinity.cloneObject(elementCopy); 109clonedArray.push(elementCopy); 110}return clonedArray; 111}var clone={}; 112for(var memberName in jsObject){var memberValue=jsObject[memberName]; 113clone[memberName]=memberValue instanceof Array?Array.clone(memberValue):memberValue; 114}return clone; 115}; 116Telerik.Sitefinity.compareObjects=function(obj1,obj2){for(var p in obj1){if(obj1.hasOwnProperty(p)!==obj2.hasOwnProperty(p)){return false;
117}if(obj1[p]===null&&obj2[p]!==null){return false; 118}if(obj2[p]===null&&obj1[p]!==null){return false; 119}switch(typeof(obj1[p])){case"object":if(!Telerik.Sitefinity.compareObjects(obj1[p],obj2[p])){return false; 120}break; 121case"function":if(typeof(obj2[p])=="undefined"||(p!="compare"&&obj1[p].toString()!=obj2[p].toString())){return false; 122}break; 123default:if(obj1[p]===""&&obj2[p]!==""){return false; 124}if(obj2[p]===""&&obj1[p]!==""){return false; 125}if(obj1[p]!=obj2[p]){return false; 126}}}for(var p in obj2){if(typeof(obj1[p])=="undefined"){return false; 127}}return true; 128}; 129Telerik.Sitefinity.find=function(arr,callback){for(var i=0; 130i<arr.length; 131i++){var match=callback(arr[i]); 132if(match){return arr[i]; 133break; 134}}}; 135function Telerik$Sitefinity$isBrokenArray(obj){if(obj!=null&&typeof obj=="object"&&!(obj instanceof Array)){var isBrokenArray=typeof obj.length=="number"&&typeof obj.concat=="function"&&typeof obj.join=="function"&&typeof obj.pop=="function"&&typeof obj.push=="function"&&typeof obj.reverse=="function"&&typeof obj.shift=="function"&&typeof obj.slice=="function"&&typeof obj.splice=="function"&&typeof obj.sort=="function"&&typeof obj.toString=="function"&&typeof obj.unshift=="function"&&typeof obj.valueOf=="function"; 136return isBrokenArray; 137}else{return false; 138}}Telerik.Sitefinity.isBrokenArray=Telerik$Sitefinity$isBrokenArray; 139function Telerik$Sitefinity$fixArray(jsArray){if(typeof jsArray!="undefined"&&jsArray!=null){if(jsArray instanceof Array||Array.prototype.isPrototypeOf(jsArray)||jsArray.constructor==Array){return jsArray; 140}else{if(typeof jsArray.length=="number"){try{var copy=[]; 141var len=jsArray.length; 142for(var i=0; 143i<len; 144i++){copy.push(jsArray[i]); 145}return copy; 146}catch(castError){return null; 147}}else{try{var copy=[]; 148for(var propName in jsArray){if(!isNaN(parseInt(propName))){copy.push(jsArray[propName]); 149}}return copy; 150}catch(e){return null; 151}}}}return null; 152}Telerik.Sitefinity.fixArray=Telerik$Sitefinity$fixArray; 153function Telerik$Sitefinity$fixObjectForSerialization(obj){var objType=typeof obj; 154if(obj==null||objType!="object"){return obj; 155}else{if(Telerik$Sitefinity$isBrokenArray(obj)){obj=Telerik$Sitefinity$fixArray(obj); 156}for(var propName in obj){var val=obj[propName]; 157var fixed=Telerik$Sitefinity$fixObjectForSerialization(val); 158obj[propName]=fixed; 159}return obj; 160}}Telerik.Sitefinity.fixObjectForSerialization=Telerik$Sitefinity$fixObjectForSerialization; 161Telerik.Sitefinity.getEmptyGuid=function(){return"00000000-0000-0000-0000-000000000000"; 162}; 163Telerik.Sitefinity.encodeWcfString=function(wcfString){if(typeof(wcfString)==typeof("")&&wcfString!=null&&wcfString.length>0){var encoded=wcfString; 164var encodeMap=Telerik.Sitefinity._Implementation.get_encodeWcfMap(); 165for(var codeSymbol in encodeMap){encoded=encoded.replace(codeSymbol,encodeMap[codeSymbol],"g"); 166}return encoded; 167}else{return""; 168}}; 169Telerik.Sitefinity.decodeWcfString=function(wcfString){if(typeof(wcfString)==typeof("")&&wcfString!=null&&wcfString.length>0){var decoded=wcfString; 170var decodeMap=Telerik.Sitefinity._Implementation.get_decodeWcfMap(); 171for(var decodeSymbol in decodeMap){decoded=decoded.replace(decodeSymbol,decodeMap[decodeSymbol],"g"); 172}return decoded; 173}else{return""; 174}}; 175Telerik.Sitefinity.stripHtml=function(text){var div=document.createElement("div"); 176div.innerHTML="<b>txt</b><br/> another word"; 177var txt=div.textContent; 178delete div; 179return txt; 180}; 181Telerik.Sitefinity.cleanjQueryData=function(domElement){domElement.innerHTML=templateElement.innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""); 182domElement.instantiateIn(itemContainer,null,dataItem); 183}; 184Telerik.Sitefinity.centerWindowHorizontally=function(radWindow,topOffset){var viewPortWidth=$(window).width(); 185var viewPortScrollTop=$(window).scrollTop(); 186var viewPortScrollLeft=$(window).scrollLeft(); 187var windowWidth=radWindow.get_width(); 188var y=parseInt(topOffset||50+viewPortScrollTop); 189var x=parseInt((viewPortWidth-windowWidth)/2)+viewPortScrollLeft; 190radWindow.moveTo(x,y); 191}; 192Telerik.Sitefinity.setUrlParameter=function(url,parameterName,parameterValue){if((url==null)||(url.length==0)){url=document.location.href; 193}var urlParts=url.split("?"); 194var newQueryString=""; 195var parameterNameLower=parameterName.toLowerCase(); 196if(urlParts.length>1){var parameters=urlParts[1].split("&"); 197for(var i=0,length=parameters.length; 198i<length; 199i++){var parameterParts=parameters[i].split("="); 200if(parameterParts[0].toLowerCase()!=parameterNameLower){if(newQueryString==""){newQueryString="?"; 201}else{newQueryString+="&"; 202}newQueryString+=parameterParts[0]+"="+parameterParts[1]; 203}}}if(newQueryString==""){newQueryString="?"; 204}else{newQueryString+="&"; 205}newQueryString+=parameterName+"="+parameterValue; 206return urlParts[0]+newQueryString; 207}; 208Telerik.Sitefinity.setPropertyValueInCookie=function(cookieKey,property,value){if(jQuery&&typeof(jQuery.cookie)==="function"){var cookieValue=jQuery.cookie(cookieKey); 209var properties=[]; 210var hasPropertyValue=false; 211if(cookieValue!=null){properties=Telerik.Sitefinity.JSON.parse(cookieValue); 212for(var i=0; 213i<properties.length; 214i++){if(properties[i].Key==property){properties[i].Value=value; 215hasPropertyValue=true; 216}}}if(!hasPropertyValue){var propertyObject={}; 217propertyObject.Key=property; 218propertyObject.Value=value; 219properties.push(propertyObject); 220}jQuery.cookie(cookieKey,Telerik.Sitefinity.JSON.stringify(properties),{expires:2020}); 221}else{throw new Error("jQuery.cookie library is not loaded!"); 222}}; 223if(!this.Telerik.Sitefinity.JSON){this.Telerik.Sitefinity.JSON={}; 224}(function(){function f(n){return n<10?"0"+n:n; 225}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null; 226}; 227String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf(); 228}; 229}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep; 230function quote(string){escapable.lastIndex=0; 231return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];
232return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4); 233})+'"':'"'+string+'"'; 234}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key]; 235if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key); 236}if(typeof rep==="function"){value=rep.call(holder,key,value); 237}switch(typeof value){case"string":return quote(value); 238case"number":return isFinite(value)?String(value):"null"; 239case"boolean":case"null":return String(value); 240case"object":if(!value){return"null"; 241}gap+=indent; 242partial=[]; 243if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length; 244for(i=0; 245i<length; 246i+=1){partial[i]=str(i,value)||"null"; 247}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]"; 248gap=mind; 249return v; 250}if(rep&&typeof rep==="object"){length=rep.length; 251for(i=0; 252i<length; 253i+=1){k=rep[i]; 254if(typeof k==="string"){v=str(k,value); 255if(v){partial.push(quote(k)+(gap?": ":":")+v); 256}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value); 257if(v){partial.push(quote(k)+(gap?": ":":")+v); 258}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}"; 259gap=mind; 260return v; 261}}if(typeof Telerik.Sitefinity.JSON.stringify!=="function"){Telerik.Sitefinity.JSON.stringify=function(value,replacer,space){var i; 262gap=""; 263indent=""; 264if(typeof space==="number"){for(i=0; 265i<space; 266i+=1){indent+=" "; 267}}else{if(typeof space==="string"){indent=space; 268}}rep=replacer; 269if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify"); 270}return str("",{"":value}); 271}; 272}if(typeof Telerik.Sitefinity.JSON.parse!=="function"){Telerik.Sitefinity.JSON.parse=function(text,reviver){var j; 273function walk(holder,key){var k,v,value=holder[key]; 274if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k); 275if(v!==undefined){value[k]=v; 276}else{delete value[k]; 277}}}}return reviver.call(holder,key,value); 278}text=String(text); 279cx.lastIndex=0; 280if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCo
280deAt(0).toString(16)).slice(-4); 281}); 282}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")"); 283return typeof reviver==="function"?walk({"":j},""):j; 284}throw new SyntaxError("JSON.parse"); 285}; 286}}()); 287Telerik.Sitefinity.CommandEventArgs=function(commandName,commandArgument,contextBag){this._commandName=commandName; 288this._commandArgument=commandArgument; 289this._contextBag=contextBag; 290this._cancel=null; 291Telerik.Sitefinity.CommandEventArgs.initializeBase(this); 292}; 293Telerik.Sitefinity.CommandEventArgs.prototype={initialize:function(){Telerik.Sitefinity.CommandEventArgs.callBaseMethod(this,"initialize"); 294},dispose:function(){Telerik.Sitefinity.CommandEventArgs.callBaseMethod(this,"dispose"); 295},get_commandName:function(){return this._commandName; 296},get_commandArgument:function(){return this._commandArgument; 297},get_contextBag:function(){return this._contextBag; 298},get_cancel:function(){return this._cancel; 299},set_cancel:function(value){this._cancel=value; 300}}; 301Telerik.Sitefinity.CommandEventArgs.registerClass("Telerik.Sitefinity.CommandEventArgs",Sys.CancelEventArgs); 302Telerik.Sitefinity.WorkflowDialogClosedEventArgs=function(commandName,operationName,contextBag,executeCommandOnClose){this._commandName=commandName; 303this._operationName=operationName; 304this._contextBag=contextBag; 305this._executeCommandOnClose=executeCommandOnClose; 306this._cancel=null; 307Telerik.Sitefinity.WorkflowDialogClosedEventArgs.initializeBase(this); 308}; 309Telerik.Sitefinity.WorkflowDialogClosedEventArgs.prototype={initialize:function(){Telerik.Sitefinity.WorkflowDialogClosedEventArgs.callBaseMethod(this,"initialize"); 310},dispose:function(){Telerik.Sitefinity.WorkflowDialogClosedEventArgs.callBaseMethod(this,"dispose"); 311},get_commandName:function(){return this._commandName; 312},get_operationName:function(){return this._operationName; 313},get_contextBag:function(){return this._contextBag; 314},get_executeCommandOnClose:function(){return this._executeCommandOnClose; 315},get_cancel:function(){return this._cancel; 316},set_cancel:function(value){this._cancel=value; 317}}; 318Telerik.Sitefinity.WorkflowDialogClosedEventArgs.registerClass("Telerik.Sitefinity.WorkflowDialogClosedEventArgs",Sys.CancelEventArgs); 319Telerik.Sitefinity.PreventCommandEventArgs=function(commandName,commandArgument){Telerik.Sitefinity.PreventCommandEventArgs.initializeBase(this); 320this._cancel=false; 321}; 322Telerik.Sitefinity.PreventCommandEventArgs.prototype={get_cancel:function(){return this._cancel; 323},set_cancel:function(value){this._cancel=value; 324}}; 325Telerik.Sitefinity.PreventCommandEventArgs.registerClass("Telerik.Sitefinity.PreventCommandEventArgs",Telerik.Sitefinity.CommandEventArgs); 326Telerik.Sitefinity.DialogClosedEventArgs=function(isCreated,isUpdated,dataItem,context){this._isCreated=isCreated; 327this._isUpdated=isUpdated; 328this._dataItem=dataItem; 329this._context=null; 330if(context){this._context=context; 331}Telerik.Sitefinity.DialogClosedEventArgs.initializeBase(this); 332}; 333Telerik.Sitefinity.DialogClosedEventArgs.prototype={initialize:function(){Telerik.Sitefinity.DialogClosedEventArgs.callBaseMethod(this,"initialize"); 334},dispose:function(){Telerik.Sitefinity.DialogClosedEventArgs.callBaseMethod(this,"dispose"); 335},get_isCreated:function(){return this._isCreated; 336},get_isUpdated:function(){return this._isUpdated; 337},get_dataItem:function(){return this._dataItem; 338},get_context:function(){return this._context; 339}}; 340Telerik.Sitefinity.DialogClosedEventArgs.registerClass("Telerik.Sitefinity.DialogClosedEventArgs",Sys.CancelEventArgs); 341Telerik.Sitefinity.FormCreatedEventArgs=function(isNew,dataKey,dataItem,commandName,params,context,commandArgument){this._isNew=isNew; 342this._dataKey=dataKey; 343this._dataItem=dataItem; 344this._commandName=commandName; 345this._params=params; 346this._context=null; 347if(context){this._context=context; 348}this._commandArgument=commandArgument; 349Telerik.Sitefinity.FormCreatedEventArgs.initializeBase(this); 350}; 351Telerik.Sitefinity.FormCreatedEventArgs.prototype={initialize:function(){Telerik.Sitefinity.FormCreatedEventArgs.callBaseMethod(this,"initialize"); 352},dispose:function(){Telerik.Sitefinity.FormCreatedEventArgs.callBaseMethod(this,"dispose"); 353},get_isNew:function(){return this._isNew; 354},get_dataKey:function(){return this._dataKey; 355},get_dataItem:function(){return this._dataItem; 356},get_commandName:function(){return this._commandName; 357},get_params:function(){return this._params; 358},get_context:function(){return this._context; 359},get_commandArgument:function(){return this._commandArgument; 360}}; 361Telerik.Sitefinity.FormCreatedEventArgs.registerClass("Telerik.Sitefinity.FormCreatedEventArgs",Sys.EventArgs); 362Telerik.Sitefinity.FormClosingEventArgs=function(isNew,isDirty,dataItem,context,commandArgument,commandName){this._isNew=isNew; 363this._isDirty=isDirty; 364this._dataItem=dataItem; 365this._context=context; 366this._commandArgument=commandArgument; 367this._commandName=commandName; 368Telerik.Sitefinity.FormClosingEventArgs.initializeBase(this); 369}; 370Telerik.Sitefinity.FormClosingEventArgs.prototype={initialize:function(){Telerik.Sitefinity.FormClosingEventArgs.callBaseMethod(this,"initialize"); 371},dispose:function(){Telerik.Sitefinity.FormClosingEventArgs.callBaseMethod(this,"dispose"); 372},get_isNew:function(){return this._isNew; 373},get_isDirty:function(){return this._isDirty; 374},get_dataItem:function(){return this._dataItem; 375},get_context:function(){return this._context; 376},get_commandArgument:function(){return this._commandArgument; 377},get_commandName:function(){return this._commandName; 378}}; 379Telerik.Sitefinity.FormClosingEventArgs.registerClass("Telerik.Sitefinity.FormClosingEventArgs",Sys.CancelEventArgs); 380String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,""); 381}; 382String.prototype.ltrim=function(){return this.replace(/^\s+/,""); 383}; 384String.prototype.rtrim=function(){return this.replace(/\s+$/,""); 385}; 386String.prototype.utf8Encode=function(){return unescape(encodeURIComponent(this)); 387}; 388String.prototype.utf8Decode=function(){var res=""; 389try{res=decodeURIComponent(escape(this)); 390}catch(err){res=decodeURIComponent(this); 391}return res; 392}; 393String.prototype.base64Encode=function(){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
393+/="; 394var output=""; 395var chr1,chr2,chr3,enc1,enc2,enc3,enc4; 396var i=0; 397input=this.utf8Encode(); 398while(i<this.length){chr1=this.charCodeAt(i++); 399chr2=this.charCodeAt(i++); 400chr3=this.charCodeAt(i++); 401enc1=chr1>>2; 402enc2=((chr1&3)<<4)|(chr2>>4); 403enc3=((chr2&15)<<2)|(chr3>>6); 404enc4=chr3&63; 405if(isNaN(chr2)){enc3=enc4=64; 406}else{if(isNaN(chr3)){enc4=64; 407}}output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4); 408}return output; 409}; 410String.prototype.htmlEncode=function(){var encoded="",div=document.createElement("div"); 411div.innerText=this; 412encoded=div.innerHTML; 413delete div; 414return encoded; 415}; 416Type.registerNamespace("Telerik.Sitefinity._Implementation"); 417Telerik.Sitefinity._Implementation.get_encodeWcfMap=function(){var encodeMap=new Array(); 418encodeMap["."]="__dot__"; 419encodeMap["]"]="__rsb__"; 420encodeMap["["]="__lsb__"; 421encodeMap["}"]="__rcb__"; 422encodeMap["{"]="__lcb__"; 423encodeMap["`"]="__gr__"; 424encodeMap[","]="__cm__"; 425encodeMap[" "]="__sp__"; 426encodeMap["="]="__eq__"; 427encodeMap["#"]="__pd__"; 428encodeMap["?"]="__qm__"; 429encodeMap[":"]="__cl__"; 430return encodeMap; 431}; 432Telerik.Sitefinity._Implementation.get_decodeWcfMap=function(){var encodeMap=get_encodeWcfMap(); 433var decodeMap=new Array(); 434for(var codeEntry in encodeMap){decodeMap[encodeMap[codeEntry]]=codeEntry; 435}return decodeMap; 436}; 437if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt){var len=this.length; 438var from=Number(arguments[1])||0; 439from=(from<0)?Math.ceil(from):Math.floor(from); 440if(from<0){from+=len; 441}for(; 442from<len; 443from++){if(from in this&&this[from]===elt){return from; 444}}return -1; 445}; 446}if(typeof jQuery!=="undefined"){jQuery(document).ready(function(){if(Telerik&&Telerik.Web&&Telerik.Web.UI&&Telerik.Web.UI.RadWindowManager){Telerik.Web.UI.RadWindowManager.prototype._ensureFirstManagerIsRegistered=function(){}; 447}}); 448}if(typeof jQuery!=="undefined"){jQuery(document).ready(function(){if(typeof(jQuery.cookie)==="function"){jQuery.cookie("sf_timezoneoffset",new Date().getTimezoneOffset(),{path:"/"}); 449}}); 450} 451/* END Telerik.Sitefinity.Web.SitefinityJS.Telerik.Sitefinity.js */ 452/* START Telerik.Sitefinity.Web.SitefinityJS.Utility.Querystring.js */ 453Type.registerNamespace("Telerik.Sitefinity.Web.SitefinityJS.Utility"); 454Telerik.Sitefinity.Web.SitefinityJS.Utility.Querystring=function(qs){this.params={}; 455this.keys=new Array(); 456if(qs==null){qs=location.search.substring(1,location.search.length); 457}if(qs.length==0){return; 458}qs=qs.replace(/\+/g," "); 459var args=qs.split("&"); 460for(var i=0; 461i<args.length; 462i++){var pair=args[i].split("="); 463var name=decodeURIComponent(pair[0]).toLowerCase(); 464var value=(pair.length==2)?decodeURIComponent(pair[1]):name; 465this.params[name]=value; 466this.keys[i]=name; 467}}; 468Telerik.Sitefinity.Web.SitefinityJS.Utility.Querystring.prototype={get:function(key,default_){var value=this.params[key.toLowerCase()]; 469return(value!=null)?value:default_; 470},contains:function(key){var value=this.params[key.toLowerCase()]; 471return(value!=null); 472},set:function(key,value){var lowerKey=key.toLowerCase(); 473if(this.keys.indexOf(lowerKey)==-1){this.keys.push(lowerKey); 474}this.params[lowerKey]=value; 475},toString:function(appendQuestionMark){if(this.keys.length>0){var query=appendQuestionMark?"?":""; 476for(var i=0; 477i<this.keys.length; 478i++){if(i>0){query+="&"; 479}query+=this.keys[i]+"="+this.params[this.keys[i]]; 480}return query; 481}return""; 482}}; 483 484/* END Telerik.Sitefinity.Web.SitefinityJS.Utility.Querystring.js */ 485/* START Schaeffer.SitefinityContent.Widgets.Resources.AdUnitWidget.js */ 486Type.registerNamespace("Schaeffer.SitefinityContent.Widgets"); 487 488Schaeffer.SitefinityContent.Widgets.AdUnitWidget = function (element) { 489 Schaeffer.SitefinityContent.Widgets.AdUnitWidget.initializeBase(this, [element]); 490} 491 492Schaeffer.SitefinityContent.Widgets.AdUnitWidget.prototype = { 493 /* --------------------------------- set up and tear down ---------------------------- */ 494 495 /* --------------------------------- public methods ---------------------------------- */ 496 497 /* --------------------------------- event handlers ---------------------------------- */ 498 499 /* --------------------------------- private methods --------------------------------- */ 500 501 /* --------------------------------- properties -------------------------------------- */ 502} 503 504Schaeffer.SitefinityContent.Widgets.AdUnitWidget.registerClass('Schaeffer.SitefinityContent.Widgets.AdUnitWidget', Sys.UI.Control); 505 506/* END Schaeffer.SitefinityContent.Widgets.Resources.AdUnitWidget.js */
507if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded(); 508(function() { 509 function loadHandler() { 510 var hf = window.__TsmHiddenField; 511 if (!hf) return; 512 if (!hf._RSM_init) { hf._RSM_init = true; hf.value = ''; } 513 hf.value += ';;Telerik.Sitefinity.Resources:en-US:ea11286e-21a5-4d6f-83a5-dfb54e16845f:83eb063b;Telerik.Sitefinity:en-US:dac00124-4408-4b8a-909a-788c3d3e0bcf:993d8e92:5b182b17;Schaeffer.SitefinityContent.Widgets, Version=4.0.0.15, Culture=neutral, PublicKeyToken=null:en-US:bf94082b-f41b-45d7-8c9e-9fd7437dcb60:754dc566'; 514 Sys.Application.remove_load(loadHandler); 515 }; 516 Sys.Application.add_load(loadHandler); 517})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.