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 a=AJS.forceArray(arguments);var c=a.pop();var b=function(d){if(!new RegExp("(^|\\s)"+c+"(\\s|$)").test(d.className)){d.className+=(d.className?" ":"")+c}};AJS.map(a,function(d){b(d)})},setStyle:function(){var a=AJS.forceArray(arguments);var c=a.pop();var b=a.pop();AJS.map(a,function(d){d.style[b]=AJS.getCssDim(c)})},extend:function(b){var a=new this("no_init");for(k in b){var d=a[k];var c=b[k];if(d&&d!=c&&typeof c=="function"){c=this._parentize(c,d)}a[k]=c}return new AJS.Class(a)},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(b,a){a=AJS.$A(a);var c=b._cscope||window;return function(){var d=AJS.$FA(arguments).concat(a);return b.apply(c,d)}},documentInsert:function(a){if(typeof(a)=="string"){a=AJS.HTML2DOM(a)}document.write('<span id="dummy_holder"></span>');AJS.swapDOM(AJS.$("dummy_holder"),a)},getWindowSize:function(a){a=a||document;var c,b;if(self.innerHeight){c=self.innerWidth;b=self.innerHeight}else{if(a.documentElement&&a.documentElement.clientHeight){c=a.documentElement.clientWidth;b=a.documentElement.clientHeight}else{if(a.body){c=a.body.clientWidth;b=a.body.clientHeight}}}return{w:c,h:b}},flattenList:function(c){var a=[];var b=function(e,d){AJS.map(d,function(f){if(f==null){}else{if(AJS.isArray(f)){b(e,f)}else{e.push(f)}}})};b(a,c);return a},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(a,c,b){AJS.REV(a,c,b)})}AJS.listeners=[]},join:function(d,c){try{return c.join(d)}catch(b){var a=c[0]||"";AJS.map(c,function(e){a+=d+e},1);return a+""}},getIndex:function(b,a,d){for(var c=0;c<a.length;c++){if(d&&d(a[c])||b==a[c]){return c}}return -1},isIn:function(a,b){var c=AJS.getIndex(a,b);if(c!=-1){return true}else{return false}},isArray:function(a){return a instanceof Array},setLeft:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"left");AJS.setStyle.apply(null,a)},appendChildNodes:function(a){if(arguments.length>=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<e;i++){if(c.test(a[i].className)||f==null){h[j]=a[i];j++}}if(b){return h[0]}else{return h}},isOpera:function(){return(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)},isString:function(a){return(typeof a=="string")},hideElement:function(b){var a=AJS.forceArray(arguments);AJS.map(a,function(c){c.style.display="none"})},setOpacity:function(b,a){b.style.opacity=a;b.style.filter="alpha(opacity="+a*100+")"},insertBefore:function(b,a){a.parentNode.insertBefore(b,a);return b},setWidth:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"width");AJS.setStyle.apply(null,a)},createArray:function(a){if(AJS.isArray(a)&&!AJS.isString(a)){return a}else{if(!a){return[]}else{return[a]}}},isDict:function(b){var a=String(b);return a.indexOf(" Object")!=-1},isMozilla:function(){return(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210)},removeEventListener:function(c,b,d,a){var e="ajsl_"+b+d;if(!a){a=false}d=c[e]||d;if(c["on"+b]==d){c["on"+b]=c[e+"old"]}if(c.removeEventListener){c.removeEventListener(b,d,a);if(AJS.isOpera()){c.removeEventListener(b,d,!a)}}else{if(c.detachEvent){c.detachEvent("on"+b,d)}}},callLater:function(b,a){var c=function(){b()};window.setTimeout(c,a)},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(a){for(var c in a){var b=a[c];if(typeof(b)=="function"){a[c]=AJS.$b(b,a)}}},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 a=AJS.forceArray(arguments);var b=a.pop();var c=function(d){d.className=d.className.replace(new RegExp("\\s?"+b,"g"),"")};AJS.map(a,function(d){c(d)})},setHTML:function(b,a){b.innerHTML=a;return b},map:function(e,g,d,b){var f=0,c=e.length;if(d){f=d}if(b){c=b}for(f;f<c;f++){var a=g(e[f],f);if(a!=undefined){return a}}},addEventListener:function(e,d,f,c,b){var a="ajsl_"+d+f;if(!b){b=false}AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(d,["keypress","keydown","keyup","click"])){var l=f;f=function(m){AJS.setEventKey(m);return l.apply(window,arguments)}}var h=AJS.isIn(d,["submit","load","scroll","resize"]);var g=AJS.$A(e);AJS.map(g,function(o){if(c){var n=f;f=function(r){AJS.REV(o,d,f);return n.apply(window,arguments)}}if(h){var m=o["on"+d];var q=function(){if(m){f(arguments);return m(arguments)}else{return f(arguments)}};o[a]=q;o[a+"old"]=m;e["on"+d]=q}else{o[a]=f;if(o.attachEvent){o.attachEvent("on"+d,f)}else{if(o.addEventListener){o.addEventListener(d,f,b)}}AJS.listeners.push([o,d,f])}})},preloadImages:function(){AJS.AEV(window,"load",AJS.$p(function(a){AJS.map(a,function(c){var b=new Image();b.src=c})},arguments))},forceArray:function(a){var b=[];AJS.map(a,function(c){b.push(c)});return b},update:function(c,b){for(var a in b){c[a]=b[a]}return c},getBody:function(){return AJS.$bytc("body")[0]},HTML2DOM:function(c,b){var a=AJS.DIV();a.innerHTML=c;if(b){return a.childNodes[0]}else{return a}},getElement:function(a){if(AJS.isString(a)||AJS.isNumber(a)){return document.getElementById(a)}else{return a}},showElement:function(){var a=AJS.forceArray(arguments);AJS.map(a,function(b){b.style.display=""})},bind:function(c,a,b){c._cscope=a;return AJS._getRealScope(c,b)},createDOM:function(f,d){var e=0,c;var h=document.createElement(f);var a=d[0];if(AJS.isDict(d[e])){for(k in a){c=a[k];if(k=="style"||k=="s"){h.style.cssText=c}else{if(k=="c"||k=="class"||k=="className"){h.className=c}else{h.setAttribute(k,c)}}}e++}if(a==null){e=1}for(var b=e;b<d.length;b++){var c=d[b];if(c){var g=typeof(c);if(g=="string"||g=="number"){c=AJS.TN(c)}h.appendChild(c)}}return h},swapDOM:function(a,c){a=AJS.getElement(a);var b=a.parentNode;if(c){c=AJS.getElement(c);b.replaceChild(c,a)}else{b.removeChild(a)}return c},isDefined:function(a){return(a!="undefined"&&a!=null)}};AJS.$=AJS.getElement;AJS.$$=AJS.getElements;AJS.$f=AJS.getFormElement;AJS.$p=AJS.partial;AJS.$b=AJS.bind;AJS.$A=AJS.createArray;AJS.DI=AJS.documentInsert;AJS.ACN=AJS.appendChildNodes;AJS.RCN=AJS.replaceChildNodes;AJS.AEV=AJS.addEventListener;AJS.REV=AJS.removeEventListener;AJS.$bytc=AJS.getElementsByTagAndClassName;AJS.$AP=AJS.absolutePosition;AJS.$FA=AJS.forceArray;AJS.addEventListener(window,"unload",AJS._unloadListeners);AJS._createDomShortcuts();AJS.Class=function(b){var a=function(){if(arguments[0]!="no_init"){return this.init.apply(this,arguments)}};a.prototype=b;AJS.update(a,AJS.Class.prototype);return a};AJS.Class.prototype={extend:function(a){var d=new this("no_init");for(k in a){var c=d[k];var b=a[k];if(c&&c!=b&&typeof b=="function"){b=this._parentize(b,c)}d[k]=b}return new AJS.Class(d)},implement:function(a){AJS.update(this.prototype,a)},_parentize:function(b,a){return function(){this.parent=a;return b.apply(this,arguments)}}};script_loaded=true;script_loaded=true;AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(a,c){var b=new AJS.fx.Base();b.elm=AJS.$(a);b.options.duration=600;b.setOptions(c);AJS.update(b,{increase:function(){if(this.now==7){a.style.backgroundColor="#fff"}else{a.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)]}}});return b.custom(6,0)},fadeIn:function(a,b){b=b||{};if(!b.from){b.from=0;AJS.setOpacity(a,0)}if(!b.to){b.to=1}var c=new AJS.fx.Style(a,"opacity",b);return c.custom(b.from,b.to)},fadeOut:function(c,b){b=b||{};if(!b.from){b.from=1}if(!b.to){b.to=0}b.duration=300;var a=new AJS.fx.Style(c,"opacity",b);return a.custom(b.from,b.to)},setWidth:function(c,b){var a=new AJS.fx.Style(c,"width",b);return a.custom(b.from,b.to)},setHeight:function(c,b){var a=new AJS.fx.Style(c,"height",b);return a.custom(b.from,b.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<this.time+this.options.duration){this.cTime=a-this.time;this.setNow()}else{setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);this.clearTimer();this.now=this.to}this.increase()},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(c,a){var b=a-c;return this.options.transition(this.cTime,c,b,this.options.duration)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(a,b){if(!this.options.wait){this.clearTimer()}if(this.timer){return}setTimeout(AJS.$p(this.options.onStart,this.elm),10);this.from=a;this.to=b;this.time=new Date().getTime();this.timer=setInterval(this.step,Math.round(1000/this.options.fps));return this},custom:function(a,b){return this._start(a,b)},set:function(a){this.now=a;this.increase();return this},setStyle:function(a,b,c){if(this.property=="opacity"){AJS.setOpacity(a,c)}else{AJS.setStyle(a,b,c)}}});AJS.fx.Style=AJS.fx.Base.extend({init:function(a,b,c){this.parent();this.elm=a;this.setOptions(c);this.property=b},increase:function(){this.setStyle(this.elm,this.property,this.now)}});AJS.fx.Styles=AJS.fx.Base.extend({init:function(b,a){this.parent();this.elm=AJS.$(b);this.setOptions(a);this.now={}},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p])}},custom:function(c){if(this.timer&&this.options.wait){return}var b={};var a={};for(p in c){b[p]=c[p][0];a[p]=c[p][1]}return this._start(b,a)},increase:function(){for(var a in this.now){this.setStyle(this.elm,a,this.now[a])}}});AJS.fx.Transitions={linear:function(e,a,g,f){return g*e/f+a},sineInOut:function(e,a,g,f){return -g/2*(Math.cos(Math.PI*e/f)-1)+a}};script_loaded=true;script_loaded=true;var GB_CURRENT=null;GB_hide=function(a){GB_CURRENT.hide(a)};GreyBox=new AJS.Class({init:function(a){this.use_fx=AJS.fx;this.type="page";this.overlay_click_close=false;this.salt=0;this.root_dir=GB_ROOT_DIR;this.callback_fns=[];this.reload_on_close=false;this.src_loader=this.root_dir+"loader_frame.html";var c=window.location.hostname.indexOf("www");var b=this.src_loader.indexOf("www");if(c!=-1&&b==-1){this.src_loader=this.src_loader.replace("://","://www.")}if(c==-1&&b!=-1){this.src_loader=this.src_loader.replace("://www.","://")}this.show_loading=true;AJS.update(this,a)},addCallback:function(a){if(a){this.callback_fns.push(a)}},show:function(b){GB_CURRENT=this;this.url=b;var a=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(a),function(c){c.style.visibility="hidden"});this.createElements();return false},hide:function(a){var b=this;AJS.callLater(function(){var d=b.callback_fns;if(d!=[]){AJS.map(d,function(f){f()})}b.onHide();if(b.use_fx){var c=b.overlay;AJS.fx.fadeOut(b.overlay,{onComplete:function(){AJS.removeElement(c);c=null},duration:300});AJS.removeElement(b.g_window)}else{AJS.removeElement(b.g_window,b.overlay)}b.removeFrame();AJS.REV(window,"scroll",_GB_setOverlayDimension);AJS.REV(window,"resize",_GB_update);var e=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(e),function(f){f.style.visibility="visible"});GB_CURRENT=null;if(b.reload_on_close){window.location.reload()}if(AJS.isFunction(a)){a()}},10)},update:function(){this.setOverlayDimension();this.setFrameSize();this.setWindowPosition()},createElements:function(){this.initOverlay();this.g_window=AJS.DIV({id:"GB_window"});AJS.hideElement(this.g_window);AJS.getBody().insertBefore(this.g_window,this.overlay.nextSibling);this.initFrame();this.initHook();this.update();var a=this;if(this.use_fx){AJS.fx.fadeIn(this.overlay,{duration:300,to:0.3,onComplete:function(){a.onShow();AJS.showElement(a.g_window);a.startLoading()}})}else{AJS.setOpacity(this.overlay,0.3);AJS.showElement(this.g_window);this.onShow();this.startLoading()}AJS.AEV(window,"scroll",_GB_setOverlayDimension);AJS.AEV(window,"resize",_GB_update)},removeFrame:function(){try{AJS.removeElement(this.iframe)}catch(a){}this.iframe=null},startLoading:function(){this.iframe.src=this.src_loader+"?s="+this.salt++;AJS.showElement(this.iframe)},setOverlayDimension:function(){var b=AJS.getWindowSize();if(AJS.isMozilla()||AJS.isOpera()){AJS.setWidth(this.overlay,"100%")}else{AJS.setWidth(this.overlay,b.w)}var a=Math.max(AJS.getScrollTop()+b.h,AJS.getScrollTop()+this.height);if(a<AJS.getScrollTop()){AJS.setHeight(this.overlay,a)}else{AJS.setHeight(this.overlay,AJS.getScrollTop()+b.h)}},initOverlay:function(){this.overlay=AJS.DIV({id:"GB_overlay"});if(this.overlay_click_close){AJS.AEV(this.overlay,"click",GB_hide)}AJS.setOpacity(this.overlay,0);AJS.getBody().insertBefore(this.overlay,AJS.getBody().firstChild)},initFrame:function(){if(!this.iframe){var a={name:"GB_frame","class":"GB_frame",frameBorder:0};if(AJS.isIe()){a.src='javascript:false;document.write("");'}this.iframe=AJS.IFRAME(a);this.middle_cnt=AJS.DIV({"class":"content"},this.iframe);this.top_cnt=AJS.DIV();this.bottom_cnt=AJS.DIV();AJS.ACN(this.g_window,this.top_cnt,this.middle_cnt,this.bottom_cnt)}},onHide:function(){},onShow:function(){},setFrameSize:function(){},setWindowPosition:function(){},initHook:function(){}});_GB_update=function(){if(GB_CURRENT){GB_CURRENT.update()}};_GB_setOverlayDimension=function(){if(GB_CURRENT){GB_CURRENT.setOverlayDimension()}};AJS.preloadImages(GB_ROOT_DIR+"indicator.gif");script_loaded=true;var GB_SETS={};function decoGreyboxLinks(){var a=AJS.$bytc("a");AJS.map(a,function(d){if(d.getAttribute("href")&&d.getAttribute("rel")){var c=d.getAttribute("rel");if(c.indexOf("gb_")==0){var f=c.match(/\w+/)[0];var e=c.match(/\[(.*)\]/)[1];var b=0;var g={caption:d.title||"",url:d.href};if(f=="gb_pageset"||f=="gb_imageset"){if(!GB_SETS[e]){GB_SETS[e]=[]}GB_SETS[e].push(g);b=GB_SETS[e].length}if(f=="gb_pageset"){d.onclick=function(){GB_showFullScreenSet(GB_SETS[e],b);return false}}if(f=="gb_imageset"){d.onclick=function(){GB_showImageSet(GB_SETS[e],b);return false}}if(f=="gb_image"){d.onclick=function(){GB_showImage(g.caption,g.url);return false}}if(f=="gb_page"){d.onclick=function(){var h=e.split(/, ?/);GB_show(g.caption,g.url,parseInt(h[1]),parseInt(h[0]));return false}}if(f=="gb_page_fs"){d.onclick=function(){GB_showFullScreen(g.caption,g.url);return false}}if(f=="gb_page_center"){d.onclick=function(){var h=e.split(/, ?/);GB_showCenter(g.caption,g.url,parseInt(h[1]),parseInt(h[0]));return false}}}}})}AJS.AEV(window,"load",decoGreyboxLinks);GB_showImage=function(a,b,d){var e={width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:a,callback_fn:d};var c=new GB_Gallery(e);return c.show(b)};GB_showPage=function(c,d,b){var e={type:"page",caption:c,callback_fn:b,fullscreen:true,center_win:false};var a=new GB_Gallery(e);return a.show(d)};GB_Gallery=GreyBox.extend({init:function(a){this.parent({});this.img_close=this.root_dir+"g_close.gif";AJS.update(this,a);this.addCallback(this.callback_fn)},initHook:function(){AJS.addClass(this.g_window,"GB_Gallery");var a=AJS.DIV({"class":"inner"});this.header=AJS.DIV({"class":"GB_header"},a);AJS.setOpacity(this.header,0);AJS.getBody().insertBefore(this.header,this.overlay.nextSibling);var f=AJS.TD({id:"GB_caption","class":"caption",width:"40%"},this.caption);var d=AJS.TD({id:"GB_middle","class":"middle",width:"20%"});var c=AJS.IMG({src:this.img_close});AJS.AEV(c,"click",GB_hide);var b=AJS.TD({"class":"close",width:"40%"},c);var g=AJS.TBODY(AJS.TR(f,d,b));var e=AJS.TABLE({cellspacing:"0",cellpadding:0,border:0},g);AJS.ACN(a,e);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this))}else{AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this))}},setFrameSize:function(){var a=this.overlay.offsetWidth;var b=AJS.getWindowSize();if(this.fullscreen){this.width=a-40;this.height=b.h-80}AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height);AJS.setWidth(this.header,a)},_setHeaderPos:function(){AJS.setTop(this.header,AJS.getScrollTop()+10)},setWindowPosition:function(){var a=this.overlay.offsetWidth;var d=AJS.getWindowSize();AJS.setLeft(this.g_window,((a-50-this.width)/2));var c=AJS.getScrollTop()+55;if(!this.center_win){AJS.setTop(this.g_window,c)}else{var b=((d.h-this.height)/2)+20+AJS.getScrollTop();if(b<0){b=0}if(c>b){b=c}AJS.setTop(this.g_window,b)}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(c,b,a){var e={type:"page",fullscreen:true,center_win:false};var d=new GB_Sets(e,c);d.addCallback(a);d.showSet(b-1);return false};GB_showImageSet=function(c,b,a){var e={type:"image",fullscreen:false,center_win:true,width:300,height:300};var d=new GB_Sets(e,c);d.addCallback(a);d.showSet(b-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(f,g,d,c,a){var e={caption:f,height:d||500,width:c||500,fullscreen:false,callback_fn:a};var b=new GB_Window(e);return b.show(g)};GB_myShowCenter=function(f,b,e,c){var a={caption:f,height:e||500,width:c||500,center_win:true,fullscreen:false,show_loading:true,reload_on_close:true};var d=new GB_Window(a);return d.show(b)};GB_showThankYou=function(f,a,e,b,d){var g={caption:f,height:e||81,width:b||260,center_win:true,fullscreen:false,callback_fn:d,show_loading:true};var c=new GB_Window(g);return c.show(a)};GB_myShow=function(f,b,e,c){var a={caption:f,height:e||500,width:c||500,fullscreen:false,show_loading:true,reload_on_close:true};var d=new GB_Window(a);return d.show(b)};GB_showCenter=function(d,e,b,g,a){var f={caption:d,center_win:true,height:b||500,width:g||500,fullscreen:false,callback_fn:a};var c=new GB_Window(f);return c.show(e)};GB_showFullScreen=function(b,a,e){var d={caption:b,fullscreen:true,callback_fn:e};var c=new GB_Window(d);return c.show(a)};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 c=AJS.TD({"class":"caption"},this.caption);var a=AJS.TD({"class":"close"});if(this.show_close_img){var e=AJS.IMG({src:this.img_close});var d=AJS.SPAN("Close");var b=AJS.DIV(e,d);AJS.AEV([e,d],"mouseover",function(){AJS.addClass(d,"on")});AJS.AEV([e,d],"mouseout",function(){AJS.removeClass(d,"on")});AJS.AEV([e,d],"mousedown",function(){AJS.addClass(d,"click")});AJS.AEV([e,d],"mouseup",function(){AJS.removeClass(d,"click")});AJS.AEV([e,d],"click",GB_hide);AJS.ACN(a,b)}tbody_header=AJS.TBODY();AJS.ACN(tbody_header,AJS.TR(c,a));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");script_loaded=true;