/* development version © Nightly Author: http://dudxo14.blog.me/ Nightly (dudxo14@naver.com) */ var CT=clearTimeout,CI=clearInterval,TT=setTimeout,TI=setInterval; function ajax(url,p,xhr){if(!xhr)xhr=window; var x=new xhr.XMLHttpRequest(); if(!p)p={}; if("withCredentials" in x&&p.withCredentials){ x.withCredentials=true; } if(!p.type)p.type="GET"; if("onload" in x){ x.onload=p.onload; }else{ x.onreadystatechange=function(){ if(this.readyState==4){ p.onload(); } } } x.onprogress=p.onprogress; x.onabort=p.onabort; x.onerror=p.onerror; x.ontimeout=p.ontimeout; if(p.progress)x.upload.addEventListener("progress",p.progress,false); x.open(p.type,url,true); if(p.type.toUpperCase()=="POST")x.setRequestHeader("Content-Type",p.ContentType?p.ContentType:"application/x-www-form-urlencoded;charset=UTF-8"); if(p.data){ x.send(p.data); }else{ x.send(); } return x; } function get(url,p,xhr){ ajax(url,{onload:function(){ if(this.readyState==4){var q,r=_c("div"); r.innerHTML=this.responseText; p.appendChild(q=r.children[0]); r.remove(); dscript(q); } }},xhr); } function post(url,p,b,xhr){ ajax(url,{type:"POST",data:p,onload:function(){ if(this.readyState==4){var q,r=_c("div"); r.innerHTML=this.responseText; b.appendChild(q=r.children[0]); r.remove(); dscript(q); } }},xhr); } function node(p){ if(!p)return; return new node.Create(p); } node.Create=function(p){ if(p.constructor==String){ p=_s(p); }else if(p instanceof HTMLElement){ var f=_frag(); f.appendChild(p); p=f.childNodes; } if(p){ this.arr=p; } }; node.Create.prototype.prop=function(a,re){ var i,arr=this.arr,idx,tags,query,data,value; for(i=0;i-1){ c=c.substr(i); i=c.indexOf(";"); if(i>-1){ c=c.substr(0,i); } return c.substr(name.length+1); } return ""; } function dkey(name,domain,path){ if(!domain)domain=document.domain; if(!path)path="/"; return document.cookie=name+"=0;expires="+(new Date).toGMTString()+";domain=."+domain+";path="+path; } function _attr(t,s,name,value){ if(t instanceof NodeList==false)t=[t]; if(name){ for(var i=0;i=0)continue; (function(ref){ Object.defineProperty(proto,v,{ get:function(){ return this[0][ref]; }, set:function(val){ for(var i=0;i