var GB_ROOT_DIR="greybox/";AJS={BASE_URL:"",drag_obj:null,drag_elm:null,_drop_zones:[],_cur_pos:null,getScrollTop:function(){var a;if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}return a},addClass:function(){var c=AJS.forceArray(arguments);var b=c.pop();var a=function(d){if(!new RegExp("(^|\\s)"+b+"(\\s|$)").test(d.className)){d.className+=(d.className?" ":"")+b}};AJS.map(c,function(d){a(d)})},setStyle:function(){var c=AJS.forceArray(arguments);var b=c.pop();var a=c.pop();AJS.map(c,function(d){d.style[a]=AJS.getCssDim(b)})},extend:function(d){var c=new this("no_init");for(k in d){var b=c[k];var a=d[k];if(b&&b!=a&&typeof a=="function"){a=this._parentize(a,b)}c[k]=a}return new AJS.Class(c)},log:function(a){if(window.console){console.log(a)}else{var b=AJS.$("ajs_logger");if(!b){b=AJS.DIV({id:"ajs_logger",style:"color: green; position: absolute; left: 0"});b.style.top=AJS.getScrollTop()+"px";AJS.ACN(AJS.getBody(),b)}AJS.setHTML(b,""+a)}},setHeight:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"height");AJS.setStyle.apply(null,a)},_getRealScope:function(a,c){c=AJS.$A(c);var b=a._cscope||window;return function(){var d=AJS.$FA(arguments).concat(c);return a.apply(b,d)}},documentInsert:function(a){if(typeof(a)=="string"){a=AJS.HTML2DOM(a)}document.write('');AJS.swapDOM(AJS.$("dummy_holder"),a)},getWindowSize:function(c){c=c||document;var b,a;if(self.innerHeight){b=self.innerWidth;a=self.innerHeight}else{if(c.documentElement&&c.documentElement.clientHeight){b=c.documentElement.clientWidth;a=c.documentElement.clientHeight}else{if(c.body){b=c.body.clientWidth;a=c.body.clientHeight}}}return{w:b,h:a}},flattenList:function(b){var c=[];var a=function(e,d){AJS.map(d,function(f){if(f==null){}else{if(AJS.isArray(f)){a(e,f)}else{e.push(f)}}})};a(c,b);return c},isFunction:function(a){return(typeof a=="function")},setEventKey:function(a){a.key=a.keyCode?a.keyCode:a.charCode;if(window.event){a.ctrl=window.event.ctrlKey;a.shift=window.event.shiftKey}else{a.ctrl=a.ctrlKey;a.shift=a.shiftKey}switch(a.key){case 63232:a.key=38;break;case 63233:a.key=40;break;case 63235:a.key=39;break;case 63234:a.key=37;break}},removeElement:function(){var a=AJS.forceArray(arguments);AJS.map(a,function(b){AJS.swapDOM(b,null)})},_unloadListeners:function(){if(AJS.listeners){AJS.map(AJS.listeners,function(c,b,a){AJS.REV(c,b,a)})}AJS.listeners=[]},join:function(b,a){try{return a.join(b)}catch(d){var c=a[0]||"";AJS.map(a,function(e){c+=b+e},1);return c+""}},getIndex:function(d,c,b){for(var a=0;a=2){AJS.map(arguments,function(b){if(AJS.isString(b)){b=AJS.TN(b)}if(AJS.isDefined(b)){a.appendChild(b)}},1)}return a},getElementsByTagAndClassName:function(g,f,d,b){var h=[];if(!AJS.isDefined(d)){d=document}if(!AJS.isDefined(g)){g="*"}var a=d.getElementsByTagName(g);var e=a.length;var c=new RegExp("(^|\\s)"+f+"(\\s|$)");for(i=0,j=0;i=20030210)},removeEventListener:function(e,d,a,c){var b="ajsl_"+d+a;if(!c){c=false}a=e[b]||a;if(e["on"+d]==a){e["on"+d]=e[b+"old"]}if(e.removeEventListener){e.removeEventListener(d,a,c);if(AJS.isOpera()){e.removeEventListener(d,a,!c)}}else{if(e.detachEvent){e.detachEvent("on"+d,a)}}},callLater:function(a,c){var b=function(){a()};window.setTimeout(b,c)},setTop:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"top");AJS.setStyle.apply(null,a)},_createDomShortcuts:function(){var b=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","h4","h5","h6","br","textarea","form","p","select","option","optgroup","iframe","script","center","dl","dt","dd","small","pre","i"];var a=function(c){AJS[c.toUpperCase()]=function(){return AJS.createDOM.apply(null,[c,arguments])}};AJS.map(b,a);AJS.TN=function(c){return document.createTextNode(c)}},addCallback:function(a){this.callbacks.unshift(a)},bindMethods:function(c){for(var b in c){var a=c[b];if(typeof(a)=="function"){c[b]=AJS.$b(a,c)}}},partial:function(b){var a=AJS.$FA(arguments);a.shift();return function(){a=a.concat(AJS.$FA(arguments));return b.apply(window,a)}},isNumber:function(a){return(typeof a=="number")},getCssDim:function(a){if(AJS.isString(a)){return a}else{return a+"px"}},isIe:function(){return(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)},removeClass:function(){var c=AJS.forceArray(arguments);var a=c.pop();var b=function(d){d.className=d.className.replace(new RegExp("\\s?"+a,"g"),"")};AJS.map(c,function(d){b(d)})},setHTML:function(b,a){b.innerHTML=a;return b},map:function(d,f,c,a){var e=0,b=d.length;if(c){e=c}if(a){b=a}for(e;ed){d=a}AJS.setTop(this.g_window,d)}this._setHeaderPos()},onHide:function(){AJS.removeElement(this.header);AJS.removeClass(this.g_window,"GB_Gallery")},onShow:function(){if(this.use_fx){AJS.fx.fadeIn(this.header,{to:1})}else{AJS.setOpacity(this.header,1)}}});AJS.preloadImages(GB_ROOT_DIR+"g_close.gif");GB_showFullScreenSet=function(e,d,c){var b={type:"page",fullscreen:true,center_win:false};var a=new GB_Sets(b,e);a.addCallback(c);a.showSet(d-1);return false};GB_showImageSet=function(e,d,c){var b={type:"image",fullscreen:false,center_win:true,width:300,height:300};var a=new GB_Sets(b,e);a.addCallback(c);a.showSet(d-1);return false};GB_Sets=GB_Gallery.extend({init:function(a,b){this.parent(a);if(!this.img_next){this.img_next=this.root_dir+"next.gif"}if(!this.img_prev){this.img_prev=this.root_dir+"prev.gif"}this.current_set=b},showSet:function(b){this.current_index=b;var a=this.current_set[this.current_index];this.show(a.url);this._setCaption(a.caption);this.btn_prev=AJS.IMG({"class":"left",src:this.img_prev});this.btn_next=AJS.IMG({"class":"right",src:this.img_next});AJS.AEV(this.btn_prev,"click",AJS.$b(this.switchPrev,this));AJS.AEV(this.btn_next,"click",AJS.$b(this.switchNext,this));GB_STATUS=AJS.SPAN({"class":"GB_navStatus"});AJS.ACN(AJS.$("GB_middle"),this.btn_prev,GB_STATUS,this.btn_next);this.updateStatus()},updateStatus:function(){AJS.setHTML(GB_STATUS,(this.current_index+1)+" / "+this.current_set.length);if(this.current_index==0){AJS.addClass(this.btn_prev,"disabled")}else{AJS.removeClass(this.btn_prev,"disabled")}if(this.current_index==this.current_set.length-1){AJS.addClass(this.btn_next,"disabled")}else{AJS.removeClass(this.btn_next,"disabled")}},_setCaption:function(a){AJS.setHTML(AJS.$("GB_caption"),a)},updateFrame:function(){var a=this.current_set[this.current_index];this._setCaption(a.caption);this.url=a.url;this.startLoading()},switchPrev:function(){if(this.current_index!=0){this.current_index--;this.updateFrame();this.updateStatus()}},switchNext:function(){if(this.current_index!=this.current_set.length-1){this.current_index++;this.updateFrame();this.updateStatus()}}});AJS.AEV(window,"load",function(){AJS.preloadImages(GB_ROOT_DIR+"next.gif",GB_ROOT_DIR+"prev.gif")});GB_show=function(b,c,g,f,d){var a={caption:b,height:g||500,width:f||500,fullscreen:false,callback_fn:d};var e=new GB_Window(a);return e.show(c)};GB_showCenter=function(g,a,e,c,d){var b={caption:g,center_win:true,height:e||500,width:c||500,fullscreen:false,callback_fn:d};var f=new GB_Window(b);return f.show(a)};GB_showFullScreen=function(d,c,b){var a={caption:d,fullscreen:true,callback_fn:b};var e=new GB_Window(a);return e.show(c)};GB_Window=GreyBox.extend({init:function(a){this.parent({});this.img_header=this.root_dir+"header_bg.gif";this.img_close=this.root_dir+"w_close.gif";this.show_close_img=true;AJS.update(this,a);this.addCallback(this.callback_fn)},initHook:function(){AJS.addClass(this.g_window,"GB_Window");this.header=AJS.TABLE({"class":"header"});this.header.style.backgroundImage="url("+this.img_header+")";var e=AJS.TD({"class":"caption"},this.caption);var c=AJS.TD({"class":"close"});if(this.show_close_img){var b=AJS.IMG({src:this.img_close});var a=AJS.SPAN("Close");var d=AJS.DIV(b,a);AJS.AEV([b,a],"mouseover",function(){AJS.addClass(a,"on")});AJS.AEV([b,a],"mouseout",function(){AJS.removeClass(a,"on")});AJS.AEV([b,a],"mousedown",function(){AJS.addClass(a,"click")});AJS.AEV([b,a],"mouseup",function(){AJS.removeClass(a,"click")});AJS.AEV([b,a],"click",GB_hide);AJS.ACN(c,d)}tbody_header=AJS.TBODY();AJS.ACN(tbody_header,AJS.TR(e,c));AJS.ACN(this.header,tbody_header);AJS.ACN(this.top_cnt,this.header);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this))}},setFrameSize:function(){if(this.fullscreen){var a=AJS.getWindowSize();overlay_h=a.h;this.width=Math.round(this.overlay.offsetWidth-(this.overlay.offsetWidth/100)*10);this.height=Math.round(overlay_h-(overlay_h/100)*10)}AJS.setWidth(this.header,this.width+6);AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height)},setWindowPosition:function(){var b=AJS.getWindowSize();AJS.setLeft(this.g_window,((b.w-this.width)/2)-13);if(!this.center_win){AJS.setTop(this.g_window,AJS.getScrollTop())}else{var a=((b.h-this.height)/2)-20+AJS.getScrollTop();if(a<0){a=0}AJS.setTop(this.g_window,a)}}});AJS.preloadImages(GB_ROOT_DIR+"w_close.gif",GB_ROOT_DIR+"header_bg.gif");AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(c,b){var a=new AJS.fx.Base();a.elm=AJS.$(c);a.options.duration=600;a.setOptions(b);AJS.update(a,{increase:function(){if(this.now==7){c.style.backgroundColor="#fff"}else{c.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)]}}});return a.custom(6,0)},fadeIn:function(c,a){a=a||{};if(!a.from){a.from=0;AJS.setOpacity(c,0)}if(!a.to){a.to=1}var b=new AJS.fx.Style(c,"opacity",a);return b.custom(a.from,a.to)},fadeOut:function(b,a){a=a||{};if(!a.from){a.from=1}if(!a.to){a.to=0}a.duration=300;var c=new AJS.fx.Style(b,"opacity",a);return c.custom(a.from,a.to)},setWidth:function(b,a){var c=new AJS.fx.Style(b,"width",a);return c.custom(a.from,a.to)},setHeight:function(b,a){var c=new AJS.fx.Style(b,"height",a);return c.custom(a.from,a.to)}};AJS.fx.Base=new AJS.Class({init:function(a){this.options={onStart:function(){},onComplete:function(){},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50};AJS.update(this.options,a);AJS.bindMethods(this)},setOptions:function(a){AJS.update(this.options,a)},step:function(){var a=new Date().getTime();if(a, My Object Oriented (JavaScript) Tools. Copyright (c) 2006-2008 Valerio Proietti, , MIT Style License.
var MooTools={version:"1.2.1",build:"0d4845aab3d9a4fdee2f0d4a6dd59210e4b697cf"};var Native=function(k){k=k||{};var a=k.name;var i=k.legacy;var b=k.protect;var c=k.implement;var h=k.generics;var f=k.initialize;var g=k.afterImplement||function(){};var d=f||i;h=h!==false;d.constructor=Native;d.$family={name:"native"};if(i&&f){d.prototype=i.prototype}d.prototype.constructor=d;if(a){var e=a.toLowerCase();d.prototype.$family={name:e};Native.typize(d,e)}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o}if(h){Native.genericize(n,l,b)}g.call(n,l,o);return n};d.alias=function(n,l,o){if(typeof n=="string"){if((n=this.prototype[n])){return j(this,l,n,o)}}for(var m in n){this.alias(m,n[m],l)}return this};d.implement=function(m,l,o){if(typeof m=="string"){return j(this,m,l,o)}for(var n in m){j(this,n,m[n],l)}return this};if(c){d.implement(c)}return d};Native.genericize=function(b,c,a){if((!a||!b[c])&&typeof b.prototype[c]=="function"){b[c]=function(){var d=Array.prototype.slice.call(arguments);return b.prototype[c].apply(d.shift(),d)}}};Native.implement=function(d,c){for(var b=0,a=d.length;b-1:this.indexOf(a)>-1},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s+/g," ").trim()},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase()})},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},toInt:function(a){return parseInt(this,a||10)},toFloat:function(){return parseFloat(this)},hexToRgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(a)?a.slice(1).hexToRgb(b):null},rgbToHex:function(b){var a=this.match(/\d{1,3}/g);return(a)?a.rgbToHex(b):null},stripScripts:function(b){var a="";var c=this.replace(/