var DP={Version:"2.0.0",require:function(a){document.write('<script type="text/javascript" src="'+a+'"><\/script>')},require_css:function(a){document.write('<link rel="stylesheet" type="text/css" href="'+a+'">')},REQUIRED_PROTOTYPE:"1.6.0",MODULES:["checkform","googlemaps","table","datatable","dialog","edit"],LOADS:{checkform:{script:[],css:[]},googlemaps:{script:[],css:[]},table:{script:[],css:["table"]},datatable:{script:[],css:["datatable"]},dialog:{script:["table"],css:["dialog"]},edit:{script:["datatable","dialog"],css:["edit"]}},load:function(){if((typeof Prototype=="undefined")||(typeof Element=="undefined")||(typeof Element.Methods=="undefined")||(DP.Util.convertVersionString(Prototype.Version)<DP.Util.convertVersionString(DP.REQUIRED_PROTOTYPE))){throw ("DP suit requires the Prototype JavaScript framework >= "+DP.REQUIRED_PROTOTYPE)}var h=$A(document.getElementsByTagName("script")).findAll(function(i){return(i.src&&i.src.match(/dp(?:\.debug)?\.js(\?.*)?$/))}).last();var g=h.src.replace(/dp(?:\.debug)?\.js(\?.*)?$/,"");var a=h.src.match(/dp\.debug\.js/);var j=h.src.match(/\?.*load=([a-z\d,]*)/i);var f=[];var e=[];if(j){j=j[1].split(/,/);for(var d=0,c=j.length;d<c;d++){b(j[d],f,e)}}else{for(var d in DP.LOADS){b(d,f,e)}}DP.MODULES.each(function(i){if(f.include(i)){DP.require(g+i+(a?".debug":"")+".js")}});e.uniq().each(function(i){DP.require_css(g+"css/"+i+".css")});function b(o,p,n){if(!p.include(o)&&DP.LOADS[o]){p.push(o);for(var m=0,k=DP.LOADS[o].script.length;m<k;m++){b(DP.LOADS[o].script[m],p,n)}n.combine(DP.LOADS[o].css)}}}};DP.Util={Version:"1.0.0",convertVersionString:function(a){var b=a.split(".");return parseInt(b[0])*100000+parseInt(b[1])*1000+parseInt(b[2])},getWindowDimension:function(a){if(!a){a=document}return a.viewport.getDimensions()},getDocumentDimension:function(a){if(!a){a=document}if(a.body){if(Prototype.Browser.Opera){return $(a.documentElement).getAllDimensions()}return $(a.body).getAllDimensions()}else{return null}},getFullDimension:function(b){if(!b){b=document}var a=DP.Util.getWindowDimension(b);var c=DP.Util.getDocumentDimension(b);return{width:Math.max(a.width,c.width),height:Math.max(a.height,c.height)}},fromReplaceJSON:function(c){if(!(c.contentWindow&&c.contentWindow.document.URL.match(/^http/))){throw"document not ready"}var f=c.contentDocument||c.contentWindow.document||c.document;var b=f.getElementById("json");if(b){var a=b.innerHTML;a=a.replace(/^.*?<\!\-\-(.*)\-\->.*$/,"$1");a=a.replace(/\\([<>])/g,"$1");a=a.replace(/\\\\/g,"\\");return a}else{if(f&&f.body){return f.body.innerText||f.body.textContent}else{return""}}},isMailaddr:function(a){return a.match(/^[a-z0-9_\-\+\.]+\@([a-z0-9_\-]+\.)+[a-z0-9_\-]+$/i)},regularizeChar:(function(){var a=function(e){return String.fromCharCode(e.charCodeAt()-65248)};var b=function(e){return e.replace(/[\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A]/g,a)};var d=function(e){return e.replace(/[\u2010-\u2015\u2212\uFF0D]/g,"-").replace(/\uFF08/g,"(").replace(/\uFF09/g,")").replace(/\u3000/g," ")};var c=function(e){return e.replace(/\u30FC/g,"-")};return function(j,g){var h=true;var i=true;var e=true;if(typeof g=="object"){if("alpha_number" in g){h=!!g.alpha_number}if("symbol" in g){i=!!g.symbol}if("japanese_symbol" in g){e=!!g.japanese_symbol}}var f=j;if(h){f=b(f)}if(i){f=d(f)}if(e){f=c(f)}return f}})(),getScrollbarSize:function(){var a=document.body;if(a&&a.hasChildNodes()){var c=new Element("div",{style:"overflow: scroll; width: 100px; height: 100px; padding: 0; margin: 0; border: 0 none;"});a.appendChild(c);var b=c.offsetWidth-c.clientWidth+1;a.removeChild(c);return b}else{return 0}},enableMouseWheelEvent:function(){Event.__observe__=Event.observe;Event.__stopObserving__=Event.stopObserving;Event.__fire__=Event.fire;Event.observe=function(b,a,c){if(Prototype.Browser.Gecko&&a=="mousewheel"){a="DOMMouseScroll"}Event.__observe__(b,a,c)};Event.stopObserving=function(b,a,c){if(Prototype.Browser.Gecko&&a=="mousewheel"){a="DOMMouseScroll"}return Event.__stopObserving__(b,a,c)};Event.fire=function(b,a,c){if(Prototype.Browser.Gecko&&a=="mousewheel"){a="DOMMouseScroll"}return Event.__fire__(b,a,c)};Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize()});Event.Methods.wheel=function(a){var b=0;if(!a){a=window.event}if(a.wheelDelta){b=-a.wheelDelta/120}else{if(a.detail){b=a.detail/3}}return Math.round(b)};Object.extend(Event,Event.Methods)},dummy:0};Object.extend(Array.prototype,{append:function(c){var d=this;if(Object.isArray(c)){for(var b=0,a=c.length;b<a;b++){d.push(c[b])}return d}else{return this.concat(c)}},combine:function(c){if(Object.isArray(c)){for(var b=0,a=c.length;b<a;b++){this.push(c[b])}return this.length}else{return this.push(c)}}});Element.addMethods({removeAllChildren:function(a){while(a.hasChildNodes()){a.removeChild(a.firstChild)}},getComputedStyle:function(a,b){if(window.getComputedStyle){return getComputedStyle(a,b)}else{if(a.currentStyle){return a.currentStyle}else{return null}}},getAllDimensions:function(b){b=$(b);var c=b.getComputedStyle();if(c){var a={};$w("marginLeft marginRight marginTop marginBottom paddingLeft paddingRight paddingTop paddingBottom").each(function(d){a[d]=parseInt(c[d]);if(isNaN(a[d])){a[d]=0}});$w("borderLeft borderRight borderTop borderBottom").each(function(d){a[d]=parseInt(c[d+"Width"]);if(isNaN(a[d])){a[d]=0}});a.paddingWidth=a.paddingLeft+a.paddingRight;a.paddingHeight=a.paddingTop+a.paddingBottom;a.marginWidth=a.marginLeft+a.marginRight;a.marginHeight=a.marginTop+a.marginBottom;a.borderWidth=a.borderLeft+a.borderRight;a.borderHeight=a.borderTop+a.borderBottom;a.height=b.offsetHeight;a.width=b.offsetWidth;a.widthAll=a.width+a.marginWidth;a.heightAll=a.height+a.marginHeight;a.height-=a.borderHeight;a.width-=a.borderWidth;return a}else{return null}}});DP.load();