/*
 * libura V2.0R1.0
 * http://www.desknets.com/
 * Copyright (C)2010 NEOJAPAN,Inc. All Rights Reserved.
 * 本製品は日本国著作権法および国際条約により保護されています。 
 * 本製品の全部または一部を無断で複製したり、無断で複製物を頒 
 * 布すると著作権の侵害となりますのでご注意ください。 
 */
(function(){if(window.neo!=null&&window.neo.core!=null){return}window.neo={};var a=window.neo;a.ready={};a.core={version:"1.0",language:"ja",initialize:function(){var b=navigator.userAgent.toLowerCase();this.isIE=/msie/.test(b)&&!/opera/.test(b)},isIE:null,getElSrcScript:function(){var e=document.getElementsByTagName("script");var c=e[e.length-1];var b=c.url=c.getAttribute("src");if(!a.core.exists(b)){return c}if(b.indexOf("?")>=0){c.params=a.core.splitParam(b);b=b.substr(0,b.indexOf("?"))}var d=b.lastIndexOf("/");c.fname=b.substr(d+1,b.length);c.path=b.substr(0,d+1);return c},splitParam:function(g){var h={};if(!a.core.exists(g)){return{}}g=g.substr(0,(g+"#").indexOf("#"));g=g.substr(g.indexOf("?")+1,g.length);if(g==""){return{}}var b=g.split("&");for(var d=0;d<b.length;d++){b[d]=b[d].split("=");try{var c=b[d][0];var f=b[d][1];f=f.replace(/\+/g,"%20");f=this.decode(f);if(a.core.exists(h,c)){if(h[c] instanceof Array){h[c].push(f)}else{h[c]=[h[c],f]}}else{h[c]=f}}catch(e){h[b[d][0]]=b[d][1]}}return h},joinParam:function(h){if(!a.core.exists(h)){return""}var g="";var b=[];for(var d in h){var c=h[d];if(!(c instanceof Array)){c=[c]}for(var e=0;e<c.length;e++){var f=c[e];if(f!=null){b.push(d+"="+this.encode(f))}}}g=b.join("&");return g},encode:function(b){return encodeURIComponent(b)},decode:function(c){try{return decodeURIComponent(c)}catch(b){return c}},decodeAll:function(e){if(!a.core.exists(e)){return""}if(isNaN(e.length)){var b={};for(var c in e){var d=e[c];if(typeof d=="string"||d instanceof String){d=a.core.decode(d)}b[c]=d}return b}else{var b=[];for(var f=0;f<e.length;f++){var d=e[f];if(typeof d=="string"||d instanceof String){d=a.core.decode(d)}b.push(d)}return b}},getZeroFilled:function(b,d){if(!a.core.exists(b)){return""}var c=b.toString();while(c.length<d){c="0"+c}return c},exists:function(e,c,b){var d=a.core.get(e,c);if(d==undefined){return false}if(a.core.isString(b)){if(typeof d!=b){return false}}return true},get:function(g,d,f){var b=function(h){return(typeof h=="undefined"||h==null)};if(b(g)){return f}if(!b(d)){if(typeof d.split!="function"){return f}var c=d.split(".");for(var e=0;e<c.length;e++){var d=c[e];if(typeof g[d]=="unknown"||b(g[d])){return f}g=g[d]}}return g},isString:function(b){return(typeof b=="string"||b instanceof String)},readyNamespace:function(b){var e=window;var f=false;var d=b.split(".");for(var c=0;c<d.length;c++){if(e[d[c]]==undefined){e[d[c]]={};f=true}e=e[d[c]]}return f},escape:function(b){return b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},unescape:function(b){return b.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},buildDateByFormat:function(l,k,f){f=f||{};f.month=f.month||["01","02","03","04","05","06","07","08","09","10","11","12"];f.day=f.day||["S","M","T","W","T","F","S"];var g=l.getFullYear();var d=f.month[l.getMonth()];var b=l.getDate();var h=f.day[l.getDay()];var i=l.getHours();var c=l.getMinutes();var j=l.getSeconds();var e=k.replace(/\$YYYY\$/g,g).replace(/\$YY\$/g,a.core.getZeroFilled(g%100,2)).replace(/\$month\$/g,d).replace(/\$DD\$/g,a.core.getZeroFilled(b,2)).replace(/\$D\$/g,b).replace(/\$W\$/g,h).replace(/\$hh\$/g,a.core.getZeroFilled(i,2)).replace(/\$h\$/g,i).replace(/\$mm\$/g,a.core.getZeroFilled(c,2)).replace(/\$m\$/g,c).replace(/\$ss\$/g,a.core.getZeroFilled(j,2)).replace(/\$s\$/g,j);return e},getCookie:function(b){try{var e=new RegExp("(?:^|; *)"+b+" *= *(.*?)(;|$)");var d=document.cookie.match(e)[1];return decodeURIComponent(d)}catch(c){return null}},setCookie:function(e,f,b){if(!b){b={}}var c=e+"="+encodeURIComponent(f);if(b.expires&&b.expires!=""){if(b.expires=="unlimited"){var g=new Date();g.setFullYear(g.getFullYear()+50);b.expires=a.core.getRfc822DateText(g)}c+="; expires="+b.expires}if(b.domain&&b.domain!=""){c+="; domain="+encodeURI(b.domain)}if(b.path&&b.path!=""){c+="; path="+encodeURI(b.path)}document.cookie=c},getRfc822DateText:function(b){var e="$W$, $DD$-$month$-$YYYY$ $hh$:$mm$:$ss$ GMT";var d={day:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};var f="";if(!(b instanceof Date)){b=new Date()}var c=new Date(b.getTime()+b.getTimezoneOffset()*1000*60);f+=a.core.buildDateByFormat(c,e,d);return f},getClosure:function(d,b){if(typeof d!="function"){throw new Error("neo.core.getClosure : method is not function.")}if(!b){b=this}var c=function(){var e=Math.max(d.length,arguments.length);arguments[e]=this;arguments.length=e+1;return d.apply(b,arguments)};return c},overwriteMethod:function(e,d,b){if(!b){b=this}var f=d[e];var c=b[e];d[e]=function(){var g=arguments;Array.prototype.push.apply(g,[f,this]);return c.apply(b,g)}},replaceNbsp:function(d){var c=new RegExp(String.fromCharCode(160),"g");var b=d.replace(c," ");return b},replaceToNbsp:function(d){var b=new RegExp(" ","g");var c=d.replace(b,String.fromCharCode(160));return c},preloadImages:function(e){if(!e){return}if(typeof e=="string"){e=[e]}for(var d=0;d<e.length;d++){var c=e[d];if(typeof c!="string"){continue}var b=new Image();b.src=c}}};a.core.Strage=function(){return this.__constructor.apply(this,arguments)};a.core.Strage.prototype={__constructor:function(b){this._strage={};this._initialize(b)},_initialize:function(b){for(var c in b){this.set(c,b[c])}},set:function(c,b){if(arguments.length<2){b=c;c=this._createId()}this._strage[c]=b;return c},get:function(b){return this._strage[b]},remove:function(b){delete this._strage[b]},getIdList:function(){var b=[];for(id in this._strage){b.push(id)}return b},_createId:function(){var b=""+(new Date()).getTime()+parseInt(Math.random()*10000);return b},_strage:null};a.core.Class=function(){return this.__constructor.apply(this,arguments)};a.core.Class.prototype={__constructor:function(d){var g=d.superClass;var e=d.properties;var c=d.classProperties;var h;if(typeof g=="function"&&a.core.exists(g,"prototype")){h=g.prototype}var b={};$.extend(true,b,this.defaultPrototype,h,e);b.__superClass=g;var f=function(){return this.__constructor.apply(this,arguments)};$.extend(f,d.superClass,c);f.prototype=b;return f},defaultPrototype:{__superClass:null,__constructor:function(){},__get:function(b){return a.core.get(this,"__superClass.prototype."+b)},__call:function(c,b){var d=this.__get(c);if(typeof d!="function"){throw new Error("neo.core.Class.__call : '"+c+"' is not function in super class.")}return d.apply(this,b||[])},__super:function(){var b=arguments.callee.caller.toSource().match(/function (.*?)\(/)[1];return this.__call(b,arguments)},__closure:a.core.getClosure}};a.core.Messages=new a.core.Class({superClass:a.core.Strage,properties:{_initialize:function(b){var b=a.core.decodeAll(b);this.__call("_initialize",arguments)}}});a.core.Showcase=new a.core.Class({superClass:a.core.Strage,properties:{_keyName:null,getKeyName:function(){return this._keyName},__constructor:function(b){this._keyName=b||"neoshowcase"+this._createId();this.__call("__constructor",[])},set:function(c,b){if(typeof jQuery=="function"&&c instanceof jQuery){c=c.get(0)}if(typeof c.setAttribute!="function"&&typeof c.setAttribute!="object"){throw new Error("neo.core.Showcase.set : element is not Element Object.")}var d=this._createId();c.setAttribute(this._keyName,d);this.__call("set",[d,b]);return d},getInstance:function(d){var e;if(typeof d=="string"){e=d}else{var c=d;if(typeof jQuery=="function"&&c instanceof jQuery){c=c.get(0)}if(!c||(typeof c.getAttribute!="function"&&typeof c.getAttribute!="object")){return null}e=c.getAttribute(this._keyName)}var b=this.__call("get",[e]);return b}}});a.core.initialize()})();
