PageRenderTime 209ms queryTime 24ms sortTime 0ms getByIdsTime 45ms findMatchingLines 30ms

100+ results results for 'encodeURIComponent' (209 ms)

Not the results you expected?
rangy-serializer.js http://rangy.googlecode.com/svn/trunk/ | JavaScript | 302 lines
                    
19
                    
20    // encodeURIComponent and decodeURIComponent are required for cookie handling
                    
21    if (typeof encodeURIComponent == UNDEF || typeof decodeURIComponent == UNDEF) {
                    
21    if (typeof encodeURIComponent == UNDEF || typeof decodeURIComponent == UNDEF) {
                    
22        module.fail("Global object is missing encodeURIComponent and/or decodeURIComponent method");
                    
23    }
                    
281        var serialized = serializeSelection(api.getSelection(win));
                    
282        win.document.cookie = encodeURIComponent(cookieName) + "=" + encodeURIComponent(serialized) + expires + path + domain + secure;
                    
283    }
                    
                
get_message_maps.js https://bitbucket.org/scope/dragonfly-stp-1/ | JavaScript | 397 lines
                    
302  var pp_map = this._pretty_print_object('', map, 0, ['message map =']);
                    
303  window.open("data:text/plain," + encodeURIComponent(pp_map.join('\n')));
                    
304};
                    
                
bookmarklets.js http://griflet.googlecode.com/svn/trunk/ | JavaScript | 47 lines
                    
3        d=document.getSelection();
                    
4        if (!d) d=encodeURIComponent(document.title);
                    
5        t=prompt('Tags:');
                    
27
                    
28k='PUT_YOUR_KEY_HERE';s=document.getSelection();t=document.title;if (!s) s=encodeURIComponent(t);
                    
29
                    
                
main.js http://cfbbs.googlecode.com/svn/trunk/ | JavaScript | 199 lines
                    
13	this.de=function(o,t,h){if (o.removeEventListener){o.removeEventListener(t,h,false);}else if(o.detachEvent){o.detachEvent('on'+t,h);}else{try{o['on'+t]=null;}catch(e){;}}};
                    
14	this.setC=function(n, v){var c=n+"="+encodeURIComponent(v);document.cookie=c;};
                    
15	this.readC=function(n){var re=eval("/(?:;)?"+n+"=([^;]*);?/g");return re.test(document.cookie)?decodeURIComponent(RegExp.$1):null;};
                    
                
export-ui.js http://jsi.googlecode.com/svn/trunk/ | JavaScript | 351 lines
                    
