/* jquery.json-2.2.min.js */ (function($){$.toJSON=function(o) {if(typeof(JSON)=='object'&&JSON.stringify) return JSON.stringify(o);var type=typeof(o);if(o===null) return"null";if(type=="undefined") return undefined;if(type=="number"||type=="boolean") return o+"";if(type=="string") return $.quoteString(o);if(type=='object') {if(typeof o.toJSON=="function") return $.toJSON(o.toJSON());if(o.constructor===Date) {var month=o.getUTCMonth()+1;if(month<10)month='0'+month;var day=o.getUTCDate();if(day<10)day='0'+day;var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10)hours='0'+hours;var minutes=o.getUTCMinutes();if(minutes<10)minutes='0'+minutes;var seconds=o.getUTCSeconds();if(seconds<10)seconds='0'+seconds;var milli=o.getUTCMilliseconds();if(milli<100)milli='0'+milli;if(milli<10)milli='0'+milli;return'"'+year+'-'+month+'-'+day+'T'+ hours+':'+minutes+':'+seconds+'.'+milli+'Z"';} if(o.constructor===Array) {var ret=[];for(var i=0;i').append( this.eq(0).clone() ).html(); }; function date_m2h(d,type){ if(d=='' || d=='0000-00-00')return '-'; if(!type)type='date'; date=d.replace(/([0-9]+)-([0-9]+)-([0-9]+).*/,'$3-$2-$1',d).replace(/-0/g,'-'); var m=months[date.replace(/.*-([0-9]+)-.*/,'$1')]; date=date.replace(/-[0-9]+-/,'-'+m+'-'); if(type=='date')return date; var time=d.replace(/.* /,''); if(type=='time')return time; return time+', '+date; } function htmlspecialchars(str) { if (!str) { return ''; } return $('').text(str).html(); } // { kaejax function kaejax_create_functions(url,f){ kaejax_is_loaded=1; for(var i=0;i-1)return 0; loadedScripts.push(url); if(kaejax_is_loaded&&/\.php/.test(url))url+=(/\?/.test(url)?'&':'?')+'kaejax_is_loaded'; $.getScript(url); return 1; } window.ww={ CKEDITOR:'ckeditor' }; // { variables var function_urls=[],loadedScripts=[],kaejax_is_loaded=0,months=['--','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; var kaejax_timeouts=[]; // } var Json = { toString: function(arr) { return $.toJSON(arr); } }; $(function(){ var el=$('.ajaxmenu')[0]; if(!el)return; var id=el.id.replace(/ajaxmenu/,''); if(id && id=='am_top')return; loadScript('js/menu.js'); }); // { stubs var stubs=['lightbox_show']; $.cachedScript=function(url, callback) { options={ 'dataType':'script', 'cache':true, 'url':url, 'complete':callback||null }; return $.ajax(options); }; for (var i=stubs.length;i--;) { var n=stubs[i]; var s="function "+n+"(){var args=arguments;$.cachedScript('/j/funcs/"+n +".js.m').done(function(){"+n+".apply(this,args);}).fail(function(){" +"$.getScript("+"'/j/funcs/"+n+".js',function(){"+n+".apply(this,args);" +"});});}"; eval(s); } // } ;