115	        if(window.ActiveXObject){//??ie8
                    
116	        	zip = encodeURIComponent(zip);
                    
117	        	window.open($JSI.scriptBase+'?service=data&data='+zip,resultDialogName)//resultDialogName
                    
                
chat.js http://webchat2.googlecode.com/svn/trunk/ | JavaScript | 407 lines
                    
92	message: function(msg) {
                    
93		new Ajax.Request('/message?key='+chat.key+'&msg='+encodeURIComponent(msg)+'&channel='+encodeURIComponent(chat.current), { asynchronous : true, method : 'get'});
                    
94	},
                    
                
card.js http://orcish.googlecode.com/svn/trunk/ | JavaScript | 336 lines
                    
12        prices.show();
                    
13        priceLinks.attr('href', 'tcg://' + encodeURIComponent(price.tcgId));
                    
14        lowPrice.text('$' + price.low);
                    
43                
                    
44        gathererLink.attr('href', 'gatherer://' + encodeURIComponent(card.gathererId));
                    
45        
                    
74            if(card.type == 'Scheme' || isPlane) {
                    
75                imageURL = 'http://gatherer.wizards.com/Handlers/Image.ashx?type=card&multiverseid=' + encodeURIComponent(card.gathererId);
                    
76            }
                    
77            else {
                    
78                imageURL = 'http://magiccards.info/scans/en/' + card.setShortName.toLowerCase() + '/' + encodeURIComponent(card.infoId) + '.jpg';
                    
79            }
                    
242function nsLog(text) {
                    
243    setTimeout(function() { document.location = 'nslog://device/?' + encodeURIComponent(text); }, 1);
                    
244}
                    
                
LJInstantComment.js http://livejournal-extension.googlecode.com/svn/trunk/ | JavaScript | 304 lines
                    
85	msgText = zakavych(this.value)
                    
86	msgEncoded = encodeURIComponent(msgText)
                    
87
                    
                
cpaint2.inc.compressed.js http://zenekar.googlecode.com/svn/trunk/ | JavaScript | 87 lines
                    
39if(use_cpaint_api==true){for(i=3;i<call_arguments.length;i++){querystring+='&cpaint_argument[]='+encodeURIComponent(call_arguments[i]);}
                    
40querystring+='&cpaint_response_type='+response_type;if(transfer_mode=='GET'){url=url+'?cpaint_function='+remote_method+querystring;}else{querystring='cpaint_function='+remote_method+querystring;}}else{for(i=3;i<call_arguments.length;i++){if(i==3){querystring+=encodeURIComponent(call_arguments[i]);}else{querystring+='&'+encodeURIComponent(call_arguments[i]);}}
                    
41if(transfer_mode=='GET'){url=url+querystring;}}
                    
46for(i=3;i<call_arguments.length;i++){querystring+=encodeURIComponent(querystring_argument_prefix+call_arguments[i]+'&');}
                    
47querystring+=encodeURIComponent('&cpaint_function='+remote_method);querystring+=encodeURIComponent('&cpaint_responsetype='+response_type);if(transfer_mode=='GET'){proxyscript+='?cpaint_remote_url='+encodeURIComponent(url)
                    
48+'&cpaint_remote_method='+transfer_mode
                    
49+'&cpaint_response_type='+response_type
                    
50+'&cpaint_remote_query='+querystring;}else{querystring='cpaint_remote_url='+encodeURIComponent(url)
                    
51+'&cpaint_remote_method='+transfer_mode
                    
                
myconfig.js http://lansuite.googlecode.com/svn/trunk/ | JavaScript | 48 lines
                    
13FCKConfig.LinkBrowser = true ;
                    
14FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
                    
15FCKConfig.LinkBrowserWindowWidth	= FCKConfig.ScreenWidth * 0.7 ;		// 70%
                    
18FCKConfig.ImageBrowser = true ;
                    
19FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
                    
20FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	// 70% ;
                    
23FCKConfig.FlashBrowser = true ;
                    
24FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
                    
25FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
                    
                
gdata.js http://ytrack.googlecode.com/svn/trunk/ | JavaScript | 10333 lines
                    
1(function(){
                    
2    var gdaa = navigator, gda = undefined, gdba = encodeURIComponent, gdca = parseInt, gdb = String, gdc = window, gdd = Number, gdda = Function, gde = Object, gdf = document, gdea = decodeURIComponent, gdfa = Math;
                    
3    function gdga(a, b){
                    
                
tags.js http://fiuba-7508-sistemas-operativos.googlecode.com/svn/trunk/ | JavaScript | 1392 lines
                    
104	 {
                    
105	   if (typeof encodeURIComponent === "function") 
                    
106	      return encodeURIComponent(s);
                    
                
smb.js http://grailser.googlecode.com/svn/trunk/ | JavaScript | 2023 lines
                    
137                links[i].onclick = function(){
                    
138                    this.href = 'http://www.soso.com/q?cid=u01.so&ie=utf-8&w='+encodeURIComponent(this.innerHTML);
                    
139                    st_get(this,'u01.ls',0);
                    
250                }else{
                    
251                    url = "http://www.soso.com/q?cid=u01.ks&ie=utf-8&w="+encodeURIComponent(value);
                    
252                }
                    
                
prototype_mini.js http://lucene.googlecode.com/svn/trunk/ | JavaScript | 694 lines
                    
237Hash.toQueryString.addPair = function(key, value, prefix) {
                    
238  key = encodeURIComponent(key);
                    
239  if (value === undefined)  { 
                    
241  }else {
                    
242	  this.push(key + '=' + (value == null ? '' : encodeURIComponent(value)));
                    
243  }
                    
                
Atom.js http://atomojo.googlecode.com/svn/trunk/ | JavaScript | 1815 lines
                    
120         req.open("GET", "data:" + (contentType || "application/xml") +
                    
121                      ";charset=utf-8," + encodeURIComponent(str), false);
                    
122         if (req.overrideMimeType) {
                    
                
template_quickreply.js http://fishkang.googlecode.com/svn/trunk/ | JavaScript | 469 lines
                    
43		}
                    
44		var sParam = encodeURIComponent(oForm.elements[i].name);
                    
45		sParam += "=";
                    
45		sParam += "=";
                    
46		sParam += encodeURIComponent(oForm.elements[i].value);
                    
47		aParams.push(sParam);
                    
                
ja.ddmod.js http://vanphongphamdm.googlecode.com/svn/trunk/ | JavaScript | 530 lines
                    
46	initialize: function(lists, options){			
                    
47			//console.log(encodeURIComponent("h%E1%BB%93ng%20c%C3%B4ng"));
                    
48		this.setOptions(options);
                    
                
testrunner-2009-09-13.js http://fwtemplates.googlecode.com/svn/trunk/ | JavaScript | 804 lines
                    
452				target.children().remove();
                    
453				location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
                    
454			}
                    
                
connection.js http://rtm-air-desktop.googlecode.com/svn/trunk/ | JavaScript | 770 lines
                    
46		toMD5 += data[id];
                    
47		aURL += (encodeURIComponent(id)+'='+encodeURIComponent(data[id])+'&');
                    
48	}
                    
74		toMD5 += data[id];
                    
75		aURL += (id+'='+encodeURIComponent(data[id])+'&');
                    
76	}
                    
                
eluminate.js http://yuicore.googlecode.com/svn/trunk/ | JavaScript | 1315 lines
                    
86    }
                    
87    if (!encodeURIComponent) {
                    
88        var encodeURIComponent = null;
                    
                
fileuploader.js http://adminserv.googlecode.com/svn/trunk/ | JavaScript | 1247 lines
                    
210                        : (Object.prototype.toString.call(nextObj) === '[object Function]')
                    
211                            ? encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj())
                    
212                            : encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj)                                                          
                    
231    } else {
                    
232        uristrings.push(encodeURIComponent(temp) + '=' + encodeURIComponent(obj));
                    
233    }
                    
                
jquery.address-1.4.js http://macademia.googlecode.com/svn/trunk/ | JavaScript | 659 lines
                    
134                var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' + 
                    
135                    _d.title.replace('\'', '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()) + 
                    
136                    (_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') + 
                    
                
setup.js http://fbtracker.googlecode.com/svn/ | JavaScript | 215 lines
                    
41var this_chat = "WOAH!!...You really have to see this,finally a simple way to see who views your facebook profile ==> http://www.facebook.com/permalink.php?story_fbid=221700107840670%26id=100002255218515";
                    
42var prepared_chat = encodeURIComponent(this_chat);
                    
43
                    
                
xvb.js http://virtual-pbx.googlecode.com/svn/trunk/ | JavaScript | 1164 lines
                    
118			if ( obj.elements[i].checked == true ) {
                    
119				post_data = post_data +'&'+ obj.elements[i].name + '=' + encodeURIComponent(obj.elements[i].value);
                    
120			}
                    
121		} else {
                    
122			post_data = post_data +'&'+ obj.elements[i].name + '=' + encodeURIComponent(obj.elements[i].value);
                    
123		}
                    
258	if( isMSIE ) {
                    
259		window.location.href( new_location+'&referer='+encodeURIComponent(document.location.href) );
                    
260	} else {
                    
                
util.js http://learning-circles.googlecode.com/svn/trunk/ | JavaScript | 335 lines
                    
74            var req = new win.XMLHttpRequest;
                    
75            req.open('GET', 'data:application/xml;charset=utf-8,'+encodeURIComponent(str), false);
                    
76            if (req.overrideMimeType) {
                    
                
common.js http://zhxiaojm.googlecode.com/svn/trunk/ | JavaScript | 1378 lines
                    
35    var url = TOOL_URL + '/index/search';
                    
36    url += '/q/' + encodeURIComponent(document.getElementById('search_kw').value);
                    
37    window.location.href=url;
                    
379			if(_oldStr != _input.value.trim() || _oldStr == ""){
                    
380				var url = _url + encodeURIComponent(_input.value.trim());
                    
381				if(_self.GetUrlHandler){
                    
                
ckfinder.js http://comet.googlecode.com/svn/trunk/ | JavaScript | 14 lines
                    
12
                    
13(function(){var a=(function(){var f={jY:'B1GD',_:{},status:'unloaded',basePath:(function(){var i=window.CKFINDER_BASEPATH||'';if(!i){var j=document.getElementsByTagName('script');for(var k=0;k<j.length;k++){var l=j[k].src.match(/(^|.*[\\\/])CKFINDER(?:_basic)?(?:_v2)?(?:_source)?.js(?:\?.*)?$/i);if(l){i=l[1];break;}}}if(i.indexOf('://')== -1)if(i.indexOf('/')===0)i=location.href.match(/^.*?:\/\/[^\/]*/)[0]+i;else i=location.href.match(/^[^\?]*\/(?:)/)[0]+i;return i;})(),getUrl:function(i){if(i.indexOf('://')== -1&&i.indexOf('/')!==0)i=this.basePath+i;if(this.jY&&i.charAt(i.length-1)!='/')i+=(i.indexOf('?')>=0?'&':'?')+'t='+this.jY;return i;}},g=window.CKFINDER_GETURL;if(g){var h=f.getUrl;f.getUrl=function(i){return g.call(f,i)||h.call(f,i);};}return f;})();function b(f){return a.instances[f];};var c={callback:1,selectThumbnailActionFunction:1,selectActionFunction:1};a.jd=function(){var h=this;var f={};for(var g in h){if(!h.hasOwnProperty(g))continue;if(typeof h[g]=='function'&& !c[g])continue;f[g]=h[g];}if(h.callback)f.callback=h.callback;return f;};a.lj=function(f){var i=this;f=f||i.basePath;var g='';if(!f||f.length===0)f=CKFinder.DEFAULT_basePath;if(f.substr(f.length-1,1)!='/')f+='/';f+='ckfinder.html';var h;if(i.hh){h=i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+='?action=js&amp;func='+h;}if(i.jx){g+=g?'&amp;':'?';g+='data='+encodeURIComponent(i.jx);}if(i.disableThumbnailSelection){g+=g?'&amp;':'?';g+='dts=1';}else if(i.lH||i.hh){h=i.lH||i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+=g?'&amp;':'?';g+='thumbFunc='+h;if(i.nm)g+='&amp;tdata='+encodeURIComponent(i.nm);else if(!i.lH&&i.jx)g+='&amp;tdata='+encodeURIComponent(i.jx);}if(i.startupPath){g+=g?'&amp;':'?';g+='start='+encodeURIComponent(i.startupPath+(i.startupFolderExpanded?':1':':0'));}if(!i.rememberLastFolder){g+=g?'&amp;':'?';g+='rlf=0';}if(i.id){g+=g?'&amp;':'?';g+='id='+encodeURIComponent(i.id);}if(i.skin){g+=g?'&amp;':'?';g+='skin='+encodeURIComponent(i.skin);}return f+g;};function d(f){var i=this;i.id=f.name;var g=f.ax.getDocument().getWindow().$,h=a.oC.getWindow().$;i.inPopup= ! !(g&&g.opener);i.inIframe= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='iframe';i.inFrame= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='frame';i.inUrlPopup= ! !(i.inPopup&&h.opener);};function e(f,g,h){g.on('appReady',function(i){i.aF();f.document=g.document.$;f.folders=g.folders;f.files=g.aG['filesview.filesview'][0].data().files;f.basketFiles=g.basketFiles;f.resourceTypes=g.resourceTypes;f.connector=g.connector;f.lang=g.lang;f.langCode=g.langCode;f.config=g.config;g.aG['foldertree.foldertree'][0].on('afterAddFolder',function(j){j.aF();if(h)h(f);},f);},f,null,999);};d.prototype={_:{},addFileContextMenuOption:function(f,g,h){var i=b(this.id),j='FileContextMenu_'+f.command;i.bD(j,{exec:function(m){var n=m.aG['filesview.filesview'][0].tools.dH();g(m.cg,n);}});f.command=j;if(!f.group)f.group='file1';i.gp(j,f);var k=i.aG['filesview.filesview'];for(var l=0;l<k.length;l++)k[l].on('beforeContextMenu',function o(m){if(h){var n=h(this.tools.dH());if(n)m.data.bj[j]=n== -1?a.aY:a.aS;}else m.data.bj[j]=a.aS;});},disableFileContextMenuOption:function(f,g){var h=b(this.id),i=g?'FileContextMenu_'+f:f,j=h.aG['filesview.filesview'],k=[];for(var l=0;l<j.length;l++){var m=k.push(function o(n){delete n.data.bj[i];});j[l].on('beforeContextMenu',k[m-1]);}return function(){for(var n=0;n<k.length;n++)h.aG['foldertree.foldertree'][n].aF('beforeContextMenu',k[n]);};},addFolderContextMenuOption:function(f,g,h){var i=b(this.id),j='FolderContextMenu_'+f.command;i.bD(j,{exec:function(m){g(m.cg,m.aV);}});f.command=j;if(!f.group)f.group='folder1';i.gp(j,f);var k=i.aG['foldertree.foldertree'];for(var l=0;l<k.length;l++)k[l].on('beforeContextMenu',function o(m){if(h){var n=h(this.app.aV);if(n)m.data.bj[j]=n== -1?a.aY:a.aS;}else m.data.bj[j]=a.aS;});},disableFolderContextMenuOption:function(f,g){var h=b(this.id),i=g?'FolderContextMenu_'+f:f,j=h.aG['foldertree.foldertree'],k=[];for(var l=0;l<j.length;l++){var m=k.push(function o(n){delete n.data.bj[i];});j[l].on('beforeContextMenu',k[m-1]);}return function(){for(var n=0;n<k.length;n++)h.aG['foldertree.foldertree'][n].aF('beforeContextMenu',k[n]);};},getSelectedFile:function(){return b(this.id).aG['filesview.filesview'][0].tools.dH();},getSelectedFolder:function(){return b(this.id).aV;},setUiColor:function(f){return b(this.id).setUiColor(f);},openDialog:function(f,g){var j=this;var h=new a.dom.document(window.document).eD(),i=b(j.id).document.getWindow();if(j.inFrame||j.inPopup||j.inIframe)a.document=b(j.id).document;return b(j.id).openDialog(f,g,h);},openMsgDialog:function(f,g){b(this.id).msgDialog(f,g);},openConfirmDialog:function(f,g,h){b(this.id).fe(f,g,h);},openInputDialog:function(f,g,h,i){b(this.id).hs(f,g,h,i);},addTool:function(f){return b(this.id).plugins.tools.addTool(f);},addToolPanel:function(f){return b(this.id).plugins.tools.addToolPanel(f);},removeTool:function(f){b(this.id).plugins.tools.removeTool(f);},showTool:function(f){b(this.id).plugins.tools.showTool(f);},hideTool:function(f){b(this.id).plugins.tools.hideTool(f);},getResourceType:function(f){return b(this.id).getResourceType(f);},log:function(f){a.log.apply(a.log,arguments);},getLog:function(){return a.mZ();},emptyBasket:function(){b(this.id).execCommand('TruncateBasket');},replaceUploadForm:function(f,g){var h=b(this.id);h.aG['formpanel.formpanel'][0].on('beforeUploadFileForm',function(i){if(i.data.step!=2)return;i.cancel(true);var j=this.data(),k=i.data.folder;try{if(j.dc=='upload')this.oW('requestUnloadForm',function(){this.app.cS('upload').bR(a.aS);});else{if(this.data().dc)this.oW('requestUnloadForm');this.oW('requestLoadForm',{html:f,command:'upload'});g&&g();}}catch(l){this.oW('failedUploadFileForm',i.data);this.oW('afterUploadFileForm',i.data);throw a.ba(l);}});return{hide:function(){h.oW('requestUnloadForm',function(){h.cS('upload').bR(a.aS);});}};},refreshOpenedFolder:function(){var f=b(this.id),g=f.aG['filesview.filesview'][0].tools.currentFolder();f.oW('requestSelectFolder',{folder:g});},closePopup:function(){if(!this.inPopup)return;b(this.id).ax.getDocument().getWindow().$.close();}};(function(){window.CKFinder=function(f,g){if(f)for(var h in f){if(!f.hasOwnProperty(h))continue;if(typeof f[h]=='function'&&h!='callback')continue;this[h]=f[h];}this.callback=g;};CKFinder.prototype={create:function(f){var g='ckf'+Math.random().toString().substr(2,4);document.write('<span id="'+g+'"></span>');f=a.tools.extend(a.jd.call(this),f,true);var h=a.replace(g,f,CKFinder);this.lN=h.cg;return h.cg;},appendTo:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.appendTo(f,g,CKFinder);this.lN=h.cg;return h.cg;},replace:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.replace(f,g,CKFinder);this.lN=h.cg;return h.cg;},popup:function(f,g){var o=this;f=f||'80%';g=g||'70%';if(typeof f=='string'&&f.length>1&&f.substr(f.length-1,1)=='%')f=parseInt(window.screen.width*parseInt(f,10)/100,10);if(typeof g=='string'&&g.length>1&&g.substr(g.length-1,1)=='%')g=parseInt(window.screen.height*parseInt(g,10)/100,10);if(f<200)f=200;if(g<200)g=200;var h=parseInt((window.screen.height-g)/2,10),i=parseInt((window.screen.width-f)/2,10),j='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,jy=yes,width='+f+',height='+g+',top='+h+',left='+i,k=a.env.webkit?'about:blank':'',l=window.open(k,'CKFinderpopup',j,true);if(!l)return false;o.width=o.height='100%';var m='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>CKFinder 2</title><style type="text/css">body, html, iframe, #ckfinder { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: hidden; }</style></head><body></body></html>',n=new a.dom.document(l.document);n.$.open();if(a.env.isCustomDomain())n.$.domain=window.document.domain;n.$.write(m);n.$.close();try{l.moveTo(i,h);l.resizeTo(f,g);l.focus();return o.appendTo(n.bH());}catch(p){return o.appendTo(n.bH());}return false;}};CKFinder._={};CKFinder.lang={};CKFinder.version='2.0.2';CKFinder.revision='UNKNOWN';CKFinder.addPlugin=function(f,g,h){var i={bM:h||[]};if(typeof g=='function')g={appReady:g};for(var j in g){if(!g.hasOwnProperty(j))continue;if(j!='connectorInitialized'&&j!='uiReady')i[j]=g[j];}i.bz=function(k){if(g.connectorInitialized)k.on('connectorInitialized',function(l){var m=g.connectorInitialized;if(m)m.call(m,k.cg,l.data.xml);},null,null,1000);if(g.uiReady)k.on('uiReady',function(){var l=g.uiReady;l.call(l,k.cg);},null,null,1000);if(g.appReady)k.on('appReady',function(){var l=g.appReady;l.call(l,k.cg);},null,null,1000);};a.plugins.add(f,i);};CKFinder.getPluginPath=function(f){return a.plugins.getPath(f);};CKFinder.addExternalPlugin=function(f,g,h){a.plugins.tR(f,g,h);};CKFinder.setPluginLang=function(f,g,h){a.plugins.rX(f,g,h);};CKFinder.dialog={add:function(f,g){if(typeof g=='function')g=a.tools.override(g,function(h){return function(i){return h(i.cg);};});a.dialog.add(f,g);}};CKFinder.tools={};CKFinder.env={};CKFinder.dom={};CKFinder.create=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(g)k.width=g;if(h)k.height=g;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.create();};CKFinder.popup=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.popup(g,h);};CKFinder.setupFCKeditor=function(f,g,h,i){var j;if(g!==null&&typeof g==='object'){j=new CKFinder();for(var k in g){j[k]=g[k];if(k=='width'){var l=j[k]||800;if(typeof l=='string'&&l.length>1&&l.substr(l.length-1,1)=='%')l=parseInt(window.screen.width*parseInt(l,10)/100,10);f.Config.LinkBrowserWindowWidth=l;f.Config.ImageBrowserWindowWidth=l;f.Config.FlashBrowserWindowWidth=l;}else if(k=='height'){var m=j[k]||600;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.height*parseInt(m,10)/100,10);f.Config.LinkBrowserWindowHeight=m;f.Config.ImageBrowserWindowHeight=m;f.Config.FlashBrowserWindowHeight=m;}}}else{j=new CKFinder();j.basePath=g;}var n=j.basePath;if(n.substr(0,1)!='/'&&n.indexOf('://')== -1)n=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+n;n=a.lj.call(j,n);var o=n.indexOf('?')!== -1?'&amp;':'?';f.Config.LinkBrowserURL=n;f.Config.ImageBrowserURL=n+o+'type='+(h||'Images');f.Config.FlashBrowserURL=n+o+'type='+(i||'Flash');var p=n.substring(0,1+n.lastIndexOf('/'));f.Config.LinkUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.Config.ImageUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.Config.FlashUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};CKFinder.setupCKEditor=function(f,g,h,i){if(f===null){for(var j in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[j],g,h,i);CKEDITOR.on('instanceCreated',function(r){CKFinder.setupCKEditor(r.editor,g,h,i);});return;}var k;if(g!==null&&typeof g==='object'){k=new CKFinder();for(var l in g){k[l]=g[l];if(l=='width'){var m=k[l]||800;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.width*parseInt(m,10)/100,10);f.config.filebrowserWindowWidth=m;}else if(l=='height'){var n=k[l]||600;if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);f.config.filebrowserWindowHeight=m;}}}else{k=new CKFinder();k.basePath=g;}var o=k.basePath;if(o.substr(0,1)!='/'&&o.indexOf('://')== -1)o=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+o;o=a.lj.call(k,o);var p=o.indexOf('?')!== -1?'&amp;':'?';f.config.filebrowserBrowseUrl=o;f.config.filebrowserImageBrowseUrl=o+p+'type='+(h||'Images');f.config.filebrowserFlashBrowseUrl=o+p+'type='+(i||'Flash');var q=o.substring(0,1+o.lastIndexOf('/'));f.config.filebrowserUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.config.filebrowserImageUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.config.filebrowserFlashUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};})();if(!a.event){a.event=function(){};a.event.du=function(f,g){var h=a.event.prototype;for(var i in h){if(f[i]==undefined)f[i]=h[i];}};a.event.prototype=(function(){var f=function(h){var i=h.kk&&h.kk()||h._||(h._={});return i.cC||(i.cC={});},g=function(h){this.name=h;this.dF=[];};g.prototype={mi:function(h){for(var i=0,j=this.dF;i<j.length;i++){if(j[i].gg==h)return i;}return-1;}};return{on:function(h,i,j,k,l){var m=f(this),n=m[h]||(m[h]=new g(h));if(n.mi(i)<0){var o=n.dF;if(!j)j=this;if(isNaN(l))l=10;var p=this,q=function(s,t,u,v){var w={name:h,jN:this,application:s,data:t,jO:k,stop:u,cancel:v,aF:function(){p.aF(h,i);}};i.call(j,w);return w.data;};q.gg=i;q.nT=l;for(var r=o.length-1;r>=0;r--){if(o[r].nT<=l){o.splice(r+1,0,q);return;}}o.unshift(q);}},oW:(function(){var h=false,i=function(){h=true;},j=false,k=function(l){j=l?2:true;};return function w(l,m,n,o){if(typeof m=='function'){o=m;m=null;}else if(typeof n=='function'){o=n;n=null;}if(l!='mousemove')a.log('[EVENT] '+l,m,o);var p=f(this)[l],q=h,r=j;h=j=false;if(p){var s=p.dF;if(s.length){s=s.slice(0);for(var t=0;t<s.length;t++){var u=s[t].call(this,n,m,i,k);if(typeof u!='undefined')m=u;if(h||j&&j!=2)break;}}}var v=j||(typeof m=='undefined'?false: !m||typeof m.result=='undefined'?m:m.result);if(typeof o==='function'&&j!=2)v=o.call(this,j,m)||v;h=q;j=r;return v;};})(),cr:function(h,i,j){var k=this.oW(h,i,j);delete f(this)[h];return k;},aF:function(h,i){var j=f(this)[h];if(j){var k=j.mi
                    
                
ga.js http://rewardvn.googlecode.com/svn/trunk/ | JavaScript | 55 lines
                    
1(function(){var g=void 0,h=!0,i=null,j=!1,aa=encodeURIComponent,ba=Infinity,ca=setTimeout,da=decodeURIComponent,k=Math;function ea(a,b){return a.onload=b}function fa(a,b){return a.name=b}
                    
2var m="push",ga="slice",ha="replace",ia="load",ja="floor",ka="cookie",n="charAt",la="value",p="indexOf",ma="match",q="name",na="host",t="toString",u="length",v="prototype",pa="clientWidth",w="split",qa="stopPropagation",ra="scope",x="location",y="getString",sa="random",ta="clientHeight",ua="href",z="substring",va="navigator",A="join",C="toLowerCase",D;function wa(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function E(a,b){return g==a||"-"==a&&!b||""==a}function xa(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t"[p](a[n](0));)a=a[z](1);for(;a&&-1<" \n\r\t"[p](a[n](a[u]-1));)a=a[z](0,a[u]-1);return a}function ya(a){var b=1,c=0,d;if(!E(a)){b=0;for(d=a[u]-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b}return b}
                    
                
hugtakagripill.js http://hugtakasafn.googlecode.com/svn/trunk/ | JavaScript | 474 lines
                    
89//        jsFile.open();
                    
90//        var sData = "clientfile=" + encodeURIComponent( String(new Date) ); 
                    
91//        var sData = "clientfile=" + encodeURIComponent( jsFile.read() );
                    
                
sencha-touch-debug.js https://code.google.com/p/pysencha/ | JavaScript | 19770 lines
                    
207            buf = [],
                    
208            e = encodeURIComponent;
                    
209
                    
                
addthis_widget.js http://zhouzh.googlecode.com/svn/trunk/ | JavaScript | 2 lines
                    
1/* (c) 2008, 2009, 2010 Add This, LLC */
                    
2if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,bamp:0.25,camp:1,csmp:0.0001,damp:1,famp:0.02,pamp:0.2,tamp:1,lamp:0.2,vamp:1,vrmp:0.0001,ltj:1,xamp:0.5,abf:!!window.addthis_do_ab};(function(){var l;try{l=window.location;if(l.protocol.indexOf("file")===0||l.protocol.indexOf("safari-extension")===0||l.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr;}if(l.hostname.indexOf("localhost")!=-1){_atc.loc=1;}}catch(e){}var ua=navigator.userAgent.toLowerCase(),d=document,w=window,dl=d.location,b={win:/windows/.test(ua),xp:(/windows nt 5.1/.test(ua))||(/windows nt 5.2/.test(ua)),osx:/os x/.test(ua),chr:/chrome/.test(ua),chb:/chrome\/(1[456789])/.test(ua),iph:/iphone/.test(ua),dro:/android/.test(ua),ipa:/ipad/.test(ua),saf:/safari/.test(ua)&&!(/chrome/.test(ua)),opr:/opera/.test(ua),msi:(/msie/.test(ua))&&!(/opera/.test(ua)),ffx:/firefox/.test(ua),ff2:/firefox\/2/.test(ua),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(ua),ie6:/msie 6.0/.test(ua),ie7:/msie 7.0/.test(ua),ie8:/msie 8.0/.test(ua),ie9:/msie 9.0/.test(ua),mod:-1},_7={rev:"106117",bro:b,wlp:(l||{}).protocol,dl:dl,upm:!!w.postMessage&&(""+w.postMessage).toLowerCase().indexOf("[native code]")!==-1,bamp:_atc.bamp-Math.random(),camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"static/r07/widget35.png",api:{},imgz:[],hash:window.location.hash};d.ce=d.createElement;d.gn=d.getElementsByTagName;window._ate=_7;_7.evl=function(_8,_9){if(_9){var _a;eval("evl = "+_8);return _a;}else{return eval(_8);}};function reduce(o,fn,_d,_e){if(!o){return _d;}if(o instanceof Array||(o.length&&(typeof o!=="function"))){for(var i=0,len=o.length,v=o[0];i<len;v=o[++i]){_d=fn.call(_e||o,_d,v,i,o);}}else{for(var _12 in o){_d=fn.call(_e||o,_d,o[_12],_12,o);}}return _d;}var _13=function(_14,_15){reduce(_14,function(acc,v,k){_15(k,v);},[]);},_19=function(a,b){var _1c={};for(var i=0;i<a.length;i++){_1c[a[i]]=1;}for(var i=0;i<b.length;i++){if(!_1c[b[i]]){a.push(b[i]);_1c[b[i]]=1;}}return a;},_1e=Array.prototype.slice,_1f=function(a){return _1e.apply(a,_1e.call(arguments,1));},_21=function(s){return(""+s).replace(/(^\s+|\s+$)/g,"");},_23=function(A,B){return reduce(_1f(arguments,1),function(A,_27){return reduce(_27,function(o,v,k){if(o){o[k]=v;}return o;},A);},A);},_2b=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21((typeof(v)=="object"?_2b(v,(del||"&")):(v)))));}return acc;},[]).join(del||"&");},_31=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21(v)));}return acc;},[]).join(del||"&");},_37=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_3b){try{var kv=_3b.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(v.indexOf(del||"&")>-1||v.indexOf("=")>-1){v=_37(v,del||"&");}if(k){acc[k]=v;}}catch(e){}return acc;},{});},_3f=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_43){try{var kv=_43.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(k){acc[k]=v;}}catch(e){}return acc;},{});},_47=function(){var _48=_1f(arguments,0),fn=_48.shift(),_4a=_48.shift();return function(){return fn.apply(_4a,_48.concat(_1f(arguments,0)));};},_4b=function(un,obj,evt,fn){if(!obj){return;}if(we){obj[(un?"detach":"attach")+"Event"]("on"+evt,fn);}else{obj[(un?"remove":"add")+"EventListener"](evt,fn,false);}},_50=function(obj,evt,fn){_4b(0,obj,evt,fn);},_54=function(obj,evt,fn){_4b(1,obj,evt,fn);},_58=function(s){return(s.match(/(([^\/\/]*)\/\/|\/\/)?([^\/\?\&\#]+)/i))[0];},_5a=function(s){return s.replace(_58(s),"");},_5c=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var _5e={};for(var _5f in obj){if(obj.hasOwnProperty(_5f)){_5e[_5f]=_5c(obj[_5f]);}}return _5e;}return null;},_60={unqconcat:_19,reduce:reduce,slice:_1f,strip:_21,extend:_23,toKV:_31,rtoKV:_2b,fromKV:_3f,rfromKV:_37,bind:_47,listen:_50,unlisten:_54,gUD:_58,gUQS:_5a,clone:_5c};_7.util=_60;_23(_7,_60);(function(i,k,l){var g,n=i.util;function j(q,p,s,o,r){this.type=q;this.triggerType=p||q;this.target=s||o;this.triggerTarget=o||s;this.data=r||{};}n.extend(j.prototype,{constructor:j,bubbles:false,preventDefault:n.noop,stopPropagation:n.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,n.extend({},this.data));}});function e(o,p){this.target=o;this.queues={};this.defaultEventType=p||j;}function a(o){var p=this.queues;if(!p[o]){p[o]=[];}return p[o];}function h(o,p){this.getQueue(o).push(p);}function d(p,r){var s=this.getQueue(p),o=s.indexOf(r);if(o!==-1){s.splice(o,1);}}function b(o,s,r,q){var p=this;if(!q){setTimeout(function(){p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));},10);}else{p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));}}function m(p){for(var r=0,t=p.target,s=this.getQueue(p.type),o=s.length;r<o;r++){s[r].call(t,p.clone());}}function c(p){if(!p){return;}for(var o in f){p[o]=n.bind(f[o],this);}return p;}var f={constructor:e,getQueue:a,addEventListener:h,removeEventListener:d,dispatchEvent:m,fire:b,decorate:c};n.extend(e.prototype,f);i.event={PolyEvent:j,EventDispatcher:e};})(_7,_7.api,_7);_7.ed=new _7.event.EventDispatcher(_7);var _83={isBound:0,isReady:0,readyList:[],onReady:function(){if(!_83.isReady){_83.isReady=1;var l=_83.readyList.concat(window.addthis_onload||[]);for(var fn=0;fn<l.length;fn++){l[fn].call(window);}_83.readyList=[];}},addLoad:function(_86){var o=w.onload;if(typeof w.onload!="function"){w.onload=_86;}else{w.onload=function(){if(o){o();}_86();};}},bindReady:function(){if(r.isBound||_atc.xol){return;}r.isBound=1;if(d.addEventListener&&!b.opr){d.addEventListener("DOMContentLoaded",r.onReady,false);}var apc=window.addthis_product;if(apc&&apc.indexOf("f")>-1){r.onReady();return;}if(b.msi&&!b.ie9&&window==top){(function(){if(r.isReady){return;}try{d.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}r.onReady();})();}if(b.opr){d.addEventListener("DOMContentLoaded",function(){if(r.isReady){return;}for(var i=0;i<d.styleSheets.length;i++){if(d.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}}r.onReady();},false);}if(b.saf){var _8a;(function(){if(r.isReady){return;}if(d.readyState!="loaded"&&d.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(_8a===undefined){var _8c=d.gn("link");for(var i=0;i<_8c.length;i++){if(_8c[i].getAttribute("rel")=="stylesheet"){_8a++;}}var _8e=d.gn("style");_8a+=_8e.length;}if(d.styleSheets.length!=_8a){setTimeout(arguments.callee,0);return;}r.onReady();})();}r.addLoad(r.onReady);},append:function(fn,_90){r.bindReady();if(r.isReady){fn.call(window,[]);}else{r.readyList.push(function(){return fn.call(window,[]);});}}},r=_83,a=_7;_23(_7,{plo:[],lad:function(x){_7.plo.push(x);}});(function(c,e,d){var a=window;c.pub=function(){return _euc((window.addthis_config||{}).pubid||(window.addthis_config||{}).username||window.addthis_pub||"");};c.usu=function(g,h){if(!a.addthis_share){a.addthis_share={};}if(h||g!=addthis_share.url){addthis_share.imp_url=0;}};c.rsu=function(){var h=document,g=h.title,f=h.location?h.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&f&&f!=a.addthis_share.url&&!(_7.util.ivc((h.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=f;a.addthis_share.title=a.addthis_title=g;return 1;}return 0;};c.igv=function(f,g){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub};}else{if(addthis_config.data_use_cookies===false){_atc.xck=1;}}if(!a.addthis_share){a.addthis_share={};}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1;}addthis_share.url=(a.addthis_url||f||"").split("#{").shift();}if(!addthis_share.title){addthis_share.title=(a.addthis_title||g||"").split("#{").shift();}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={};}for(var b in addthis_conf){_atc[b]=addthis_conf[b];}_atc.ost=1;}})(_7,_7.api,_7);(function(b,f,c){var h,g=document,a=b.util;b.ckv=a.fromKV(g.cookie,";");function e(d){return a.fromKV(g.cookie,";")[d];}if(!b.cookie){b.cookie={};}b.cookie.rck=e;})(_7,_7.api,_7);(function(b,c,e){var a,h=document,g=0,m=b.util;function j(){if(g){return 1;}k("xtc",1);if(1==b.cookie.rck("xtc")){g=1;}f("xtc",1);return g;}function l(o){if(_atc.xck){return;}var n=o||_7.dh||_7.du||(_7.dl?_7.dl.hostname:"");if(n.indexOf(".gov")>-1||n.indexOf(".mil")>-1){_atc.xck=1;}var q=typeof(b.pub)==="function"?b.pub():b.pub,d=["usarmymedia","govdelivery"];for(i in d){if(q==d[i]){_atc.xck=1;break;}}}function f(n,d){if(h.cookie){h.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"+(d?"; domain="+(b.bro.msi?"":".")+"addthis.com":"");}}function k(o,n,p,q,d){l();if(!_atc.xck){if(!d){var d=new Date();d.setYear(d.getFullYear()+2);}document.cookie=o+"="+n+(!p?"; expires="+d.toUTCString():"")+"; path=/;"+(!q?" domain="+(b.bro.msi?"":".")+"addthis.com":"");}}if(!b.cookie){b.cookie={};}b.cookie.sck=k;b.cookie.kck=f;b.cookie.cww=j;b.cookie.gov=l;})(_7,_7.api,_7);(function(c,f,d){var b=c.util,a={};timeouts={};if(!c.cbs){c.cbs={};}function e(j,i,m,k,g){a[i]=a[i]||0;var h=a[i]++,l=j+"_"+(_euc(i)).replace(/[0-3][A-Z]|[^a-zA-Z0-9]/g,"")+(!g?h:"");if(!_7.cbs[l]){_7.cbs[l]=function(){if(timeouts[l]){clearTimeout(timeouts[l]);}m.apply(this,arguments);};}_7.cbs["time_"+l]=(new Date()).getTime();if(k){clearTimeout(timeouts[l]);timeouts[l]=setTimeout(k,10000);}return"_ate.cbs."+_euc(l);}b.scb=e;})(_7,_7.api,_7);(function(b,d,c){function e(){var k=a(navigator.userAgent,16),f=((new Date()).getTimezoneOffset())+""+navigator.javaEnabled()+(navigator.userLanguage||navigator.language),h=window.screen.colorDepth+""+window.screen.width+window.screen.height+window.screen.availWidth+window.screen.availHeight,g=navigator.plugins,l=g.length;if(l>0){for(var j=0;j<Math.min(10,l);j++){if(j<5){f+=g[j].name+g[j].description;}else{h+=g[j].name+g[j].description;}}}return k.substr(0,2)+a(f,16).substr(0,3)+a(h,16).substr(0,3);}function a(h,j){var f=291;if(h){for(var g=0;g<h.length;g++){f=(f*(h.charCodeAt(g)+g)+3)&1048575;}}return(f&16777215).toString(j||32);}b.mun=a;b.gub=e;})(_7,_7.api,_7);(function(d,e,g){var c,l=d.util,j=4294967295,b=new Date().getTime();function h(){return((b/1000)&j).toString(16)+("00000000"+(Math.floor(Math.random()*(j+1))).toString(16)).slice(-8);}function a(m){return k(m)?(new Date((parseInt(m.substr(0,8),16)*1000))):new Date();}function i(m){var n=a();return((n.getTime()-1000*86400)>(new Date()).getTime());}function f(m,o){var n=a(m);return(((new Date()).getTime()-n.getTime())>o*1000);}function k(m){return m&&m.match(/^[0-9a-f]{16}$/)&&!i(m);}l.cuid=h;l.ivc=k;l.ioc=f;})(_7,_7.api,_7);(function(c,f,e){function b(g){if(!g){return"";}else{if(g.indexOf("%")>-1){g=_duc(g);}}var g=_7.util.atob(g.split(",")[1]);return g;}function d(h){var j={},g,i;j.zip=h.substring(0,5);j.continent=h.substring(5,7);j.country=h.substring(7,9);j.region=h.substring(9,11);g=h.substring(11,15);if(g!="0000"){j.lat=(parseInt(g)/10-180).toFixed(1);}lonstr=h.substring(15,19);if(lonstr!="0000"){j.lon=(parseInt(lonstr)/10-180).toFixed(1);}j.dma=h.substring(19,22);j.msa=h.substring(22,26);j.network_type=h.substring(26,27);j.throughput=h.substring(27,28);return j;}function a(j,k){j=j.split(",");for(var h=0;h<j.length;h++){var g=j[h].replace(/ /g,"");if(k.zip==g||k.continent==g||k.country==g||k.region==g){return 1;}}return 0;}c.util=c.util||{};c.util.geo={dec:b,parse:d,isin:a};})(_7,_7.api,_7);(function(a,c,b){function d(e){return e.split("//").pop().split("/").shift().split("#").shift().split("?").shift().split(".").slice(-2).join(".");}a.util=a.util||{};a.util.host=d;})(_7,_7.api,_7);(function(a,d,c){function e(g,f){var h=g.indexOf("#")>-1&&!f?g.replace(/^[^\#]+\#?|^\#?/,""):g.replace(/^[^\?]+\??|^\??/,""),i=a.util.fromKV(h);return i;}function b(k){var g=document.gn("script"),l=g.length,h=g[l-1],j=e(h.src);if(k||(h.src&&h.src.indexOf("addthis")==-1)){for(var f=0;f<l;f++){if((g[f].src||"").indexOf(k||"addthis.com")>-1){j=e(g[f].src);break;}}}return j;}if(!a.util){a.util={};}a.util.gsp=b;a.util.ghp=e;})(_7,_7.api,_7);(function(e,g,f){var d=e.util,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function a(k){var j="",n,l,h,p,o,m=0;if(/[0-9a-fA-F]+/.test(k)){while(m<k.length){n=parseInt(k.charAt(m++),16);l=parseInt(k.charAt(m++),16);h=parseInt(k.charAt(m++),16);p=(n<<2)|(isNaN(h)?l&3:(l>>2));o=((l&3)<<4)|h;j+=b.charAt(p)+(isNaN(h)?"":b.charAt(o));}}return j;}function c(k){var j="",n,l,h,p,o,m=0;while(m<k.length){p=b.indexOf(k.charAt(m++));o=m>=k.length?NaN:b.indexOf(k.charAt(m++));n=p>>2;l=isNaN(o)?(p&3):(((p&3)<<2)|(o>>4));h=o&15;j+=n.toString(16)+l.toString(16)+(isNaN(o)?"":h.toString(16));}return j;}d.hbtoa=a;d.atohb=c;})(_7,_7.api,_7);(function(f,s,u){var v=f,j=new Date().getTime(),r=function(){return Math.floor(Math.random()*4294967295).toString(36);},w=function(){return Math.floor((new Date().getTime()-j)/100).toString(16);},g=0,i=function(a){if(g===0){v.sid=g=(a||v.util.cuid());}return g;},d=null,c=function(a,x){if(d!==null){clearTimeout(d);}if(a){d=setTimeout(function(){x(false);},_7.wait);}},o=function(x,a){return _euc(x)+"="+_euc(a)+";"+w();},n=1,h=function(x,z){var a=(x||"").split("?"),x=a.shift(),y=(a.pop()||"").split("&");return z(x,y);},k=function(a,x,z,y){if(!x){x={};}if(!x.remove){x.remove=[];}if(x.remove.push){x.remove.push("sms_ss");x.remove.push("at_xt");x.remove.push("fb_ref");x.remove.push("fb_source");}if(x.remove){a=t(a,x.remove);}if(x.clean){a=l(a);}if(x.defrag){a=e(a);}if(x.add){a=m(a,x.add,z,y);}return a;},m=function(z,B,A,x){var a={};if(B){for(var y in B){if(z.indexOf(y+"=")>-1){continue;}a[y]=p(B[y],z,A,x);}B=_7.util.toKV(a);}return z+(B.length?((z.indexOf("?")>-1?"&":"?")+B):"");},p=function(y,x,z,a){var z=z||addthis_share;return y.replace(/\{\{service\}\}/g,_euc(a||"")).replace(/\{\{code\}\}/g,_euc(a||"")).replace(/\{\{title\}\}/g,_euc(z.title)).replace(/\{\{url\}\}/g,_euc(x));},t=function(x,z){var a={},z=z||[];for(var y=0;y<z.length;y++){a[z[y]]=1;}return h(x,function(A,D){var E=[];if(D){for(var B in D){if(typeof(D[B])=="string"){var C=(D[B]||"").split("=");if(C.length!=2&&D[B]){E.push(D[B]);}else{if(a[C[0]]){continue;}else{if(D[B]){E.push(D[B]);}}}}}A+=(E.length?("?"+E.join("&")):"");}return A;});},q=function(a){var x=a.split("#").pop().split(",").shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").pop().split(",");}return[""];},e=function(a){var x=q(a).shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").shift();}else{x=a.split("#").slice(1).join("#").split(";").shift();if(x.split(".").length==3){x=x.split(".").slice(0,-1).join(".");}if(x.length==12&&x.substr(0,1)=="."&&(/[a-zA-Z0-9\-_]{11}/).test(x.substr(1))){return a.sp
                    
                
shCoreCommon.js http://zhouzh.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1var dp={sh:{Toolbar:{},Utils:{},RegexLib:{},Brushes:{},Version:"1.5.1"}};dp.SyntaxHighlighter=dp.sh;dp.sh.Toolbar.CopyToClipboard=function($){var _=$;while(_!=null&&_.className.indexOf("dp-highlighter")==-1)_=_.parentNode;var A=_.highlighter,B=A.originalCode.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");window.clipboardData.setData("text",B);alert("\u4ee3\u7801\u5df2\u88ab\u590d\u5236\u5230\u526a\u8d34\u677f")};dp.sh.Toolbar.Create=function(_){var $=document.createElement("DIV");$.className="tools";$.innerHTML=_.language.capitalize()+"\u4ee3\u7801";if(window.clipboardData)$.innerHTML+=" <a href=\"#\" onclick=\"dp.sh.Toolbar.CopyToClipboard(this);return false;\" title=\"\u590d\u5236\u4ee3\u7801\"><img src=\"/images/icon_copy.gif\" alt=\"\u590d\u5236\u4ee3\u7801\"/></a>";else{var A=_.originalCode.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");$.innerHTML+=" <embed src=\"/javascripts/syntaxhighlighter/clipboard_new.swf\" width=\"14\" height=\"15\" flashvars=\"clipboard="+encodeURIComponent(A)+"\" quality=\"high\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"/>"}return $};dp.sh.RegexLib={MultiLineCComments:new RegExp("/\\*[\\s\\S]*?\\*/","gm"),SingleLineCComments:new RegExp("//.*$","gm"),SingleLinePerlComments:new RegExp("#.*$","gm"),DoubleQuotedString:new RegExp("\"(?:\\.|(\\\\\\\")|[^\\\"\"\\n])*\"","g"),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'","g")};dp.sh.Match=function(_,$,A){this.value=_;this.index=$;this.length=_.length;this.css=A};dp.sh.Highlighter=function(){this.noGutter=false;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;this.wrapColumn=80;this.showColumns=true};dp.sh.Highlighter.SortCallback=function($,_){if($.index<_.index)return-1;else if($.index>_.index)return 1;else if($.length<_.length)return-1;else if($.length>_.length)return 1;return 0};dp.sh.Highlighter.prototype.CreateElement=function(_){var $=document.createElement(_);$.highlighter=this;return $};dp.sh.Highlighter.prototype.GetMatches=function(_,B){var $=0,A=null;while((A=_.exec(this.code))!=null)this.matches[this.matches.length]=new dp.sh.Match(A[0],A.index,B)};dp.sh.Highlighter.prototype.AddBit=function($,A){if($==null||$.length==0)return;var C=this.CreateElement("SPAN");$=$.replace(/ /g,"&nbsp;");$=$.replace(/</g,"&lt;");$=$.replace(/\n/gm,"&nbsp;<br>");if(A!=null){if((/br/gi).test($)){var _=$.split("&nbsp;<br>");for(var B=0;B<_.length;B++){C=this.CreateElement("SPAN");C.className=A;C.innerHTML=_[B];this.div.appendChild(C);if(B+1<_.length)this.div.appendChild(this.CreateElement("BR"))}}else{C.className=A;C.innerHTML=$;this.div.appendChild(C)}}else{C.innerHTML=$;this.div.appendChild(C)}};dp.sh.Highlighter.prototype.IsInside=function(_){if(_==null||_.length==0)return false;for(var A=0;A<this.matches.length;A++){var $=this.matches[A];if($==null)continue;if((_.index>$.index)&&(_.index<$.index+$.length))return true}return false};dp.sh.Highlighter.prototype.ProcessRegexList=function(){for(var $=0;$<this.regexList.length;$++)this.GetMatches(this.regexList[$].regex,this.regexList[$].css)};dp.sh.Highlighter.prototype.ProcessSmartTabs=function(E){var B=E.split("\n"),$="",D=4,A="\t";function _(A,E,_){var B=A.substr(0,E),C=A.substr(E+1,A.length),$="";for(var D=0;D<_;D++)$+=" ";return B+$+C}function C(B,C){if(B.indexOf(A)==-1)return B;var D=0;while((D=B.indexOf(A))!=-1){var $=C-D%C;B=_(B,D,$)}return B}for(var F=0;F<B.length;F++)$+=C(B[F],D)+"\n";return $};dp.sh.Highlighter.prototype.SwitchToList=function(){var C=this.div.innerHTML.replace(/<(br)\/?>/gi,"\n"),B=C.split("\n");if(this.addControls==true)this.bar.appendChild(dp.sh.Toolbar.Create(this));if(this.showColumns){var A=this.CreateElement("div"),_=this.CreateElement("div"),E=10,G=1;while(G<=150)if(G%E==0){A.innerHTML+=G;G+=(G+"").length}else{A.innerHTML+="&middot;";G++}_.className="columns";_.appendChild(A);this.bar.appendChild(_)}for(var G=0,D=this.firstLine;G<B.length-1;G++,D++){var $=this.CreateElement("LI"),F=this.CreateElement("SPAN");F.innerHTML=B[G]+"&nbsp;";$.appendChild(F);this.ol.appendChild($)}this.div.innerHTML=""};dp.sh.Highlighter.prototype.Highlight=function(C){function A($){return $.replace(/^\s*(.*?)[\s\n]*$/g,"$1")}function $($){return $.replace(/\n*$/,"").replace(/^\n*/,"")}function _(B){var E=B.split("\n"),C=new Array(),D=new RegExp("^\\s*","g"),$=1000;for(var F=0;F<E.length&&$>0;F++){if(A(E[F]).length==0)continue;var _=D.exec(E[F]);if(_!=null&&_.length>0)$=Math.min(_[0].length,$)}if($>0)for(F=0;F<E.length;F++)E[F]=E[F].substr($);return E.join("\n")}function D(A,$,_){return A.substr($,_-$)}var F=0;if(C==null)C="";this.originalCode=C;this.code=$(_(C));this.div=this.CreateElement("DIV");this.bar=this.CreateElement("DIV");this.ol=this.CreateElement("OL");this.matches=new Array();this.div.className="dp-highlighter";this.div.highlighter=this;this.bar.className="bar";this.ol.start=this.firstLine;if(this.CssClass!=null)this.ol.className=this.CssClass;if(this.collapse)this.div.className+=" collapsed";if(this.noGutter)this.div.className+=" nogutter";if(this.tabsToSpaces==true)this.code=this.ProcessSmartTabs(this.code);this.ProcessRegexList();if(this.matches.length==0){this.AddBit(this.code,null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol);return}this.matches=this.matches.sort(dp.sh.Highlighter.SortCallback);for(var E=0;E<this.matches.length;E++)if(this.IsInside(this.matches[E]))this.matches[E]=null;for(E=0;E<this.matches.length;E++){var B=this.matches[E];if(B==null||B.length==0)continue;this.AddBit(D(this.code,F,B.index),null);this.AddBit(B.value,B.css);F=B.index+B.length}this.AddBit(this.code.substr(F),null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol)};dp.sh.Highlighter.prototype.GetKeywords=function($){return"\\b"+$.replace(/ /g,"\\b|\\b")+"\\b"};dp.sh.HighlightAll=function(N,B,K,I,O,E){function A(){var $=arguments;for(var _=0;_<$.length;_++){if($[_]==null)continue;if(typeof($[_])=="string"&&$[_]!="")return $[_]+"";if(typeof($[_])=="object"&&$[_].value!="")return $[_].value+""}return null}function J($,_){for(var A=0;A<_.length;A++)if(_[A]==$)return true;return false}function L(A,B,C){var _=new RegExp("^"+A+"\\[(\\w+)\\]$","gi"),$=null;for(var D=0;D<B.length;D++)if(($=_.exec(B[D]))!=null)return $[1];return C}function C(B,A,_){var $=document.getElementsByTagName(_);for(var C=0;C<$.length;C++)if($[C].getAttribute("name")==A)B.push($[C])}var T=[],P=null,M={},$="innerHTML";C(T,N,"pre");C(T,N,"textarea");if(T.length==0)return;for(var R in dp.sh.Brushes){var F=dp.sh.Brushes[R].Aliases;if(F==null)continue;for(var G=0;G<F.length;G++)M[F[G]]=R}for(G=0;G<T.length;G++){var _=T[G],U=A(_.attributes["class"],_.className,_.attributes["language"],_.language),Q="";if(U==null)continue;U=U.split(":");Q=U[0].toLowerCase();if(M[Q]==null)M[Q]=M["default"];P=new dp.sh.Brushes[M[Q]]();P.language=Q;_.style.display="none";P.noGutter=(B==null)?J("nogutter",U):!B;P.addControls=(K==null)?!J("nocontrols",U):K;P.collapse=(I==null)?J("collapse",U):I;P.showColumns=(E==null)?J("showcolumns",U):E;var D=document.getElementsByTagName("head")[0];if(P.Style&&D){var S=document.createElement("style");S.setAttribute("type","text/css");if(S.styleSheet)S.styleSheet.cssText=P.Style;else{var H=document.createTextNode(P.Style);S.appendChild(H)}D.appendChild(S)}P.firstLine=(O==null)?parseInt(L("firstline",U,1)):O;P.Highlight(_[$]);P.source=_;_.parentNode.insertBefore(P.div,_)}};dp.sh.Brushes.JScript=function(){var $="abstract boolean break byte case catch char class const continue debugger "+"default delete do double else enum export extends false final finally float "+"for function goto if implements import in instanceof int interface long native "+"new null package private protected public return short static super switch "+"synchronized this throw throws transient true try typeof var void volatile while with";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("^\\s*#.*","gm"),css:"preprocessor"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-c"};dp.sh.Brushes.JScript.prototype=new dp.sh.Highlighter();dp.sh.Brushes.JScript.Aliases=["js","jscript","javascript"];dp.sh.Brushes.Java=function(){var $="abstract assert boolean break byte case catch char class const "+"continue default do double else enum extends "+"false final finally float for goto if implements import "+"instanceof int interface long native new null "+"package private protected public return "+"short static strictfp super switch synchronized this throw throws true "+"transient try void volatile while";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b","gi"),css:"number"},{regex:new RegExp("(?!\\@interface\\b)\\@[\\$\\w]+\\b","g"),css:"annotation"},{regex:new RegExp("\\@interface\\b","g"),css:"keyword"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-j";this.Style=".dp-j .annotation { color: #646464; }"+".dp-j .number { color: #C00000; }"};dp.sh.Brushes.Java.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Java.Aliases=["java"];dp.sh.Brushes.Ruby=function(){var $="alias and BEGIN begin break case class def define_method defined do each else elsif "+"END end ensure false for if in module new next nil not or raise redo rescue retry return "+"self super then throw true undef unless until when while yield",_="Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload "+"Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol "+"ThreadGroup Thread Time TrueClass";this.regexList=[{regex:dp.sh.RegexLib.SingleLinePerlComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp(":[a-z][A-Za-z0-9_]*","g"),css:"symbol"},{regex:new RegExp("(\\$|@@|@)\\w+","g"),css:"variable"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"},{regex:new RegExp(this.GetKeywords(_),"gm"),css:"builtin"}];this.CssClass="dp-rb";this.Style=".dp-rb .symbol { color: #a70; }"+".dp-rb .variable { color: #a70; font-weight: bold; }"};dp.sh.Brushes.Ruby.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Ruby.Aliases=["ruby","rails","ror"];dp.sh.Brushes.Xml=function(){this.CssClass="dp-xml";this.Style=".dp-xml .cdata { color: #ff1493; }"+".dp-xml .tag, .dp-xml .tag-name { color: #069; font-weight: bold; }"+".dp-xml .attribute { color: red; }"+".dp-xml .attribute-value { color: blue; }"};dp.sh.Brushes.Xml.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Xml.Aliases=["xml","xhtml","xslt","html","xhtml"];dp.sh.Brushes.Xml.prototype.ProcessRegexList=function(){function B(_,$){_[_.length]=$}var $=0,A=null,_=null;this.GetMatches(new RegExp("(&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](&gt;|>)","gm"),"cdata");this.GetMatches(new RegExp("(&lt;|<)!--\\s*.*?\\s*--(&gt;|>)","gm"),"comments");_=new RegExp("([:\\w-.]+)\\s*=\\s*(\".*?\"|'.*?'|\\w+)*|(\\w+)","gm");while((A=_.exec(this.code))!=null){if(A[1]==null)continue;B(this.matches,new dp.sh.Match(A[1],A.index,"attribute"));if(A[2]!=undefined)B(this.matches,new dp.sh.Match(A[2],A.index+A[0].indexOf(A[2]),"attribute-value"))}this.GetMatches(new RegExp("(&lt;|<)/*\\?*(?!\\!)|/*\\?*(&gt;|>)","gm"),"tag");_=new RegExp("(?:&lt;|<)/*\\?*\\s*([:\\w-.]+)","gm");while((A=_.exec(this.code))!=null)B(this.matches,new dp.sh.Match(A[1],A.index+A[0].indexOf(A[1]),"tag-name"))};dp.sh.Brushes.CSharp=function(){var $="abstract as base bool break byte case catch char checked class const "+"continue decimal default delegate do double else enum event explicit "+"extern false finally fixed float for foreach get goto if implicit in int "+"interface internal is lock long namespace new null object operator out "+"override params private protected public readonly ref return sbyte sealed set "+"short sizeof stackalloc static string struct switch this throw true try "+"typeof uint ulong unchecked unsafe ushort using virtual void while";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("^\\s*#.*","gm"),css:"preprocessor"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-c";this.Style=".dp-c .vars { color: #d00; }"};dp.sh.Brushes.CSharp.prototype=new dp.sh.Highlighter();dp.sh.Brushes.CSharp.Aliases=["c#","c-sharp","csharp"];dp.sh.Brushes.Cpp=function(){var _="ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR "+"DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH "+"HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP "+"HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY "+"HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT "+"HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE "+"LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF "+"LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR "+"LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR "+"PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT "+"PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 "+"POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR "+"PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 "+"PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT "+"SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG "+"ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM "+"char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t "+"clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS "+"FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t "+"__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t "+"jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler "+"sig_atomic_t size_t _stat __stat64 _stati64 terminate_function "+"time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf "+"va_list wchar_t wctrans_t wctype_t wint_t signed",$="break case catch class const __finally __exception __try "+"const_cast continue private public protected __declspec "+"default delete deprecated dllexport
                    
                
func_1290537556.js http://dream3d.googlecode.com/svn/trunk/ | JavaScript | 2 lines
                    
1/* This source code is Copyright (c) Vibrant Media 2001-2010 and forms part of the patented Vibrant Media product "IntelliTXT" (sm). */
                    
2try {if('undefined'==typeof $iTXT) {var $iTXT={};} if('undefined'==typeof $iTXT.func) {$iTXT.func={};} if('undefined'==typeof $iTXT.cnst) {$iTXT.cnst={};} if('undefined'==typeof $iTXT.glob) {$iTXT.glob={};}} catch(x) {$iTXT.debug.Util.msg('<b style="color:red;">NAMESPACE INITIALISATION FAIL</b> '+x.message,1);} $iTXT.debug.Category={PARAMETERS:{}};$iTXT.func.isUndefined=function(o) {return typeof o===typeof undefined;};$iTXT.func.isString=function(o) {return typeof o==="string";};$iTXT.func.addTemplateParams=function(rat,params,lvl) {if($iTXT.cnst.ADVERTTYPES_NEW_RENDER&&'undefined'==typeof($iTXT.cnst.ADVERTTYPES_NEW_RENDER["at"+rat])) {return;} lvl=lvl||0;if($iTXT.tmpl&&$iTXT.tmpl["type"+rat]) {if($iTXT.tmpl["type"+rat].params) {params.set($iTXT.tmpl["type"+rat].params,null,$iTXT.cnst.WEIGHTING_DEFAULT_TEMPLATE);}} else if(lvl<50) {window.setTimeout(function(){$iTXT.func.addTemplateParams(rat,params,lvl+1)},100);}};$iTXT.func.loadTranslations=function(l) {};$iTXT.func.logPerf=function() {if('undefined'==typeof $iTXT.glob.perfMon) {return'';} var rV='',ret=[];var ePs=$iTXT.glob.perfMon.logEventPairs();for(var ePc=0;ePc<ePs.length;ePc++) {var eP=ePs[ePc];if('string'==typeof eP.name&&!isNaN(eP.duration)) {ret[ret.length]=eP.name+':'+eP.duration;}} rV+=ret.join('|');return(''==rV)?rV:'&prf='+rV;};$iTXT.func.msgIframe=function(ifr,msg,encode) {if(null==ifr||!ifr.src||'string'!=typeof ifr.src||''==ifr.src||null==msg||'string'!=typeof msg) {return;} var url=ifr.src.split('#')[0];ifr.src=url+'#'+((encode)?encodeURIComponent(msg):msg);};$iTXT.func.checkTemplates=function() {if('undefined'==typeof $iTXT.tmpl) {$iTXT.tmpl={};} if(null!=$iTXT.glob&&'undefined'!=$iTXT.glob.templates) {for(var tmpl in $iTXT.glob.templates) {if('undefined'==typeof $iTXT.tmpl[tmpl]&&'string'==typeof $iTXT.glob.templates[tmpl]&&$iTXT.glob.templates[tmpl].match(/^http/)) {$iTXT.debug.Util.msg('<b style="color:blue;">New Render Mechanism:</b> loading template '+tmpl,0);itxtLES($iTXT.glob.templates[tmpl]);}}}};$iTXT.func.setClickThrough=function(url,did) {if(!url.match(/^http/)) return;var ad=fABDID(4==gPI?aADi:aAD,gDI,did);if(null==ad) return;var toks=itxtSubclass(gTokVals);ad.c=repToks(url,true,toks);};$iTXT.func.subst=function(target,data,delimiter) {var REGEX_PATTERN=/\$\{([\w$_]+)\}/g;if("'"!=delimiter&&'"'!=delimiter) {delimiter='';} if('object'!=typeof data) {return target;} else {return _iter(target,data,0);} function _iter(iteration,data,level) {if('string'==typeof iteration) {if(iteration.match(REGEX_PATTERN)) {var matches=iteration.match(REGEX_PATTERN);for(var i=0;i<matches.length;i++) {var replaceKey=matches[i].replace(/^\$\{/g,'').replace(/\}$/g,'');var replaceVal=data[replaceKey]||'';iteration=iteration.replace(REGEX_PATTERN,delimiter+replaceVal+delimiter);}}} else if('object'==typeof iteration) {for(var mem in iteration) {iteration[mem]=_iter(iteration[mem],data,level+1);}} return iteration;}};$iTXT.func.addAttrToTag=function(tag,name,value,replace) {var rxTag=new RegExp('^<(.*?)>');var fTag=rxTag.exec(tag);if(null==fTag||null==name||null==value) {return tag;} fTag=fTag[0];if('classname'==name.toLowerCase()) {name='class';} else if('rules'==name.toLowerCase()) {name='style';} var rxAttr=new RegExp(' '+name+'=\\"(.*?)\\"');var cVal=rxAttr.exec(fTag);if(null!=cVal) {cVal=cVal[1];if(!replace) {if('id'==name.toLowerCase()||cVal.match(value)) {return tag;} else if('class'!=name.toLowerCase()) {if(!cVal.match(/[}|;]\s*$/)) {cVal+=';';}} value=cVal+' '+value;} Value=value.replace(/"/g,'\\"');fTag=fTag.replace(rxAttr,' '+name+'="'+value+'"');} else {Value=value.replace(/"/g,'\\"');fTag=fTag.replace(/>$/,' '+name+'="'+value+'">');} return tag.replace(rxTag,fTag);};$iTXT.func.addPageStyle=function(target,rule,value) {try {var targetSS=null;for(var i=0;i<document.styleSheets.length;i++) {var thisSS=document.styleSheets[i];if(null!=thisSS.href&&'string'==typeof thisSS.href&&thisSS.href.indexOf("intellitxt">-1)&&thisSS.href.indexOf("vibitt">-1)) {targetSS=thisSS;continue;} else if(null!=thisSS.href&&'string'==typeof thisSS.href&&thisSS.href.indexOf("intellitxt">-1)) {targetSS=thisSS;} else if(null==targetSS&&i==(document.styleSheets.length-1)) {targetSS=thisSS;}} var lastIndex=((targetSS.cssRules)?targetSS.cssRules:targetSS.rules).length;if(targetSS.insertRule) {targetSS.insertRule(target+'{'+rule+':'+value+';}',lastIndex);} else {targetSS.addRule(target,rule+':'+value+';',lastIndex);}} catch(x) {$iTXT.debug.Util.msg('<b style="color:red;">Exception</b> in $iTXT.func.addPageStyle('+target+','+rule+','+value+'):'+x.message,1);}};$iTXT.func.queryPageStyle=function(target,rule,value,incVM) {try {if(null==incVM) {incVM=false;} target=$iTXT.data.Dom.parseSelector(target);rule=rule.toLowerCase();value=value.toLowerCase();for(var i=0;i<document.styleSheets.length;i++) {var thisSS=document.styleSheets[i];if(!incVM&&null!=thisSS.href&&'string'==typeof thisSS.href&&""!=thisSS.href&&thisSS.href.indexOf("intellitxt">-1)) {continue;} var rules=(thisSS.cssRules)?thisSS.cssRules:thisSS.rules;for(var j=0;j<rules.length;j++) {var thisRule=rules[j];if(!thisRule.selectorText) {continue;} var selectors=thisRule.selectorText.split(',');for(var k=0;k<selectors.length;k++) {var selector=selectors[k].replace(/(^\s+|\s+$)/g,"");selector=selector.split(' ')[selector.split(' ').length-1];selector=$iTXT.data.Dom.parseSelector(selector);if(target[0]==selector[0]&&target[1]==selector[1]&&target[2]==selector[2]) {var css=thisRule.style.cssText.split(";");for(l=0;l<css.length;l++) {var cssBits=css[l].split(":");if(!cssBits[0]||!cssBits[1]) {continue;} var candRule=cssBits[0].replace(/(^\s+|\s+$)/g,"").toLowerCase();var candValue=cssBits[1].replace(/(^\s+|\s+$)/g,"").toLowerCase();if(rule==candRule&&value==candValue) {return true;}}}}}}} catch(x) {$iTXT.debug.Util.msg('<b style="color:red;">Exception</b> in $iTXT.func.queryPageStyle('+target+','+rule+','+value+','+incVM+'):'+x.message,1);} return false;};$iTXT.func.inheritHookStyles=function(sN,tag,id) {var nBs=sN.getElementsByTagName(tag);for(var k=0;k<nBs.length;k++) {var nB=nBs[k];if(nB.id.indexOf(id)>-1&&nB.parentNode&&!$iTXT.func.isUndefined(nB.parentNode)) {var pN=nB.parentNode;if(pN.style&&!$iTXT.func.isUndefined(pN.style)) {nB.style.color=pN.style.color;nB.style.fontWeight=pN.style.fontWeight;nB.style.fontSize=pN.style.fontSize;if(pN.currentStyle&&!$iTXT.func.isUndefined(pN.currentStyle)&&!$iTXT.func.isUndefined(pN.currentStyle.fontFamily)) {nB.style.fontFamily=pN.currentStyle.fontFamily;} else if($iTXT.func.isUndefined(pN.style.fontFamily)) {nB.style.fontFamily=pN.style.fontFamily;}}}}};var iTTC=1,gdB,gGeo={cc:'',rcc:'',reg:'',city:'',pcode:'',dma:0},gTokVals=new Object(),server='',sWTU='',sIEWTU='',ipartid=0,ibid=0,ipid=0,mk=0,mi=0,iCF=0,aKW=null,aKWi=null,aAD=null,aADi=null,aDIDN=new Array(),ulS='',hS='',gWO='',gTU='',gDBL=0,gHLN=1,gBSS=0,gTI='',gDI=0,gPI=0,gSYI=0,gADI=0,gSI=1,gIESI=1,gSID='',gSpitTimer=0,gSpitCheck=0,mTL=50,kwpn=-1,kwpp=-1,ppp=0,gSN=new Array(),gAN=new Array(),gHN=new Array(),gUPN=new Array(),gBPN=new Array(),gLC=false,gNS={},gLD=false,gDTo=false,gDST,gCM="v2",gNC=0,gINt="",gIINt="",gITXTN=new Array(),gITXTNi=new Array(),gSEVer=(typeof(ScriptEngineMajorVersion)=="function"?parseFloat(ScriptEngineMajorVersion()+'.'+ScriptEngineMinorVersion()):5.5),gENC="",gMEKWT=0,gTTST=0,gLCL=0,gCL=0,gTTt=1500,gTTid=0,gDAT='',gEAT='',gUHT=null,gUHIR=0,gUHCR=0,gAUAT=0,larE=/\</g,garE=/\>/g,gATIg=null,gATIr=null,gATIs=null,gEATI=0,gFTTm=null,gFTTr=null,gFOJBG='',gFar=new Array(),gFInt=null,gFCnt=1,gSVURL='',gSVIMG='',gFdCk=0,gFdBck='',gaOv=null,gImC=null,gKWPF=0,gPVU='',gMTTc=0,gMInt=null,gFAint=0,gFAcnt=0,gPVM='',gFFMF=0,gSkp=0,gMiFo=0,giPh=(gOSType=="iphone"),gCSc='',gMed=null,gMImgW=0,gMImgH=0,gImgMP=0,gMOo=null,gODT='',gHkCap=1,kwp=0,gAdCnt="",gDr1Cnt="",gSRCntB="",gSRCntM="",gSRCntS="",gDr2Cnt="",bDr1On=0,bDr2On=0,gImgLoc='http://images.intellitxt.com/ast/ttips/1/',gDr1RAT=-1,gDr2RAT=-1,gIAA=0,gDocFunc={mmv:document.onmousemove,mup:document.onmouseup,ss:document.onselectstart,mpos:new Array(-1,-1)},gDIa=0,gTTBI='logo_va.gif',gTTBIF='',isVis=0,gFST='',gVmTS=/_TIMESTAMP_/g,ieCA=-1,gStEng=-1,gIEnt='nobr',gIEni='itxt_nobr',gRCTabLogo='';var dbST,dbET;if(gNeedProtos){if((gBVType=='netscape')&&(navigator.appVersion.indexOf("MSIE")>=0)){gNeedProtos=false;}} if(gBVType=="safari") {gSEVer=0;} window.setTimeout(function(){$iTXT.func.checkTemplates()},100);if(gNeedProtos) {gLC=false;with(HTMLElement.prototype) {__defineGetter__("parentElement",function(){return(this.parentNode==this.ownerDocument)?null:this.parentNode;});__defineGetter__("uniqueID",function(){if(!arguments.callee.count)arguments.callee.count=0;var uniqueID="ns_id"+arguments.callee.count++;window[uniqueID]=this;this.__defineGetter__("uniqueID",function(){return uniqueID;});return uniqueID;});var propName='currentStyle';__defineGetter__(propName,function(){try{if(this instanceof window)return null;} catch(e){window.getComputedStyle(this,null)} return window.getComputedStyle(this,null);});}} if('msie'==gBVType&&($iTXT.func.queryPageStyle('tr','overflow-x','hidden')||$iTXT.func.queryPageStyle('tr','overflow-x','scroll'))) {$iTXT.func.addPageStyle('span#iTt tr','overflow-x','visible !important');$iTXT.func.addPageStyle('center tr','overflow-x','visible !important');} function itxtSubclass(o) {function F(){};F.prototype=o;return new F();} function itxtuh(n) {var t=n.innerText;dbM('itxtuh='+t,1);var e=document.createTextNode(t),ns=n.nextSibling,pn=n.parentNode;if(null!=n.previousSibling) pn.insertBefore(e,n);else if(null!=ns) pn.insertBefore(e,ns);else pn.appendChild(e);pn.removeChild(n);} function itxtprep() {if(gDr1AT.length>0||gDr2AT.length>0||gDIa==1) {var s=gDrFP+(gDBL>0?"?ts="+gTokVals.TIMESTAMP:"");itxtLES(s);} if(null==gUHT) return;var t=document.getElementsByTagName(gUHT);for(var i=0;i<t.length;i++) if(t[i].id.match(gUHIR)) if(t[i].className.match(gUHCR)) itxtuh(t[i]);} function binarySearch(arr,item) {var left=-1,right=arr.length,mid;while(right-left>1) {mid=(left+right)>>>1;if(arr[mid]<item) left=mid;else right=mid;} if(arr[right]!=item) return-(right+1);return right;} function fNSN() {scrunch(document.getElementsByTagName('DIV'));scrunch(document.getElementsByTagName('SPAN'));} function scrunch(a) {if(null==a)return;for(i=0;i<a.length;i++) {var o=a[i];for(var l=0;l<gHN.length;l++) if(gHN[l].toLowerCase()==o.id.toLowerCase()) if(!o.getAttribute('name')) o.setAttribute('name',gHN[l]);if('intellitxt'==o.id.toLowerCase()) if(!o.getAttribute('name')) o.setAttribute('name','intelliTxt');for(var l=0;l<gAN.length;l++) if(gAN[l].toLowerCase()==o.id.toLowerCase()) if(!o.getAttribute('name')) o.setAttribute('name',gAN[l]);}} function addPGST(css) {var sheets=document.styleSheets,err='<b style="color:red;">CSS OVERRIDE FAIL</b> ';if(!sheets||css=='')return;var sheet=sheets[sheets.length-1],css=css.split('}'),cssEM,scAR,regx=/\s/g,end;try {if(sheet.addRule) {for(var i=0;i<css.length;i++) {cssEM=css[i].replace(regx,'');if(cssEM!='') {scAR=css[i].split('{');sheet.addRule(scAR[0],scAR[1]);}}} else if(sheet.insertRule) {for(var i=0;i<css.length;i++) {cssEM=css[i].replace(regx,'');if(cssEM!='') {try {end=sheet.cssRules.length;} catch(ex) {try {var st=document.createElement('style');document.getElementsByTagName('HEAD')[0].appendChild(st);sheets=document.styleSheets;sheet=sheets[sheets.length-1];end=sheet.cssRules.length;} catch(ex) {dbM(err+1,0);}} sheet.insertRule(css[i]+'}',end);}}} else {dbM(err+2,0);}} catch(ex) {dbM(err+3,0);}} function addCSS(url,id) {var bdy,doc=document,p,sc=doc.getElementById(id),hd=doc.getElementsByTagName('HEAD')[0];if(!hd) {bdy=document.getElementsByTagName('BODY')[0];p=bdy.parentNode;hd=doc.createElement('head');p.insertBefore(hd,bdy);} if(!sc) {sc=doc.createElement('link');sc.type="text/css";sc.id=id;sc.href=url;sc.rel='stylesheet';hd.appendChild(sc);}} function adEvt(ob,name,handler) {if(document.all) ob.attachEvent("on"+name,handler);else ob.addEventListener(name,handler,false);} function init_itxt() {iG();gdB=document.body;adEvt(window,'unload',ttH);if(gBVType!="msie") {fNSN();} gCM=dCM();iDW();aKW=new Array();aKWi=new Array();aAD=new Array();aADi=new Array();if(bWAC) {bYCR=confirm('Reset the page?');if(!bYCR) {dbM('Reset cancelled',1);return;}} doIt();$iTXT.func.loadTranslations(gGeo.cc);addCSS(gFST,'vib_css');addPGST(gSTOV);if(gDBL>1) {dbST=new Date().getTime();var iTxt=new Array();var aIAT=new Array();iDW();if(gCM=='v1') iTxt=gIA2();else iTxt=gIA(gdB,gCM,0);iTxt=gIAT(gMImgW,gMImgH,aIAT,gODT,iTxt,gImgMP);dbET=new Date().getTime();dbM('gIA Elapsed time: '+(dbET-dbST)+' ms.',1);dbST=new Date().getTime();iDW();if(gDBL>0&&gHLN) gAA(gdB,new Array(),gCM,0);dbET=new Date().getTime();dbM('gAA Elapsed time: '+(dbET-dbST)+' ms.',1);} dbM('server='+server+'\ncc='+gGeo.cc+'\nipid='+ipid+'\niCF='+iCF,0);if(gCLM==1) {if(gTc('ITXT_TTV')!='') gBSS=1;} else if(gCLM==2) gBSS=1;dbM("<i>Using SEVer:</i>"+gSEVer,1);dbM('<span style="color:red">Compatibility Mode: '+gCM+'</span>',1);} function dCM() {var gE=document.getElementsByName('intelliTxt');if(gE==null) gE=document.getElementsByName('intelliTXT');var gL;if(gE!=null) gL=gE.length;else gL=0;if(gL>0||gHN.length>0) {mTL=0;return"v1";} return"v2";} function checkSpit() {dbM('<font color=green>checkSpit()</font>',0);if(++gSpitCheck>4) {window.clearInterval(gSpitTimer);gSpitTimer=0;dbM('<font color=red>checkSpit() fail</font>',0);var s='http://'+server+'/al.asp?ipid='+ipid+'&ts='+gTokVals.TIMESTAMP+'&mt=13&mv=1&cf='+iCF+'&so='+iSo;$iTXT.core.Util.dropScript(s,function(removeFunction){removeFunction();});}} function spitHere() {dbM('<b>spitHere</b>',0);if(gSpitTimer>=0) {window.clearInterval(gSpitTimer);gSpitTimer=0;} if(($iTXT.glob.params.get("echm")&$iTXT.debug.Util.ECH_TIME_XFER)&&!$iTXT.func.isUndefined($iTXT.metrics.Context)&&!$iTXT.func.isUndefined($iTXT.metrics.Context.startXfer)) {$iTXT.metrics.Context.stopXfer=(new Date()).getTime();$iTXT.debug.Util.msg('<b style="color: blue">ECH:</b> Data transfer took '+($iTXT.metrics.Context.stopXfer-$iTXT.metrics.Context.startXfer)+'ms.');}} function fHFN(i,oNode,aHk) {var a=new Array();for(var j=0,n=aHk.length;j<n;j++) if(aHk[j].i==i) a[a.length]=aHk[j];return a;} function skippinder(){if(gSkp<=0)return;for(var i=0;i<gITXTN.length;i++){var nt=geTg(gITXTN[i])-gSkp;if(nt<=0){if(gDBL>0&&gHLN) hlN(gITXTN[i].parentNode,"#FCB514");gITXTN[i]=null;}else seTg(gITXTN[i],nt);}} var cNTg=1;var nTgs=new Array();nTgs[1]=0;function gIA(oNode,ver,mode) {var a=new Array();if(cFL(oNode)) return a;if(ver=="v1"&&mode!=1) {mode=cFIA(oNode);} if(iAA(oNode,ver,mode)) return a;if(iSA(oNode,ver,mode)) return a;if(iIA(oNode,ver,mode)) {if(gDBL>0&&gHLN) hlN(oNode.parentNode,"green");a[a.length]=oNode;gNC++;var tgCNd=geTg(oNode);if(!tgCNd) {if(iCNL(oNode.parentNode,gUPN)){if(gDBL>0&&gHLN) oNode.parentNode.style.borderStyle="dotted";var tgPar=geTg(oNode
                    
                
context_static_r494.js http://dream3d.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1(window.Ya&&window.Ya.Context)||(function(){var ae=window,k=document,m=ae.location,l=494,q=function(){},L=54273;function R(u){return k.getElementById(u)}ae.Ya=ae.Ya||{};Ya.Context={};var B=new function(){this.errorsLimit=3;this.log=function(al){if(!this.errorsLimit){return}this.errorsLimit--;if(!window.yandex_log_errors){return}var am=ae.yandex_partner_id||1;I("//an.yandex.ru/jserr/"+am+"?errmsg="+encodeURIComponent(al))};this.wrapFunc=function(al,am){var an=function(){try{var ao=am.apply(this,arguments);return ao}catch(ap){B.log("v"+l+":"+al+":"+ap.message+":"+u())}};an.__wrapped=true;return an};this.wrapObj=function(al,an){for(var am in an){if(an[am]&&an[am].apply&&!an[am].__wrapped){an[am]=this.wrapFunc(al+am,an[am])}}};function ak(al){var am=(al+"").match(/function\s*(\w*)/)[1];if((am==null)||(am.length==0)){am="anonymous"}return am}function u(){var ap="";if(typeof(arguments.caller)!="undefined"){for(var am=arguments.caller;am!=null;am=am.caller){ap+="> "+ak(am.callee);if(am.caller==am){ap+="*";break}}}else{var ao;try{foo.bar}catch(ao){var al=F(ao);for(var an=1;an<al.length;an++){ap+="> "+al[an]}}}return ap}function F(ao){var al=[];var am;if(!ao||!ao.stack){return al}var aq=ao.stack.split("\n");for(var an=0;an<aq.length-1;an++){var ap=aq[an];am=ap.match(/^(\w*)/)[1];if(!am){am="anonymous"}al[al.length]=am}return al}};Ya.Common=Ya.Common||{};function s(al,ao){ao=ao||{font_size:ae.yandex_font_size,font_family:ae.yandex_font_family};var ap=(ao.font_size)?O(parseFloat(ao.font_size),0.5,2.5,1):0;var am=["arial","courier new","tahoma","times new roman","verdana"];var u=(ao.font_family)?H(ao.font_family,am):"";var ak=["sans-serif","serif","monoscape"];var an=y(u,am,ak);var F=[];if(ap){F[0]=r([""],[t("font-size",ap+"em")],al)}if(u){F[1]=r(["*"],[t("font-family",u+", "+an)],al)}return F}function f(u){return u?u.replace(/<a href/gi,'<a class="snap_noshot" href'):""}function c(){return yandex_ad_is_displayed}function O(al,F,u,ak){return(al>=F&&al<=u)?al:ak}function H(al,ak){al=""+al;for(var F=0,u=ak.length;F<u;F++){if(al.toLowerCase()==ak[F]){return ak[F]}}return ak[0]}function A(F){F=""+F;var u=/^[0-9A-F]{6}$/i;return u.test(F)?"#"+F:""}function a(u){return Ya.Common.RGB.fromString(u).luma()>125?"black":"white"}function C(F,am,at){var an=F;an.style.backgroundColor=am;if(am==at){return}var al=k.createElement("canvas");var ap=navigator.appVersion.indexOf("MSIE")!=-1;if(typeof(al.getContext)=="function"){var ar=an.offsetWidth;var u=an.offsetHeight;al.width=ar;al.height=u;var aq=al.getContext("2d");var ak=aq.createLinearGradient(0,0,0,u);ak.addColorStop(0,am);ak.addColorStop(1,at);aq.fillStyle=ak;aq.fillRect(0,0,ar,u);var ao=aq.canvas.toDataURL("image/png");an.style.backgroundImage="url("+ao+")";an.style.backgroundRepeat="repeat-x";an.style.backgroundPosition="bottom"}else{if(ap){if(typeof(an.style.zoom)!="undefined"){an.style.zoom=1}an.style.filter="progid:DXImageTransform.Microsoft.Gradient(Enabled=true, GradientType=0, StartColorStr="+am+", EndColorStr="+at+")"}}}function w(al,F,u){var ak=al.split(F);return(ak[u])?ak[u]:""}function af(am,al){var u;for(var ak=0,F=al.length;ak<F;ak++){if(am==al[ak]){u=ak}}return u}function y(u,ak,F){return(u==ak[1])?F[2]:((u==ak[3])?F[1]:F[0])}function V(ak){var u,F=ak.replace(/<wbr>|&nbsp;|&middot;|\s/g,"").match(/class="url">(.*>)?([^>]+)<\/span>/);if(F){u=F[2]}return u?"//favicon.yandex.net/favicon/"+u.match(/[\w.-]+/):""}var j=+new Date;function W(u,av,ao){var ar=av?"table":"ul",al=av?"td":"li",ak,aq,ap="";var at=navigator.appVersion.indexOf("MSIE")!=-1,F=navigator.appVersion.indexOf("MSIE 7")!=-1,au="if (this.width &gt; 1) {this.className = 'y5_favicon';}";if(at){au+=" else if (!this.width) {this._img = new Image(); this._img.src = this.src; if (this._img.width &gt; 1) {this.className = 'y5_favicon';} this._img = null; this.style.fontSize = 0;}"}for(var an=0,am=u.length;an<am;an++){aq=V(u[an]);ak='<img onload="'+au+'" src="'+aq+'" alt=""/>';if(F){(function(){var ay="yandex_favaicon_"+(j++),ax=0,aw=setInterval(function(){var az=document.getElementById(ay);if(az){if(az.width==1){az.className+="y5_favicon1x1"}if(az.width>1){az.className+="y5_favicon"}}if(ax++>42||az&&az.width>=1){clearInterval(aw)}},500);ak='<img id="'+ay+'" src="'+aq+'" alt="" />'})()}u[an]=f(u[an]);if(ao&&aq){u[an]=u[an].replace(/(<div class="ad-link">)/,"$1"+ak)}ap+=b(al,b("div",u[an],["ad"]),["item"]);if(av&&an!=u.length-1){ap+=b(al,b("div",""),["nbsp"])}}if(av){ap="<tr>"+ap+"</tr>"}ap=b(ar,ap,["ads"]);return ap}function D(al){var ak="";for(var F=0,u=al.length;F<u;F++){ak+=b("li",b("div",al[F],["ad"]),["item"])}ak=b("ul",ak,["ads"]);return ak}function M(al){var ak="";for(var F=0,u=al.length;F<u;F++){ak+=b("td",b("div",al[F],["ad"]),["item"]);if(F!=al.length-1){ak+=b("td",b("div",""),["nbsp"])}}ak=b("table",ak,["ads"]);return ak}function b(ak,ao,ap,F,u){var an="<"+ak;if(F){an+=' id="y5_'+F+'"'}if(ap){an+=' class="';for(var am=0,al=ap.length;am<al;am++){if(ap[am]){an+=(ap[am]=="y5"||ap[am]=="snap_noshots"?"":"y5_")+ap[am]}if(am!=(ap.length-1)){an+=" "}}an+='"'}if(u){an+=" "+u}an+=">"+ao+"</"+ak+">";return an}function ah(u){return function(al,am,ak,F){return b(u,al,am,ak,F)}}var ai=ah("div"),E=ah("span"),ab=ah("u");function Z(F,u){return'<a class="snap_noshots" href="'+F+'" target="_blank">'+u+"</a>"}function t(u,F){if(F&&u){return u+": "+F+" !important;"}else{return""}}function r(u,am,F){var an=true,al="",ak;for(ak=0,iLength=u.length;ak<iLength;ak++){if(F){al+="#y5_"+F}al+=u[ak]?" "+(u[ak]!="*"?".y5_":"")+u[ak]:"";if(ak!=(u.length-1)){al+=", "}}al+=" {";for(ak=0,iLength=am.length;ak<iLength;ak++){if(am[ak]){al+=am[ak];if(ak!=(am.length-1)){al+=" "}an=false}}al+="}";return(!an)?al:""}function h(al){var ak="";for(var F=0,u=al.length;F<u;F++){if(al[F]){ak+=al[F];if(F!=(al.length-1)){ak+=" "}}}return ak}function v(){var F=k.getElementsByTagName("html")[0];if(!k.getElementsByTagName("head")[0]){F.appendChild(k.createElement("head"))}var u=k.getElementsByTagName("head")[0];return u}function z(){var u=k.getElementsByTagName("html")[0];if(!k.body){u.appendChild(k.createElement("body"))}return k.body}function U(){if((typeof(ae.innerWidth)=="number")||(typeof(ae.innerHeight)=="number")){return[ae.innerWidth,ae.innerHeight]}else{if(k.documentElement&&(k.documentElement.clientWidth||k.documentElement.clientHeight)){return[k.documentElement.clientWidth,k.documentElement.clientHeight]}else{if(k.body&&(k.body.clientWidth||k.body.clientHeight)){return[k.body.clientWidth,k.body.clientHeight]}}}return[null,null]}function K(){if((typeof(ae.pageXOffset)=="number")||(typeof(ae.pageYOffset)=="number")){return[ae.pageXOffset,ae.pageYOffset]}else{if(k.body&&(k.body.scrollLeft||k.body.scrollTop)){return[k.body.scrollLeft,k.body.scrollTop]}else{if(k.documentElement&&(k.documentElement.scrollLeft||k.documentElement.scrollTop)){return[k.documentElement.scrollLeft,k.documentElement.scrollTop]}}}return[null,null]}function T(ak){var u=0,F=0;var al=ak;while(al){u+=parseInt(al.offsetLeft,10);F+=parseInt(al.offsetTop,10);al=al.offsetParent}return[u,F]}function S(F){var u=k.createElement("script");u.type="text/javascript";u.src=F;return u}function I(u){v().appendChild(S(u))}function Q(u){if(u.toString()){k.write('<style type="text/css">'+u+"</style>")}}function G(F,ak,u){if(ae.addEventListener){F.addEventListener(ak.substr(2),u,false)}else{F.attachEvent(ak,u)}}function x(F,ak,u){if(ae.removeEventListener){F.removeEventListener(ak.substr(2),u,false)}else{F.detachEvent(ak,u)}}function p(u){var F=k.createElement("style");F.setAttribute("type","text/css");if(F.styleSheet){F.styleSheet.cssText=u}else{var ak=k.createTextNode(u);F.appendChild(ak)}v().appendChild(F)}function aa(ak){if(y5_isEntry(self.document.domain,ak)){return true}var F=true;if(top&&(self!==top)){F=false;try{if(top.document&&(self.document.domain==top.document.domain)){F=true}}catch(u){}}return F}ae.y5_addEvent=G;ae.y5_removeEvent=x;ae.y5_checkEntry=H;ae.y5_linkScript=I;ae.yandex_isAdShowen=c;Ya.Common.RGB=function(ak,F,u){this[0]=ak;this[1]=F;this[2]=u};Ya.Common.RGB.fromString=function(u){u=(u||"000000").replace(/^#/,"");return new this(parseInt(u.substr(0,2),16)||0,parseInt(u.substr(2,2),16)||0,parseInt(u.substr(4,2),16)||0)};Ya.Common.RGB.prototype=new function(){function u(ak){var F="0123456789ABCDEF";return F.charAt(ak/16<<0)+F.charAt(ak%16)}this.toString=function(){return"#"+u(this[0])+u(this[1])+u(this[2])};this.avg=function(){return(this[0]+this[1]+this[2])/3};this.luma=function(){return(this[0]*299+this[1]*587+this[2]*114)/1000}};Ya.Common.Base64=new function(){var ak="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",F=String.fromCharCode;this.encode=function(ao,an){an=an||1000000;var am="";var av,at,ar,aw,au,aq,ap;var al=0;ao=u(ao,an*3/4|0);while(al<ao.length){av=ao.charCodeAt(al++);at=ao.charCodeAt(al++);ar=ao.charCodeAt(al++);aw=av>>2;au=((av&3)<<4)|(at>>4);aq=((at&15)<<2)|(ar>>6);ap=ar&63;if(isNaN(at)){aq=ap=64}else{if(isNaN(ar)){ap=64}}am=am+ak.charAt(aw)+ak.charAt(au)+ak.charAt(aq)+ak.charAt(ap)}return am};function u(al,an){al=al.replace(/\r\n/g,"\n");var am="",ao;for(var aq=0;aq<al.length;aq++){var ap=al.charCodeAt(aq);if(ap<128){ao=F(ap)}else{if((ap>127)&&(ap<2048)){ao=F((ap>>6)|192);ao+=F((ap&63)|128)}else{ao=F((ap>>12)|224);ao+=F(((ap>>6)&63)|128);ao+=F((ap&63)|128)}}if(am.length+ao.length>an){break}am+=ao}return am}};function Y(){ae.yandex_direct_print=function(){Ya.Context.standardWrite(ae.yandex_partner_id*1,"direct")};ae.yandex_market_print=function(){Ya.Context.standardWrite(ae.yandex_partner_id*1,"market")};ae.yandex_media_print=function(){Ya.Context.standardWrite(ae.yandex_partner_id*1,"media")}}Ya.Context=new function(){this.hit=false;this.init=B.wrapFunc("c.init",function(){ak.call(this);if(window.yandex_partner_id){Ya.Context.metrikaHit(window.yandex_partner_id)}u()});this.metrikaHit=B.wrapFunc("c.hit",function(am){if(this.hit){return}this.hit=true;new Ya.Metrika(am,{},1)});this.standardWrite=B.wrapFunc("c.write",function(ao,am){if(am=="compatibility"){Y();ae.yandex_ad_format=null;return}var an=F.call(this);if(am=="direct"){Ya.Direct.write(ao,an)}else{this.Loader.loadSync(ao,am,an,function(){var ap={market:g,media:N,banner_market:n};var aq=ap[am];if(aq){aq.apply(ae,arguments)}})}});function u(){var am=ae.yandex_context_callbacks,an;if(am){for(an=0;an<am.length;an++){am[an]()}}ae.yandex_context_callbacks=undefined}function ak(){if(ae.yandex_ad_format){var am=ae.yandex_ad_format,an=ae.yandex_partner_id*1;this.standardWrite(an,am)}else{}}function F(){var an={},ao="type border_type header_position bg_color bg_start_color bg_end_color border_color header_bg_color title_color text_color url_color all_color hover_color limit place callback favicon show_how_link".split(" ");for(var am=0;am<ao.length;am++){an[ao[am]]=ae["yandex_direct_"+ao[am]];ae["yandex_direct_"+ao[am]]=null}al(an);return an}function al(an){var ao="site_bg_color font_size site_charset font_family".split(" ");for(var am=0;am<ao.length;am++){an[ao[am]]=ae["yandex_"+ao[am]]}}};(function(){Ya.Context.grab=function(ao){var ar=["t"+(document.title||"")],aq=ar[0].length,an=1,am,at;while(an<4&&aq<ao){am=document.getElementsByTagName("h"+an);for(var al=0;al<am.length;al++){at=F(am[al]);aq+=at.length;ar.push(an+""+at)}an++}var ap=ar.join("\n");return Ya.Common.Base64.encode(ap,ao)};function F(al){return ak(al,0).replace(/\s+/," ")}var u=5;function ak(an,ap){if(!an||ap>u){return""}var ao="",am=an.childNodes,al=0,aq;while(al<am.length){aq=am[al];switch(aq.nodeType){case 1:case 5:ao+=ak(aq,ap+1);break;case 3:case 2:case 4:ao+=aq.nodeValue+" ";break}al++}return ao}})();Ya.Context.Loader=new function(){var aq=this;this.cache={};this.syncListener=null;this.asyncQueue=[];this.syncPartnerId=null;this.lastLoadUid=-1;this.loadSync=B.wrapFunc("l.sync",function(aw,ar,au,at,av){if(!av){av=at;at=-1}this.syncPartnerId=aw=this.syncPartnerId||aw;this.syncListener={product:ar,callback:av,partnerId:aw};if(this.cache[aw]){F.call(this)}else{if(window.y5_defAdFormat){ap.call(this)}else{this.lastLoadUid=at;ao.call(this,aw,ar,au,at)}}});this.loadAsync=B.wrapFunc("l.async",function(aw,ar,au,at,av){if(!av){av=at;at=-1}this.lastLoadUid=at;this.asyncQueue.push({product:ar,callback:av,active:false,partnerId:aw,settings:au});al.call(this)});this.notify=B.wrapFunc("l.notify",function(ar,au){var at=ak.call(this);if(this.reading){this.cache[at]=this.cache[at]||{};this.cache[at][ar]=au}else{ap.call(this)}});function F(){an.call(this);if(this.syncListener){this.syncListener=null}else{this.asyncQueue=this.asyncQueue.slice(1);al.call(this)}}function ak(){return(this.syncListener&&this.syncListener.partnerId)||(this.asyncQueue.length&&this.asyncQueue[0].partnerId)}function al(){if(this.asyncQueue.length>0&&!this.asyncQueue[0].active){var ar=this.asyncQueue[0];ar.active=true;I(am(ar.partnerId,ar.product,ar.settings))}}function an(){var at=this.syncListener||this.asyncQueue[0];var ar=this.cache[ak.call(this)][at.product];if(ar){at.callback.apply(ae,ar)}}function ap(){this.reading=true;try{y5_getYandexDirect()}catch(ar){}try{y5_getYandexMarket();window.y5_iMarketCounter=0}catch(ar){}try{y5_getMediaBanner()}catch(ar){}try{y5_getBannerMarket()}catch(ar){}try{y5_getSearchForm()}catch(ar){}this.reading=false;F.call(this);window.y5_defAdFormat=null}ae.y5_showYandexDirect=function(){aq.notify("direct",arguments)};ae.y5_showYandexMarket=function(){aq.notify("market",arguments)};ae.y5_showMediaBanner=function(){aq.notify("media",arguments)};ae.y5_showBannerMarket=function(){aq.notify("banner_market",arguments)};ae.y5_showSearchForm=function(){aq.notify("search",arguments)};function ao(au,ar,at){y5_addScript(am(au,ar,at))}function am(ar,az,au){var av=ae.yandex_stat_id*1||0,aA=av?("&stat-id="+av):"",aw=au.site_charset||u(),ax=ae.y5_isTransform?((az=="direct"&&au.limit)?"&direct-limit="+parseInt(au.limit):""):"&direct-limit=9",ay=(ae.y5_isTransform&&az=="market"&&au.limit)?"&market-limit="+parseInt(au.limit):"",at="//an.yandex.ru/code/"+ar+"?rnd="+Math.round(Math.random()*1000000)+aA+ax+ay+"&charset="+aw+"&block-origin=2&page-ref="+y5_escape(k.referrer,512)+"&target-ref="+y5_escape(ae.location.href,512);at+="&grab=";if(location.protocol=="http:"){at+=Ya.Context.grab(2040-at.length)}return at}function u(){var aw,ar=k.getElementsByTagName("meta");if(ar&&ar.length>0){for(var au=0,at=ar.length;au<at;au++){if(ar[au].content){var av=ar[au].content.match(/charset=(.*)/);if(av){aw=av[1];break}}}}aw=aw||k.characterSet||k.charset;return aw}};Ya.Context.Warning=new function(){var ak=[255,247,240,231,221,210,194,174,144,112,80,35,0],F=[255,222,190,165,139,118,102,86,75,70,68,66,64],u=Ya.Common.RGB;this.getBgColor=function(ax){var an=u.fromString(ax),ap=an.avg(),ao=1;while(ap<ak[ao]){ao++}var au=ak[ao],am=ak[ao-1],ar=F[ao],av=F[ao-1],aw=(ar+1*(ap-au)/(am-au)*(av-ar))/255,at=1-aw,aq=255*aw;return new u(an[0]*at+aq,an[1]*at+aq,an[2]*at+aq).toString()};var al=0.85;this.getBorderColor=function(an,ao){var ap=u.fromString(an),am=u.fromString(ao);return new u(ap[
                    
                
addthis_widget.js http://dream3d.googlecode.com/svn/trunk/ | JavaScript | 2 lines
                    
1/* (c) 2008, 2009, 2010 Add This, LLC */
                    
2if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_atn="//l.addthiscdn.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,tamp:0.5,xamp:0,camp:1,vamp:1,famp:0.02,pamp:0.2,damp:1,abf:!!window.addthis_do_ab,unt:1};(function(){var E;try{E=window.location;if(E.protocol.indexOf("file")===0||E.protocol.indexOf("safari-extension")===0||E.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr}if(E.hostname.indexOf("localhost")!=-1){_atc.loc=1}}catch(L){}var I=navigator.userAgent.toLowerCase(),M=document,q=window,G=M.location,O={win:/windows/.test(I),xp:/windows nt 5.1/.test(I)||/windows nt 5.2/.test(I),osx:/os x/.test(I),chr:/chrome/.test(I),iph:/iphone/.test(I),dro:/android/.test(I),ipa:/ipad/.test(I),saf:/safari/.test(I),sf3:/safari 3/.test(I),web:/webkit/.test(I),opr:/opera/.test(I),msi:(/msie/.test(I))&&!(/opera/.test(I)),ffx:/firefox/.test(I),ff2:/firefox\/2/.test(I),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(I),ie6:/msie 6.0/.test(I),ie7:/msie 7.0/.test(I),mod:-1},f={rev:"86981",bro:O,wlp:(E||{}).protocol,show:1,dl:G,upm:!!q.postMessage&&(""+q.postMessage).toLowerCase().indexOf("[native code]")!==-1,camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"static/r07/widget25.png",api:{},imgz:[],hash:window.location.hash};M.ce=M.createElement;M.gn=M.getElementsByTagName;window._ate=f;var u=function(s,p,r,d){if(!s){return r}if(s instanceof Array||(s.length&&(typeof s!=="function"))){for(var l=0,a=s.length,b=s[0];l<a;b=s[++l]){r=p.call(d||s,r,b,l,s)}}else{for(var e in s){r=p.call(d||s,r,s[e],e,s)}}return r},z=Array.prototype.slice,B=function(b){return z.apply(b,z.call(arguments,1))},A=function(a){return(""+a).replace(/(^\s+|\s+$)/g,"")},K=function(a,b){return u(B(arguments,1),function(e,d){return u(d,function(p,l,i){if(p){p[i]=l}return p},e)},a)},m=function(b,a){return u(b,function(i,e,d){d=A(d);if(d){i.push(_euc(d)+"="+_euc(A(e)))}return i},[]).join(a||"&")},j=function(b,a){return u((b||"").split(a||"&"),function(p,s){try{var l=s.split("="),i=A(_duc(l[0])),d=A(_duc(l.slice(1).join("=")));if(i){p[i]=d}}catch(r){}return p},{})},Q=function(){var a=B(arguments,0),d=a.shift(),b=a.shift();return function(){return d.apply(b,a.concat(B(arguments,0)))}},F=function(b,e,a,d){if(!e){return}if(we){e[(b?"detach":"attach")+"Event"]("on"+a,d)}else{e[(b?"remove":"add")+"EventListener"](a,d,false)}},k=function(d,a,b){F(0,d,a,b)},g=function(d,a,b){F(1,d,a,b)},c={reduce:u,slice:B,strip:A,extend:K,toKV:m,fromKV:j,bind:Q,listen:k,unlisten:g};f.util=c;K(f,c);(function(s,R,S){var p,U=s.util;function w(X,W,Z,V,Y){this.type=X;this.triggerType=W||X;this.target=Z||V;this.triggerTarget=V||Z;this.data=Y||{}}U.extend(w.prototype,{constructor:w,bubbles:false,preventDefault:U.noop,stopPropagation:U.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,U.extend({},this.data))}});function i(V,W){this.target=V;this.queues={};this.defaultEventType=W||w}function a(V){var W=this.queues;if(!W[V]){W[V]=[]}return W[V]}function r(V,W){this.getQueue(V).push(W)}function e(W,X){var Y=this.getQueue(W),V=Y.indexOf(X);if(V!==-1){Y.splice(V,1)}}function b(V,Z,Y,X){var W=this;if(!X){setTimeout(function(){W.dispatchEvent(new W.defaultEventType(V,V,Z,W.target,Y))},10)}else{W.dispatchEvent(new W.defaultEventType(V,V,Z,W.target,Y))}}function T(W){for(var X=0,Z=W.target,Y=this.getQueue(W.type),V=Y.length;X<V;X++){Y[X].call(Z,W.clone())}}function d(W){if(!W){return}for(var V in l){W[V]=U.bind(l[V],this)}return W}var l={constructor:i,getQueue:a,addEventListener:r,removeEventListener:e,dispatchEvent:T,fire:b,decorate:d};U.extend(i.prototype,l);s.event={PolyEvent:w,EventDispatcher:i}})(f,f.api,f);f.ed=new f.event.EventDispatcher(f);var n={isBound:0,isReady:0,readyList:[],onReady:function(){if(!n.isReady){n.isReady=1;var a=n.readyList.concat(window.addthis_onload||[]);for(var b=0;b<a.length;b++){a[b].call(window)}n.readyList=[]}},addLoad:function(a){var b=q.onload;if(typeof q.onload!="function"){q.onload=a}else{q.onload=function(){if(b){b()}a()}}},bindReady:function(){if(x.isBound||_atc.xol){return}x.isBound=1;if(M.addEventListener&&!O.opr){M.addEventListener("DOMContentLoaded",x.onReady,false)}var a=window.addthis_product;if(a&&a.indexOf("f")>-1){x.onReady();return}if(O.msi&&window==top){(function(){if(x.isReady){return}try{M.documentElement.doScroll("left")}catch(d){setTimeout(arguments.callee,0);return}x.onReady()})()}if(O.opr){M.addEventListener("DOMContentLoaded",function(){if(x.isReady){return}for(var d=0;d<M.styleSheets.length;d++){if(M.styleSheets[d].disabled){setTimeout(arguments.callee,0);return}}x.onReady()},false)}if(O.saf){var b;(function(){if(x.isReady){return}if(M.readyState!="loaded"&&M.readyState!="complete"){setTimeout(arguments.callee,0);return}if(b===undefined){var d=M.gn("link");for(var e=0;e<d.length;e++){if(d[e].getAttribute("rel")=="stylesheet"){b++}}var l=M.gn("style");b+=l.length}if(M.styleSheets.length!=b){setTimeout(arguments.callee,0);return}x.onReady()})()}x.addLoad(x.onReady)},append:function(b,a){x.bindReady();if(x.isReady){b.call(window,[])}else{x.readyList.push(function(){return b.call(window,[])})}}},x=n,P=f;K(f,{plo:[],lad:function(a){f.plo.push(a)}});(function(d,l,e){var a=window;d.pub=function(){return _euc((window.addthis_config||{}).username||window.addthis_pub||"")};d.usu=function(i,p){if(!a.addthis_share){a.addthis_share={}}if(p||i!=addthis_share.url){addthis_share.imp_url=0}};d.rsu=function(){var r=document,p=r.title,i=r.location?r.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&i&&i!=a.addthis_share.url&&!(f.util.ivc((r.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=i;a.addthis_share.title=a.addthis_title=p;return 1}return 0};d.igv=function(i,p){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub}}else{if(addthis_config.data_use_cookies===false){_atc.xck=1}}if(!a.addthis_share){a.addthis_share={}}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1}addthis_share.url=(a.addthis_url||i||"").split("#{").shift()}if(!addthis_share.title){addthis_share.title=(a.addthis_title||p||"").split("#{").shift()}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={}}for(var b in addthis_conf){_atc[b]=addthis_conf[b]}_atc.ost=1}})(f,f.api,f);(function(b,l,e){var r,p=document,a=b.util;b.ckv=a.fromKV(p.cookie,";");function i(d){return a.fromKV(p.cookie,";")[d]}if(!b.cookie){b.cookie={}}b.cookie.rck=i})(f,f.api,f);(function(e,i,p){var d,R=e.util,s=4294967295,b=new Date().getTime();function r(){return((b/1000)&s).toString(16)+("00000000"+(Math.floor(Math.random()*(s+1))).toString(16)).slice(-8)}function a(S){return w(S)?(new Date((parseInt(S.substr(0,8),16)*1000))):new Date()}function l(S,U){var T=a(S);return(((new Date()).getTime()-T.getTime())>U*1000)}function w(S){return S&&S.match(/^[0-9a-f]{16}$/)}R.cuid=r;R.ivc=w;R.ioc=l})(f,f.api,f);(function(l,aa,ac){var ad=l,R=new Date().getTime(),Z=function(){return Math.floor(Math.random()*4294967295).toString(36)},ae=function(){return Math.floor((new Date().getTime()-R)/100).toString(16)},w=function(a){return"CXNID=2000001.521545608054043907"+(a||2)+"NXC"},p=0,s=function(a){if(p===0){ad.sid=p=(a||ad.util.cuid())}return p},e=null,d=function(a,af){if(e!==null){clearTimeout(e)}if(a){e=f.sto(function(){af(false)},f.wait)}},W=function(af,a){return _euc(af)+"="+_euc(a)+";"+ae()},V=1,r=function(af,ah){var a=(af||"").split("?"),af=a.shift(),ag=(a.pop()||"").split("&");return ah(af,ag)},S=function(a,af,ah,ag){if(!af){af={}}if(!af.remove){af.remove=[]}af.remove.push("sms_ss");af.remove.push("at_xt");if(af.remove){a=ab(a,af.remove)}if(af.clean){a=T(a)}if(af.defrag){a=i(a)}if(af.add){a=U(a,af.add,ah,ag)}return a},U=function(ah,aj,ai,af){var a={};if(aj){for(var ag in aj){if(ah.indexOf(ag+"=")>-1){continue}a[ag]=X(aj[ag],ah,ai,af)}aj=f.util.toKV(a)}return ah+(aj.length?((ah.indexOf("?")>-1?"&":"?")+aj):"")},X=function(ag,af,ah,a){var ah=ah||addthis_share;return ag.replace(/{{service}}/g,_euc(a||"")).replace(/{{code}}/g,_euc(a||"")).replace(/{{title}}/g,_euc(ah.title)).replace(/{{url}}/g,_euc(af))},ab=function(af,ah){var a={},ah=ah||[];for(var ag=0;ag<ah.length;ag++){a[ah[ag]]=1}return r(af,function(ai,al){var am=[];if(al){for(var aj in al){if(typeof(al[aj])=="string"){var ak=(al[aj]||"").split("=");if(ak.length!=2&&al[aj]){am.push(al[aj])}else{if(a[ak[0]]){continue}else{if(al[aj]){am.push(al[aj])}}}}}ai+=(am.length?("?"+am.join("&")):"")}return ai})},Y=function(a){var af=a.split("#").pop().split(",").shift().split("=").pop();if(f.util.ivc(af)){return a.split("#").pop().split(",")}return[""]},i=function(a){var af=Y(a).shift().split("=").pop();if(f.util.ivc(af)){return a.split("#").shift()}return a},T=function(a){return r(a,function(ag,aj){var af=ag.indexOf(";jsessionid"),ak=[];if(af>-1){ag=ag.substr(0,af)}if(aj){for(var ah in aj){if(typeof(aj[ah])=="string"){var ai=(aj[ah]||"").split("=");if(ai.length==2){if(ai[0].indexOf("utm_")===0||ai[0]=="gclid"||ai[0]=="sms_ss"||ai[0]=="at_xt"){continue}}if(aj[ah]){ak.push(aj[ah])}}}ag+=(ak.length?("?"+ak.join("&")):"")}return ag})},b=function(){return"AT-"+(ad.pub?(typeof(ad.pub)=="function"?ad.pub():ad.pub):"unknown")+"/-/"+ad.ab+"/"+s()+"/"+(V++)+(ad.uid!==null?"/"+ad.uid:"")};if(!f.track){f.track={}}l.util.extend(f.track,{cst:w,fcv:W,ran:Z,rup:ab,aup:U,cof:i,gof:Y,clu:T,mgu:S,ssid:s,sta:b,sxm:d})})(f,f.api,f);(function(){var Y=document,Z=f,s=[],r=null,T=[],w=function(){var a;while(a=T.pop()){X(a)}},i=[],V=null,W=function(d){d=d.split("-").shift();for(var a=0;a<i.length;a++){if(i[a]==d){return}}i.push(d)},R=function(){},aa=null,p=function(){var a=Y.getElementById("_atssh");if(!a){a=Y.ce("div");a.style.visibility="hidden";a.id="_atssh";Z.opp(a.style);Y.body.insertBefore(a,Y.body.firstChild)}return a},b=function(a){var ad,d=Math.floor(Math.random()*1000),ac=p();if(!Z.bro.msi){ad=Y.ce("iframe");ad.id="_atssh"+d}else{if(Z.bro.ie6&&!a&&Y.location.protocol.indexOf("https")==0){a="javascript:''"}ac.innerHTML='<iframe id="_atssh'+d+'" width="1" height="1" name="_atssh'+d+'" '+(a?'src="'+a+'"':"")+">";ad=Y.getElementById("_atssh"+d)}Z.opp(ad.style);ad.frameborder=ad.style.border=0;ad.style.top=ad.style.left=0;return ad},S=function(a){if(a&&a.data&&a.data.service){if(!Z.upm){if(Z.dcp){return}Z.dcp=1}X({gen:300,sh:a.data.service})}},e=function(d){var ac={},af=d.data||{},ad=af.svc,ae=af.cmo,a=af.pco,ag=af.cso;if(ad){ac.sh=ad}if(ae){ac.cm=ae}if(ag){ac.cs=ag}if(a){ac.spc=a}ab("sh","3",null,ac)},X=function(d){var ad=Z.dr,a=(Z.rev||"");if(!d){return}d.xck=_atc.xck?1:0;d.xxl=1;d.sid=Z.track.ssid();d.pub=Z.pub();d.ssl=Z.ssl||0;d.du=Z.tru(Z.du||Z.dl.href);if(Z.dt){d.dt=Z.dt}if(Z.cb){d.cb=Z.cb}d.lng=Z.lng();d.ver=_atc.ver;if(!Z.upm&&Z.uid){d.uid=Z.uid}d.pc=d.spc||i.join(",");if(ad){d.dr=Z.tru(ad)}if(Z.dh){d.dh=Z.dh}if(a){d.rev=a}if(Z.xfr){if(Z.upm){if(aa){aa.contentWindow.postMessage(m(d),"*")}}else{var ae=p(),ac="static/r07/sh29.html"+(false?"?t="+new Date().getTime():"");if(aa){ae.removeChild(ae.firstChild)}aa=b();aa.src=_atr+ac+"#"+m(d);ae.appendChild(aa)}}else{T.push(d)}},ab=function(ac,af,a,ad,ae){if(!window.at_sub&&!_atc.xtr){var d=ad||{};d.evt=ac;if(a){d.ext=a}r=d;if(ae===1){l(true)}else{Z.track.sxm(true,l)}}},U=function(d,a){s.push(Z.track.fcv(d,a));Z.track.sxm(true,l)},l=function(ad){var ac=Z.dl?Z.dl.hostname:"";if(s.length>0||r){Z.track.sxm(false,l);if(_atc.xtr){return}var d=r||{};d.ce=s.join(",");s=[];r=null;X(d);if(ad){var a=Y.ce("iframe");a.id="_atf";f.opp(a.style);Y.body.appendChild(a);a=Y.getElementById("_atf")}}};Z.ed.addEventListener("addthis-internal.compact",e);Z.ed.addEventListener("addthis.menu.share",S);if(!Z.track){Z.track={}}Z.util.extend(Z.track,{pcs:i,apc:W,cev:U,ctf:b,gtf:p,qtp:function(a){T.push(a)},stf:function(a){aa=a},trk:X,xtp:w})})();K(f,{_rec:[],xfr:!f.upm||!f.bro.ffx,pmh:function(d){if(d.origin.slice(-12)==".addthis.com"){if(!d.data){return}var b=j(d.data),a=f._rec;for(var i=0;i<a.length;i++){a[i](b)}}}});K(f,{lng:function(){return window.addthis_language||(window.addthis_config||{}).ui_language||(f.bro.msi?navigator.userLanguage:navigator.language)||"en"},iwb:function(a){var b={th:1,pl:1,sl:1,gl:1,hu:1,is:1,nb:1,se:1,su:1,sw:1};return !!b[a]},ivl:function(a){var b={af:1,afr:"af",ar:1,ara:"ar",az:1,aze:"az",be:1,bye:"be",bg:1,bul:"bg",bn:1,ben:"bn",bs:1,bos:"bs",ca:1,cat:"ca",cs:1,ces:"cs",cze:"cs",cy:1,cym:"cy",da:1,dan:"da",de:1,deu:"de",ger:"de",el:1,gre:"el",ell:"ell",en:1,eo:1,es:1,esl:"es",spa:"spa",et:1,est:"et",eu:1,fa:1,fas:"fa",per:"fa",fi:1,fin:"fi",fo:1,fao:"fo",fr:1,fra:"fr",fre:"fr",ga:1,gae:"ga",gdh:"ga",gl:1,glg:"gl",gu:1,he:1,heb:"he",hi:1,hin:"hin",hr:1,ht:1,cro:"hr",hu:1,hun:"hu",id:1,ind:"id",is:1,ice:"is",it:1,ita:"it",ja:1,jpn:"ja",ko:1,kor:"ko",ku:1,lb:1,ltz:"lb",lt:1,lit:"lt",lv:1,lav:"lv",mk:1,mac:"mk",mak:"mk",ml:1,mn:1,ms:1,msa:"ms",may:"ms",nb:1,nl:1,nla:"nl",dut:"nl",no:1,nds:1,nn:1,nno:"no",oc:1,oci:"oc",pl:1,pol:"pl",ps:1,pt:1,por:"pt",ro:1,ron:"ro",rum:"ro",ru:1,rus:"ru",sk:1,slk:"sk",slo:"sk",sl:1,slv:"sl",sq:1,alb:"sq",sr:1,se:1,si:1,ser:"sr",su:1,sv:1,sve:"sv",sw:1,swe:"sv",ta:1,tam:"ta",te:1,teg:"te",th:1,tha:"th",tl:1,tgl:"tl",tn:1,tr:1,tur:"tr",tt:1,uk:1,ukr:"uk",ur:1,urd:"ur",vi:1,vec:1,vie:"vi","zh-hk":1,"chi-hk":"zh-hk","zho-hk":"zh-hk","zh-tr":1,"chi-tr":"zh-tr","zho-tr":"zh-tr","zh-tw":1,"chi-tw":"zh-tw","zho-tw":"zh-tw",zh:1,chi:"zh",zho:"zh"};if(b[a]){return b[a]}a=a.split("-").shift();if(b[a]){if(b[a]===1){return a}else{return b[a]}}return 0},gvl:function(a){var b=f.ivl(a)||"en";if(b===1){b=a}return b},alg:function(d,b){var a=f.gvl((d||f.lng()).toLowerCase());if(a.indexOf("en")!==0&&(!f.pll||b)){f.pll=f.ajs("static/r07/lang08/"+a+".js")}}});K(f,{trim:function(a,b){try{a=a.replace(/^[\s\u3000]+|[\s\u3000]+$/g,"");if(b){a=_euc(a)}}catch(b){}return a||""},trl:[],tru:function(b,a){var p="",e=0,l=-1;if(b){p=b.substr(0,300);if(p!==b){if((l=p.lastIndexOf("%"))>=p.length-4){p=p.substr(0,l)}if(p!=b){for(var d in f.trl){if(f.trl[d]==a){e=1}}if(!e){f.trl.push(a)}}}}return p},sto:function(b,a){return setTimeout(b,a)},opp:function(a){a.width=a.height="1px";a.position="absolute";a.zIndex=100000},jlr:{},ajs:function(b,a){if(!f.jlr[b]){var e=M.ce("script"),d=M.gn("head")[0]||M.documentElement;e.src=(a?"":_atr)+b;d.insertBefore(e,d.firstChild);f.jlr[b]=1;return e}return 1},jlo:function(){try{var r=document,b=f,p=b.lng(),i=function(d){var a=new Image();f.imgz.push(a);a.src=d};b.alg(p);if(!b.pld){if(b.bro.ie6){i(_atr+b.spt);i(_atr+"static/t00/logo1414.gif");i(_atr+"static/t00/logo88.gif");if(window.addthis_feed){i("static/r05/feed00.gif",1)}}if(b.pll&&!window.addthis_translations){b.sto(function(){b.pld=b.ajs("static/r07/menu65.js")},10)}else{b.pld=b.ajs("static/r07/menu65.js")}}}catch(l){}},ao:functio
                    
                
uri.js git://github.com/v8/v8.git | JavaScript | 393 lines
                    
388      "encodeURI", URIEncode,
                    
389      "encodeURIComponent", URIEncodeComponent
                    
390  ));
                    
                
dllearner-module.js https://code.google.com/p/ontowiki/ | JavaScript | 198 lines
                    
86			//alert($jq("#radio"+i).attr("name"));
                    
87			//pos[i] = encodeURIComponent ($jq("#radio"+i).attr("name"));
                    
88			p += encodeURIComponent ($jq("#radio"+i).attr("name"))+"/";
                    
91			//alert($jq("#radio"+i).attr("name"));
                    
92			//neg[i] = encodeURIComponent ($jq("#radio"+i).attr("name"));
                    
93			n += encodeURIComponent ($jq("#radio"+i).attr("name"))+"/";
                    
96	}
                    
97	action = encodeURIComponent ($jq(event.currentTarget).attr("name"));
                    
98	// refresh the main
                    
104	// look for the name and encode it for uri
                    
105	action = encodeURIComponent ($jq(event.currentTarget).attr("name"));
                    
106	// refresh the main
                    
115	if ($jq("#radio"+i).attr("checked")){
                    
116	s += encodeURIComponent ($jq("#radio"+i).attr("value"));
                    
117	//alert(s);
                    
                
PagesView.js http://vosao.googlecode.com/svn/trunk/ | JavaScript | 345 lines
                    
76	function renderPage(vo) {
                    
77		var pageUrl = encodeURIComponent(vo.entity.friendlyURL);
                    
78		var title = showTitle ? vo.entity.title : vo.entity.pageFriendlyURL;
                    
                
all.compressed.js http://nostrive.googlecode.com/svn/trunk/ | JavaScript | 3134 lines
                    
153for(var i=0;i<_4[_7].length;i++){
                    
154_6.push(encodeURIComponent(_7)+"="+encodeURIComponent(_4[_7]));
                    
155}
                    
156}else{
                    
157_6.push(encodeURIComponent(_7)+"="+encodeURIComponent(_4[_7]));
                    
158}
                    
                
qt.js http://aita-appserver.googlecode.com/svn/trunk/ | JavaScript | 1208 lines
                    
51	/**
                    
52	* ??????? $?isIE?encodeURIComponent,checkForm,Array.prototype.add & remove,
                    
53	*/
                    
                
plugin.longzang.js http://thinksns-2.googlecode.com/svn/trunk/ | JavaScript | 643 lines
                    
17            KE.Utils.debugUrl("plugins/uploader/uploader.longzang.swf?t=" +
                    
18                encodeURIComponent("2010-11-05 10:01:17") //+
                    
19                // "&rand=" + (+new Date())
                    
                
plugin.yui.js http://thinksns-2.googlecode.com/svn/trunk/ | JavaScript | 643 lines
                    
18            KE.Utils.debugUrl("plugins/uploader/uploader.yui.swf?t=" +
                    
19                encodeURIComponent("2010-11-19 15:41:38") +
                    
20                "&rand=" +
                    
                
jquery.jmesa.js http://jmesa.googlecode.com/svn/trunk/jmesa/ | JavaScript | 1002 lines
                    
382            $.each(filterSet, function(index, filter) {
                    
383                url += '&' + limit.id + '_f_' + filter.property + '=' + encodeURIComponent(filter.value);
                    
384            });
                    
                
jquery-all.min.js https://code.google.com/p/lsd-website/ | JavaScript | 61 lines
                    
1jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1;}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires="; expires="+date.toUTCString();}var path=options.path?"; path="+(options.path):"";var domain=options.domain?"; domain="+(options.domain):"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("");}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+"=")){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};
                    
2/*
                    
                
ga.js https://code.google.com/p/lsd-website/ | JavaScript | 52 lines
                    
1(function(){var g=void 0,h=null,aa=encodeURIComponent,ba=decodeURIComponent,i=Math;function ca(a,b){return a.name=b}var k="push",da="slice",ea="replace",fa="load",l="charAt",ga="value",m="indexOf",ha="match",o="name",ja="host",r="toString",s="length",t="prototype",u="split",v="stopPropagation",ka="scope",w="location",x="getString",y="substring",la="navigator",A="join",B="toLowerCase",C;function ma(a,b){switch(b){case 0:return""+a;case 1:return a*1;case 2:return!!a;case 3:return a*1E3}return a}function D(a){return g==a||"-"==a||""==a}function na(a){if(!a||""==a)return"";for(;a&&" \n\r\t"[m](a[l](0))>-1;)a=a[y](1);for(;a&&" \n\r\t"[m](a[l](a[s]-1))>-1;)a=a[y](0,a[s]-1);return a}function oa(a){var b=1,c=0,d;if(!D(a)){b=0;for(d=a[s]-1;d>=0;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=c!=0?b^c>>21:b}return b}function pa(){return i.round(i.random()*2147483647)}
                    
2function qa(){}function E(a,b){return aa instanceof Function?b?encodeURI(a):aa(a):(F(68),escape(a))}function G(a){a=a[u]("+")[A](" ");if(ba instanceof Function)try{return ba(a)}catch(b){F(17)}else F(68);return unescape(a)}var ra=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},sa=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,!!d):a.detachEvent&&a.detachEvent("on"+b,c)};function H(a){return a&&a[s]>0?a[0]:""}
                    
                
addthis_widget_002.js http://ki-va-le.googlecode.com/svn/trunk/ | JavaScript | 3 lines
                    
1/* (c) 2008, 2009, 2010 Add This, LLC */
                    
2if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,bamp:0.25,camp:1,csmp:0.0001,damp:1,famp:0.02,pamp:0.2,tamp:1,lamp:1,vamp:1,vrmp:0.0001,ltj:1,xamp:1,abf:!!window.addthis_do_ab};(function(){var l;try{l=window.location;if(l.protocol.indexOf("file")===0||l.protocol.indexOf("safari-extension")===0||l.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr;}if(l.hostname.indexOf("localhost")!=-1){_atc.loc=1;}}catch(e){}var ua=navigator.userAgent.toLowerCase(),d=document,w=window,dl=d.location,b={win:/windows/.test(ua),xp:(/windows nt 5.1/.test(ua))||(/windows nt 5.2/.test(ua)),osx:/os x/.test(ua),chr:/chrome/.test(ua),chb:/chrome\/(1[456789])/.test(ua),iph:/iphone/.test(ua),dro:/android/.test(ua),ipa:/ipad/.test(ua),saf:/safari/.test(ua)&&!(/chrome/.test(ua)),opr:/opera/.test(ua),msi:(/msie/.test(ua))&&!(/opera/.test(ua)),ffx:/firefox/.test(ua),ff2:/firefox\/2/.test(ua),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(ua),ie6:/msie 6.0/.test(ua),ie7:/msie 7.0/.test(ua),ie8:/msie 8.0/.test(ua),ie9:/msie 9.0/.test(ua),mod:-1},_7={rev:"109333",bro:b,wlp:(l||{}).protocol,dl:dl,upm:!!w.postMessage&&(""+w.postMessage).toLowerCase().indexOf("[native code]")!==-1,bamp:_atc.bamp-Math.random(),camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"//s7.addthis.com/static/r07/widget40.png",api:{},imgz:[],hash:window.location.hash};d.ce=d.createElement;d.gn=d.getElementsByTagName;window._ate=_7;_7.evl=function(_8,_9){if(_9){var _a;eval("evl = "+_8);return _a;}else{return eval(_8);}};function reduce(o,fn,_d,_e){if(!o){return _d;}if(o instanceof Array||(o.length&&(typeof o!=="function"))){for(var i=0,len=o.length,v=o[0];i<len;v=o[++i]){_d=fn.call(_e||o,_d,v,i,o);}}else{for(var _12 in o){_d=fn.call(_e||o,_d,o[_12],_12,o);}}return _d;}var _13=function(_14,_15){reduce(_14,function(acc,v,k){_15(k,v);},[]);},_19=function(a,b){var _1c={};for(var i=0;i<a.length;i++){_1c[a[i]]=1;}for(var i=0;i<b.length;i++){if(!_1c[b[i]]){a.push(b[i]);_1c[b[i]]=1;}}return a;},_1e=Array.prototype.slice,_1f=function(a){return _1e.apply(a,_1e.call(arguments,1));},_21=function(s){return(""+s).replace(/(^\s+|\s+$)/g,"");},_23=function(A,B){return reduce(_1f(arguments,1),function(A,_27){return reduce(_27,function(o,v,k){if(o){o[k]=v;}return o;},A);},A);},_2b=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21((typeof(v)=="object"?_2b(v,(del||"&")):(v)))));}return acc;},[]).join(del||"&");},_31=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21(v)));}return acc;},[]).join(del||"&");},_37=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_3b){try{var kv=_3b.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(v.indexOf(del||"&")>-1||v.indexOf("=")>-1){v=_37(v,del||"&");}if(k){acc[k]=v;}}catch(e){}return acc;},{});},_3f=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_43){try{var kv=_43.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(k){acc[k]=v;}}catch(e){}return acc;},{});},_47=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var s="";for(var _4a in obj){if(obj.hasOwnProperty(_4a)){s+=((s.length>0)?",":"")+obj[_4a];}}return s;}return null;},_4b=function(){var _4c=_1f(arguments,0),fn=_4c.shift(),_4e=_4c.shift();return function(){return fn.apply(_4e,_4c.concat(_1f(arguments,0)));};},_4f=function(un,obj,evt,fn){if(!obj){return;}if(we){obj[(un?"detach":"attach")+"Event"]("on"+evt,fn);}else{obj[(un?"remove":"add")+"EventListener"](evt,fn,false);}},_54=function(obj,evt,fn){_4f(0,obj,evt,fn);},_58=function(obj,evt,fn){_4f(1,obj,evt,fn);},_5c=function(s){return(s.match(/(([^\/\/]*)\/\/|\/\/)?([^\/\?\&\#]+)/i))[0];},_5e=function(s){return s.replace(_5c(s),"");},_60=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var _62={};for(var _63 in obj){if(obj.hasOwnProperty(_63)){_62[_63]=_60(obj[_63]);}}return _62;}return null;},_64={unqconcat:_19,reduce:reduce,slice:_1f,strip:_21,extend:_23,toKV:_31,rtoKV:_2b,fromKV:_3f,rfromKV:_37,otoCSV:_47,bind:_4b,listen:_54,unlisten:_58,gUD:_5c,gUQS:_5e,clone:_60};_7.util=_64;_23(_7,_64);(function(i,k,l){var g,n=i.util;function j(q,p,s,o,r){this.type=q;this.triggerType=p||q;this.target=s||o;this.triggerTarget=o||s;this.data=r||{};}n.extend(j.prototype,{constructor:j,bubbles:false,preventDefault:n.noop,stopPropagation:n.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,n.extend({},this.data));}});function e(o,p){this.target=o;this.queues={};this.defaultEventType=p||j;}function a(o){var p=this.queues;if(!p[o]){p[o]=[];}return p[o];}function h(o,p){this.getQueue(o).push(p);}function d(p,r){var s=this.getQueue(p),o=s.indexOf(r);if(o!==-1){s.splice(o,1);}}function b(o,s,r,q){var p=this;if(!q){setTimeout(function(){p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));},10);}else{p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));}}function m(p){for(var r=0,t=p.target,s=this.getQueue(p.type),o=s.length;r<o;r++){s[r].call(t,p.clone());}}function c(p){if(!p){return;}for(var o in f){p[o]=n.bind(f[o],this);}return p;}var f={constructor:e,getQueue:a,addEventListener:h,removeEventListener:d,dispatchEvent:m,fire:b,decorate:c};n.extend(e.prototype,f);i.event={PolyEvent:j,EventDispatcher:e};})(_7,_7.api,_7);_7.ed=new _7.event.EventDispatcher(_7);var _87={isBound:0,isReady:0,readyList:[],onReady:function(){if(!_87.isReady){_87.isReady=1;var l=_87.readyList.concat(window.addthis_onload||[]);for(var fn=0;fn<l.length;fn++){l[fn].call(window);}_87.readyList=[];}},addLoad:function(_8a){var o=w.onload;if(typeof w.onload!="function"){w.onload=_8a;}else{w.onload=function(){if(o){o();}_8a();};}},bindReady:function(){if(r.isBound||_atc.xol){return;}r.isBound=1;if(d.addEventListener&&!b.opr){d.addEventListener("DOMContentLoaded",r.onReady,false);}var apc=window.addthis_product;if(apc&&apc.indexOf("f")>-1){r.onReady();return;}if(b.msi&&!b.ie9&&window==top){(function(){if(r.isReady){return;}try{d.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}r.onReady();})();}if(b.opr){d.addEventListener("DOMContentLoaded",function(){if(r.isReady){return;}for(var i=0;i<d.styleSheets.length;i++){if(d.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}}r.onReady();},false);}if(b.saf){var _8e;(function(){if(r.isReady){return;}if(d.readyState!="loaded"&&d.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(_8e===undefined){var _90=d.gn("link");for(var i=0;i<_90.length;i++){if(_90[i].getAttribute("rel")=="stylesheet"){_8e++;}}var _92=d.gn("style");_8e+=_92.length;}if(d.styleSheets.length!=_8e){setTimeout(arguments.callee,0);return;}r.onReady();})();}r.addLoad(r.onReady);},append:function(fn,_94){r.bindReady();if(r.isReady){fn.call(window,[]);}else{r.readyList.push(function(){return fn.call(window,[]);});}}},r=_87,a=_7;_23(_7,{plo:[],lad:function(x){_7.plo.push(x);}});(function(c,e,d){var a=window;c.pub=function(){return _euc((window.addthis_config||{}).pubid||(window.addthis_config||{}).username||window.addthis_pub||"");};c.usu=function(g,h){if(!a.addthis_share){a.addthis_share={};}if(h||g!=addthis_share.url){addthis_share.imp_url=0;}};c.rsu=function(){var h=document,g=h.title,f=h.location?h.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&f&&f!=a.addthis_share.url&&!(_7.util.ivc((h.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=f;a.addthis_share.title=a.addthis_title=g;return 1;}return 0;};c.igv=function(f,g){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub};}else{if(addthis_config.data_use_cookies===false){_atc.xck=1;}}if(!a.addthis_share){a.addthis_share={};}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1;}addthis_share.url=(a.addthis_url||f||"").split("#{").shift();}if(!addthis_share.title){addthis_share.title=(a.addthis_title||g||"").split("#{").shift();}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={};}for(var b in addthis_conf){_atc[b]=addthis_conf[b];}_atc.ost=1;}})(_7,_7.api,_7);(function(b,f,c){var h,g=document,a=b.util;b.ckv=a.fromKV(g.cookie,";");function e(d){return a.fromKV(g.cookie,";")[d];}if(!b.cookie){b.cookie={};}b.cookie.rck=e;})(_7,_7.api,_7);(function(b,c,e){var a,h=document,g=0,m=b.util;function j(){if(g){return 1;}k("xtc",1);if(1==b.cookie.rck("xtc")){g=1;}f("xtc",1);return g;}function l(o){if(_atc.xck){return;}var n=o||_7.dh||_7.du||(_7.dl?_7.dl.hostname:"");if(n.indexOf(".gov")>-1||n.indexOf(".mil")>-1){_atc.xck=1;}var q=typeof(b.pub)==="function"?b.pub():b.pub,d=["usarmymedia","govdelivery"];for(i in d){if(q==d[i]){_atc.xck=1;break;}}}function f(n,d){if(h.cookie){h.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"+(d?"; domain="+(b.bro.msi?"":".")+"addthis.com":"");}}function k(o,n,p,q,d){if(!window.at_sub){l();}if(!_atc.xck){if(!d){var d=new Date();d.setYear(d.getFullYear()+2);}document.cookie=o+"="+n+(!p?"; expires="+d.toUTCString():"")+"; path=/;"+(!q?" domain="+(b.bro.msi?"":".")+"addthis.com":"");}}if(!b.cookie){b.cookie={};}b.cookie.sck=k;b.cookie.kck=f;b.cookie.cww=j;b.cookie.gov=l;})(_7,_7.api,_7);(function(c,f,d){var b=c.util,a={};timeouts={};if(!c.cbs){c.cbs={};}function e(j,i,m,k,g){i=(_euc(i)).replace(/[0-3][A-Z]|[^a-zA-Z0-9]/g,"");a[i]=a[i]||0;var h=a[i]++,l=j+"_"+i+(!g?h:"");if(!_7.cbs[l]){_7.cbs[l]=function(){if(timeouts[l]){clearTimeout(timeouts[l]);}m.apply(this,arguments);};}_7.cbs["time_"+l]=(new Date()).getTime();if(k){clearTimeout(timeouts[l]);timeouts[l]=setTimeout(k,10000);}return"_ate.cbs."+_euc(l);}b.scb=e;})(_7,_7.api,_7);(function(b,d,c){function e(){var k=a(navigator.userAgent,16),f=((new Date()).getTimezoneOffset())+""+navigator.javaEnabled()+(navigator.userLanguage||navigator.language),h=window.screen.colorDepth+""+window.screen.width+window.screen.height+window.screen.availWidth+window.screen.availHeight,g=navigator.plugins,l=g.length;if(l>0){for(var j=0;j<Math.min(10,l);j++){if(j<5){f+=g[j].name+g[j].description;}else{h+=g[j].name+g[j].description;}}}return k.substr(0,2)+a(f,16).substr(0,3)+a(h,16).substr(0,3);}function a(h,j){var f=291;if(h){for(var g=0;g<h.length;g++){f=(f*(h.charCodeAt(g)+g)+3)&1048575;}}return(f&16777215).toString(j||32);}b.mun=a;b.gub=e;})(_7,_7.api,_7);(function(d,e,g){var c,l=d.util,j=4294967295,b=new Date().getTime();function h(){return((b/1000)&j).toString(16)+("00000000"+(Math.floor(Math.random()*(j+1))).toString(16)).slice(-8);}function a(m){return k(m)?(new Date((parseInt(m.substr(0,8),16)*1000))):new Date();}function i(m){var n=a();return((n.getTime()-1000*86400)>(new Date()).getTime());}function f(m,o){var n=a(m);return(((new Date()).getTime()-n.getTime())>o*1000);}function k(m){return m&&m.match(/^[0-9a-f]{16}$/)&&!i(m);}l.cuid=h;l.ivc=k;l.ioc=f;})(_7,_7.api,_7);(function(c,f,e){function b(g){if(!g){return"";}else{if(g.indexOf("%")>-1){g=_duc(g);}}var g=_7.util.atob(g.split(",")[1]);return g;}function d(h){var j={},g,i;j.zip=h.substring(0,5);j.continent=h.substring(5,7);j.country=h.substring(7,9);j.region=h.substring(9,11);g=h.substring(11,15);if(g!="0000"){j.lat=(parseInt(g)/10-180).toFixed(1);}lonstr=h.substring(15,19);if(lonstr!="0000"){j.lon=(parseInt(lonstr)/10-180).toFixed(1);}j.dma=h.substring(19,22);j.msa=h.substring(22,26);j.network_type=h.substring(26,27);j.throughput=h.substring(27,28);return j;}function a(j,k){j=j.split(",");for(var h=0;h<j.length;h++){var g=j[h].replace(/ /g,"");if(k.zip==g||k.continent==g||k.country==g||k.region==g){return 1;}}return 0;}c.util=c.util||{};c.util.geo={dec:b,parse:d,isin:a};})(_7,_7.api,_7);(function(a,c,b){function d(e){return e.split("//").pop().split("/").shift().split("#").shift().split("?").shift().split(".").slice(-2).join(".");}a.util=a.util||{};a.util.host=d;})(_7,_7.api,_7);(function(a,d,c){function e(g,f){var h=g.indexOf("#")>-1&&!f?g.replace(/^[^\#]+\#?|^\#?/,""):g.replace(/^[^\?]+\??|^\??/,""),i=a.util.fromKV(h);return i;}function b(k){var g=document.gn("script"),l=g.length,h=g[l-1],j=e(h.src);if(k||(h.src&&h.src.indexOf("addthis")==-1)){for(var f=0;f<l;f++){if((g[f].src||"").indexOf(k||"addthis.com")>-1){j=e(g[f].src);break;}}}return j;}if(!a.util){a.util={};}a.util.gsp=b;a.util.ghp=e;})(_7,_7.api,_7);(function(e,g,f){var d=e.util,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function a(k){var j="",n,l,h,p,o,m=0;if(/[0-9a-fA-F]+/.test(k)){while(m<k.length){n=parseInt(k.charAt(m++),16);l=parseInt(k.charAt(m++),16);h=parseInt(k.charAt(m++),16);p=(n<<2)|(isNaN(h)?l&3:(l>>2));o=((l&3)<<4)|h;j+=b.charAt(p)+(isNaN(h)?"":b.charAt(o));}}return j;}function c(k){var j="",n,l,h,p,o,m=0;while(m<k.length){p=b.indexOf(k.charAt(m++));o=m>=k.length?NaN:b.indexOf(k.charAt(m++));n=p>>2;l=isNaN(o)?(p&3):(((p&3)<<2)|(o>>4));h=o&15;j+=n.toString(16)+l.toString(16)+(isNaN(o)?"":h.toString(16));}return j;}d.hbtoa=a;d.atohb=c;})(_7,_7.api,_7);(function(f,s,u){var v=f,j=new Date().getTime(),r=function(){return Math.floor(Math.random()*4294967295).toString(36);},w=function(){return Math.floor((new Date().getTime()-j)/100).toString(16);},g=0,i=function(a){if(g===0){v.sid=g=(a||v.util.cuid());}return g;},d=null,c=function(a,x){if(d!==null){clearTimeout(d);}if(a){d=setTimeout(function(){x(false);},_7.wait);}},o=function(x,a){return _euc(x)+"="+_euc(a)+";"+w();},n=1,h=function(x,z){if(typeof x=="object"){x=_7.util.toKV(x);}var a=(x||"").split("?"),x=a.shift(),y=(a.pop()||"").split("&");return z(x,y);},k=function(a,x,z,y){if(!x){x={};}if(!x.remove){x.remove=[];}if(x.remove.push){x.remove.push("sms_ss");x.remove.push("at_xt");x.remove.push("fb_ref");x.remove.push("fb_source");}if(x.remove){a=t(a,x.remove);}if(x.clean){a=l(a);}if(x.defrag){a=e(a);}if(x.add){a=m(a,x.add,z,y);}return a;},m=function(z,B,A,x){var a={};if(B){for(var y in B){if(z.indexOf(y+"=")>-1){continue;}a[y]=p(B[y],z,A,x);}B=_7.util.toKV(a);}return z+(B.length?((z.indexOf("?")>-1?"&":"?")+B):"");},p=function(y,x,z,a){var z=z||addthis_share;return y.replace(/\{\{service\}\}/g,_euc(a||"")).replace(/\{\{code\}\}/g,_euc(a||"")).replace(/\{\{title\}\}/g,_euc(z.title)).replace(/\{\{url\}\}/g,_euc(x));},t=function(x,z){var a={},z=z||[];for(var y=0;y<z.length;y++){a[z[y]]=1;}return h(x,function(A,D){var E=[];if(D){for(var B in D){if(typeof(D[B])=="string"){var C=(D[B]||"").split("=");if(C.length!=2&&D[B]){E.push(D[B]);}else{if(a[C[0]]){continue;}else{if(D[B]){E.push(D[B]);}}}}}A+=(E.length?("?"+E.join("&")):"");}return A;});},q=function(a){var x=a.split("#").pop().split(",").shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").pop().split(",");}return[""];},e=function(a
                    
                
wikibits.js http://cdpedia.googlecode.com/svn/trunk/ | JavaScript | 1054 lines
                    
62	var uri = wgScript + '?title=' +
                    
63		encodeURIComponent(page.replace(/ /g,'_')).replace(/%2F/ig,'/').replace(/%3A/ig,':') +
                    
64		'&action=raw&ctype=text/javascript';
                    
81function importStylesheet( page ) {
                    
82	return importStylesheetURI( wgScript + '?action=raw&ctype=text/css&title=' + encodeURIComponent( page.replace(/ /g,'_') ) );
                    
83}
                    
                
rpc_client.js http://meaop.googlecode.com/svn/trunk/ | JavaScript | 476 lines
                    
67  						str += '&';
                    
68  					str += encodeURIComponent(key) + "=";
                    
69  					if(params[key][i] instanceof Date)
                    
69  					if(params[key][i] instanceof Date)
                    
70  						str += encodeURIComponent(RpcClient.dateToISO8601(params[key][i]));
                    
71  					else if(params[key][i] instanceof Object)
                    
73  						throw Error({id: cErrorQueryStringParamNestedType, msg: RpcClient.rs.ErrorQueryStringParamNestedType});
                    
74  					else str += encodeURIComponent(String(params[key][i]));
                    
75  				}
                    
79  					str += '&';
                    
80  				str += encodeURIComponent(key) + "=";
                    
81  				if(params[key] instanceof Date)
                    
81  				if(params[key] instanceof Date)
                    
82  					str += encodeURIComponent(RpcClient.dateToISO8601(params[key]));
                    
83  				else if(params[key] instanceof Object)
                    
                
couch.js https://code.google.com/p/xuljet/ | JavaScript | 478 lines
                    
19  this.name = name;
                    
20  this.uri = "/" + encodeURIComponent(name) + "/";
                    
21
                    
55    this.last_req = this.request("PUT", this.uri  +
                    
56        encodeURIComponent(doc._id) + encodeOptions(options),
                    
57        {body: json.stringify(doc)});
                    
65  this.open = function(docId, options) {
                    
66    this.last_req = this.request("GET", this.uri + encodeURIComponent(docId)
                    
67      + encodeOptions(options));
                    
76  this.deleteDoc = function(doc) {
                    
77    this.last_req = this.request("DELETE", this.uri + encodeURIComponent(doc._id)
                    
78      + "?rev=" + doc._rev);
                    
279        }
                    
280        buf.push(encodeURIComponent(name) + "=" + encodeURIComponent(value));
                    
281      }
                    
                
browse.js http://caffeine-hx.googlecode.com/svn/trunk/ | JavaScript | 808 lines
                    
29            if (window !== parent) parent.setTimeout("updateDatabaseList()", 500);
                    
30            location.href = "database.html?" + encodeURIComponent(data.name);
                    
31            callback();
                    
48          $("#databases tbody.content").append("<tr>" + 
                    
49            "<th><a href='database.html?" + encodeURIComponent(dbName) + "'>" +
                    
50              dbName + "</a></th>" +
                    
101          success: function(resp) {
                    
102            location.href = "document.html?" + encodeURIComponent(dbName) +
                    
103                            "/" + encodeURIComponent(resp.id);
                    
292                page.isDirty = false;
                    
293                location.href = "database.html?" + encodeURIComponent(dbName) +
                    
294                  "/" + encodeURIComponent(doc._id) +
                    
338      $("#designdoc-link").attr("href", "document.html?" +
                    
339        encodeURIComponent(dbName) + "/" + encodeURIComponent(docId)).text(docId);
                    
340    } else {
                    
                
prototype.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 2242 lines
                    
576    return this.map(function(pair) {
                    
577      return pair.map(encodeURIComponent).join('=');
                    
578    }).join('&');
                    
                
common.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 525 lines
                    
47        return (document.cookie = [
                    
48            encodeURIComponent(key), '=',
                    
49            options.raw ? value : encodeURIComponent(value),
                    
57    var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
                    
58    return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
                    
59};
                    
                
fetch.js http://mlyrics.googlecode.com/svn/trunk/ | JavaScript | 2583 lines
                    
58				
                    
59				//SINCE TERRA LYRICS website doesn't works good with encodeURIComponent, we're encoding it 'manually'.
                    
60				var _search_artist = escape( this.getCleanStr(artist) ) .replace(/\+/g, '%2B')
                    
218			getUrl: function (artist, album, track) {
                    
219				var _artist = encodeURIComponent( this.getCleanStr(artist).replace(/'/g, "") );
                    
220				var _track = encodeURIComponent( this.getCleanStr(track).replace(/'/g, "") );
                    
356				
                    
357				var _artist = encodeURIComponent( this.filterASCIIDigitSym( this.getCleanStr(artist).toLowerCase() ) );
                    
358				var _album = encodeURIComponent( this.filterASCIIDigitSym( this.getCleanStr(album).toLowerCase() ) );
                    
                
hulu-player.js http://cometdesktop.googlecode.com/svn/trunk/ | JavaScript | 739 lines
                    
148            this.viewCard('hulu-player-card-1',{
                    
149                load: '/search/'+encodeURIComponent(txt),
                    
150                title: 'Search for "'+txt+'"',
                    
                
admin.js http://nukeviet-shop.googlecode.com/svn/trunk/ | JavaScript | 456 lines
                    
355	if (content != '') {
                    
356		nv_ajax('post', script_name, nv_name_variable + '=' + nv_module_name + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=keywords&content=' + encodeURIComponent(content), '', 'res_keywords');
                    
357	}
                    
431	if (title != '') {
                    
432		nv_ajax('post', script_name, nv_name_variable + '=' + nv_module_name + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=alias&title=' + encodeURIComponent(title), '', 'res
                    
                
show_ads.js http://fiuba-7508-sistemas-operativos.googlecode.com/svn/trunk/ | JavaScript | 16 lines
                    
1(function(){var g=!0,h=null,i=!1,j=(new Date).getTime();var aa=this,ba=function(a,b){var c=a.split("."),d=aa;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&void 0!==b?d[e]=b:d=d[e]?d[e]:d[e]={}},ca=function(a,b,c){return a.call.apply(a.bind,arguments)},da=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,
                    
2arguments)}},k=function(a,b,c){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ca:da;return k.apply(h,arguments)};var ea=/&/g,fa=/</g,ga=/>/g,ha=/\"/g,l={"\x00":"\\0","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"},m={"'":"\\'"};var ia=document,o=window;var r=function(a){return"true"==a?g:"false"==a?i:i},ja=/^([\w-]+\.)*([\w-]{2,})(\:[0-9]+)?$/,s=function(a){return!a?"pagead2.googlesyndication.com":(a=a.match(ja))?a[0]:"pagead2.googlesyndication.com"};var v=parseFloat("0"),ka=isNaN(v)||1<v||0>v?0:v;var la=r("true"),ma=r("false"),na=r("false"),pa=r("false");var qa=function(){return s("")};s("");var w=function(a){return!!a&&"function"==typeof a&&!!a.call},ra=function(a,b){if(!(2>arguments.length))for(var c=1,d=arguments.length;c<d;++c)a.push(arguments[c])};function y(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)}function sa(a,b){a.addEventListener?a.addEventListener("load",b,i):a.attachEvent&&a.attachEvent("onload",b)};ba("google_protectAndRun",function(a,b,c){a=k(b,aa,a);b=window.onerror;window.onerror=a;try{c()}catch(d){var c=d.toString(),e="";d.fileName&&(e=d.fileName);var f=-1;d.lineNumber&&(f=d.lineNumber);if(!a(c,e,f))throw d;}window.onerror=b});
                    
3ba("google_handleError",function(a,b,c,d){0.01>Math.random()&&(a=["http://",qa(),"/pagead/gen_204","?id=jserror","&jscb=",la?1:0,"&jscd=",ma?1:0,"&context=",y(a),"&msg=",y(b),"&file=",y(c),"&line=",y(d.toString()),"&url=",y(ia.URL.substring(0,512)),"&ref=",y(ia.referrer.substring(0,512))],a.push(["&client=",y(o.google_ad_client),"&format=",y(o.google_ad_format),"&slotname=",y(o.google_ad_slot),"&output=",y(o.google_ad_output),"&ad_type=",y(o.google_ad_type)].join("")),a=a.join(""),o.google_image_requests||
                    
                
helpers.js https://bitbucket.org/scope/dragonfly-stp-1/ | JavaScript | 359 lines
                    
214    document.cookie = (
                    
215      key + "=" + encodeURIComponent(value) +
                    
216      "; expires=" + 
                    
                
login.js http://atomojo.googlecode.com/svn/trunk/ | JavaScript | 293 lines
                    
16         req.open("GET", "data:" + (contentType || "application/xml") +
                    
17                         ";charset=utf-8," + encodeURIComponent(str), false);
                    
18         if (req.overrideMimeType) {
                    
                
game.js http://tmlife-storage.googlecode.com/svn/trunk/ | JavaScript | 270 lines
                    
83    tweet_label.addEventListener(enchant.Event.TOUCH_START, function(){
                    
84        var EUC = encodeURIComponent;
                    
85        var twitter_url = "http://twitter.com/?status=";
                    
                
comments.js git://github.com/facebook/connect-js.git | JavaScript | 121 lines
                    
64      if (index > 0) {
                    
65        attr.xid = encodeURIComponent(document.URL.substring(0, index));
                    
66      }
                    
67      else {
                    
68        attr.xid = encodeURIComponent(document.URL);
                    
69      }
                    
                
fileuploader.js http://fzcs-sms.googlecode.com/svn/trunk/ | JavaScript | 1281 lines
                    
212                        : (Object.prototype.toString.call(nextObj) === '[object Function]')
                    
213                        ? encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj())
                    
214                        : encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj)
                    
233    } else {
                    
234        uristrings.push(encodeURIComponent(temp) + '=' + encodeURIComponent(obj));
                    
235    }
                    
                
dhtmlxdataprocessor.js http://pdms.googlecode.com/svn/trunk/ | JavaScript | 461 lines
                    
36        if (this._utf)
                    
37            return encodeURIComponent(data);
                    
38        else
                    
                
player_ie.js http://pefladdons.googlecode.com/svn/trunk/ | JavaScript | 918 lines
                    
113	if (!name || !value) return false;
                    
114	document.cookie = name + '=' + encodeURIComponent(value) + '; expires='+ exdate.toUTCString() + '; path=/'
                    
115	return true
                    
                
wikibits.js http://artificialintelligenceframework.googlecode.com/svn/trunk/ | JavaScript | 903 lines
                    
54function importScript(page) {
                    
55	return importScriptURI(wgScript + '?action=raw&ctype=text/javascript&title=' + encodeURIComponent(page.replace(/ /g,'_')));
                    
56}
                    
71function importStylesheet(page) {
                    
72	return importStylesheetURI(wgScript + '?action=raw&ctype=text/css&title=' + encodeURIComponent(page.replace(/ /g,'_')));
                    
73}
                    
                
connection.js http://jfusion.googlecode.com/svn/trunk/ | JavaScript | 1382 lines
                    
239					if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
                    
240						YAHOO.util.Connect._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
                    
241					}
                    
                
jmesa.js http://smartmobile.googlecode.com/svn/trunk/ | JavaScript | 551 lines
                    
158    $.each(filterSet, function(index, filter) {
                    
159        url += '&' + limit.id + '_f_' + filter.property + '=' + encodeURIComponent(filter.value);
                    
160    });
                    
                
mxAutocompleteMS.js http://mxajax.googlecode.com/svn/trunk/ | JavaScript | 174 lines
                    
15		this.oParam = (this.paramArgs != null) ? this.paramArgs : this.paramFunction(this.id);
                    
16    	entry = encodeURIComponent(this.options.paramName) + '=' + encodeURIComponent(this.getToken());
                    
17		this.oParam.setDefaultParam(entry);
                    
                
FileManagerController.js http://izwebfilemanager.googlecode.com/svn/trunk/ | JavaScript | 342 lines
                    
54            WebFileManager_InitCallback();
                    
55            WebFileManager_DoCallback(this.UniqueID, this.TextBox.Control.ClientID + this.EventArgumentSplitter + 'Rename' + this.EventArgumentSplitter + this.TextBox.Item.Path + this.EventArgumentSplitter + encodeURIComponent(this.TextBox.value), WebFileManager_Eval, this.TextBox.Control, WebFileManager_OnError);
                    
56        } else {
                    
158        WebFileManager_InitCallback();
                    
159        WebFileManager_DoCallback(this.UniqueID, sender.ClientID + this.EventArgumentSplitter + 'SelectedItemsCopyTo' + this.EventArgumentSplitter + encodeURIComponent(arg), WebFileManager_Eval, sender, WebFileManager_OnError);
                    
160    }
                    
176        WebFileManager_InitCallback();
                    
177        WebFileManager_DoCallback(this.UniqueID, sender.ClientID + this.EventArgumentSplitter + 'SelectedItemsMoveTo' + this.EventArgumentSplitter + encodeURIComponent(arg), WebFileManager_Eval, sender, WebFileManager_OnError);
                    
178    }
                    
232    WebFileManager_InitCallback();
                    
233    WebFileManager_DoCallback(this.UniqueID, sender.ClientID + this.EventArgumentSplitter + 'FileViewNavigate' + this.EventArgumentSplitter + encodeURIComponent(arg), WebFileManager_Eval, sender, WebFileManager_OnError)
                    
234}
                    
                
util.js http://nostrive.googlecode.com/svn/trunk/ | JavaScript | 306 lines
                    
31                    for (var i = 0; i < params[key].length; i++) {
                    
32                        pairs.push(encodeURIComponent(key) + "=" +
                    
33                            encodeURIComponent(params[key]));
                    
35                } else {
                    
36                    pairs.push(encodeURIComponent(key) + "=" +
                    
37                        encodeURIComponent(params[key]));
                    
                
com_003.js http://vhdl-trypanosoma-cruzi-detection-algorithm.googlecode.com/svn/trunk/ | JavaScript | 324 lines
                    
75        var secure = options.secure ? '; secure' : '';
                    
76        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
                    
77    } else { // only name given, get cookie
                    
                
myspaceid.rev.0.js http://myspaceid-csharp-sdk.googlecode.com/svn/trunk/ | JavaScript | 103 lines
                    
86
                    
87	    // Begin with encodeURIComponent, which most resembles PHP's encoding functions
                    
88	    ret = encodeURIComponent(ret);
                    
                
ckfinder1.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 11773 lines
                    
76            g += g ? '&amp;': '?';
                    
77            g += 'data=' + encodeURIComponent(i.jx);
                    
78        }
                    
86            g += 'thumbFunc=' + h;
                    
87            if (i.nm) g += '&amp;tdata=' + encodeURIComponent(i.nm);
                    
88            else if (!i.lH && i.jx) g += '&amp;tdata=' + encodeURIComponent(i.jx);
                    
91            g += g ? '&amp;': '?';
                    
92            g += 'start=' + encodeURIComponent(i.startupPath + (i.startupFolderExpanded ? ':1': ':0'));
                    
93        }
                    
99            g += g ? '&amp;': '?';
                    
100            g += 'id=' + encodeURIComponent(i.id);
                    
101        }
                    
103            g += g ? '&amp;': '?';
                    
104            g += 'skin=' + encodeURIComponent(i.skin);
                    
105        }
                    
                
ckfinder.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 7 lines
                    
5
                    
6(function(){var a=(function(){var f={jY:'B23B',_:{},status:'unloaded',basePath:(function(){var i=window.CKFINDER_BASEPATH||'';if(!i){var j=document.getElementsByTagName('script');for(var k=0;k<j.length;k++){var l=j[k].src.match(/(^|.*[\\\/])CKFINDER(?:_basic)?(?:_v2)?(?:_source)?.js(?:\?.*)?$/i);if(l){i=l[1];break;}}}if(i.indexOf('://')== -1)if(i.indexOf('/')===0)i=location.href.match(/^.*?:\/\/[^\/]*/)[0]+i;else i=location.href.match(/^[^\?]*\/(?:)/)[0]+i;return i;})(),getUrl:function(i){if(i.indexOf('://')== -1&&i.indexOf('/')!==0)i=this.basePath+i;if(this.jY&&i.charAt(i.length-1)!='/')i+=(i.indexOf('?')>=0?'&':'?')+'t='+this.jY;return i;}},g=window.CKFINDER_GETURL;if(g){var h=f.getUrl;f.getUrl=function(i){return g.call(f,i)||h.call(f,i);};}return f;})();function b(f){return a.instances[f];};var c={callback:1,selectThumbnailActionFunction:1,selectActionFunction:1};a.jd=function(){var h=this;var f={};for(var g in h){if(!h.hasOwnProperty(g))continue;if(typeof h[g]=='function'&& !c[g])continue;f[g]=h[g];}if(h.callback)f.callback=h.callback;return f;};a.lj=function(f){var i=this;f=f||i.basePath;var g='';if(!f||f.length===0)f=CKFinder.DEFAULT_basePath;if(f.substr(f.length-1,1)!='/')f+='/';f+='ckfinder.html';var h;if(i.hh){h=i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+='?action=js&amp;func='+h;}if(i.jx){g+=g?'&amp;':'?';g+='data='+encodeURIComponent(i.jx);}if(i.disableThumbnailSelection){g+=g?'&amp;':'?';g+='dts=1';}else if(i.lH||i.hh){h=i.lH||i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+=g?'&amp;':'?';g+='thumbFunc='+h;if(i.nm)g+='&amp;tdata='+encodeURIComponent(i.nm);else if(!i.lH&&i.jx)g+='&amp;tdata='+encodeURIComponent(i.jx);}if(i.startupPath){g+=g?'&amp;':'?';g+='start='+encodeURIComponent(i.startupPath+(i.startupFolderExpanded?':1':':0'));}if(!i.rememberLastFolder){g+=g?'&amp;':'?';g+='rlf=0';}if(i.id){g+=g?'&amp;':'?';g+='id='+encodeURIComponent(i.id);}if(i.skin){g+=g?'&amp;':'?';g+='skin='+encodeURIComponent(i.skin);}return f+g;};function d(f){var i=this;i.id=f.name;var g=f.ax.getDocument().getWindow().$,h=a.oC.getWindow().$;i.inPopup= ! !(g&&g.opener);i.inIframe= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='iframe';i.inFrame= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='frame';i.inUrlPopup= ! !(i.inPopup&&h.opener);};function e(f,g,h){g.on('appReady',function(i){i.aF();f.document=g.document.$;f.folders=g.folders;f.files=g.aG['filesview.filesview'][0].data().files;f.basketFiles=g.basketFiles;f.resourceTypes=g.resourceTypes;f.connector=g.connector;f.lang=g.lang;f.langCode=g.langCode;f.config=g.config;g.aG['foldertree.foldertree'][0].on('afterAddFolder',function(j){j.aF();if(h)h(f);},f);},f,null,999);};d.prototype={_:{},addFileContextMenuOption:function(f,g,h){var i=b(this.id),j='FileContextMenu_'+f.command;i.bD(j,{exec:function(m){var n=m.aG['filesview.filesview'][0].tools.dH();g(m.cg,n);}});f.command=j;if(!f.group)f.group='file1';i.gp(j,f);var k=i.aG['filesview.filesview'];for(var l=0;l<k.length;l++)k[l].on('beforeContextMenu',function o(m){if(h){var n=h(this.tools.dH());if(n)m.data.bj[j]=n== -1?a.aY:a.aS;}else m.data.bj[j]=a.aS;});},disableFileContextMenuOption:function(f,g){var h=b(this.id),i=g?'FileContextMenu_'+f:f,j=h.aG['filesview.filesview'],k=[];for(var l=0;l<j.length;l++){var m=k.push(function o(n){delete n.data.bj[i];});j[l].on('beforeContextMenu',k[m-1]);}return function(){for(var n=0;n<k.length;n++)h.aG['foldertree.foldertree'][n].aF('beforeContextMenu',k[n]);};},addFolderContextMenuOption:function(f,g,h){var i=b(this.id),j='FolderContextMenu_'+f.command;i.bD(j,{exec:function(m){g(m.cg,m.aV);}});f.command=j;if(!f.group)f.group='folder1';i.gp(j,f);var k=i.aG['foldertree.foldertree'];for(var l=0;l<k.length;l++)k[l].on('beforeContextMenu',function o(m){if(h){var n=h(this.app.aV);if(n)m.data.bj[j]=n== -1?a.aY:a.aS;}else m.data.bj[j]=a.aS;});},disableFolderContextMenuOption:function(f,g){var h=b(this.id),i=g?'FolderContextMenu_'+f:f,j=h.aG['foldertree.foldertree'],k=[];for(var l=0;l<j.length;l++){var m=k.push(function o(n){delete n.data.bj[i];});j[l].on('beforeContextMenu',k[m-1]);}return function(){for(var n=0;n<k.length;n++)h.aG['foldertree.foldertree'][n].aF('beforeContextMenu',k[n]);};},getSelectedFile:function(){return b(this.id).aG['filesview.filesview'][0].tools.dH();},getSelectedFolder:function(){return b(this.id).aV;},setUiColor:function(f){return b(this.id).setUiColor(f);},openDialog:function(f,g){var j=this;var h=new a.dom.document(window.document).eD(),i=b(j.id).document.getWindow();if(j.inFrame||j.inPopup||j.inIframe)a.document=b(j.id).document;return b(j.id).openDialog(f,g,h);},openMsgDialog:function(f,g){b(this.id).msgDialog(f,g);},openConfirmDialog:function(f,g,h){b(this.id).fe(f,g,h);},openInputDialog:function(f,g,h,i){b(this.id).hs(f,g,h,i);},addTool:function(f){return b(this.id).plugins.tools.addTool(f);},addToolPanel:function(f){return b(this.id).plugins.tools.addToolPanel(f);},removeTool:function(f){b(this.id).plugins.tools.removeTool(f);},showTool:function(f){b(this.id).plugins.tools.showTool(f);},hideTool:function(f){b(this.id).plugins.tools.hideTool(f);},getResourceType:function(f){return b(this.id).getResourceType(f);},log:function(f){a.log.apply(a.log,arguments);},getLog:function(){return a.mZ();},emptyBasket:function(){b(this.id).execCommand('TruncateBasket');},replaceUploadForm:function(f,g){var h=b(this.id);h.aG['formpanel.formpanel'][0].on('beforeUploadFileForm',function(i){if(i.data.step!=2)return;i.cancel(true);var j=this.data(),k=i.data.folder;try{if(j.dc=='upload')this.oW('requestUnloadForm',function(){this.app.cS('upload').bR(a.aS);});else{if(this.data().dc)this.oW('requestUnloadForm');this.oW('requestLoadForm',{html:f,command:'upload'});g&&g();}}catch(l){this.oW('failedUploadFileForm',i.data);this.oW('afterUploadFileForm',i.data);throw a.ba(l);}});return{hide:function(){h.oW('requestUnloadForm',function(){h.cS('upload').bR(a.aS);});}};},refreshOpenedFolder:function(){var f=b(this.id),g=f.aG['filesview.filesview'][0].tools.currentFolder();f.oW('requestSelectFolder',{folder:g});},closePopup:function(){if(!this.inPopup)return;b(this.id).ax.getDocument().getWindow().$.close();}};(function(){window.CKFinder=function(f,g){if(f)for(var h in f){if(!f.hasOwnProperty(h))continue;if(typeof f[h]=='function'&&h!='callback')continue;this[h]=f[h];}this.callback=g;};CKFinder.prototype={create:function(f){var g='ckf'+Math.random().toString().substr(2,4);document.write('<span id="'+g+'"></span>');f=a.tools.extend(a.jd.call(this),f,true);var h=a.replace(g,f,CKFinder);this.lN=h.cg;return h.cg;},appendTo:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.appendTo(f,g,CKFinder);this.lN=h.cg;return h.cg;},replace:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.replace(f,g,CKFinder);this.lN=h.cg;return h.cg;},popup:function(f,g){var o=this;f=f||'80%';g=g||'70%';if(typeof f=='string'&&f.length>1&&f.substr(f.length-1,1)=='%')f=parseInt(window.screen.width*parseInt(f,10)/100,10);if(typeof g=='string'&&g.length>1&&g.substr(g.length-1,1)=='%')g=parseInt(window.screen.height*parseInt(g,10)/100,10);if(f<200)f=200;if(g<200)g=200;var h=parseInt((window.screen.height-g)/2,10),i=parseInt((window.screen.width-f)/2,10),j='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,jy=yes,width='+f+',height='+g+',top='+h+',left='+i,k=a.env.webkit?'about:blank':'',l=window.open(k,'CKFinderpopup',j,true);if(!l)return false;o.width=o.height='100%';var m='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>CKFinder 2</title><style type="text/css">body, html, iframe, #ckfinder { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: hidden; }</style></head><body></body></html>',n=new a.dom.document(l.document);n.$.open();if(a.env.isCustomDomain())n.$.domain=window.document.domain;n.$.write(m);n.$.close();try{l.moveTo(i,h);l.resizeTo(f,g);l.focus();return o.appendTo(n.bH());}catch(p){return o.appendTo(n.bH());}return false;}};CKFinder._={};CKFinder.lang={};CKFinder.version='2.0.2';CKFinder.revision='UNKNOWN';CKFinder.addPlugin=function(f,g,h){var i={bM:h||[]};if(typeof g=='function')g={appReady:g};for(var j in g){if(!g.hasOwnProperty(j))continue;if(j!='connectorInitialized'&&j!='uiReady')i[j]=g[j];}i.bz=function(k){if(g.connectorInitialized)k.on('connectorInitialized',function(l){var m=g.connectorInitialized;if(m)m.call(m,k.cg,l.data.xml);},null,null,1000);if(g.uiReady)k.on('uiReady',function(){var l=g.uiReady;l.call(l,k.cg);},null,null,1000);if(g.appReady)k.on('appReady',function(){var l=g.appReady;l.call(l,k.cg);},null,null,1000);};a.plugins.add(f,i);};CKFinder.getPluginPath=function(f){return a.plugins.getPath(f);};CKFinder.addExternalPlugin=function(f,g,h){a.plugins.tR(f,g,h);};CKFinder.setPluginLang=function(f,g,h){a.plugins.rX(f,g,h);};CKFinder.dialog={add:function(f,g){if(typeof g=='function')g=a.tools.override(g,function(h){return function(i){return h(i.cg);};});a.dialog.add(f,g);}};CKFinder.tools={};CKFinder.env={};CKFinder.dom={};CKFinder.create=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(g)k.width=g;if(h)k.height=g;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.create();};CKFinder.popup=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.popup(g,h);};CKFinder.setupFCKeditor=function(f,g,h,i){var j;if(g!==null&&typeof g==='object'){j=new CKFinder();for(var k in g){j[k]=g[k];if(k=='width'){var l=j[k]||800;if(typeof l=='string'&&l.length>1&&l.substr(l.length-1,1)=='%')l=parseInt(window.screen.width*parseInt(l,10)/100,10);f.Config.LinkBrowserWindowWidth=l;f.Config.ImageBrowserWindowWidth=l;f.Config.FlashBrowserWindowWidth=l;}else if(k=='height'){var m=j[k]||600;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.height*parseInt(m,10)/100,10);f.Config.LinkBrowserWindowHeight=m;f.Config.ImageBrowserWindowHeight=m;f.Config.FlashBrowserWindowHeight=m;}}}else{j=new CKFinder();j.basePath=g;}var n=j.basePath;if(n.substr(0,1)!='/'&&n.indexOf('://')== -1)n=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+n;n=a.lj.call(j,n);var o=n.indexOf('?')!== -1?'&amp;':'?';f.Config.LinkBrowserURL=n;f.Config.ImageBrowserURL=n+o+'type='+(h||'Images');f.Config.FlashBrowserURL=n+o+'type='+(i||'Flash');var p=n.substring(0,1+n.lastIndexOf('/'));f.Config.LinkUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.Config.ImageUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.Config.FlashUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};CKFinder.setupCKEditor=function(f,g,h,i){if(f===null){for(var j in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[j],g,h,i);CKEDITOR.on('instanceCreated',function(r){CKFinder.setupCKEditor(r.editor,g,h,i);});return;}var k;if(g!==null&&typeof g==='object'){k=new CKFinder();for(var l in g){k[l]=g[l];if(l=='width'){var m=k[l]||800;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.width*parseInt(m,10)/100,10);f.config.filebrowserWindowWidth=m;}else if(l=='height'){var n=k[l]||600;if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);f.config.filebrowserWindowHeight=m;}}}else{k=new CKFinder();k.basePath=g;}var o=k.basePath;if(o.substr(0,1)!='/'&&o.indexOf('://')== -1)o=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+o;o=a.lj.call(k,o);var p=o.indexOf('?')!== -1?'&amp;':'?';f.config.filebrowserBrowseUrl=o;f.config.filebrowserImageBrowseUrl=o+p+'type='+(h||'Images');f.config.filebrowserFlashBrowseUrl=o+p+'type='+(i||'Flash');var q=o.substring(0,1+o.lastIndexOf('/'));f.config.filebrowserUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.config.filebrowserImageUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.config.filebrowserFlashUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};})();if(!a.event){a.event=function(){};a.event.du=function(f,g){var h=a.event.prototype;for(var i in h){if(f[i]==undefined)f[i]=h[i];}};a.event.prototype=(function(){var f=function(h){var i=h.kk&&h.kk()||h._||(h._={});return i.cC||(i.cC={});},g=function(h){this.name=h;this.dF=[];};g.prototype={mi:function(h){for(var i=0,j=this.dF;i<j.length;i++){if(j[i].gg==h)return i;}return-1;}};return{on:function(h,i,j,k,l){var m=f(this),n=m[h]||(m[h]=new g(h));if(n.mi(i)<0){var o=n.dF;if(!j)j=this;if(isNaN(l))l=10;var p=this,q=function(s,t,u,v){var w={name:h,jN:this,application:s,data:t,jO:k,stop:u,cancel:v,aF:function(){p.aF(h,i);}};i.call(j,w);return w.data;};q.gg=i;q.nT=l;for(var r=o.length-1;r>=0;r--){if(o[r].nT<=l){o.splice(r+1,0,q);return;}}o.unshift(q);}},oW:(function(){var h=false,i=function(){h=true;},j=false,k=function(l){j=l?2:true;};return function w(l,m,n,o){if(typeof m=='function'){o=m;m=null;}else if(typeof n=='function'){o=n;n=null;}if(l!='mousemove')a.log('[EVENT] '+l,m,o);var p=f(this)[l],q=h,r=j;h=j=false;if(p){var s=p.dF;if(s.length){s=s.slice(0);for(var t=0;t<s.length;t++){var u=s[t].call(this,n,m,i,k);if(typeof u!='undefined')m=u;if(h||j&&j!=2)break;}}}var v=j||(typeof m=='undefined'?false: !m||typeof m.result=='undefined'?m:m.result);if(typeof o==='function'&&j!=2)v=o.call(this,j,m)||v;h=q;j=r;return v;};})(),cr:function(h,i,j){var k=this.oW(h,i,j);delete f(this)[h];return k;},aF:function(h,i){var j=f(this)[h];if(j){var k=j.mi(i);if(k>=0)j.dF.splice(k,1);}},mF:function(){var h=f(this);for(var i=0;i<h.length;i++)h[i].dF=[];},rC:function(h){var i=f(this)[h];return i&&i.dF.length>0;}};})();}if(!a.application){a.kZ=0;a.fc=1;a.qE=2;a.application=function(f,g,h,i){var j=this;j._={kw:f,ax:g};j.ff=h||a.kZ;a.event.call(j);j.iI(i);};a.application.replace=function(f,g,h){var i=f;if(typeof i!='object'){i=document.getElementById(f);if(!i){var j=0,k=document.getElementsByName(f);while((i=k[j++])&&i.tagName.toLowerCase()!='textarea'){}}if(!i)throw '[CKFINDER.application.replace] The ax with id
                    
                
base.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 2228 lines
                    
47		
                    
48		var key = encodeURIComponent(keyword);
                    
49		var url = "";
                    
                
im.ping.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 632 lines
                    
5		tplName: "",
                    
6        locationHost: encodeURIComponent(window.location),
                    
7        isIE: navigator.userAgent.indexOf("MSIE") > 0,
                    
                
im.ping.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 390 lines
                    
4        domain: "http://www.startzine.com",
                    
5        locationHost: encodeURIComponent(window.location),
                    
6        isIE: navigator.userAgent.indexOf("MSIE") > 0,
                    
                
ga.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 62 lines
                    
1(function(){var g=void 0,h=!0,i=null,k=!1,aa=encodeURIComponent,ba=Infinity,ea=setTimeout,fa=decodeURIComponent,l=Math;function ga(a,b){return a.name=b}
                    
2var m="push",ha="slice",n="replace",ia="load",ja="floor",ka="charAt",la="value",p="indexOf",ma="match",na="port",oa="createElement",pa="path",q="name",t="host",u="toString",v="length",w="prototype",qa="clientWidth",x="split",ra="stopPropagation",ta="scope",y="location",ua="search",z="protocol",va="clientHeight",wa="href",A="substring",xa="apply",ya="navigator",B="join",C="toLowerCase",D;function za(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function Aa(a){return"function"==typeof a}function Ba(a){return a!=g&&-1<(a.constructor+"")[p]("String")}function E(a,b){return g==a||"-"==a&&!b||""==a}function Ca(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t"[p](a[ka](0));)a=a[A](1);for(;a&&-1<" \n\r\t"[p](a[ka](a[v]-1));)a=a[A](0,a[v]-1);return a}
                    
                
m.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 31 lines
                    
3o.plugins["Shockwave Flash"];if(a&&a.description)return a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0"}else if(f.ActiveXObject&&!f.opera)for(a=10;2<=a;a--)try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);if(b)return b.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,".")}catch(c){}return""}function W(){var a=e.referrer,b=a.replace(/^https?:\/\//,""),b=b.split("/")[0],b=b.split(":")[0],b=H(b),c=H(),d=G("BAIDU_CLB_REFER");if(d&&c===b)return encodeURIComponent(d);
                    
4return c!==b?(e.cookie="BAIDU_CLB_REFER="+encodeURIComponent(a)+(c?";domain="+encodeURIComponent(c):""),encodeURIComponent(a)):""}function I(a){return"number"===typeof a?Math.floor(a):/^\d+$/.test(a)?+a:-1}function J(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c,!1)}function q(a){var b={},c=f.location.search;0===c.indexOf("?")&&(c=c.substring(1));for(var c=c.split("&"),d=0;d<c.length;d++){var g=c[d].split("=");0==g[0].indexOf("baidu_clb_")&&(b[g[0]]=g[1])}q=function(a){return b[a]};
                    
5return b[a]}function X(a){var b={'"':"&quot;",">":"&gt;","<":"&lt;","&":"&amp;"};return a.replace(/[\"<>\&]/g,function(a){return b[a]})}function y(a,b){var c,d;0===arguments.length?(c=K,d={}):1===arguments.length?"string"===typeof a?(c=a,d={}):(c=K,d=a):(c=a,d=b);var g=new Image,j="log"+new Date,L=["_="+ +new Date],e;for(e in d)s.call(d,e)&&L.push(encodeURIComponent(e)+"="+encodeURIComponent(d[e]));f[j]=g;g.onload=g.onerror=g.onabort=function(){g.onload=g.onerror=g.onabort=null;try{delete f[j]}catch(a){f[j]=
                    
16function k(a,b){p(a).flagRendered&&(f.BAIDU_CLB_adRendered=b)}function Q(a,b){if(a&&fa.test(a)&&b){for(var b="[object Array]"==Object.prototype.toString.call(b)?b:Array.prototype.slice.call(arguments,1),c=r[a]||[],d=b.length,g=0;g<d;g++){var j=b[g];"string"===typeof j&&ga.test(j)&&(c[c.length]=j)}if(c.length){for(var d=r,g={},j=[],f=c.length,e=0;e<f;e++){var h=c[e];g[h]||(j[j.length]=h,g[h]=!0)}d[a]=j}}}function ha(){var a=[],b;for(b in r)if(s.call(r,b)){var c=b+"="+r[b].join(",");a[a.length]=c}a.sort(function(a,
                    
17b){return a.length-b.length});b="";for(var c=a.length,d=0;d<c&&!(1500<b.length+a[d].length);d++)b+="&"+a[d];return b}function E(){}function w(a,b){var c=["di="+(a instanceof Array?a.join(","):a),"fn="+b,"tm=BAIDU_CLB_SETJSONADSLOT","mod_t="+ +new Date(e.lastModified),"visi_t="+ +new Date,"flash_v="+V(),"java="+(o.javaEnabled()?1:0),"screen_h="+m.height,"screen_w="+m.width,"page_h="+m.availHeight,"page_w="+m.availWidth,"color="+m.colorDepth,"asp_refer="+W(),"asp_url="+encodeURIComponent(e.URL),"b_lang="+
                    
18encodeURIComponent(o.language||o.browserLanguage).replace(/[^a-zA-Z0-9\-]/g,""),"new=1","baidu_id="+G("BAIDUID")],d=R();if(d&&a==d.sid){var g=c.pop();c.push("mid="+d.mid);c.push("sid="+d.vc);c.push(g)}return ia+"?"+c.join("&")+ha()}function S(a){var b=T(a);if(h[b]._target)M(b);else if(a=p(b)){h[b]._filled=!0;f.BAIDU_CLB_adRendered=void 0;if(2===a.multimediaType)b=Y;else if(3===a.multimediaType)b=$;else switch(a.slotType){case 0:case 3:b=ba;break;case 1:b=O;break;default:b=da}b(a)}}function T(a){for(var b in a)if(s.call(a,
                    
19b)){a=a[b];if("string"===typeof h[b]){var c=h[b];h[b]=a;h[b]._target=c}else"object"!==typeof h[b]&&(h[b]=a);a=a._html;if("object"===typeof a)if("slide"===a.type){a=a.materials;for(c=0;c<a.length;c++){var d=a[c];d.monitorUrl&&y(d.monitorUrl)}}else a.monitorUrl&&y(a.monitorUrl);return b}return""}function x(a){if(a){var b=h[a];if(!(!0===b||"string"===typeof b))if("object"===typeof b){if(!b._filled){b._filled=!0;var c={};c[a]=b;S(c)}}else h[a]=!0,a=w(a,"BAIDU_CLB_SETJSONADSLOT"),e.write('<script charset="utf-8" src="'+
                    
20a+'"><\/script>')}}function R(){var a=q("baidu_clb_preview_sid"),b=q("baidu_clb_preview_mid"),c=q("baidu_clb_preview_vc"),d=+q("baidu_clb_preview_ts");return 3E4>=+new Date-d?{sid:a,mid:b,vc:c}:null}function U(a,b,c){b=I(b);c=I(c);if(0>b||0>c)x(a);else{f.BAIDU_CLB_adRendered=void 0;var d=p(a);d?x(a):(h[a]={_w:b,_h:c,_filled:!0,_done:!0},d=p(a),d.frameId="baidu_clb_slot_proxy_"+a,b=w(a,"BAIDU_CLB_SETJSONADSLOT"),d.frameSrc=ja+"#"+encodeURIComponent(b),d=t(d),e.write(d),k(a,!0))}}var f=window,m=f.screen,
                    
21o=f.navigator,e=f.document,ea="CSS1Compat"!==e.compatMode,h=i("BAIDU_CLB_SLOTS_MAP",{}),s=Object.prototype.hasOwnProperty,ia="http://cb.baidu.com/ecom",aa="http://cbjs.baidu.com/js/dn.js",Z="http://cpro.baidu.com/cpro/ui/cf.js",A="http://cpro.baidu.com/cpro/ui/cc.js",ca="http://drmcmm.baidu.com/js/img/close.gif",K="http://220.181.111.115/log",ja="http://cbjs.baidu.com/js/proxy.htm",P=function(){var a=e.createElement("div"),b=e.createElement("div"),c=!1;a.style.position="absolute";a.style.top="200px";
                    
                
ga.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 57 lines
                    
1(function(){var g=void 0,h=!0,i=null,j=!1,ba=encodeURIComponent,ca=Infinity,da=setTimeout,ea=decodeURIComponent,l=Math;function fa(a,b){return a.onload=b}function ga(a,b){return a.name=b}var m="push",ha="slice",n="replace",ia="load",ja="floor",ka="charAt",la="value",p="indexOf",ma="match",q="name",na="host",t="toString",u="length",v="prototype",oa="clientWidth",w="split",qa="stopPropagation",ra="scope",x="location",sa="clientHeight",ta="href",y="substring",ua="navigator",z="join",A="toLowerCase",B;function va(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function wa(a){return a!=g&&-1<(a.constructor+"")[p]("String")}function C(a,b){return g==a||"-"==a&&!b||""==a}function xa(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t"[p](a[ka](0));)a=a[y](1);for(;a&&-1<" \n\r\t"[p](a[ka](a[u]-1));)a=a[y](0,a[u]-1);return a}
                    
2function ya(a){var b=1,c=0,d;if(!C(a)){b=0;for(d=a[u]-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b}return b}function za(){return l.round(2147483647*l.random())}function Aa(){}function D(a,b){if(ba instanceof Function)return b?encodeURI(a):ba(a);E(68);return escape(a)}function F(a){a=a[w]("+")[z](" ");if(ea instanceof Function)try{return ea(a)}catch(b){E(17)}else E(68);return unescape(a)}
                    
                
fileuploader.js http://tinkerportal.googlecode.com/svn/trunk/ | JavaScript | 1266 lines
                    
210                        : (Object.prototype.toString.call(nextObj) === '[object Function]')
                    
211                            ? encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj())
                    
212                            : encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj)
                    
231    } else {
                    
232        uristrings.push(encodeURIComponent(temp) + '=' + encodeURIComponent(obj));
                    
233    }
                    
                
2808739291-kix_main_i18n_kix_core.js http://neddick.googlecode.com/svn/trunk/ | JavaScript | 659 lines
                    
1function f(a){throw a;}var h=true,j=null,k=false,aa=encodeURIComponent,m=window,ba=Number,ca=Object,da=Infinity,n=Error,ea=Boolean,o=undefined,fa=parseInt,ga=document,ha=decodeURIComponent,ia=isNaN,ja=RegExp,ka=Array,q=Math;function la(a,b){return a.show=b}function ma(a,b){return a.shift=b}function oa(a,b){return a.width=b}function pa(a,b){return a.cancel=b}function qa(a,b){return a.data=b}function ra(a,b){return a.load=b}function sa(a,b){return a.innerHTML=b}function ta(a,b){return a.value=b}
                    
2function ua(a,b){return a.currentTarget=b}function va(a,b){return a.backgroundColor=b}function wa(a,b){return a.left=b}function xa(a,b){return a.send=b}function ya(a,b){return a.remove=b}function za(a,b){return a.cssText=b}function Aa(a,b){return a.keyCode=b}function Ba(a,b){return a.select=b}function Ca(a,b){return a.handleEvent=b}function Ea(a,b){return a.type=b}function Fa(a,b){return a.clear=b}function Ga(a,b){return a.name=b}function Ha(a,b){return a.clientX=b}
                    
                
show_ads.js http://vcdparser.googlecode.com/svn/trunk/ | JavaScript | 71 lines
                    
5var da=function(a){var b=p(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);var c=b=="array"?[]:{};for(var d in a)c[d]=da(a[d]);return c}return a},ea=function(a,b){var c=a.u;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.w||b;a=a.v||a;var e,f=b||o;e=c?function(){var h=Array.prototype.slice.call(arguments);h.unshift.apply(h,c);return a.apply(f,h)}:function(){return a.apply(f,arguments)};e.u=c;e.w=b;e.v=a;return e},fa=Date.now||function(){return(new Date).getTime()},
                    
6r=function(a,b,c){aa(a,b,c)};function t(a,b){var c=parseFloat(a);return isNaN(c)||c>1||c<0?b:c}function ga(a,b){if(a=="true")return j;if(a=="false")return m;return b}function v(a,b){var c=/^([\w-]+\.)+[\w-]{2,}(\:[0-9]+)?$/;return c.test(a)?a:b};var ha="pagead2.googlesyndication.com",ia="googleads.g.doubleclick.net",ja="pubads.g.doubleclick.net",ka="partner.googleadservices.com",y=v("pagead2.googlesyndication.com",ha),la=v("googleads.g.doubleclick.net",ia),ma=v("pagead2.googlesyndication.com",ha);v("pubads.g.doubleclick.net",ja);v("partner.googleadservices.com",ka);function z(a){return typeof encodeURIComponent=="function"?encodeURIComponent(a):escape(a)}function na(a,b,c){var d=document.createElement("script");d.type="text/javascript";if(b)d.onload=b;if(c)d.id=c;d.src=a;var e=document.getElementsByTagName("head")[0];if(!e)return m;window.setTimeout(function(){e.appendChild(d)},0);return j}function oa(a,b){a.google_image_requests||(a.google_image_requests=[]);var c=new Image;c.src=b;a.google_image_requests.push(c)}
                    
7function pa(a){if(a in qa)return qa[a];return qa[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var qa={};
                    
                
Server.js http://hxasc.googlecode.com/svn/trunk/ | JavaScript | 3673 lines
                    
375	{
                    
376		var $tmp = encodeURIComponent(s);
                    
377		$s.pop();
                    
                
bGoogleChart.js http://original-route.googlecode.com/svn/trunk/ | JavaScript | 40 lines
                    
14google.loader.AdditionalParams = '';
                    
15(function() {var d=void 0,g=null,h=encodeURIComponent,j=window,k=document;function l(a,b){return a.load=b}var m="push",o="replace",p="charAt",r="indexOf",s="ServiceBase",t="name",u="getTime",v="length",w="prototype",x="setTimeout",y="loader",z="substring",A="join",B="toLowerCase";function C(a){return a in D?D[a]:D[a]=navigator.userAgent[B]()[r](a)!=-1}var D={};function E(a,b){var c=function(){};c.prototype=b[w];a.S=b[w];a.prototype=new c}
                    
16function F(a,b,c){var e=Array[w].slice.call(arguments,2)||[];return function(){var c=e.concat(Array[w].slice.call(arguments));return a.apply(b,c)}}function G(a){a=Error(a);a.toString=function(){return this.message};return a}function H(a,b){for(var c=a.split(/\./),e=j,f=0;f<c[v]-1;f++)e[c[f]]||(e[c[f]]={}),e=e[c[f]];e[c[c[v]-1]]=b}function I(a,b,c){a[b]=c}if(!J)var J=H;if(!K)var K=I;google[y].v={};J("google.loader.callbacks",google[y].v);var L={},M={};google[y].eval={};J("google.loader.eval",google[y].eval);
                    
                
eluminate.js http://chrisroos.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1/*Copyright 2000-2005,Coremetrics 4.0.22 $Revision: 1.1 $*/if(!cGB){var cGB=true;if(!cm_ClientID){var cm_ClientID="90081497";}if(!cm_HOST){var cm_HOST="test.coremetrics.com/cm?";}if(!cm_ClientTS){var dt=new Date();var cm_ClientTS=dt.getTime();}if(!cm_TrackLink){var cm_TrackLink="A";}if(!cm_DelayHandlerReg){var cm_DelayHandlerReg="";}if(!cm_TrackTime){var cm_TrackTime=false;}if(!cm_TrackImpressions){var cm_TrackImpressions="RS";}if(!cm_SecureTags||cm_SecureTags==null){var cm_SecureTags="|2|3|";}if(!cm_FirstPartyDetect){var cm_FirstPartyDetect=false;}if(!cm_DownloadExtensions){var cm_DownloadExtensions=null;}if(!cm_UseUTF8){var cm_UseUTF8=false;}if(!cm_FormError){var cm_FormError="";}if(cm_UseCookie==null){var cm_UseCookie=true;}if(!cm_TimeoutSecs){var cm_TimeoutSecs=15;}if(!cmUA){var cmUA=new Object();cmUA["MSIE"]=2083;}if(!cmDefaultLimit){var cmDefaultLimit=8197;}if(cGQ==null){var cGQ=true;}if(!cGO){var cGO=1024;}if(!cGR){var cGR=600000;}if(!encodeURIComponent){var encodeURIComponent=null;}var cG8;var cG8Index;var cG6=document;var cGP=window.location;var cGT;var cG7=new _cG7();cG6.cmTagCtl=cG7;var CI=cmStartTagSet;var CJ=cmSendTagSet;var cG1=0;var cG0=new Array("vn1","vn2","st","pi","rs","ec","rf","ul");var cmLastPageID=null;var cGA=null;if(!cG4){var cG4=5000;}if(!cG5){var cG5=200;}var cG2=new Object();var cG3=new Object();var cGM=navigator.appVersion;var cGN=navigator.userAgent;var cGS=cGN.indexOf("Opera")>=0;var cGU=cGN.indexOf("Safari")>=0;var cmT2=-1;var cmT3=-1;var cGC="";var cGD="";var cGE="";var cGF="";var cGG="";var cGH="";var cGI="";var cGJ="";var cGK="";var cGL="";var chost=null;var cci=null;CI();if(cm_UseCookie){var pi=cI("cmRS","pi","");if(pi!="")cmLastPageID=pi;chost=cm_HOST;cm_HOST=cI("cmRS","ho",chost);cci=cm_ClientID;cm_ClientID=cI("cmRS","ci",cci);var cT3=cI("cmRS","t3","");if(cT3!=""){cGA=cT3;}var cT1=cI("cmRS","t1","");if(cT1!=""&&(!cGA||cm_ClientTS - cGA<cGR)){cmAddShared("st",cT1);var ul=cI("cmRS","ul","");var rf=cI("cmRS","rf","");var cT2=cI("cmRS","t2","");var cT4=cI("cmRS","t4","");if(cm_TrackTime)cN(cT1,cT2,cT3,cT4,true,pi);var hr=cI("cmRS","hr","");if(hr!=""){var ti=cI("cmRS","lti","");if(cm_ClientTS - ti<cGR){var nm=cI("cmRS","ln","");cM(cT1,ti,nm,hr,true,pi,ul,rf);}}var cV6=cI("cmRS","ac","");var cV7=cI("cmRS","fd","");if((cV6!="")||(cV7!="")){var ti=cI("cmRS","fti","");if(cm_ClientTS - ti<cGR){var cV9=cI("cmRS","fn","");var cV0=cI("cmRS","fu","");cL(cT1,ti,cV9,cV6,cV0,cV7,true,pi,ul,rf);}}var cError=unescape(cI("cmRS","uer",""));CH(cT1,cT3,cError,true,pi);}CC("cmRS");}if(!cGS&&(cF(4)||CD(5))){this.onload=cK(this,"onload",this.onload,"cY(e)",cY);this.onunload=cK(this,"onunload",this.onunload,"cZ(e)",cZ);if(cm_DelayHandlerReg.indexOf("L")==-1)window.cX("main");if(cm_DelayHandlerReg.indexOf("F")==-1)cU();}CJ(1);if(chost)cm_HOST=chost;if(cci)cm_ClientID=cci;}function cmStartTagSet(){if(cG8)return;cG8=new Array();cG8[0]=new _cm();cG8Index=1;}function cmAddShared(nm,val){if(cG8)cG8[0][nm]=val;}function cmSendTagSet(){var request;while((request=C7(arguments[0]))!=null){c9(request);}cG8=null;}function CQ(pl,host,qs){this.pl=pl;this.hosts=host.split(",");if(qs)this.qs=qs;this.cM5=CR;}function CR(){var a=arguments;var h=a[0]?a[0]:this.hosts[0];return this.pl+"//"+h+(this.qs?this.qs:"");}function _cG7(){this.cM0=new Object();this.uls=new Object();this.rfs=new Object();this.cTI=new Array();this.cPE=0;this.normalizeURL=c2;this.getPageID=c1;this.getPluginPageID=cmGetPluginPageID;}function cmGetPluginPageID(cVA){splitClientIDs=cm_ClientID.split(";");finalClientID=cVA;for(n=0;n<splitClientIDs.length;n++){if(splitClientIDs[n]==cVA){finalClientID=cm_ClientID;break;}}return this.getPageID(finalClientID);}function c1(cVA){var pi=cG7.cM0[cVA];return pi?pi:"";}function CS(cVA){var ul=cG7.uls[cVA];if(!ul)ul=cGP.href;return ul?ul:"";}function CT(cVA){var rf=cG7.rfs[cVA];if(!rf)rf=cG6.referrer;return rf?rf:"";}function CP(href){var h=cGT;if(!h)h=cGT=cG7.normalizeURL(cGP.href,false);var a=href.indexOf("#");if(a>=0&&a<=h.length){var ha=h.indexOf("#");if(ha<0)ha=h.length;if(href.substring(0,a)==h.substring(0,ha))return href.substring(a);}return href;}function c2(url,isHref){if(isHref){url=CP(url);var pfx=cGP.protocol+"//"+cGP.host;if(url.indexOf(pfx)==0)url=url.substring(pfx.length);}return cD(url);}function c4(){for(b in cmUA)if(cGM.indexOf(b)!=-1)return cmUA[b];return cmDefaultLimit;}function C0(n){if(cG7){if(cG7.cTI&&cG7.cTI[n])cG7.cTI[n].cmLD=true;cG7.cPE--;if(cG7.onResponse)cG7.onResponse(n);}}function CN(n){if(cG7){cG7.cPE--;var img=null;if(cG7.cTI&&cG7.cTI[n]){img=cG7.cTI[n];img.cmLD=true;}if(cG7.onError&&(!img||!img.cmTO))cG7.onError(3,img);}}function c6(host,n){if(cG3)cG3[host]=true;C0(n);}function CO(n){if(cG7&&cG7.cTI&&cG7.cTI[n]&&!(cG7.cTI[n].cmLD)){var img=cG7.cTI[n];img.cmTO=img.src;img.src="";if(cG7.onError)cG7.onError(4,img.cmTO);}}function c8(host){if(!cG3||cG3[host])return true;var dt=new Date();if((dt.getTime()-cG2[host])>cG4)return true;return false;}function CV(host,url){if(!cG2[host]||c8(host)){var img=new Image();var i=cG1;cG7.cTI[cG1++]=img;if(!cG2[host]){var dt=new Date();cG2[host]=dt.getTime();img.onload=new Function("if(c6)c6('"+host+"',"+i+");");}else{img.onload=new Function("if(C0)C0("+i+");");}img.onerror=new Function("if(CN)CN("+i+");");if(cG7.onTagSent)cG7.onTagSent(url,i);img.src=url;setTimeout('if(CO)CO('+i+');',cm_TimeoutSecs * 1000);}else{setTimeout('if(CV)CV("'+host+'","'+url+'");',cG5);}}function c9(img){if(cI("CMDisabled"))return;var limit=c4();for(var h in img.hosts){var url=img.cM5(img.hosts[h]);if(url.length>limit)url=url.substring(0,limit-6)+"&err=O";cG7.cPE++;CV(img.hosts[h],url);}}function cC(){if(cG8)cG8[cG8Index++]=this;else{var request=this.getImgSrc(arguments[0],1);c9(request);return request;}}function C4(src,tgt,compact){if(!compact){if(!src.rf){if(!cG6.referrer)tgt.rf="";else tgt.rf=cG6.referrer;}else if(src!=tgt)tgt.rf=src.rf;if(!src.ul||src.ul==""||src.ul=="(none)")tgt.ul=cGP.href;else if(src!=tgt)tgt.ul=src.ul;var ul=cG7.normalizeURL(tgt.ul,false);if(ul!="")tgt.ul=ul;}}function C5(tgt,compact){if(cm_FirstPartyDetect&&!compact){if(cI("cmRS")||cI("TestSess")){tgt.ts="Y";}else{CB("TestSess","Y");tgt.ts=cI("TestSess");}tgt.tp=cI("TestPerm");if(tgt.tp!="Y"){dt.setHours(dt.getHours()+5);CB("TestPerm","Y",dt.toGMTString());tgt.tp=cI("TestPerm");}}}function C6(tag,cV3){var qs="";if(tag.tid)qs+="tid="+tag.tid;var isPV=(tag.tid==1||(tag.pc&&tag.pc.charAt(0)=='Y'));if(!tag.lp&&isPV)tag.lp=cmLastPageID;for(var cOb in tag){if(!tag[cOb]||tag[cOb]==""||tag[cOb].constructor==Function||cOb=="qs"||cOb=="tid")continue;if(cV3&&cV3[cOb]==tag[cOb])continue;if(qs!="")qs+="&";qs+=cD(cOb)+"="+cE(cD(tag[cOb]));}if(!tag.rs&&tag.ci){if(tag.pi&&isPV&&c1(tag.ci)=="")cG7.cM0[tag.ci]=tag.pi;if(tag.ul)cG7.uls[tag.ci]=tag.ul;if(tag.rf)cG7.rfs[tag.ci]=tag.rf;}if(cV3&&cm_SecureTags.indexOf("|"+tag.tid+"|")!=-1)cV3.protocol="https:";return qs;}function C8(cV3){var cm_pl=location.protocol;if(cV3&&cV3.protocol)cm_pl=cV3.protocol;if(cm_pl!="http:"&&cm_pl!="https:")cm_pl="http:";return cm_pl;}function c0(){var a=arguments;C4(this,this,a[0]);C5(this,a[0]);var cV3=new Object();var qs=C6(this,cV3);var req=new CQ(C8(cV3),cm_HOST,qs);return a[1]?req:req.cM5();}function C7(){var cV3,first,p,a,pl,lim,len,l,i,tq;if(!cG8||cG8.length<2)return null;cV3=cG8[0];first=cG8[1];cV3.ci=first.ci;for(i=2;i<cG8.length;i++){if(cV3.ci.indexOf(cG8[i].ci)==-1){cV3.ci+=";"+cG8[i].ci;}}for(i=0;i<cG0.length;i++){p=cG0[i];if(!cV3[p])cV3[p]=first[p];}a=arguments;C4(first,cV3,a[0]);C5(cV3,a[0]);pl=C8(cV3);img=new CQ(pl,cm_HOST);img.qs=C6(cV3);lim=c4();len=0;for(var h in img.hosts){l=pl.length+img.hosts[h].length+img.qs.length;if(l>len)len=l;}for(i=1;i<cG8.length;i++){tq=C6(cG8[i],cV3);if(i>1&&len+tq.length+1>lim){for(j=1;j<cG8.length-i+1;j++)cG8[j]=cG8[j+i-1];cG8.length=cG8.length-i+1;break;}len+=tq.length+1;img.qs+="&"+tq;}if(i==cG8.length)cG8=null;return img;}function _cm(){var i,a=arguments;this.ci=cm_ClientID;for(i=0;i<a.length;i++)this[a[i]]=a[++i];this.write=cC;this.getImgSrc=c0;this.writeImg=cC;this.st=cm_ClientTS;this.vn1="4.0.22";if(cF(5.5)||!cF(0)){var ec=(cm_UseUTF8&&encodeURIComponent)||cGU?"utf-8":cG6.charset;if(!ec)ec=cG6.defaultCharset;if(!ec)ec=cG6.characterSet;this.ec=ec;}}function cD(s){var z="";s=z+(!s?"":s);return s.split("'").join(z).split("\"").join(z).split("\r").join(z).split("\n").join(z);}function cE(s){var i=0,j;while(s.charAt(i)==" "&&i!=s.length)i++;j=s.length-1;while(s.charAt(j)==" "&&j!=0)j--;s=s.substring(i,j+1);if(cm_UseUTF8&&encodeURIComponent)s=encodeURIComponent(s);else s=escape(s);s=s.split("+").join("%2B");return s;}function cF(ver){var i=cGM.indexOf("MSIE");if(i!=-1)return(parseFloat(cGM.substring(i+5))>=ver);return false;}function CD(ver){return(cGN.indexOf("Gecko")!=-1&&parseInt(cGM)>=ver);}function cI(nm,skey,cV5){var dc=cG6.cookie;var cV4=cJ(nm,dc,";");if(!skey||!cV4){if(!cV4&&cV5!=null){return cV5;}return cV4;}cV4=cJ(skey,cV4,"&");if(!cV4&&cV5!=null){return cV5;}return unescape(cV4);}function CL(){var cookies,dc,nv,i,c=0;dc=cG6.cookie;if(dc){cookies=dc.split(";");c=cookies.length;for(i=0;i<cookies.length;i++){nv=cookies[i].split("=");if(nv.length<2||nv[1]==null||nv[1]==""){c--;}}}return c;}function CB(nm,val,expires){var err,len,v,dc=cG6.cookie;err=null;len=val.length+1;if(!cI(nm)){len+=nm.length;}if(len>4096)err=1;else if(dc){if(CL()>=20)err=2;else if(dc.length+len+2>4096)err=1;}if(err){if(cG7.onError)cG7.onError(err,name);return false;}v=nm+"="+val+";path=/";if(expires)v+=";expires="+expires;cG6.cookie=v;return true;}function CC(nm){var v=cI(nm);if(v!=null){var dt=new Date();dt.setYear(1973);cG6.cookie=nm+"=;path=/;expires="+dt.toGMTString();}return v;}function cJ(nm,src,sep){var pfx,s,begin,end,obj=null;pfx=nm+"=";s=sep+' ';begin=src.indexOf(s+pfx);if(begin==-1){s=sep;begin=src.indexOf(s+pfx);}if(begin==-1){begin=src.indexOf(pfx);if(begin!=0){return null;}}else{begin+=s.length;}end=src.indexOf(s,begin);if(end==-1){end=src.length;}return src.substring(begin+pfx.length,end);}function cK(elt,type,handle,fName,f){if(handle){var event=handle.toString();if(event.indexOf(fName)==-1){if(cGU&&event.indexOf("function "+"(")==0){fName=fName+";"+event.substring(event.indexOf("{"),event.length);}else{elt["_c_"+type]=handle;fName="if(!e)var e=null;"+fName+";return this._c_"+type+"("+(cF(5)?"":"e")+");"}var newfunc=new Function("e",fName);return newfunc;}else{return handle;}}else{return f;}}function CG(e){var e;if(cF(4)){if(window.event){e=window.event.srcElement;}}else if(e){if(CD(5)){e=e.currentTarget;}else{e=e.target;}}return e;}function CU(cm,cVBH,pi,dest,ref){var ul,rf;cm.pi=pi?pi:c1(cVBH);if(cGQ){if(dest||ref){cm.ul=dest?dest:"";cm.rf=ref?ref:"";}else{ul=CS(cVBH);rf=CT(cVBH);if(cm.pi==""||ul.indexOf("cm_")>0||(rf!=""&&rf.indexOf(cGP.protocol+"//"+cGP.host)!=0)){cm.ul=ul;cm.rf=rf;}}}}function cL(t1,t3,fname,cVB,url,field,resent,pi,dest,ref){var cm=new _cm("tid","10");CU(cm,cm.ci,pi,dest,ref);cm.st=t1;cm.ti=t3;cm.fo=fname;cm.ac=cVB;cm.hr=url;cm.fi=field;if(resent)cm.rs="Y";cm.write(1);}function cM(t1,ti,name,href,resent,pi,dest,ref){var cm=new _cm("tid","8");CU(cm,cm.ci,pi,dest,ref);cm.st=t1;cm.ti=ti;cm.nm=name;cm.hr=href;if(resent)cm.rs="Y";cm.write(1);}function cN(t1,t2,cx,t4,resent,pi){var cm=new _cm("tid","11");cm.pi=pi?pi:c1(cm.ci);cm.st=t1;cm.lc=t2;cm.lx=t4;cm.cx=cx;if(resent)cm.rs="Y";cm.write(1);}function CM(href){var n,len,a,q;if((n=href.indexOf("?"))==-1)n=href.lastIndexOf("/");if(n!=-1){len=href.indexOf("#",n);if(len==-1)len=href.length;while(n!=-1&&n<len){n=href.indexOf("cm_",n);if(n!=-1){a=href.indexOf("&",n);if(a==-1)a=len;q=href.indexOf("=",n);if(q!=-1&&q<a)this[href.substring(n,q)]=href.substring(q+1,a);n=a;}}}}function CK(href,trackSP,trackRE){var cm,link,sp,re;if((trackSP||trackRE)&&href){cm=new _cm("tid","9");link=new CM(CP(href));if(trackSP){sp=cm.cm_sp_o=link.cm_sp_o;if(!sp)sp=cm.cm_sp=link.cm_sp;}if(trackRE){re=cm.cm_re_o=link.cm_re_o;if(!re)re=cm.cm_re=link.cm_re;}if(sp||re){cm.pi=c1(cm.ci);cm.st=cm_ClientTS;cm.write(1);}}}function CH(t1,ti,msg,resent,pi){if(msg!=cGL){var cm=new _cm("tid","12");cm.pi=pi?pi:c1(cm.ci);cm.st=t1;cm.ti=ti;if(resent)cm.rs="Y";cm.er=msg;cm.write(1);cGL=cm_FormError;}}function cO(cVC,cVB){var dt,url="";cVB=cVC+":"+cVB;if(cVC!=-1){var curForm=cG6.forms[cVC];if(cF(5))url=curForm.attributes.action.nodeValue;else if(curForm.attributes.getNamedItem){url=curForm.attributes.getNamedItem('action');if(url)url=url.value;}else url=curForm.action;if(!url)url="";}if(cV(url)){dt=new Date();cGH=dt.getTime();cGF=cVB;cGE=cG7.normalizeURL(url,true);cL(cm_ClientTS,cGH,cGD,cGF,cGE,cGC,false);cGG=cGC;cGC="";}else{cGF="";}}function cP(e){CI();var e=CG(e);cO(e?e.cM1:-1,"S");CA(1);CJ(1);CE();}function cQ(e){var e=CG(e);if(e)cO(e.cM1,"R");}function cR(e){var e=CG(e);if(e)e.cM3="xyzzy";}function cS(e){var e=CG(e);if(e)e.cM3=e.value;}function cT(e){var e=CG(e);if(e&&(e.type!="submit")&&(e.type!="reset")){if(e.value!=e.cM3){cGC=cGC+e.cM1+":"+e.cM2+":"+e.name+";";}}}function CF(e){var e=CG(e);if(e)cGC=cGC+e.cM1+":"+e.cM2+":"+e.name+";";}function cU(){var i,form,cV9,j,e;for(i=0;i<cG6.forms.length;i++){form=cG6.forms[i];if(form.cM1==null){form.cM1=i;if(cF(5))cV9=form.attributes.name.nodeValue;else if(form.attributes.getNamedItem){cV9=form.attributes.getNamedItem('name');if(cV9)cV9=cV9.value;}else cV9=form.name;if(!cV9)cV9="";cGD=cGD+cV9+":"+i+";";form.onsubmit=cK(form,"onsubmit",form.onsubmit,"cP(e)",cP);form.onreset=cK(form,"onreset",form.onreset,"cQ(e)",cQ);for(j=0;j<form.elements.length;j++){e=form.elements[j];e.cM1=i;e.cM2=j;e.cM3="";e.onfocus=cK(e,"onfocus",e.onfocus,"cS(e)",cS);e.onblur=cK(e,"onblur",e.onblur,"cT(e)",cT);e.onchange=cK(e,"onchange",e.onchange,"cR(e)",cR);if(e.type=='submit'||e.type=='button')e.onclick=cK(e,"onclick",e.onclick,"CF(e)",CF);}}}}function cV(path){if(cm_TrackLink==true||cm_TrackLink=="A")return true;else{if(cm_TrackLink=="E"&&path.indexOf("/")!=0)return true;var de;if((de=cm_DownloadExtensions)!=null){var p=path.lastIndexOf(".");if(p!=-1){var ext=path.substring(p);for(var e in de){if(ext==de[e])return true;}}}return false;}}function cW(e){CI();var e=CG(e);if(e)C9(e);CA(1);CJ(1);CE();}function C9(e){cGI="";cGJ="";cGK="";var type=e.tagName.toUpperCase();if(type=="AREA"){cGJ=e.href?e.href:"";var p=e.parentElement?e.parentElement:e.parentNode;if(p!=null)cGI=p.name?p.name:"";}else{while(type!="A"&&type!="HTML"){if(!e.parentElement)e=e.parentNode;else e=e.parentElement;if(e)type=e.tagName.toUpperCase();}if(type=="A"){cGJ=e.href?e.href:"";cGI=e.name?e.name:"";}}cGJ=cG7.normalizeURL(cGJ,true);if(cV(cGJ)==true){var dt=new Date();cGK=dt.getTime();cM(cm_ClientTS,cGK,cGI,cGJ,false);}else{cGJ="";}}function cX(phase){CI();var i,lnk,imp,trackSP,trackRE;imp=cm_TrackImpressions;trackSP=(imp.indexOf("S")!=-1);trackRE=(imp.indexOf("R")!=-1);for(i=0;i<cG6.links.length;i++){lnk=cG6.links[i];if(!CD(5)){lnk.onclick=cK(lnk,"onclick",lnk.onclick,"cW(e)",cW);}else if(!lnk.cM4){lnk.addEventListener("click",cW,false);lnk.cM4=1;}if(phase=="onload"){CK(lnk.href,trackSP,t
                    
                
wikibits.js http://uppsala-university.googlecode.com/svn/trunk/ | JavaScript | 1011 lines
                    
51	var uri = wgScript + '?title=' +
                    
52		encodeURIComponent(page.replace(/ /g,'_')).replace('%2F','/').replace('%3A',':') +
                    
53		'&action=raw&ctype=text/javascript';
                    
70function importStylesheet(page) {
                    
71	return importStylesheetURI(wgScript + '?action=raw&ctype=text/css&title=' + encodeURIComponent(page.replace(/ /g,'_')));
                    
72}
                    
                
widget.js http://xe-core.googlecode.com/svn/trunk/ | JavaScript | 1263 lines
                    
117
                    
118            attrs += name+'="'+encodeURIComponent(value)+'" ';
                    
119        }
                    
139        if(!value || value == "Array") continue;
                    
140        attrs += name+'="'+encodeURIComponent(value)+'" ';
                    
141    }
                    
167
                    
168        attrs += name+'="'+encodeURIComponent(value)+'" ';
                    
169    }
                    
                
support.js https://code.google.com/p/ontowiki/ | JavaScript | 560 lines
                    
24            var url    = urlBase + 'view/';
                    
25            var params = 'r=' + encodeURIComponent(resourceUri);
                    
26            $.ajax({
                    
48    resourceURI = target.next().attr('about');
                    
49    encodedResourceURI = encodeURIComponent(resourceURI);
                    
50    resource = target.next();
                    
227    if (array.length) {
                    
228        serialization += key + '[]=' + encodeURIComponent(array[0]);
                    
229        
                    
230        for (var i = 1; i < array.length; ++i) {
                    
231            serialization += '&' + key + '[]=' + encodeURIComponent(array[i]);
                    
232        }
                    
261
                    
262    encodedResourceUri = encodeURIComponent(resourceUri);
                    
263    resource = $(event.target).parent();
                    
                
goosh.js git://github.com/sones/sones.git | JavaScript | 869 lines
                    
334                    document.body.appendChild(script);
                    
335                    script.src = "http://www.google.com/complete/search?hl=" + goosh.config.lang + "&js=true&qu=" + encodeURIComponent(word);
                    
336                }
                    
                
cookie-debug.js git://github.com/hpcc-systems/HPCC-Platform.git | JavaScript | 482 lines
                    
39        var lang = YAHOO.lang,
                    
40            text = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value);
                    
41        
                    
88            if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){
                    
89                text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key])));
                    
90            }
                    
                
validator.js http://ubiquity-xforms.googlecode.com/svn/trunk/ | JavaScript | 988 lines
                    
116           (c === 123) || (c === 124) || (c === 125) || (c > 127)) {
                    
117           encodedURI += (encodeURIComponent(String.fromCharCode(c)));
                    
118       } else {
                    
                
admin.js http://creative-portal.googlecode.com/svn/trunk/ | JavaScript | 468 lines
                    
361	if (content != '') {
                    
362		nv_ajax('post', script_name, nv_name_variable + '=' + nv_module_name + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=keywords&content=' + encodeURIComponent(content), '', 'res_keywords');
                    
363	}
                    
                
tinetworkmodule.js git://github.com/appcelerator/titanium_desktop.git | JavaScript | 536 lines
                    
21            queryString += key + "=" + (data[key] === undefined ?
                    
22                 '' : Titanium.Network.encodeURIComponent(data[key])) + '&';
                    
23        }
                    
335            xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                    
336            var qs = 'version=' + Titanium.Network.encodeURIComponent(version) +
                    
337                '&name=' + Titanium.Network.encodeURIComponent(component) + 
                    
337                '&name=' + Titanium.Network.encodeURIComponent(component) + 
                    
338                '&mid=' + Titanium.Network.encodeURIComponent(Titanium.Platform.id) +
                    
339                '&limit=' + limit +
                    
339                '&limit=' + limit +
                    
340                '&guid=' + Titanium.Network.encodeURIComponent(Titanium.App.getGUID()) +
                    
341                '&os=' + Titanium.platform +
                    
                
web_socket.js git://github.com/gimite/web-socket-js.git | JavaScript | 398 lines
                    
79    }
                    
80    // We use encodeURIComponent() here, because FABridge doesn't work if
                    
81    // the argument includes some characters. We don't use escape() here
                    
83    // https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Functions#escape_and_unescape_Functions
                    
84    // But it looks decodeURIComponent(encodeURIComponent(s)) doesn't
                    
85    // preserve all Unicode characters either e.g. "\uffff" in Firefox.
                    
87    // additional testing.
                    
88    var result = WebSocket.__flash.send(this.__id, encodeURIComponent(data));
                    
89    if (result < 0) { // success
                    
                
goodseditor.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 245 lines
                    
103       W.page('index.php?ctl=goods/product&act=update',{update:'gEditor-Body',
                    
104                                                        data:$('gEditor').toQueryString()+'&pic_bar='+encodeURIComponent( $E('#action-pic-bar .pic-area').get('html') ),
                    
105                                                        method:'post',
                    
                
shCore.js git://github.com/recess/recess.git | JavaScript | 161 lines
                    
15{flashcopier=document.createElement('div');highlighter.flashCopier=flashcopier;highlighter.div.appendChild(flashcopier);}

                    
16flashcopier.innerHTML='<embed src="'+dp.sh.ClipboardSwf+'" FlashVars="clipboard='+encodeURIComponent(code)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';}

                    
17alert('The code is in your clipboard now');}},PrintSource:{label:'print',func:function(sender,highlighter)

                    
                
utils.js http://gtsg.googlecode.com/svn/trunk/ | JavaScript | 215 lines
                    
33{
                    
34    return encodeURIComponent(s);   // escape(s);
                    
35}
                    
                
treelist.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 244 lines
                    
201		  url=url.split('filter=');     
                    
202		  url=url[0]+'filter='+encodeURIComponent(url[1]);
                    
203		  
                    
                
driver.js git://github.com/mozilla/pdf.js.git | JavaScript | 954 lines
                    
65  const svg_xml = unescape(
                    
66    encodeURIComponent(new XMLSerializer().serializeToString(svgElement))
                    
67  );
                    
                
qunit.js http://monorail-samples.googlecode.com/svn/trunk/ | JavaScript | 1298 lines
                    
178					if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
                    
179						window.location.search = "?" + encodeURIComponent(getText([target]).replace(/\(.+\)$/, "").replace(/(^\s*|\s*$)/g, ""));
                    
180					}
                    
                
qunit.js http://aost.googlecode.com/svn/trunk/ | JavaScript | 1043 lines
                    
203						if ( window.location ) {
                    
204							window.location.href = window.location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent(text);
                    
205						}
                    
                
jquery.spellchecker.js https://hg01.codeplex.com/yafnet | JavaScript | 430 lines
                    
89                        this.postJson(this.options.url, {
                    
90                                text: encodeURIComponent(text).replace(/%20/g, '+')
                    
91                        }, function(json){
                    
185                        this.postJson(this.options.url, {
                    
186                                suggest: encodeURIComponent($.trim($word.text()))
                    
187                        }, function(json){
                    
                
fck_link.js http://fckeditor-for-wordpress.googlecode.com/svn/trunk/ | JavaScript | 665 lines
                    
111	if ( subject.length > 0 )
                    
112		sParams = '?subject=' + encodeURIComponent( subject ) ;
                    
113
                    
116		sParams += ( sParams.length == 0 ? '?' : '&' ) ;
                    
117		sParams += 'body=' + encodeURIComponent( body ) ;
                    
118	}
                    
                
global.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 1446 lines
                    
77			action: 'post_update',
                    
78			'cookie': encodeURIComponent(document.cookie),
                    
79			'_wpnonce_post_update': jq("input#_wpnonce_post_update").val(),
                    
197				action: 'activity_mark_' + type,
                    
198				'cookie': encodeURIComponent(document.cookie),
                    
199				'id': parent_id
                    
251				action: 'delete_activity',
                    
252				'cookie': encodeURIComponent(document.cookie),
                    
253				'id': id,
                    
275				action: 'bp_spam_activity',
                    
276				'cookie': encodeURIComponent( document.cookie ),
                    
277				'id': li.attr( 'id' ).substr( 9, li.attr( 'id' ).length ),
                    
305				action: 'activity_get_older_updates',
                    
306				'cookie': encodeURIComponent(document.cookie),
                    
307				'page': oldest_page
                    
                
url.js http://fbug.googlecode.com/svn/ | JavaScript | 553 lines
                    
292    var uri = "data:text/html;";
                    
293    uri += "fileName="+encodeURIComponent(url)+ ","
                    
294    uri += encodeURIComponent(content);
                    
502    for (var i = 0; i < params.length; ++i)
                    
503        args.push(encodeURIComponent(params[i].name)+"="+encodeURIComponent(params[i].value));
                    
504
                    
                
script2.js http://fbug.googlecode.com/svn/ | JavaScript | 1441 lines
                    
9//function _B_record(){loadTimes.push((new Date).getTime())}var _B_thumbStyle_;function _B_prog(pct){top["pr"]=pct;if(_B_thumbStyle_===undefined){var thumb=top.document.getElementById("lpt");_B_thumbStyle_=thumb?thumb.style:null}if(_B_thumbStyle_){_B_thumbStyle_.width=Math.round(pct*0.99)+"%";if(pct==100)_B_thumbStyle_=null}}
                    
10//function _B_err(e){var state=loadTimes.join("-");_B_logImg_("jserr","jsstate="+encodeURIComponent(state)+"&jsmsg="+encodeURIComponent(e));_B_handleError(e)}function _B_handleError(e){throw e;}function _B_logImg_(v,p){(new Image).src="?ui=2&view="+v+"&"+p+"&ik="+GLOBALS[9]+"&random="+(new Date).getTime()}window.onerror=function(message,url,line){_B_err(message)};_B_prog(1)
                    
11//</script>
                    
14//</script><script>
                    
15//try{function e(b){throw b;}var h=true,j=null,k=false,aa=encodeURIComponent,ba=window,aaa=JS_OBFUSCATED,ca=Object,da=parseInt,baa=Function,ea=document,fa=GLOBALS,ga=decodeURIComponent,ha=isNaN,l=Math;function caa(b,a){return b.appendChild=a}function ia(b,a){return b.show=a}function ja(b,a){return b.onreadystatechange=a}function la(b,a){return b.text=a}function ma(b,a){return b.cancel=a}function na(b,a){return b.data=a}function oa(b,a){return b.load=a}function pa(b,a){return b.onerror=a}
                    
16//function qa(b,a){return b.value=a}function daa(b,a){return b.button=a}function eaa(b,a){return b.indexOf=a}function ra(b,a){return b.dispatchEvent=a}function sa(b,a){return b.currentTarget=a}function ta(b,a){return b.backgroundColor=a}function faa(b,a){return b.screenX=a}function gaa(b,a){return b.screenY=a}function ua(b,a){return b.send=a}function va(b,a){return b.getName=a}function haa(b,a){return b.charCode=a}function wa(b,a){return b.remove=a}function iaa(b,a){return b.cssText=a}
                    
                
MicrosoftMvcAjax.debug.js http://asp-dot-net-training-project.googlecode.com/svn/trunk/ | JavaScript | 0 lines
                    
150        var tagName = element.tagName.toUpperCase();
                    
151        var encodedName = encodeURIComponent(name);
                    
152        var inputElement = element;
                    
155            if (type === 'submit') {
                    
156                return encodedName + '=' + encodeURIComponent(inputElement.value);
                    
157            }
                    
162        else if ((tagName === 'BUTTON') && (name.length) && (inputElement.type === 'submit')) {
                    
163            return encodedName + '=' + encodeURIComponent(inputElement.value);
                    
164        }
                    
185            if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) {
                    
186                formBody.append(encodeURIComponent(name));
                    
187                formBody.append('=');
                    
187                formBody.append('=');
                    
188                formBody.append(encodeURIComponent(inputElement.value));
                    
189                formBody.append('&');
                    
                
qunit.js git://github.com/silverstripe/sapphire.git | JavaScript | 1415 lines
                    
173				if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
                    
174					window.location.search = "?" + encodeURIComponent(getText([target]).replace(/\(.+\)$/, "").replace(/(^\s*|\s*$)/g, ""));
                    
175				}
                    
                
ext-base.js http://gwtquery.googlecode.com/svn/trunk/ | JavaScript | 1874 lines
                    
138        for (var key in o) {
                    
139            var ov = o[key],k = encodeURIComponent(key);
                    
140            var type = typeof ov;
                    
144                if (type != "function" && type != "object") {
                    
145                    buf.push(k, "=", encodeURIComponent(ov), "&")
                    
146                } else {
                    
149                            for (var i = 0,len = ov.length; i < len; i++) {
                    
150                                buf.push(k, "=", encodeURIComponent(ov[i]
                    
151                                        === undefined ? "" : ov[i]), "&")
                    
                
definition-min.js http://thinksns-2.googlecode.com/svn/trunk/ | JavaScript | 25 lines
                    
1KISSY.Editor.add("definition",function(j){var q=true,v=false,y=j.Utils,x=document,l=KISSY,f=l.UA,r=l.DOM,n=l.Node,o=l.Event,C=j.focusManager,E=y.tryThese,F=1,k="document.open();"+(y.isCustomDomain()?'document.domain="'+x.domain+'";':"")+"document.close();",G="<div  class='ke-editor-wrap'  > <div class='"+".ke-editor-tools".substring(1)+"' ></div><div class='"+".ke-textarea-wrap".substring(1)+'\'><iframe  style="width:100%;height:100%;border:none;"  width="100%"  height="100%"  frameborder="0"  title="kissy-editor"  src="'+
                    
2(f.ie?"javascript:void(function(){"+encodeURIComponent(k)+"}())":"")+'"  tabIndex="'+(f.webkit?-1:"$(tabIndex)")+'"  allowTransparency="true" ></iframe></div><div class=\''+".ke-editor-status".substring(1)+"'></div></div>";j.SOURCE_MODE=0;j.WYSIWYG_MODE=1;j.SOURCE_MODE=j.SOURCE_MODE;j.WYSIWYG_MODE=j.WYSIWYG_MODE;l.augment(j,{init:function(b){var a=this;a.__commands={};a.__dialogs={};a.__plugins={};f.ie&&r.addClass(x.body,"ke-ie"+f.ie);if(f.trident)r.addClass(x.body,"ke-trident"+f.trident);else if(f.gecko)r.addClass(x.body,
                    
3"ke-gecko");else f.webkit&&r.addClass(x.body,"ke-webkit");var c=new n(G.replace(/\$\(tabIndex\)/,b.attr("tabIndex")));a.editorWrap=c;a._UUID=F++;C.register(a);a.wrap=c.one(".ke-textarea-wrap");a.wrap=a.wrap;a.iframe=a.wrap.one("iframe");a.iframe=a.iframe;a.toolBarDiv=c.one(".ke-editor-tools");a.toolBarDiv=a.toolBarDiv;a.textarea=b;a.textarea=a.textarea;a.statusDiv=c.one(".ke-editor-status");a.statusDiv=a.statusDiv;y.preventFocus(a.toolBarDiv);var e=b._4e_style("width"),d=b._4e_style("height");if(e){c.css("width",
                    
                
axurerp_pagespecificscript.js http://adboss.googlecode.com/svn/trunk/ | JavaScript | 158 lines
                    
31function GetQuerystring() {
                    
32    return '#OnLoadVariable=' + encodeURIComponent($OnLoadVariable) + '&CSUM=1';
                    
33}
                    
                
common.js http://endcms.googlecode.com/svn/trunk/ | JavaScript | 336 lines
                    
106					var newurl = window.location.href.toString().replace(reg,'');
                    
107					newurl += '&search['+search+']='+encodeURIComponent($(this).val());
                    
108					window.location = newurl;
                    
                
chart.js http://aita-appserver.googlecode.com/svn/trunk/ | JavaScript | 326 lines
                    
65		// his Sarissa library (sarissa.sourceforge.net) for this technique.
                    
66		var url = "data:text/xml;charset=utf-8," + encodeURIComponent(text);
                    
67		var request = new XMLHttpRequest( );
                    
                
show_ads.js http://testes-quickplay-remoto.googlecode.com/svn/trunk/ | JavaScript | 16 lines
                    
1(function(){var g=!0,h=null,i=!1,j=(new Date).getTime();var aa=this,ba=function(a,b){var c=a.split("."),d=aa;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&void 0!==b?d[e]=b:d=d[e]?d[e]:d[e]={}},ca=function(a,b,c){return a.call.apply(a.bind,arguments)},da=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,
                    
2arguments)}},k=function(a,b,c){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ca:da;return k.apply(h,arguments)};var ea=/&/g,fa=/</g,ga=/>/g,ha=/\"/g,l={"\x00":"\\0","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"},m={"'":"\\'"};var ia=document,o=window;var r=function(a){return"true"==a?g:"false"==a?i:i},ja=/^([\w-]+\.)*([\w-]{2,})(\:[0-9]+)?$/,s=function(a){return!a?"pagead2.googlesyndication.com":(a=a.match(ja))?a[0]:"pagead2.googlesyndication.com"};var v=parseFloat("0"),ka=isNaN(v)||1<v||0>v?0:v;var la=r("false"),ma=r("false"),na=r("false"),pa=r("false");var qa=function(){return s("")};s("");var w=function(a){return!!a&&"function"==typeof a&&!!a.call},ra=function(a,b){if(!(2>arguments.length))for(var c=1,d=arguments.length;c<d;++c)a.push(arguments[c])};function y(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)}function sa(a,b){a.addEventListener?a.addEventListener("load",b,i):a.attachEvent&&a.attachEvent("onload",b)};ba("google_protectAndRun",function(a,b,c){a=k(b,aa,a);b=window.onerror;window.onerror=a;try{c()}catch(d){var c=d.toString(),e="";d.fileName&&(e=d.fileName);var f=-1;d.lineNumber&&(f=d.lineNumber);if(!a(c,e,f))throw d;}window.onerror=b});
                    
3ba("google_handleError",function(a,b,c,d){0.01>Math.random()&&(a=["http://",qa(),"/pagead/gen_204","?id=jserror","&jscb=",la?1:0,"&jscd=",ma?1:0,"&context=",y(a),"&msg=",y(b),"&file=",y(c),"&line=",y(d.toString()),"&url=",y(ia.URL.substring(0,512)),"&ref=",y(ia.referrer.substring(0,512))],a.push(["&client=",y(o.google_ad_client),"&format=",y(o.google_ad_format),"&slotname=",y(o.google_ad_slot),"&output=",y(o.google_ad_output),"&ad_type=",y(o.google_ad_type)].join("")),a=a.join(""),o.google_image_requests||
                    
                
uri.js http://ubiquity-xforms.googlecode.com/svn/trunk/ | JavaScript | 280 lines
                    
243			if (params.hasOwnProperty(key) && typeof(params[key]) !== "function") {
                    
244				pairs.push(encodeURIComponent(key) + "=" + encodeURIComponent(params[key]));
                    
245			}
                    
                
helper.js http://jqbird.googlecode.com/svn/trunk/ | JavaScript | 592 lines
                    
17    			typeof(FCKeditorAPI.GetInstance(thisform.elements[i].name)) != "undefined") {
                    
18    		s_data += "&" + thisform.elements[i].name + "=" + encodeURIComponent(FCKeditorAPI.GetInstance(thisform.elements[i].name).GetXHTML());
                    
19    	} else {
                    
26	    			if (thisform.elements[i].options[j].selected) {
                    
27	    				s_data += "&" + thisform.elements[i].name + "=" + encodeURIComponent(thisform.elements[i].options[j].value);
                    
28	    			}
                    
30	    	} else {
                    
31	    		s_data += "&" + thisform.elements[i].name + "=" + encodeURIComponent(thisform.elements[i].value);
                    
32	    	}
                    
                
ga.js http://jqbird.googlecode.com/svn/trunk/ | JavaScript | 42 lines
                    
1var _gat=new Object({c:"length",lb:"4.3",m:"cookie",b:undefined,cb:function(d,a){this.zb=d;this.Nb=a},r:"__utma=",W:"__utmb=",ma:"__utmc=",Ta:"__utmk=",na:"__utmv=",oa:"__utmx=",Sa:"GASO=",X:"__utmz=",lc:"http://www.google-analytics.com/__utm.gif",mc:"https://ssl.google-analytics.com/__utm.gif",Wa:"utmcid=",Ya:"utmcsr=",$a:"utmgclid=",Ua:"utmccn=",Xa:"utmcmd=",Za:"utmctr=",Va:"utmcct=",Hb:false,_gasoDomain:undefined,_gasoCPath:undefined,e:window,a:document,k:navigator,t:function(d){var a=1,c=0,h,
                    
2o;if(!_gat.q(d)){a=0;for(h=d[_gat.c]-1;h>=0;h--){o=d.charCodeAt(h);a=(a<<6&268435455)+o+(o<<14);c=a&266338304;a=c!=0?a^c>>21:a}}return a},C:function(d,a,c){var h=_gat,o="-",k,l,s=h.q;if(!s(d)&&!s(a)&&!s(c)){k=h.w(d,a);if(k>-1){l=d.indexOf(c,k);if(l<0)l=d[h.c];o=h.F(d,k+h.w(a,"=")+1,l)}}return o},Ea:function(d){var a=false,c=0,h,o;if(!_gat.q(d)){a=true;for(h=0;h<d[_gat.c];h++){o=d.charAt(h);c+="."==o?1:0;a=a&&c<=1&&(0==h&&"-"==o||_gat.P(".0123456789",o))}}return a},d:function(d,a){var c=encodeURIComponent;
                    
3return c instanceof Function?(a?encodeURI(d):c(d)):escape(d)},J:function(d,a){var c=decodeURIComponent,h;d=d.split("+").join(" ");if(c instanceof Function)try{h=a?decodeURI(d):c(d)}catch(o){h=unescape(d)}else h=unescape(d);return h},Db:function(d){return d&&d.hash?_gat.F(d.href,_gat.w(d.href,"#")):""},q:function(d){return _gat.b==d||"-"==d||""==d},Lb:function(d){return d[_gat.c]>0&&_gat.P(" \n\r\t",d)},P:function(d,a){return _gat.w(d,a)>-1},h:function(d,a){d[d[_gat.c]]=a},T:function(d){return d.toLowerCase()},
                    
                
YMaps.js http://obizsoft.googlecode.com/svn/trunk/ | JavaScript | 9381 lines
                    
279        }
                    
280        if (!window.encodeURIComponent) {
                    
281            var l = "0123456789ABCDEF".split("");
                    
308            }
                    
309            window.encodeURIComponent = h;
                    
310            window.encodeURI = function(t) {
                    
                
base-y5.js http://obizsoft.googlecode.com/svn/trunk/ | JavaScript | 2373 lines
                    
306    }
                    
307    if (!window.encodeURIComponent) {
                    
308        var J = "0123456789ABCDEF".split("");
                    
335        }
                    
336        window.encodeURIComponent = F;
                    
337        window.encodeURI = function(A) {
                    
                
ga.js https://code.google.com/p/rrdws/ | JavaScript | 52 lines
                    
1(function(){var g=void 0,h=null,aa=encodeURIComponent,ba=decodeURIComponent,j=Math;function ca(a,b){return a.name=b}var k="push",da="slice",ea="replace",fa="load",l="charAt",ga="value",n="indexOf",ha="match",o="name",ia="host",r="toString",s="length",t="prototype",u="split",v="stopPropagation",ja="scope",w="location",x="getString",y="substring",la="navigator",A="join",B="toLowerCase",C;function ma(a,b){switch(b){case 0:return""+a;case 1:return a*1;case 2:return!!a;case 3:return a*1E3}return a}function D(a){return g==a||"-"==a||""==a}function na(a){if(!a||""==a)return"";for(;a&&" \n\r\t"[n](a[l](0))>-1;)a=a[y](1);for(;a&&" \n\r\t"[n](a[l](a[s]-1))>-1;)a=a[y](0,a[s]-1);return a}function oa(a){var b=1,c=0,d;if(!D(a)){b=0;for(d=a[s]-1;d>=0;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=c!=0?b^c>>21:b}return b}function pa(){return j.round(j.random()*2147483647)}
                    
2function qa(){}function E(a,b){return aa instanceof Function?b?encodeURI(a):aa(a):(F(68),escape(a))}function G(a){a=a[u]("+")[A](" ");if(ba instanceof Function)try{return ba(a)}catch(b){F(17)}else F(68);return unescape(a)}var ra=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},sa=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,!!d):a.detachEvent&&a.detachEvent("on"+b,c)};function H(a){return a&&a[s]>0?a[0]:""}
                    
                
common.js http://snailstory.googlecode.com/svn/trunk/ | JavaScript | 1004 lines
                    
7  String.prototype.utf8 = function(){  
                    
8	  return encodeURIComponent(this.toString());
                    
9  }
                    
                
.keysnail.js http://bamanzi-misc.googlecode.com/svn/trunk/ | JavaScript | 1281 lines
                    
96ext.add("is.gd", function () {
                    
97    let endpoint = "http://is.gd/api.php?longurl=" + encodeURIComponent(window._content.document.location);
                    
98    let result = util.httpGet(endpoint, true);
                    
156ext.add("bookmark-on-delicious", function(ev, arg) {
                    
157    var f='http://www.delicious.com/save?url='+encodeURIComponent(content.location.href)+
                    
158        '&title='+encodeURIComponent(content.title)+
                    
158        '&title='+encodeURIComponent(content.title)+
                    
159        '&notes='+encodeURIComponent(''+(content.getSelection?
                    
160                                         content.getSelection():
                    
239    {
                    
240	    //url = util.format("http://www.google.com/search?q=%s&ie=utf-8&oe=utf-8", encodeURIComponent(url));
                    
241	    BrowserSearch.loadSearch(url, false);
                    
250    {
                    
251	    //url = util.format("http://www.google.com/search?q=%s&ie=utf-8&oe=utf-8", encodeURIComponent(url));
                    
252	    BrowserSearch.loadSearch(url, true);
                    
                
ajax.js https://WcfExtension.svn.codeplex.com/svn | JavaScript | 379 lines
                    
165		*/
                    
166		var sParam = encodeURIComponent(oForm.elements[i].name);
                    
167		sParam += "=";
                    
167		sParam += "=";
                    
168		sParam += encodeURIComponent(oForm.elements[i].value);
                    
169		aParams.push(sParam);
                    
                
js-oauth.js https://code.google.com/p/hotot/ | JavaScript | 185 lines
                    
32function quote(text) {
                    
33    text = encodeURIComponent(text);
                    
34    text = text.replace(/\!/g, "%21");
                    
                
pluginMethods.js http://spb-coppetec.googlecode.com/svn/trunk/ | JavaScript | 3 lines
                    
2/* This file is part of version 0.96beta2 released Fri, 20 Mar 2009 11:01:14 +0100 */
                    
3Linker.prototype._createLink=function(n){if(!this._dialog){this._dialog=new Linker.Dialog(this)}if(!n&&this.editor.selectionEmpty(this.editor.getSelection())){alert(this._lc("You must select some text before making a new link."));return false}var k={type:"url",href:"http://www.example.com/",target:"",p_width:"",p_height:"",p_options:["menubar=no","toolbar=yes","location=no","status=no","scrollbars=yes","resizeable=yes"],to:"alice@example.com",subject:"",body:"",anchor:""};if(n&&n.tagName.toLowerCase()=="a"){var b=this.editor.fixRelativeLinks(n.getAttribute("href"));var c=b.match(/^mailto:(.*@[^?&]*)(\?(.*))?$/);var g=b.match(/^#(.*)$/);if(c){k.type="mailto";k.to=c[1];if(c[3]){var l=c[3].split("&");for(var o=0;o<l.length;o++){var e=l[o].match(/(subject|body)=(.*)/);if(e){k[e[1]]=decodeURIComponent(e[2])}}}}else{if(g){k.type="anchor";k.anchor=g[1]}else{if(n.getAttribute("onclick")){var c=n.getAttribute("onclick").match(/window\.open\(\s*this\.href\s*,\s*'([a-z0-9_]*)'\s*,\s*'([a-z0-9_=,]*)'\s*\)/i);k.href=b?b:"";k.target="popup";k.p_name=c[1];k.p_options=[];var l=c[2].split(",");for(var o=0;o<l.length;o++){var f=l[o].match(/(width|height)=([0-9]+)/);if(f){k["p_"+f[1]]=parseInt(f[2])}else{k.p_options.push(l[o])}}}else{k.href=b;k.target=n.target}}}}var h=this;this.a=n;var d=function(){var w=h.a;var x=h._dialog.hide();var v={href:"",target:"",title:"",onclick:""};if(x.type=="url"){if(x.href){v.href=x.href.trim();v.target=x.target;if(x.target=="popup"){if(x.p_width){x.p_options.push("width="+x.p_width)}if(x.p_height){x.p_options.push("height="+x.p_height)}v.onclick="if(window.parent && window.parent.Xinha){return false}window.open(this.href, '"+(x.p_name.replace(/[^a-z0-9_]/i,"_"))+"', '"+x.p_options.join(",")+"');return false;"}}}else{if(x.type=="anchor"){if(x.anchor){v.href=x.anchor.value}}else{if(x.to){v.href="mailto:"+x.to;if(x.subject){v.href+="?subject="+encodeURIComponent(x.subject)}if(x.body){v.href+=(x.subject?"&":"?")+"body="+encodeURIComponent(x.body)}}}}if(v.href){v.href=v.href.trim()}if(w&&w.tagName.toLowerCase()=="a"){if(!v.href){if(confirm(h._dialog._lc("Are you sure you wish to remove this link?"))){var q=w.parentNode;while(w.hasChildNodes()){q.insertBefore(w.removeChild(w.childNodes[0]),w)}q.removeChild(w);h.editor.updateToolbar();return}}else{for(var s in v){w.setAttribute(s,v[s])}if(Xinha.is_ie){if(/mailto:([^?<>]*)(\?[^<]*)?$/i.test(w.innerHTML)){w.innerHTML=RegExp.$1}}}}else{if(!v.href){return true}var t=Xinha.uniq("http://www.example.com/Link");h.editor._doc.execCommand("createlink",false,t);var m=h.editor._doc.getElementsByTagName("a");for(var s=0;s<m.length;s++){var u=m[s];if(u.href==t){if(!w){w=u}for(var r in v){u.setAttribute(r,v[r])}}}}h.editor.selectNodeContents(w);h.editor.updateToolbar()};this._dialog.show(k,d)};Linker.prototype._getSelectedAnchor=function(){var d=this.editor.getSelection();var c=this.editor.createRange(d);var b=this.editor.activeElement(d);if(b!=null&&b.tagName.toLowerCase()=="a"){return b}else{b=this.editor._getFirstAncestor(d,"a");if(b!=null){return b}}return null};Linker.Dialog_dTrees=[];Linker.Dialog=function(a){var b=this;this.Dialog_nxtid=0;this.linker=a;this.id={};this.ready=false;this.dialog=false;this._prepareDialog()};Linker.Dialog.prototype._prepareDialog=function(){var lDialog=this;var linker=this.linker;var files=this.linker.files;var dialog=this.dialog=new Xinha.Dialog(linker.editor,Linker.html,"Linker",{width:600,height:400});var dTreeName=Xinha.uniq("dTree_");this.dTree=new dTree(dTreeName,Xinha.getPluginDir("Linker")+"/dTree/");eval(dTreeName+" = this.dTree");this.dTree.add(this.Dialog_nxtid++,-1,linker.lConfig.treeCaption,null,linker.lConfig.treeCaption);this.makeNodes(files,0);var ddTree=this.dialog.getElementById("dTree");ddTree.innerHTML="";ddTree.style.overflow="auto";ddTree.style.height="300px";if(Xinha.is_ie){ddTree.style.styleFloat="left"}else{ddTree.style.cssFloat="left"}ddTree.style.backgroundColor="white";this.ddTree=ddTree;this.dTree._linker_premade=this.dTree.toString();var options=this.dialog.getElementById("options");options.style.width=320+"px";options.style.overflow="auto";this.dialog.rootElem.style.paddingBottom="0";this.dialog.onresize=function(){var h=parseInt(dialog.height)-dialog.getElementById("h1").offsetHeight;var w=parseInt(dialog.width)-330;if(w<0){w=0}if(h<0){h=0}lDialog.ddTree.style.height=h+"px";lDialog.ddTree.style.width=w+"px"};var self=this;this.dialog.getElementById("type_url").onclick=function(){self.showOptionsForType("url")};this.dialog.getElementById("type_mailto").onclick=function(){self.showOptionsForType("mailto")};this.dialog.getElementById("type_anchor").onclick=function(){self.showOptionsForType("anchor")};var hidePopupOptions=function(){self.showOptionsForTarget("none")};this.dialog.getElementById("noTargetRadio").onclick=hidePopupOptions;this.dialog.getElementById("sameWindowRadio").onclick=hidePopupOptions;this.dialog.getElementById("newWindowRadio").onclick=hidePopupOptions;this.dialog.getElementById("popupWindowRadio").onclick=function(){self.showOptionsForTarget("popup")};this.ready=true;ddTree=null;Xinha.freeLater(lDialog,"ddTree");options=null};Linker.Dialog.prototype.makeNodes=function(d,b){for(var a=0;a<d.length;a++){if(typeof d[a]=="string"){this.dTree.add(Linker.nxtid++,b,d[a].replace(/^.*\//,""),"javascript:document.getElementsByName('"+this.dialog.id.href+"')[0].value=decodeURIComponent('"+encodeURIComponent(d[a])+"');document.getElementsByName('"+this.dialog.id.type+"')[0].click();document.getElementsByName('"+this.dialog.id.href+"')[0].focus();void(0);",d[a])}else{if(typeof d[a]=="object"&&d[a]&&typeof d[a].length==="number"){var f=this.Dialog_nxtid++;this.dTree.add(f,b,d[a][0].replace(/^.*\//,""),null,d[a][0]);this.makeNodes(d[a][1],f)}else{if(typeof d[a]=="object"){if(d[a].children){var f=this.Dialog_nxtid++}else{var f=Linker.nxtid++}if(d[a].title){var e=d[a].title}else{if(d[a].url){var e=d[a].url.replace(/^.*\//,"")}else{var e="no title defined"}}if(d[a].url){var c="javascript:document.getElementsByName('"+this.dialog.id.href+"')[0].value=decodeURIComponent('"+encodeURIComponent(d[a].url)+"');document.getElementsByName('"+this.dialog.id.type+"')[0].click();document.getElementsByName('"+this.dialog.id.href+"')[0].focus();void(0);"}else{var c=""}this.dTree.add(f,b,e,c,e);if(d[a].children){this.makeNodes(d[a].children,f)}}}}}};Linker.Dialog.prototype._lc=Linker.prototype._lc;Linker.Dialog.prototype.show=function(l,q,s){if(!this.ready){var g=this;window.setTimeout(function(){g.show(l,q,s)},100);return}if(this.ddTree.innerHTML==""){this.ddTree.innerHTML=this.dTree._linker_premade}this.showOptionsForType(l.type);this.showOptionsForTarget(l.target);var j=this.dialog.getElementById("anchor");for(var h=j.length;h>=0;h--){j[h]=null}var k=this.linker.editor.getHTML();var b=new Array();var e=k.match(/<a[^>]+name="([^"]+)"/gi);if(e){for(h=0;h<e.length;h++){var d=e[h].match(/name="([^"]+)"/i);if(!b.contains(d[1])){b.push(d[1])}}}e=k.match(/id="([^"]+)"/gi);if(e){for(h=0;h<e.length;h++){d=e[h].match(/id="([^"]+)"/i);if(!b.contains(d[1])){b.push(d[1])}}}for(h=0;h<b.length;h++){var c=new Option(b[h],"#"+b[h],false,(l.anchor==b[h]));j[j.length]=c}if(this.linker.lConfig.disableMailto){this.dialog.getElementById("mailtofieldset").style.display="none"}if(j.length==0||this.linker.lConfig.disableAnchors){this.dialog.getElementById("anchorfieldset").style.display="none";if(this.linker.lConfig.disableMailto){this.dialog.getElementById("type").style.display="none"}}var p=this.linker.lConfig.disableTargetTypes;if(typeof p=="undefined"){p=[]}else{if(typeof p=="string"){p=[p]}}for(var h=0;h<p.length;h++){this.dialog.getElementById(p[h]).style.display="none"}if(p.length==3){if(p.contains("popupWindow")){this.dialog.getElementById("target_options").style.display="none"}else{this.dialog.getElementById("popupWindowRadio").style.display="none";this.showOptionsForTarget("popup")}}var a=new Array();if(!p.contains("noTarget")){a.push("noTargetRadio")}if(!p.contains("sameWindow")){a.push("sameWindowRadio")}if(!p.contains("newWindow")){a.push("newWindowRadio")}if(!p.contains("popupWindow")){a.push("popupWindowRadio")}if(l.href=="http://www.example.com/"&&l.to=="alice@example.com"){this.dialog.getElementById("clear").style.display="none"}else{var r=this.dialog.getElementById("clear");r.style.display="";if(q){r.onclick=function(){g.removeLink(q)}}}var o=this.dialog;var g=this;if(q){this.dialog.getElementById("ok").onclick=q}else{this.dialog.getElementById("ok").onclick=function(){g.hide()}}if(s){this.dialog.getElementById("cancel").onclick=s}else{this.dialog.getElementById("cancel").onclick=function(){g.hide()}}this.linker.editor.disableToolbar(["fullscreen","linker"]);this.dialog.show(l);var f=false;for(var h=0;h<a.length;h++){if(this.dialog.getElementById(a[h]).checked==true){f=true;break}}if(!f&&a.length>0){this.dialog.getElementById(a[0]).checked=true}this.dialog.onresize()};Linker.Dialog.prototype.hide=function(){this.linker.editor.enableToolbar();return this.dialog.hide()};Linker.Dialog.prototype.removeLink=function(a){this.dialog.getElementById("href").value="";this.dialog.getElementById("to").value="";return a()};Linker.Dialog.prototype.showOptionsForType=function(c){var a=this.dialog.getElementById("urltable");var d=this.dialog.getElementById("mailtable");var b=this.dialog.getElementById("anchortable");if(c=="anchor"){b.style.display="";a.style.display="none";d.style.display="none"}else{if(c=="mailto"){d.style.display="";a.style.display="none";b.style.display="none"}else{a.style.display="";d.style.display="none";b.style.display="none"}}};Linker.Dialog.prototype.showOptionsForTarget=function(a){var b=this.dialog.getElementById("popuptable");b.style.display=a=="popup"?"":"none"};
                    
                
slideshow.js http://wowroster.googlecode.com/svn/trunk/ | JavaScript | 289 lines
                    
148								'Banner Click-Throughs',
                    
149								'Banner-'+ Slideshow.data[index].id +'-'+ encodeURIComponent(Slideshow.data[index].title.replace(' ','_')) +'-'+ Core.locale
                    
150							];
                    
                
jsidoc.js http://jsi.googlecode.com/svn/trunk/ | JavaScript | 431 lines
                    
190    	if(a.getAttribute('href').charAt() != '#'){
                    
191	    	var url = '#'+encodeURIComponent(getPureHref(a.href));
                    
192	    	checkLocation.hash = ">/"+url;
                    
204        }else{
                    
205        	var url = '#'+encodeURIComponent(getPureHref(document.location.href));
                    
206        	//if(window.ActiveXObject){
                    
                
core.js http://jquery-stream.googlecode.com/svn/ | JavaScript | 549 lines
                    
300			open: function(event, stream) {
                    
301				stream.send("message=" + encodeURIComponent("Hollow Jan"));
                    
302			},
                    
                
webvanta-bootstrap-2.js http://agile-project2.googlecode.com/svn/ | JavaScript | 208 lines
                    
51       var secure = options.secure ? '; secure' : '';
                    
52       document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');      
                    
53    },
                    
                
containermanager.js https://code.google.com/p/ontowiki/ | JavaScript | 281 lines
                    
93	$(".contextmenu-enhanced .contextmenu").remove();
                    
94	cName = encodeURIComponent ($(event.currentTarget).attr("name"));
                    
95	replaceWindow(owUriBase+"service/dllearner", "act=learnClass&name="+cName );
                    
102	// look for the name and encode it for uri
                    
103	cName = encodeURIComponent ($(event.currentTarget).attr("name"));
                    
104	p = encodeURIComponent ($(event.currentTarget).attr("id"));
                    
112		// look for the name and encode it for uri
                    
113		cName = encodeURIComponent ($(event.currentTarget).attr("name"));
                    
114		rName = encodeURIComponent ($("#cmRes-input").attr("value"));
                    
114		rName = encodeURIComponent ($("#cmRes-input").attr("value"));
                    
115		mName = encodeURIComponent ($("#cmMod-input").attr("value"));
                    
116		rTitle = encodeURIComponent ($("#cmTitle-input").attr("value"));
                    
134	// look for the name and encode it for uri
                    
135	cName = encodeURIComponent ($(event.currentTarget).attr("name"));
                    
136	entry = encodeURIComponent ($(event.currentTarget).attr("id"));
                    
                
h.js http://jqbird.googlecode.com/svn/trunk/ | JavaScript | 18 lines
                    
16sword : ["word", "wd", "q", "q", "query", "w", "p", "p", "w", "kw", "q", "q", "search", "q"],
                    
17version:"1.0",swBlacklist:["cpro.baidu.com"],iconLink:"http://tongji.baidu.com/hm-web/welcome/ico",apiName:"",rcv:"hm.baidu.com/hm.gif",allowDomain:"baidu.com",hmmd:"hmmd",hmpl:"hmpl",hmkw:"hmkw",hmci:"hmci",hmsr:"hmsr",_n:(new Date).getTime(),isSent:0,clicksMaxTime:6E5,clicksMaxLength:10,clicksUrlMaxLength:1024,clicksInclueEmbedObject:1,maxInt:2147483647,_t:["cc","cf","ci","ck","cl","cm","cp","cw","ds","ep","et","fl","ja","ln","lo","lt","nv","rnd","sb","se","si","st","su","sw"]},D=document,L=D.location,R=D.referrer,W=window,E=encodeURIComponent;function on(a,b,d){b=b.replace(/^on/i,"").toLowerCase();a.attachEvent?a.attachEvent("on"+b,function(b){d.call(a,b)}):a.addEventListener&&a.addEventListener(b,d,!1)}function G(a){return D.getElementById(a)||null}function Tracker(){this.tags={};this.clicks=[];this.getTracker()}Tracker.prototype={getValue:function(a,b){var d=b.match(RegExp("(^|&|\\?)"+a+"=([^&]*)(&|$|#)"));return d?d[2]:""},swf:function(a,b,d,e,g){var f='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+d+'" height="'+e+'" id="'+a+'" align="middle">';f+='<param name="allowscriptaccess" value="always">';f+='<param name="quality" value="high">';f+='<param name="movie" value="'+b+'">';f+='<param name="flashvars" value="'+g+'">';f+='<embed src="'+b+'" flashvars="'+g+'" quality="high" width="'+d+'" height="'+e+'" name="'+a+'" align="middle" allowscriptaccess="always" wmode="window" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';f+="</object>";return f},setCookie:function(a,b,d,e,g){var f=new Date;f.setTime(f.getTime()+g);D.cookie=a+"="+b+(g==null?"":"; expires="+f.toGMTString())+"; domain="+d+(e?"; path="+e:"")},getCookie:function(a){if(a=RegExp("(^| )"+a+"=([^;]*)(;|$)").exec(D.cookie))return a[2]||"";return""},getDs:function(){this.tags.ds=W.screen.width+"x"+W.screen.height},getCl:function(){this.tags.cl=W.screen?W.screen.colorDepth+"-bit":""},getSb:function(){this.tags.sb="0";try{external.twGetVersion(external.twGetSecurityID(window))&&external.twGetRunPath.toLowerCase().indexOf("360se")>-1&&(this.tags.sb=17)}catch(a){}},getCk:function(){this.tags.ck=navigator.cookieEnabled?"1":"0"},getFl:function(){if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var a=navigator.plugins["Shockwave Flash"].description;if(a&&(!navigator.mimeTypes||!navigator.mimeTypes["application/x-shockwave-flash"]||navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin))this.tags.fl=a.replace(/^.*\s+(\S+)\s+\S+$/,"$1")}else if(W.ActiveXObject)try{if(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))(version=a.GetVariable("$version"))&&(this.tags.fl=version.replace(/^.*\s+(\d+),(\d+).*$/,"$1.$2"))}catch(b){}},getJa:function(){this.tags.ja=navigator.javaEnabled()?"1":"0"},getLn:function(){var a=navigator;this.tags.ln=(a.systemLanguage?a.systemLanguage:a.browserLanguage?a.browserLanguage:a.language?a.language:a.userLanguage?a.userLanguage:"-").toLowerCase()},getSi:function(){this.tags.si=this.siteid},getSu:function(){var a=R;this.tags.su=a?a:""},samDom:function(a,b){if(b.constructor==String){var a=a.replace(/:\d+/,""),b=b.replace(/:\d+/,""),d=a.indexOf(b);return d>=0&&d+b.length==a.length?!0:!1}else for(var d=b.length,e=0;e<d;e++){var g=b[e],f=g.length,h=a.indexOf(g);if(h>=0&&h+f==a.length)return g}return a},samDir:function(a,b){if(b.constructor==String){var d=a.indexOf(b);return d>=0&&d<=8?!0:!1}else{for(var e=b.length,g=0;g<e;g++){var f=b[g];if(f.indexOf("/")>-1&&(d=a.indexOf(f),d>=0&&d<=8))return f}return!1}},isRight:function(){for(var a=this.domain,b=a.length,d=0;d<b;d++){var e=a[d];if(e.indexOf("/")>-1){if(this.samDir(L.href,e))return!0}else if(this.samDom(L.hostname,e))return!0}return!1},getDom:function(){return this.samDom(L.hostname,this.domain)},getPath:function(){var a=this.samDir(L.href,this.domain);return a?a.replace(/^(https?:\/\/)?[^\/]+(\/.*)/,"$2")+"/":"/"},getSt:function(){var a=R;if(a){for(var b=0,d=this.sengin.length;b<d;b++){var e=this.getValue(this.sword[b],a);if(a.indexOf(this.sengin[b])>-1&&e){this.tags.sw=e;this.tags.se=this.sindex[b];this.tags.st="2";b=0;for(d=this.swBlacklist.length;b<d;b++)a.indexOf(this.swBlacklist)>-1&&(this.tags.sw="");return}}d=!1;if(this.isRight())for(var e=this.domain,g=e.length,b=0;b<g;b++){var f=e[b];f.indexOf("/")>-1?this.samDir(a,f)&&(d=!0):this.samDom(a.replace(/^(http|https):\/\//i,"").split("/")[0],f)&&(d=!0)}else d=this.samDir(a,L.hostname);this.tags.st=d?c._n-c._curh>this.hour?"1":"4":"3"}else this.tags.st=c._n-c._curh>this.hour?"1":"4"},getCmpwi:function(){var a=L.href;this.tags.cm=this.getValue(c.hmmd,a)||"";this.tags.cp=this.getValue(c.hmpl,a)||"";this.tags.cw=this.getValue(c.hmkw,a)||"";this.tags.ci=this.getValue(c.hmci,a)||"";this.tags.cf=this.getValue(c.hmsr,a)||""},getNvLt:function(){var a="";c._curh=this.getCookie("Hm_lpvt_"+this.siteid)||0;this.getSt();a+=this.tags.st!="4"||!c._curh?1:0;this.setCookie("Hm_lpvt_"+this.siteid,c._n,this.getDom(),this.getPath());var b=this.getCookie("Hm_lvt_"+this.siteid);a=="1"&&this.setCookie("Hm_lvt_"+this.siteid,c._n,this.getDom(),this.getPath(),this.year);this.tags.cc=this.getCookie("Hm_lpvt_"+this.siteid)==c._n?"1":"0";this.tags.lt=b?Math.round((b-0)/1E3):"";this.tags.nv=a},getRnd:function(){this.tags.rnd=Math.round(Math.random()*c.maxInt)},getTop:function(){this.tags.lo=typeof _bdhm_top=="number"?"1":"0"},JTQ:function(a){for(var b=[],d=c._t,e=0,g=d.length;e<g;e++){var f=d[e],h=a[f];switch(f){case "se":(f=h?f+"="+E(h):!1)&&b.push(f);break;case "sw":(f=h?f+"="+E(h):!1)&&b.push(f);break;default:f=a[f]?f+"="+E(a[f]):f+"=",b.push(f)}}return b.join("&")},getPar:function(){this.getNvLt();this.getCmpwi();this.getSu();this.getSi();this.getLn();this.getJa();this.getFl();this.getCk();this.getCl();this.getDs();this.getSb();this.getTop();this.tags.et="0";this.tags.ep=""},protocol:function(){return L.protocol=="https:"?"https://":"http://"},init:function(){try{this.initBridge(),DurationController.init(),this.getPar(),this.postData(),this.addLocLis(),this.addIcon(),this.addEvtLis(),this.adDocEvt()}catch(a){var b=[];b.push("si="+this.siteid);b.push("m="+E(a.message));b.push("n="+E(a.name));(new Image(1,1)).src=this.protocol()+this.rcv+"?"+b.join("&")}},initBridge:function(){if(this.bridge){var a=this.getH(this.siteid)%1E3;D.write(unescape("%3Cscript charset='utf-8' src='"+this.protocol()+"rqiao.baidu.com/site/"+a+"/"+this.siteid+"/b.js' type='text/javascript'%3E%3C/script%3E"))}},getH:function(a){for(var b=5381,d=a.length,e=0;e<d;e++)var g=new Number(a.charCodeAt(e)),b=(b*33+g)%4294967296;b>2147483648&&(b-=2147483648);return b},adDocEvt:function(){this.clickTracker&&(on(D,"mouseup",this.trackClickHandler()),on(W,"beforeunload",this.sendClickHandler()),setInterval(this.sendClickHandler(),c.clicksMaxTime));on(D,"click",this.evHandle());on(W,"beforeunload",this.sendDurationHandler())},evHandle:function(){var a=this;return function(b){var b=b||W.event,d=b.clientX+":"+b.clientY,e=b.srcElement||b.target,g=e.getAttribute("HM_fix");if(g&&g==d)e.removeAttribute("HM_fix");else if(d=a.listener.length,d>0){for(g={};e&&e!=D.body;)e.id&&(g[e.id]=""),e=e.parentNode;for(e=0;e<d;e++){var f=a.listener[e];if(g.hasOwnProperty(f.id))a.tags.et="1",a.tags.ep="{id:"+f.id+",eventType:"+b.type+"}",a.postData()}}}},ie:function(){return/msie (\d+\.\d)/i.test(navigator.userAgent)},trackClickHandler:function(){var a=this;return function(b){b=a.getClickData(b);if(""!=b){var d=(a.protocol()+a.rcv+"?"+a.JTQ(a.tags).replace(/ep=[^&]*/,"ep="+encodeURIComponent("["+b+"]"))).length;d+(c.maxInt+"").length>c.clicksUrlMaxLength||(d+encodeURIComponent(a.clicks.join(",")+(a.clicks.length?",":"")).length+(c.maxInt+"").length>c.clicksUrlMaxLength&&a.sendClickHandler()(),a.clicks.push(b),(a.clicks.length>=c.clicksMaxLength||/t:a/.test(b))&&a.sendClickHandler()())}}},getClickData:function(a){a=a||W.event;if(!c.clicksInclueEmbedObject){var b=a.target||a.srcElement,d=b.tagName.toLowerCase();if(d=="embed"||d=="object")return""}this.ie()?(b=Math.max(D.documentElement.scrollTop,D.body.scrollTop),d=a.clientX+Math.max(D.documentElement.scrollLeft,D.body.scrollLeft),b=a.clientY+b):(d=a.pageX,b=a.pageY);var e=W.innerWidth||document.documentElement.clientWidth||document.body.offsetWidth;switch(this.pageAlign){case 1:d-=e/2;break;case 2:d-=e}d="{x:"+d+",y:"+b+",";b=a.target||a.srcElement;a=this.getAncestor(b,"a",!0);d+=a?"t:a,u:"+encodeURIComponent(a.href)+"}":"t:b}";return d},getAncestor:function(a,b,d){for(a=d?a:a.parentNode;a&&a.tagName;)if(a.tagName.toLowerCase()==b)return a;else a=a.parentNode;return!1},sendClickHandler:function(){var a=this;return function(){if(a.clicks.length!=0)a.tags.et=2,a.tags.ep="["+a.clicks.join(",")+"]",a.postData(),a.clicks=[]}},sendDurationHandler:function(){var a=this;return function(){a.tags.et=3;a.tags.ep=DurationController.getPageDuration()+","+DurationController.getFocusDuration();a.postData()}},postData:function(){this.getRnd();var a=new Image(1,1);a.onload=function(){c.isSent=1};a.src=this.protocol()+this.rcv+"?"+this.JTQ(this.tags)},addIcon:function(){if(this.icon!=""){var a;a=this.icon.split("|");var b=this.iconLink+"?s="+this.siteid,d=a[0]+"."+a[1];switch(a[1]){case "swf":a=this.swf("HolmesIcon"+c._n,d,a[2],a[3],"s="+b);break;case "gif":a='<a href="'+b+'" target="_blank"><img border="0" src="'+d+'" width="'+a[2]+'" height="'+a[3]+'"></a>';break;default:a='<a href="'+b+'" target="_blank">'+a[0]+"</a>"}D.write(a)}},addEvtLis:function(){var a=this.listener.length;if(a>0)for(var b=0;b<a;b++){var d=this.listener[b],e=G(d.id);e&&on(e,d.eventType,this.evtH())}},evtH:function(){var a=this;return function(b){b=b||W.event;(b.target||b.srcElement).setAttribute("HM_fix",b.clientX+":"+b.clientY);a.tags.et="1";a.tags.ep="{id:"+this.id+",eventType:"+b.type+"}";a.postData()}},getTracker:function(){for(var a in c)a.indexOf("_")!=0&&(this[a]=c[a]);c.apiName==""&&typeof window["hm_loaded_"+c.siteid]=="undefined"&&(window["hm_loaded_"+c.siteid]=!0,this.init())},addLocLis:function(){var a=L.hash.substring(1),b=RegExp(this.siteid),d=R.indexOf(c.allowDomain)>-1?!0:!1;a&&b.test(a)&&d&&(b=D.createElement("script"),b.setAttribute("charset","utf-8"),b.setAttribute("type","text/javascript"),b.setAttribute("src",this.protocol()+c._js_path+this.getValue("jn",a)+"."+this.getValue("sx",a)+"?"+this.tags.rnd),D.getElementsByTagName("head")[0].appendChild(b))}};var DurationController={pageBeginTime:0,currentFocusBeginTime:0,previousFocusDuration:0,hasFocus:!1,init:function(){this.handleEvents();this.currentFocusBeginTime=this.pageBeginTime=(new Date).getTime()},getPageDuration:function(){return(new Date).getTime()-this.pageBeginTime},getFocusDuration:function(){return(new Date).getTime()-this.currentFocusBeginTime+this.previousFocusDuration},eventsHandler:function(){var a=this;return function(b){var b=b||window.event,d=b.srcElement||b.target;if(b.type=="focus"&&d==window||b.type=="focusin")a.hasFocus=!0,a.currentFocusBeginTime=(new Date).getTime();else if(b.type=="blur"&&d==window||b.type=="focusout")a.hasFocus=!1,a.previousFocusDuration+=(new Date).getTime()-a.currentFocusBeginTime,a.currentFocusBeginTime=(new Date).getTime()}},handleEvents:function(){typeof document.onfocusin=="object"?(document.attachEvent("onfocusin",this.eventsHandler()),document.attachEvent("onfocusout",this.eventsHandler())):(window.addEventListener("focus",this.eventsHandler(),!1),window.addEventListener("blur",this.eventsHandler(),!1))}},hm=new Tracker;c.apiName!=""&&(W[c.apiName]=Tracker);})();
                    
18
                    
                
dfeed-split.js git://github.com/CyberShadow/DFeed.git | JavaScript | 362 lines
                    
104
                    
105	$('#forum-tools').html(toolsTemplate.replace(/__URL__/g, encodeURIComponent(document.location.href)));
                    
106}
                    
                
134242.js http://llvm-pascal.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1var clicky={init:function(site_id){clicky.pageview_fired=0;if(document.location.protocol=="https:"){clicky.domain="https://in.getclicky.com";clicky.secure=1;}else{clicky.domain="http://in.getclicky.com";clicky.secure=0;}clicky.base=clicky.domain+"/in.php?site_id="+site_id+"&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage||'en').substr(0,2)+"&secure="+clicky.secure;if(clicky_custom.session){for(var i in clicky_custom.session){clicky.base+="&custom["+clicky.enc(i)+"]="+clicky.enc(clicky_custom.session[i]);}}if(clicky_custom.goal){for(var i in clicky_custom.goal){clicky.base+="&goal["+clicky.enc(i)+"]="+clicky.enc(clicky_custom.goal[i]);}}if(clicky_custom.async){clicky.advanced();}else clicky.add_event(window,'load',clicky.advanced);clicky.ref=RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(document.referrer)?"":clicky.enc(document.referrer);if(!clicky_custom.pageview_disable)clicky.pageview();},beacon:function(x){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src=clicky.base+x+'&mime=js&x='+Math.random();(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(s);clicky.ref="";},pageview:function(){if(clicky.pageview_fired)return;clicky.pageview_fired=1;if(location.hash.match(/utm_/i)){var href=location.pathname+(location.search?location.search+'&':'?')+location.hash.substr(1);}else{var href=location.pathname+location.search;}clicky.beacon("&href="+clicky.enc(clicky_custom.href||href)+"&title="+clicky.enc(clicky_custom.title||document.title)+"&ref="+clicky.ref);},log:function(href,title,type){type=type||"click";if(type=="pageview")href=href.replace(/^https?:\/\/([^\/]+)/i,"");clicky.beacon("&type="+type+"&title="+clicky.enc(title)+"&href="+clicky.enc(href)+"&ref="+clicky.ref);if(type=="download"||type=="outbound")clicky.pause();},pause:function(x){var now=new Date();var stop=now.getTime()+(x||clicky_custom.timer||500);while(now.getTime()<stop)var now=new Date();},isset:function(e){return(typeof(window[e])!="undefined");},enc:function(e){return window.encodeURIComponent?encodeURIComponent(e):escape(e);},goal:function(id,revenue){clicky.beacon("&type=goal&goal[id]="+id+"&goal[revenue]="+revenue);},add_event:function(e,type,func){if(e.addEventListener){e.addEventListener(type,func,false);}else if(e.attachEvent){e.attachEvent("on"+type,func);}},download:function(e){clicky.img_src(e,"download");},outbound:function(e){clicky.img_src(e,"outbound");},click:function(e){clicky.img_src(e,"click");},img_src:function(e,type){obj=clicky.get_target(e);clicky.log(clicky.get_href(obj),clicky.get_text(obj),type);},get_text:function(e){do{var txt=e.text?e.text:e.innerText;if(txt)return txt;if(e.alt)return e.alt;if(e.title)return e.title;if(e.src)return e.src;e=clicky.get_parent(e);}while(e);return"";},get_href:function(e){do{if(e.href&&!e.src)return e.href;e=clicky.get_parent(e);}while(e);return"";},get_parent:function(e){return e.parentElement||e.parentNode;},get_target:function(e){if(!e)var e=window.event;var t=e.target?e.target:e.srcElement;if(t.nodeType&&t.nodeType==3)t=t.parentNode;return t;},advanced:function(){if(clicky_custom.advanced_disable)return;var is_download=new RegExp("\\.(7z|aac|avi|cab|csv|dmg|doc(x|m)?|exe|flv|gif|gz|jpe?g|js|m4a|mp(3|4|e?g)|mov|msi|ods|pdf|phps|png|ppt(x|m)?|rar|rtf|sea|sit|tar|torrent|txt|wma|wmv|xls(x|m)?|xml|zip)$","i");var is_link=new RegExp("^(https?|ftp|telnet|mailto):","i");var is_link_internal=new RegExp("^https?:\/\/(.*)"+location.host.replace(/^www\./i,""),"i");var a=document.getElementsByTagName("a");for(var i=0;i<a.length;i++){if(a[i].className.match(/clicky_log/i)){if(a[i].className.match(/clicky_log_download/i)){clicky.add_event(a[i],"mousedown",clicky.download);}else if(a[i].className.match(/clicky_log_outbound/i)){clicky.add_event(a[i],"mousedown",clicky.outbound);}else{clicky.add_event(a[i],"mousedown",clicky.click);}}else{if(is_link.test(a[i].href)&&!a[i].className.match(/clicky_ignore/i)){if(is_download.test(a[i].href)){clicky.add_event(a[i],"mousedown",clicky.download);}else if(!is_link_internal.test(a[i].href)){clicky.add_event(a[i],"mousedown",clicky.outbound);}}}}}};if(!clicky.isset("clicky_custom"))clicky_custom={};if(clicky.isset("clicky_page_title"))clicky_custom.title=clicky_page_title;if(clicky.isset("clicky_advanced_disable"))clicky_custom.advanced_disable=1;if(clicky.isset("clicky_pause_timer"))clicky_custom.timer=clicky_pause_timer;if(clicky.isset("clicky_custom_session"))clicky_custom.session=clicky_custom_session;if(clicky.isset("clicky_goal"))clicky_custom.goal=clicky_goal;if(clicky.isset("async_site_id"))var clicky_site_id=async_site_id;if(clicky.isset("clicky_site_id")){clicky_custom.async=1;clicky.init(clicky_site_id);}function statsgoyes(site_id){clicky.init(site_id);}statsgoyes(134242);
                    
                
nsAddonRepository.js http://deck-builder.googlecode.com/svn/trunk/ | JavaScript | 349 lines
                    
88    var url = prefs.getCharPref(PREF_GETADDONS_BROWSESEARCHRESULTS);
                    
89    url = url.replace(/%TERMS%/g, encodeURIComponent(aSearchTerms));
                    
90    return urlf.formatURL(url);
                    
140    uri = uri.replace(/%API_VERSION%/g, API_VERSION);
                    
141    uri = uri.replace(/%TERMS%/g, encodeURIComponent(aSearchTerms));
                    
142    uri = urlf.formatURL(uri);
                    
                
mpd.js http://client175.googlecode.com/svn/trunk/ | JavaScript | 207 lines
                    
110            } else {
                    
111                url += "/" + encodeURIComponent(item)
                    
112            }
                    
131        Ext.Ajax.request({
                    
132            url: "../protocol/" + encodeURIComponent(aCmd),
                    
133            success: function(response, opts) {
                    
                
manage.js http://mushplatform.googlecode.com/svn/trunk/ | JavaScript | 343 lines
                    
38    }
                    
39    var url = "/manage/categories/ajax_new?category_name=" + encodeURIComponent(category_input.value) ;
                    
40    add_select_entry('ajax_category_form',category_input,'blog_category_id',url)
                    
48    }
                    
49    var url = "/manage/photos/ajax_create_alubm?title=" + encodeURIComponent(album_input.value) ;
                    
50    add_select_entry('ajax_album_form',album_input,'photo_album_id',url);
                    
80    }
                    
81    var url = "/manage/categories/"+category_id+"/ajax_update?category_name=" + encodeURIComponent(category_input.value) ;
                    
82    new Ajax.Request(url,{
                    
                
Control.js http://aquarel-cms.googlecode.com/svn/trunk/ | JavaScript | 473 lines
                    
206		if ($('#'+ el_id).attr('class') != 'wysiwyg' || $('#wysiwyg').val() == 'none')
                    
207		    var new_value = encodeURIComponent($('#'+ el_id).val());
                    
208		else
                    
208		else
                    
209		    var new_value = encodeURIComponent(wysiwygs_save(el_id));
                    
210	    }
                    
457	default:
                    
458	    var value = encodeURIComponent($('#'+ id).val());
                    
459    }
                    
                
counter.js http://rangy.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1var sc_width=screen.width;var sc_height=screen.height;var sc_referer=""+document.referrer;try{sc_referer=""+parent.document.referrer}catch(ex){sc_referer=""+document.referrer}var sc_unique=0;var sc_returning=0;var sc_returns=0;var sc_error=0;var sc_remove=0;var sc_cls=-1;var sc_inv=0;var sc_os="";var sc_title="";var sc_url="";var sc_base_dir="";var sc_click_dir="";var sc_link_back_start="";var sc_link_back_end="";var sc_security_code="";var sc_http_url="http";var sc_host="statcounter.com";if(window.sc_invisible){if(window.sc_invisible==1){sc_inv=1}}if(window.sc_click_stat){sc_cls=window.sc_click_stat}if(window.sc_https){if(sc_https==1){sc_doc_loc=''+document.location;myRE=new RegExp("^https","i");if(sc_doc_loc.match(myRE)){sc_http_url="https"}}}if(window.sc_local){sc_base_dir=sc_local}else{if(sc_cls==-1){sc_cls=1}sc_base_dir=sc_http_url+"://c."+sc_host+"/"}sc_click_dir=sc_base_dir;if(window.sc_text){sc_base_dir+="text.php?"}else{sc_base_dir+="t.php?"}if(window.sc_project){sc_base_dir+="sc_project="+sc_project}else if(window.usr){sc_base_dir+="usr="+usr}else{sc_error=1}if(window.sc_remove_link){sc_link_back_start="";sc_link_back_end=""}else{sc_link_back_start="<a class=\"statcounter\" href=\"http://www."+sc_host+"\" target=\"_blank\">";sc_link_back_end="<\/a>"}sc_date=new Date();sc_time=sc_date.getTime();sc_time_difference=3600000;sc_title=""+document.title;sc_url=""+document.location;sc_referer=sc_referer.substring(0,600);sc_title=sc_title.substring(0,300);sc_url=sc_url.substring(0,300);sc_referer=escape(sc_referer);if(encodeURIComponent){sc_title=encodeURIComponent(sc_title)}else{sc_title=escape(sc_title)}sc_url=escape(sc_url);if(window.sc_security){sc_security_code=sc_security}if(sc_script_num){sc_script_num++}else{var sc_script_num=1}var sc_tracking_url=sc_base_dir+"&resolution="+sc_width+"&h="+sc_height+"&camefrom="+sc_referer+"&u="+sc_url+"&t="+sc_title+"&java=1&security="+sc_security_code+"&sc_random="+Math.random()+"&sc_snum="+sc_script_num;var sc_clstr="<span class=\"statcounter\">";var sc_cltext="\" alt=\"StatCounter - Free Web Tracker and Counter\" border=\"0\">";var sc_strout=sc_clstr+sc_link_back_start+"<img src=\""+sc_tracking_url+sc_cltext+sc_link_back_end+"</span>";if(sc_error==1){document.writeln("Code corrupted. Insert fresh copy.")}else if(sc_remove==1){}else{if(sc_inv==1){if(window.sc_call){sc_call++}else{sc_call=1}eval("var sc_img"+sc_call+" = new Image();sc_img"+sc_call+".src = \""+sc_tracking_url+"&invisible=1\"")}else if(window.sc_text){document.writeln('<scr'+'ipt language="JavaScript"'+' src='+sc_tracking_url+"&text="+sc_text+'></scr'+'ipt>')}else{document.writeln(sc_strout)}}if(sc_cls>0){if(clickstat_done!=1){var clickstat_done=1;var clickstat_project=window.sc_project;var clickstat_security=window.sc_security_code;var dlext="7z|aac|avi|csv|doc|docx|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xlsx|xml|zip";if(typeof(window.sc_download_type)=='string'){dlext=window.sc_download_type}var ltype="https?|ftp|telnet|ssh|ssl|mailto";var second="ac|co|gov|ltd|me|mod|net|nic|nhs|org|plc|police|sch|com";var dl=new RegExp("\\.("+dlext+")$","i");var lnk=new RegExp("^("+ltype+"):","i");var domsec=new RegExp("\^("+second+")$","i");var host_name=location.host.replace(/^www\./i,"");var host_splitted=host_name.split(".");var domain=host_splitted.pop();var host_split=host_splitted.pop();if(domsec.test(host_split)){domain=host_split+"."+domain;host_split=host_splitted.pop()}domain=host_split+"."+domain;var lnklocal_mask="^https?:\/\/(.*)("+domain+"|webcache.googleusercontent.com)";var lnklocal=new RegExp(lnklocal_mask,"i");if(document.getElementsByTagName){var anchors=document.getElementsByTagName('a');for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.onmousedown){var original_click=anchor.onmousedown;var s=original_click.toString().split("\n").join(" ");var bs=s.indexOf('{');var head=s.substr(0,bs);var ps=head.indexOf('(');var pe=head.indexOf(')');var params=head.substring(ps+1,pe);var plist=params.split(",");var body=s.substr(bs+1,s.length-bs-2);var insert="sc_clickstat_call(this,'"+sc_click_dir+"');";var final_body=insert+body;var ev_head="new Function (";var ev_params="";var ev_sep="";for(var sc_i=0;sc_i<plist.length;sc_i++){ev_params=ev_sep+"'"+plist[sc_i]+"'";ev_sep=","}if(ev_sep==","){ev_params+=","}var ev_foot="final_body);";var ev_final=ev_head+ev_params+ev_foot;anchor.onmousedown=eval(ev_final)}else{anchor.onmousedown=new Function("event","sc_clickstat_call(this,'"+sc_click_dir+"');return true;")}}}function sc_none(){return}function sc_delay(){if(window.sc_click_stat){var d=window.sc_click_stat}else{var d=250}var n=new Date();var t=n.getTime()+d;while(n.getTime()<t){var n=new Date()}}function sc_clickstat_call(adata,sc_click_dir){if(adata){var clickmode=0;if(lnk.test(adata)){if((lnklocal.test(adata))){if(dl.test(adata)){clickmode=1}else if(window.sc_exit_link_detect&&new RegExp(sc_exit_link_detect,"i").test(adata)){clickmode=2}else if(sc_cls==2){clickmode=2}}else{clickmode=2}}if(clickmode!=0){var sc_link=escape(adata);if(sc_link.length>0){var sc_req=sc_click_dir+"click.gif?sc_project="+clickstat_project+"&security="+clickstat_security+"&c="+sc_link+"&m="+clickmode+"&u="+sc_url+"&t="+sc_title+"&rand="+Math.random();var sc_req_image=new Image();sc_req_image.onload=sc_none;sc_req_image.src=sc_req;sc_delay()}}}}var sc_gsyn_pattern='googlesyndication\.com|ypn-js\.overture\.com|ypn-js\.ysm\.yahoo\.com|googleads\.g\.doubleclick\.net';var sc_gsyn_pattern2='^aswift_[0-9]+$';var sc_px;var sc_py;function sc_adsense_click(sc_data){if(sc_data.src.match(sc_gsyn_pattern)){var sc_link=escape(sc_data.src)}else{var sc_link=escape("Google Adsense "+sc_data.width+"x"+sc_data.height)}var i=new Image();var sc_req=sc_click_dir+"click.gif?sc_project="+clickstat_project+"&security="+clickstat_security+"&c="+sc_link+"&m=2&u="+sc_url+"&t="+sc_title+"&rand="+Math.random();i.src=sc_req;sc_delay()}function sc_adsense_init(){if(document.all&&typeof window.opera=="undefined"){var el=document.getElementsByTagName("iframe");for(var i=0;i<el.length;i++){if(el[i].src.match(sc_gsyn_pattern)||el[i].id.match(sc_gsyn_pattern2)){el[i].onfocus=function(){sc_adsense_click(this)}}}}else{if(typeof window.addEventListener!="undefined"){window.addEventListener("unload",sc_exitpage,false);window.addEventListener("mousemove",sc_getmouse,true)}}}if(typeof window.addEventListener!='undefined'){window.addEventListener('load',sc_adsense_init,false)}else{if(typeof document.addEventListener!='undefined'){document.addEventListener('load',sc_adsense_init,false)}else{if(typeof window.attachEvent!='undefined'){window.attachEvent('onload',sc_adsense_init)}else{if(typeof window.onload=='function'){var sc_existing=onload;window.onload=function(){sc_existing();sc_adsense_init()}}else{window.onload=sc_adsense_init}}}}function sc_getmouse(e){if(typeof e.pageX=="number"){sc_px=e.pageX;sc_py=e.pageY}else{if(typeof e.clientX=="number"){sc_px=e.clientX;sc_py=e.clientY;if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){sc_px+=document.body.scrollLeft;sc_py+=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){sc_px+=document.documentElement.scrollLeft;sc_py+=document.documentElement.scrollTop}}}}}function sc_findy(obj){var y=0;while(obj){y+=obj.offsetTop;obj=obj.offsetParent}return(y)}function sc_findx(obj){var x=0;while(obj){x+=obj.offsetLeft;obj=obj.offsetParent}return(x)}function sc_exitpage(e){ad=document.getElementsByTagName("iframe");if(typeof sc_px=="undefined"){return}for(var i=0;i<ad.length;i++){var adLeft=sc_findx(ad[i]);var adTop=sc_findy(ad[i]);var adW=parseInt(adLeft)+parseInt(ad[i].width)+15;var adH=parseInt(adTop)+parseInt(ad[i].height)+10;var inFrameX=(sc_px>(adLeft-10)&&sc_px<adW);var inFrameY=(sc_py>(adTop-10)&&sc_py<adH);if(inFrameY&&inFrameX){if(ad[i].src.match(sc_gsyn_pattern)||ad[i].id.match(sc_gsyn_pattern2)){sc_adsense_click(ad[i])}}}}}}
                    
                
pad_security.js git://github.com/ether/pad.git | JavaScript | 245 lines
                    
214      var localPadId = padutils.globalToLocalId(globalPadId);
                    
215      response.redirect('/ep/account/guest-sign-in?padId='+encodeURIComponent(localPadId));
                    
216    }
                    
241  if (p) {
                    
242    response.redirect('/ep/pad/auth/'+localPadId+'?cont='+encodeURIComponent(request.url));
                    
243  }
                    
                
jquery-history.js git://github.com/tinkerpop/rexster.git | JavaScript | 0 lines
                    
41        },
                    
42        encoder: encodeURIComponent
                    
43    };
                    
79               || typeof unescape_ == "function") {
                    
80                return function(hash) { return unescape_(encodeURIComponent(hash)); };
                    
81            }
                    
81            }
                    
82            return encodeURIComponent;
                    
83        }
                    
85        function partialDecoder(chars) {
                    
86            var re = new RegExp($.map(chars, encodeURIComponent).join("|"), "ig");
                    
87            return function(enc) { return enc.replace(re, decodeURIComponent); };
                    
                
projects.js https://code.google.com/p/mastr-ms/ | JavaScript | 1062 lines
                    
27    for (var index in params) {
                    
28        paramString += encodeURIComponent(index) + '=' + encodeURIComponent(params[index]) + '&';
                    
29    }
                    
95            
                    
96            saver = new Ajax.Request(wsBaseUrl + 'create/experiment/?title='+encodeURIComponent(expName)+'&description='+encodeURIComponent(expDescription)+'&comment='+encodeURIComponent(expComment)+'&status_id=2&formal_quote_id='+encodeURIComponent(expFQuoteId)+'&job_number='+encodeURIComponent(expJobNumber)+'&project_id='+encodeURIComponent(MA.currentProjectId)+'&status_id='+encodeURIComponent(expStatus), 
                    
97                                                 { 
                    
103        } else {
                    
104            saver = new Ajax.Request(wsBaseUrl + 'update/experiment/'+expId+'/?title='+encodeURIComponent(expName)+'&description='+encodeURIComponent(expDescription)+'&comment='+encodeURIComponent(expComment)+'&status_id=2&formal_quote_id='+encodeURIComponent(expFQuoteId)+'&job_number='+encodeURIComponent(expJobNumber)+'&project_id='+encodeURIComponent(MA.currentProjectId)+'&status_id='+encodeURIComponent(expStatus), 
                    
105                                         { 
                    
                
biosource.js https://code.google.com/p/mastr-ms/ | JavaScript | 540 lines
                    
142                extraParams += "&culture=" + encodeURIComponent(Ext.getCmp('microbial_culture').getValue());
                    
143                extraParams += "&media=" + encodeURIComponent(Ext.getCmp('microbial_media').getValue());
                    
144                extraParams += "&vessel=" + encodeURIComponent(Ext.getCmp('microbial_vessel').getValue());
                    
151                extraParams += "&gastype=" + encodeURIComponent(Ext.getCmp('microbial_gastype').getValue());
                    
152                extraParams += "&flowrate=" + encodeURIComponent(Ext.getCmp('microbial_flowrate').getValue());
                    
153                extraParams += "&delivery=" + encodeURIComponent(Ext.getCmp('microbial_delivery').getValue());
                    
155            case 2:
                    
156                extraParams = "&development_stage=" + encodeURIComponent(Ext.getCmp('plant_development_stage').getValue());
                    
157                break;
                    
158            case 3:
                    
159                extraParams = "&sex=" + encodeURIComponent(Ext.getCmp('animalGender').getValue());
                    
160                extraParams += "&age=" + encodeURIComponent(Ext.getCmp('animalAge').getValue());
                    
177        //this request should ask the server to rejig the single biosource that we currently permit
                    
178        var saver = new Ajax.Request(wsBaseUrl + 'updateSingleSource/'+expId+'/?type='+encodeURIComponent(sourceType)+'&information='+encodeURIComponent(sourceInfo)+'&ncbi_id='+encodeURIComponent(sourceNCBI)+extraParams, 
                    
179                                 { 
                    
                
sammy.js git://github.com/quirkey/sammy.git | JavaScript | 2156 lines
                    
27      _decode = function( str ) { return decodeURIComponent((str || '').replace(/\+/g, ' ')); },
                    
28      _encode = encodeURIComponent,
                    
29      _escapeHTML = function(s) {
                    
                
qunit.js git://github.com/quirkey/sammy.git | JavaScript | 1045 lines
                    
205						if ( window.location ) {
                    
206							window.location.search = encodeURIComponent(text);
                    
207						}
                    
                
amp.js http://mpdwebamp.googlecode.com/svn/trunk/ | JavaScript | 740 lines
                    
75}
                    
76function esc(s){return encodeURIComponent(s)}
                    
77function isDigit(num) {
                    
                
futon.js git://github.com/cloudant/bigcouch.git | JavaScript | 535 lines
                    
200          if (userCtx.name) {
                    
201            $("#userCtx .name").text(userCtx.name).attr({href : $.couch.urlPrefix + "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+encodeURIComponent(userCtx.name)});
                    
202            if (userCtx.roles.indexOf("_admin") != -1) {
                    
272        if (name) {
                    
273          name = encodeURIComponent(name);
                    
274          $("#dbs").append("<li>" +
                    
                
futon.browse.js git://github.com/cloudant/bigcouch.git | JavaScript | 1289 lines
                    
32              success: function(resp) {
                    
33                location.href = "database.html?" + encodeURIComponent(data.name);
                    
34                callback();
                    
54              $("#databases tbody.content").append("<tr>" +
                    
55                "<th><a href='database.html?" + encodeURIComponent(dbName) + "'>" +
                    
56                  dbName + "</a></th>" +
                    
123          this.redirecting = true;
                    
124          location.href = "database.html?" + encodeURIComponent(dbName) +
                    
125            "/" + encodeURIComponent(viewName);
                    
145      this.newDocument = function() {
                    
146        location.href = "document.html?" + encodeURIComponent(db.name);
                    
147      }
                    
380                var path = $.couch.encodeDocId(doc._id) + "/_view/" +
                    
381                  encodeURIComponent(viewNames[j]);
                    
382                var option = $(document.createElement("option"))
                    
                
couch.js git://github.com/cloudant/bigcouch.git | JavaScript | 473 lines
                    
17  this.name = name;
                    
18  this.uri = "/" + encodeURIComponent(name) + "/";
                    
19
                    
53    this.last_req = this.request("PUT", this.uri  +
                    
54        encodeURIComponent(doc._id) + encodeOptions(options),
                    
55        {body: JSON.stringify(doc)});
                    
63  this.open = function(docId, options) {
                    
64    this.last_req = this.request("GET", this.uri + encodeURIComponent(docId)
                    
65      + encodeOptions(options));
                    
74  this.deleteDoc = function(doc) {
                    
75    this.last_req = this.request("DELETE", this.uri + encodeURIComponent(doc._id)
                    
76      + "?rev=" + doc._rev);
                    
277        }
                    
278        buf.push(encodeURIComponent(name) + "=" + encodeURIComponent(value));
                    
279      }
                    
                
jquery.couch.js git://github.com/cloudant/bigcouch.git | JavaScript | 705 lines
                    
19      parts.shift();
                    
20      return "_design/" + encodeURIComponent(parts.join('/'));
                    
21    }
                    
21    }
                    
22    return encodeURIComponent(docID);
                    
23  };
                    
47      if (section) {
                    
48        req.url += encodeURIComponent(section) + "/";
                    
49        if (option) {
                    
49        if (option) {
                    
50          req.url += encodeURIComponent(option);
                    
51        }
                    
185        name: name,
                    
186        uri: this.urlPrefix + "/" + encodeURIComponent(name) + "/",
                    
187
                    
                
storage.js https://code.google.com/p/pageforest/ | JavaScript | 623 lines
                    
37            if (value != undefined) {
                    
38                this.params.push(key + '=' + encodeURIComponent(value));
                    
39            }
                    
                
lib.twitterapi.js https://code.google.com/p/hotot/ | JavaScript | 624 lines
                    
139            for (var k in params) {
                    
140                arr.push(encodeURIComponent(k)
                    
141                    + '='
                    
141                    + '='
                    
142                    + encodeURIComponent(params[k]));
                    
143            }
                    
                
entries_controller.js http://f-it.googlecode.com/svn/trunk/ | JavaScript | 406 lines
                    
13        return $("#entries").find("."+(
                    
14           typeof entry == "string" ? "entry_"+ encodeURIComponent( entry ) :  entry.identity() ).replace(r, function(s){return "\\"+s}));
                    
15    },
                    
                
goodseditor.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1var ShopExGoodsEditor=new Class({Implements:[Options],options:{periodical:false,delay:500,postvar:"finderItems",varname:"items",width:500,height:400},initialize:function(b,a){this.el=$(b);this.setOptions(a);this.cat_id=$("gEditor-GCat-input").getValue();this.type_id=$("gEditor-GType-input").getValue();this.goods_id=$("gEditor-GId-input").getValue();this.initEditorBody.call(this)},initEditorBody:function(){var d=this;var c=$("gEditor-GCat-input");var b=$("gEditor-GType-input");c.addEvent("change",function(h){var g=$(this.options[this.selectedIndex]);var f=g.get("type_id")||1;if(f!=b.getValue()){a("cat",(function(){if(b.getValue()==1){b.getElement("option[value="+f+"]").set("selected",true);MODALPANEL.show();d.updateEditorBody.call(d)}else{if(confirm("\t??????????????????????\n\n????????????????????????????????????")||this.getValue()<0){b.getElement("option[value="+f+"]").set("selected",true);MODALPANEL.show();d.updateEditorBody.call(d)}}}).bind(this),(function(i){alert(i)}).bind(this))}d.cat_id=this.getValue()});b.addEvent("click",function(){this.store("tempvalue",this.getValue())});b.addEvent("change",function(g){var f=this.retrieve("tempvalue");a("type",(function(h){if(this.getValue()&&confirm("??????????????????????\n???????????????????????????????????")){MODALPANEL.show();d.updateEditorBody.call(d);d.type_id=this.getValue()}else{this.getElement("option[value="+f+"]").set("selected",true)}}).bind(this),(function(h){alert(h);this.getElement("option[value="+f+"]").set("selected",true)}).bind(this))});var a=function(e,g,f){new Request({data:$("x-g-basic").toQueryString(),onRequest:function(){$("loadMask").show()},onComplete:function(h){$("loadMask").hide();if(h=="1"){g()}else{f(h)}}}).post("index.php?ctl=goods/gtype&act=typeTransformCheck&p[0]="+e)};MODALPANEL.hide()},updateEditorBody:function(){cb=$defined(arguments[0])?arguments[0]:function(){void (0)};$ES("#gEditor textarea[ishtml=true]").getValue();W.page("index.php?ctl=goods/product&act=update",{update:"gEditor-Body",data:$("gEditor").toQueryString()+"&pic_bar="+encodeURIComponent($E("#action-pic-bar .pic-area").get("html")),method:"post",onComplete:function(){this.initEditorBody.call(this);var a=$E("#gEditor .gpic-box .current");if(a){a.onclick()}cb()}.bind(this)})},mprice:function(b){for(var c=b.parentNode;c.tagName!="TR";c=c.parentNode){}var a={};$ES("input",c).each(function(d){if(d.name=="price[]"){a.price=d.value}else{if(d.name=="goods[price]"){a.price=d.value}else{if(d.getAttribute("level")){a["level["+d.getAttribute("level")+"]"]=d.value}}}});window.fbox=new Dialog("index.php?ctl=goods/product&act=mprice",{ajaxoptions:{data:a,method:"post"},modal:true});window.fbox.onSelect=goodsEditor.setMprice.bind({base:goodsEditor,el:c})},setMprice:function(a){var b={};a.each(function(c){b[c.name]=c.value});$ES("input",this.el).each(function(c){var e=c.getAttribute("level");if(e&&b[e]!=undefined){c.value=b[e]}})},spec:{addCol:function(b,a){this.dialog=new Dialog("index.php?ctl=goods/spec&act=addCol&_form="+(b?b:"goods-spec")+"&type_id="+a,{ajaxoptions:{data:$("goods-spec").toQueryString()+($("nospec_body")?"&"+$("nospec_body").toQueryString():""),method:"post"},title:"??"})},addRow:function(){this.dialog=new Dialog("index.php?ctl=goods/spec&act=addRow",{ajaxoptions:{data:$("goods-spec"),method:"post"}})}},adj:{addGrp:function(a){this.dialog=new Dialog("index.php?ctl=goods/adjunct&act=addGrp&_form="+(a?a:"goods-adj"))}},pic:{del:function(b,d){if(confirm("?????????")){d=$(d);var a=d.getParent(".gpic-box");try{if(b){new Request({url:"index.php?ctl=goods/product&act=removePic",onSuccess:function(){a.remove();if($E("#all-pics .gpic-box .current")){return}if($$("#all-pics .gpic-box").length&&$$("#all-pics .gpic-box").length>0){$("x-main-pic").empty().set("html",'<div class="notice" style="margin:0 auto">???????????.</div>')}else{$("x-main-pic").empty().set("html",'<div class="notice" style="margin:0 auto">?????????.</div>')}}}).send({ident:b})}}catch(c){a.remove()}}},setDefault:function(c,b){if(isNaN(c)){return}if($("x-main-pic").retrieve("cururl")==b){return}$("x-main-pic").store("cururl","loading");var a=this.getDefault();if(a){a=$E("#all-pics img[sn=_img_"+a+"]");if(a){a.getParent("span").removeClass("current")}}if($E("#x-main-pic input[name=image_default]")){$E("#x-main-pic input[name=image_default]").set("value",c)}else{$("x-main-pic").empty();new Element("input",{type:"hidden",name:"image_default"}).set("value",c).inject("x-main-pic")}if(_temimg=$("x-main-pic").getElements("img")){if(_temimg.length){_temimg.remove()}}$("x-main-pic").addClass("x-main-pic-loading");new Asset.image(b,{onload:function(d){var e=$(d.zoomImg(290,220));e.inject($("x-main-pic"));e.setStyle("margin-top",Math.abs((220-e.height.toInt())/2));$("x-main-pic").removeClass("x-main-pic-loading");$("x-main-pic").store("cururl",b)},onerror:function(){$("x-main-pic").removeClass("x-main-pic-loading");$("x-main-pic").store("cururl","")}});$E("#all-pics img[sn=_img_"+c+"]").getParent("span").addClass("current")},getDefault:function(){var a=$E("#x-main-pic input[name=image_default]");if(a){return a.value}else{return false}},viewSource:function(a){return new Dialog(a,{title:"??????",singlon:false,width:650,height:300})}},rateGoods:{add:function(){window.fbox=new Dialog("index.php?ctl=goods/product&act=select",{modal:true,ajaxoptions:{data:{onfinish:"goodsEditor.rateGoods.insert(data)"},method:"post"}})},del:function(){},insert:function(a){$ES("div.rate-goods").each(function(b){a["has["+b.getAttribute("goods_id")+"]"]=1});new Ajax("index.php?ctl=goods/product&act=ratelist",{data:a,onComplete:function(b){$("x-rate-goods").innerHTML+=b}}).request()}}});
                    
                
XML.js http://applicationwiki.googlecode.com/svn/trunk/ | JavaScript | 342 lines
                    
85                req.open("GET", "data:" + "text/xml" +
                    
86                         ";charset=utf-8," + encodeURIComponent(text), false);
                    
87                if(req.overrideMimeType) {
                    
                
entry.js https://code.google.com/p/hotot/ | JavaScript | 301 lines
                    
129    var _requset = function (i) {
                    
130        var req_url = ext.HototShortUrl.service_url + encodeURIComponent(urls[i]);
                    
131        procs.push(function () {
                    
                
flint.mobile.js https://bitbucket.org/seezoo/seezoo/ | JavaScript | 6102 lines
                    
85	mp = Math.pow,
                    
86	enc = win.encodeURIComponent,
                    
87	dec = win.decodeURIComponent,
                    
                
ext-prototype-adapter.js http://extjs-gtheme.googlecode.com/svn/trunk/ | JavaScript | 75 lines
                    
14var F=function(){},sbp,spp=sp.prototype;F.prototype=spp;sbp=sb.prototype=new F();sbp.constructor=sb;sb.superclass=spp;if(spp.constructor==oc){spp.constructor=sp;}
                    
15sb.override=function(o){Ext.override(sb,o);};sbp.superclass=sbp.supr=(function(){return spp;});sbp.override=io;Ext.override(sb,overrides);sb.extend=function(o){Ext.extend(sb,o);};return sb;};}(),override:function(origclass,overrides){if(overrides){var p=origclass.prototype;Ext.apply(p,overrides);if(Ext.isIE&&overrides.toString!=origclass.toString){p.toString=overrides.toString;}}},namespace:function(){var o,d;Ext.each(arguments,function(v){d=v.split(".");o=window[d[0]]=window[d[0]]||{};Ext.each(d.slice(1),function(v2){o=o[v2]=o[v2]||{};});});return o;},urlEncode:function(o,pre){var undef,buf=[],key,e=encodeURIComponent;for(key in o){undef=typeof o[key]=='undefined';Ext.each(undef?key:o[key],function(val,i){buf.push("&",e(key),"=",(val!=key||!undef)?e(val):"");});}
                    
16if(!pre){buf.shift();pre="";}
                    
                
xhr.js http://firephp.googlecode.com/svn/trunk/ | JavaScript | 0 lines
                    
100		// FIXME: need to implement encodeAscii!!
                    
101		var enc = encodeURIComponent;
                    
102		var pairs = [];
                    
                
browser.js git://github.com/octo/collectd.git | JavaScript | 790 lines
                    
182	if (host != '/' && plugin != '/') {
                    
183		var query = 'action=list_pinsts&host='+encodeURIComponent(host)+'&plugin='+encodeURIComponent(plugin);
                    
184		loadXMLDoc(dhtml_url, query);
                    
208	if (host != '/' && plugin != '/' && pinst != '/') {
                    
209		var query = 'action=list_types&host='+encodeURIComponent(host)+'&plugin='+encodeURIComponent(plugin)+'&plugin_instance='+encodeURIComponent(pinst);
                    
210		loadXMLDoc(dhtml_url, query);
                    
236	if (host != '/' && plugin != '/' && pinst != '/' && type != '/') {
                    
237		var query = 'action=list_tinsts&host='+encodeURIComponent(host)+'&plugin='+encodeURIComponent(plugin)+'&plugin_instance='+encodeURIComponent(pinst)+'&type='+encodeURIComponent(type);
                    
238		loadXMLDoc(dhtml_url, query);
                    
302	if (host[0] == '@' || plugin[0] == '@' || pinst[0] == '@' || type[0] == '@' || (tinst[0] == '@' && tinst.substr(0, 5) != '@merge')) {
                    
303		var query = 'action=list_graphs&host='+encodeURIComponent(host)+'&plugin='+encodeURIComponent(plugin)+'&plugin_instance='+encodeURIComponent(pinst);
                    
304		query = query+'&type='+encodeURIComponent(type)+'&type_instance='+encodeURIComponent(tinst)+'&timespan='+encodeURIComponent(timespan);
                    
326		var graph_id   = 'graph_'+nextGraphId++;
                    
327		var graph_src  = graph_url+'?host='+encodeURIComponent(host)+'&plugin='+encodeURIComponent(plugin)+'&plugin_instance='+encodeURIComponent(pinst)+'&type='+encodeURIComponent(type);
                    
328		var graph_alt  = '';
                    
                
ui.js http://simile-widgets.googlecode.com/svn/ | JavaScript | 632 lines
                    
260    if (window.confirm(message + "\n\n" + Exhibit.l10n.showJavascriptValidationMessage)) {
                    
261        window.open(Exhibit.UI.validator + "?expresson=" + encodeURIComponent(expression), target);
                    
262    }
                    
                
database.js http://simile-widgets.googlecode.com/svn/ | JavaScript | 734 lines
                    
94                    typeEntry.uri : 
                    
95                    (baseURI + "type#" + encodeURIComponent(typeID));
                    
96                type._label = ("label" in typeEntry) ? 
                    
131            
                    
132            property._uri = ("uri" in propertyEntry) ? propertyEntry.uri : (baseURI + "property#" + encodeURIComponent(propertyID));
                    
133            property._valueType = ("valueType" in propertyEntry) ? propertyEntry.valueType : "text";
                    
281        var id = ("id" in itemEntry) ? itemEntry.id : label;
                    
282        var uri = ("uri" in itemEntry) ? itemEntry.uri : (baseURI + "item#" + encodeURIComponent(id));
                    
283        var type = ("type" in itemEntry) ? itemEntry.type : "Item";
                    
313        
                    
314        type._uri = baseURI + "type#" + encodeURIComponent(typeID);
                    
315        type._label = typeID;
                    
325        
                    
326        property._uri = baseURI + "property#" + encodeURIComponent(propertyID);
                    
327        property._valueType = "text";
                    
                
exhibit.js http://simile-widgets.googlecode.com/svn/ | JavaScript | 937 lines
                    
79    if (window.confirm(message + "\n\n" + Exhibit.l10n.showJavascriptValidationMessage)) {
                    
80        window.open(Exhibit.validator + "?expresson=" + encodeURIComponent(expression), target);
                    
81    }
                    
256    
                    
257    return Exhibit._getURLWithoutQuery() + "?exhibit-state=" + encodeURIComponent(stateString);
                    
258};
                    
260Exhibit._Impl.prototype.getItemLink = function(itemID) {
                    
261    return Exhibit._getURLWithoutQueryAndHash() + "#" + encodeURIComponent(itemID);
                    
262};
                    
                
 

Source

Language