var GB_ROOT_DIR="/ajax/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 a=AJS.forceArray(arguments),b=a.pop(),c=function(d){(new RegExp("(^|\\s)"+b+"(\\s|$)")).test(d.className)||(d.className+=(d.className?" ":"")+b)};AJS.map(a,function(d){c(d)})},setStyle:function(){var a=AJS.forceArray(arguments), b=a.pop(),c=a.pop();AJS.map(a,function(d){d.style[c]=AJS.getCssDim(b)})},extend:function(a){var b=new this("no_init");for(k in a){var c=b[k],d=a[k];if(c&&c!=d&&typeof d=="function")d=this._parentize(d,c);b[k]=d}return new AJS.Class(b)},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,b){b=AJS.$A(b);var c=a._cscope||window;return function(){var d=AJS.$FA(arguments).concat(b);return a.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 b,c;if(self.innerHeight){b=self.innerWidth;c=self.innerHeight}else if(a.documentElement&& a.documentElement.clientHeight){b=a.documentElement.clientWidth;c=a.documentElement.clientHeight}else if(a.body){b=a.body.clientWidth;c=a.body.clientHeight}return{w:b,h:c}},flattenList:function(a){var b=[],c=function(d,e){AJS.map(e,function(f){if(f!=null)AJS.isArray(f)?c(d,f):d.push(f)})};c(b,a);return b},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(){AJS.listeners&&AJS.map(AJS.listeners,function(a,b,c){AJS.REV(a,b,c)});AJS.listeners=[]},join:function(a,b){try{return b.join(a)}catch(c){var d=b[0]||"";AJS.map(b,function(e){d+=a+e},1);return d+""}},getIndex:function(a,b,c){for(var d= 0;d<b.length;d++)if(c&&c(b[d])||a==b[d])return d;return-1},isIn:function(a,b){return AJS.getIndex(a,b)!=-1?true: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){arguments.length>=2&&AJS.map(arguments,function(b){if(AJS.isString(b))b=AJS.TN(b);AJS.isDefined(b)&&a.appendChild(b)},1);return a},getElementsByTagAndClassName:function(a,b,c,d){var e=[];AJS.isDefined(c)|| (c=document);AJS.isDefined(a)||(a="*");a=c.getElementsByTagName(a);c=a.length;var f=new RegExp("(^|\\s)"+b+"(\\s|$)");for(j=i=0;i<c;i++)if(f.test(a[i].className)||b==null){e[j]=a[i];j++}return d?e[0]:e},isOpera:function(){return navigator.userAgent.toLowerCase().indexOf("opera")!=-1},isString:function(a){return typeof a=="string"},hideElement:function(){var a=AJS.forceArray(arguments);AJS.map(a,function(b){b.style.display="none"})},setOpacity:function(a,b){a.style.opacity=b;a.style.filter="alpha(opacity="+ b*100+")"},insertBefore:function(a,b){b.parentNode.insertBefore(a,b);return a},setWidth:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"width");AJS.setStyle.apply(null,a)},createArray:function(a){return AJS.isArray(a)&&!AJS.isString(a)?a:a?[a]:[]},isDict:function(a){return String(a).indexOf(" Object")!=-1},isMozilla:function(){return navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210},removeEventListener:function(a,b,c,d){var e="ajsl_"+b+c;d|| (d=false);c=a[e]||c;if(a["on"+b]==c)a["on"+b]=a[e+"old"];if(a.removeEventListener){a.removeEventListener(b,c,d);AJS.isOpera()&&a.removeEventListener(b,c,!d)}else a.detachEvent&&a.detachEvent("on"+b,c)},callLater:function(a,b){window.setTimeout(function(){a()},b)},setTop:function(){var a=AJS.forceArray(arguments);a.splice(a.length-1,0,"top");AJS.setStyle.apply(null,a)},_createDomShortcuts:function(){AJS.map(["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"],function(a){AJS[a.toUpperCase()]=function(){return AJS.createDOM.apply(null,[a,arguments])}});AJS.TN=function(a){return document.createTextNode(a)}},addCallback:function(a){this.callbacks.unshift(a)},bindMethods:function(a){for(var b in a){var c=a[b];if(typeof c=="function")a[b]=AJS.$b(c,a)}},partial:function(a){var b=AJS.$FA(arguments);b.shift();return function(){b= b.concat(AJS.$FA(arguments));return a.apply(window,b)}},isNumber:function(a){return typeof a=="number"},getCssDim:function(a){return AJS.isString(a)?a:a+"px"},isIe:function(){return navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1},removeClass:function(){var a=AJS.forceArray(arguments),b=a.pop(),c=function(d){d.className=d.className.replace(new RegExp("\\s?"+b,"g"),"")};AJS.map(a,function(d){c(d)})},setHTML:function(a,b){a.innerHTML=b;return a}, map:function(a,b,c,d){var e=0,f=a.length;if(c)e=c;if(d)f=d;for(;e<f;e++){c=b(a[e],e);if(c!=undefined)return c}},addEventListener:function(a,b,c,d,e){var f="ajsl_"+b+c;e||(e=false);AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(b,["keypress","keydown","keyup","click"])){var h=c;c=function(g){AJS.setEventKey(g);return h.apply(window,arguments)}}var l=AJS.isIn(b,["submit","load","scroll","resize"]),o=AJS.$A(a);AJS.map(o,function(g){if(d){var q=c;c=function(){AJS.REV(g,b,c);return q.apply(window,arguments)}}if(l){var m= g["on"+b],n=function(){if(m){c(arguments);return m(arguments)}else return c(arguments)};g[f]=n;g[f+"old"]=m;a["on"+b]=n}else{g[f]=c;if(g.attachEvent)g.attachEvent("on"+b,c);else g.addEventListener&&g.addEventListener(b,c,e);AJS.listeners.push([g,b,c])}})},preloadImages:function(){AJS.AEV(window,"load",AJS.$p(function(a){AJS.map(a,function(b){(new Image).src=b})},arguments))},forceArray:function(a){var b=[];AJS.map(a,function(c){b.push(c)});return b},update:function(a,b){for(var c in b)a[c]=b[c];return a}, getBody:function(){return AJS.$bytc("body")[0]},HTML2DOM:function(a,b){var c=AJS.DIV();c.innerHTML=a;return b?c.childNodes[0]:c},getElement:function(a){return AJS.isString(a)||AJS.isNumber(a)?document.getElementById(a):a},showElement:function(){var a=AJS.forceArray(arguments);AJS.map(a,function(b){b.style.display=""})},bind:function(a,b,c){a._cscope=b;return AJS._getRealScope(a,c)},createDOM:function(a,b){var c=0,d=document.createElement(a),e=b[0];if(AJS.isDict(b[c])){for(k in e){a=e[k];if(k=="style"|| k=="s")d.style.cssText=a;else if(k=="c"||k=="class"||k=="className")d.className=a;else d.setAttribute(k,a)}c++}if(e==null)c=1;for(c=c;c<b.length;c++)if(a=b[c]){e=typeof a;if(e=="string"||e=="number")a=AJS.TN(a);d.appendChild(a)}return d},swapDOM:function(a,b){a=AJS.getElement(a);var c=a.parentNode;if(b){b=AJS.getElement(b);c.replaceChild(b,a)}else c.removeChild(a);return b},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(a){var b=function(){if(arguments[0]!="no_init")return this.init.apply(this,arguments)};b.prototype=a;AJS.update(b,AJS.Class.prototype);return b};AJS.Class.prototype={extend:function(a){var b=new this("no_init");for(k in a){var c=b[k],d=a[k];if(c&&c!=d&&typeof d=="function")d=this._parentize(d,c);b[k]=d}return new AJS.Class(b)},implement:function(a){AJS.update(this.prototype,a)},_parentize:function(a,b){return function(){this.parent=b;return a.apply(this,arguments)}}}; script_loaded=script_loaded=true; AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(a,b){var c=new AJS.fx.Base;c.elm=AJS.$(a);c.options.duration=600;c.setOptions(b);AJS.update(c,{increase:function(){a.style.backgroundColor=this.now==7?"#fff":"#"+AJS.fx._shades[Math.floor(this.now)]}});return c.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;return(new AJS.fx.Style(a,"opacity",b)).custom(b.from,b.to)},fadeOut:function(a, b){b=b||{};if(!b.from)b.from=1;if(!b.to)b.to=0;b.duration=300;return(new AJS.fx.Style(a,"opacity",b)).custom(b.from,b.to)},setWidth:function(a,b){return(new AJS.fx.Style(a,"width",b)).custom(b.from,b.to)},setHeight:function(a,b){return(new AJS.fx.Style(a,"height",b)).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(a,b){return this.options.transition(this.cTime,a,b-a,this.options.duration)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(a,b){this.options.wait||this.clearTimer();if(!this.timer){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(1E3/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){this.property=="opacity"?AJS.setOpacity(a,c):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(a,b){this.parent();this.elm=AJS.$(a);this.setOptions(b);this.now={}},setNow:function(){for(p in this.from)this.now[p]=this.compute(this.from[p],this.to[p])},custom:function(a){if(!(this.timer&&this.options.wait)){var b={},c={};for(p in a){b[p]=a[p][0];c[p]=a[p][1]}return this._start(b,c)}},increase:function(){for(var a in this.now)this.setStyle(this.elm,a,this.now[a])}}); AJS.fx.Transitions={linear:function(a,b,c,d){return c*a/d+b},sineInOut:function(a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b}};script_loaded=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";this.historyCounter=0;var b=window.location.hostname.indexOf("www"),c=this.src_loader.indexOf("www");if(b!=-1&&c==-1)this.src_loader=this.src_loader.replace("://","://www.");if(b==-1&&c!=-1)this.src_loader=this.src_loader.replace("://www.","://");this.show_loading= true;AJS.update(this,a)},addCallback:function(a){a&&this.callback_fns.push(a)},show:function(a){GB_CURRENT=this;this.url=a;a=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(a),function(b){b.style.visibility="hidden"});this.createElements();return false},hide:function(a){var b=this;AJS.callLater(function(){var c=b.callback_fns;c!=[]&&AJS.map(c,function(e){e()});b.onHide();if(b.use_fx){var d=b.overlay;AJS.fx.fadeOut(b.overlay,{onComplete:function(){AJS.removeElement(d);d=null},duration:300}); if(BrowserDetect.browser=="Firefox")b.g_window.style.display="none";else AJS.removeElement(b.g_window)}else if(BrowserDetect.browser=="Firefox")b.g_window.style.display="none";else AJS.removeElement(b.g_window,b.overlay);b.removeFrame();AJS.REV(window,"scroll",_GB_setOverlayDimension);AJS.REV(window,"resize",_GB_update);c=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(c),function(e){e.style.visibility="visible"});GB_CURRENT=null;b.reload_on_close&&window.location.reload();AJS.isFunction(a)&& a()},10);BrowserDetect.browser=="Firefox"&&history.go(-(this.historyCounter+1))},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.7,onComplete:function(){a.onShow(); AJS.showElement(a.g_window);a.startLoading()}});else{AJS.setOpacity(this.overlay,0.7);AJS.showElement(this.g_window);this.onShow();this.startLoading()}AJS.AEV(window,"scroll",_GB_setOverlayDimension);AJS.AEV(window,"resize",_GB_update)},removeFrame:function(){try{if(BrowserDetect.browser=="Firefox")this.g_window.style.display="none";else 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 a=AJS.getWindowSize();AJS.isMozilla()||AJS.isOpera()?AJS.setWidth(this.overlay,"100%"):AJS.setWidth(this.overlay,a.w);var b=Math.max(AJS.getScrollTop()+a.h,AJS.getScrollTop()+this.height);b<AJS.getScrollTop()?AJS.setHeight(this.overlay,b):AJS.setHeight(this.overlay,AJS.getScrollTop()+a.h)},initOverlay:function(){this.overlay=AJS.DIV({id:"GB_overlay"});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(){GB_CURRENT&&GB_CURRENT.update()};_GB_setOverlayDimension=function(){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(b){if(b.getAttribute("href")&&b.getAttribute("rel")){var c=b.getAttribute("rel");if(c.indexOf("gb_")==0){var d=c.match(/\w+/)[0],e=c.match(/\[(.*)\]/)[1],f=0,h={caption:b.title||"",url:b.href};if(d=="gb_pageset"||d=="gb_imageset"){GB_SETS[e]||(GB_SETS[e]=[]);GB_SETS[e].push(h);f=GB_SETS[e].length}if(d=="gb_pageset")b.onclick=function(){GB_showFullScreenSet(GB_SETS[e],f);return false};if(d=="gb_imageset")b.onclick=function(){GB_showImageSet(GB_SETS[e], f);return false};if(d=="gb_image")b.onclick=function(){GB_showImage(h.caption,h.url);return false};if(d=="gb_page")b.onclick=function(){var l=e.split(/, ?/);GB_show(h.caption,h.url,parseInt(l[1]),parseInt(l[0]));return false};if(d=="gb_page_fs")b.onclick=function(){GB_showFullScreen(h.caption,h.url);return false};if(d=="gb_page_center")b.onclick=function(){var l=e.split(/, ?/);GB_showCenter(h.caption,h.url,parseInt(l[1]),parseInt(l[0]));return false}}}})}AJS.AEV(window,"load",decoGreyboxLinks); GB_showImage=function(a,b,c){return(new GB_Gallery({width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:a,callback_fn:c})).show(b)};GB_showPage=function(a,b,c){return(new GB_Gallery({type:"page",caption:a,callback_fn:c,fullscreen:true,center_win:false})).show(b)}; 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 b=AJS.TD({id:"GB_caption","class":"caption",width:"40%"},this.caption),c=AJS.TD({id:"GB_middle","class":"middle", width:"20%"}),d=AJS.IMG({src:this.img_close});AJS.AEV(d,"click",GB_hide);d=AJS.TD({"class":"close",width:"40%"},d);b=AJS.TBODY(AJS.TR(b,c,d));b=AJS.TABLE({cellspacing:"0",cellpadding:0,border:0},b);AJS.ACN(a,b);this.fullscreen?AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this)):AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this))},setFrameSize:function(){var a=this.overlay.offsetWidth,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,b=AJS.getWindowSize();AJS.setLeft(this.g_window,(a-50-this.width)/2);a=AJS.getScrollTop()+55;if(this.center_win){b=(b.h-this.height)/2+20+AJS.getScrollTop();if(b<0)b=0;if(a>b)b=a;AJS.setTop(this.g_window,b)}else AJS.setTop(this.g_window,a);this._setHeaderPos()},onHide:function(){AJS.removeElement(this.header); AJS.removeClass(this.g_window,"GB_Gallery")},onShow:function(){this.use_fx?AJS.fx.fadeIn(this.header,{to:1}):AJS.setOpacity(this.header,1)}});AJS.preloadImages(GB_ROOT_DIR+"g_close.gif");GB_showFullScreenSet=function(a,b,c){a=new GB_Sets({type:"page",fullscreen:true,center_win:false},a);a.addCallback(c);a.showSet(b-1);return false};GB_showImageSet=function(a,b,c){a=new GB_Sets({type:"image",fullscreen:false,center_win:true,width:300,height:300},a);a.addCallback(c);a.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(a){this.current_index=a;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);this.current_index==0?AJS.addClass(this.btn_prev,"disabled"):AJS.removeClass(this.btn_prev,"disabled");this.current_index==this.current_set.length-1?AJS.addClass(this.btn_next,"disabled"):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.historyCounter++;this.current_index--;this.updateFrame();this.updateStatus()}},switchNext:function(){if(this.current_index!=this.current_set.length-1){this.historyCounter++;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(a,b,c,d,e){return(new GB_Window({caption:a,height:c||500,width:d||500,fullscreen:false,callback_fn:e})).show(b)};GB_showCenter=function(a,b,c,d,e){return(new GB_Window({caption:a,center_win:true,height:c||500,width:d||500,fullscreen:false,callback_fn:e})).show(b)};GB_showFullScreen=function(a,b,c){return(new GB_Window({caption:a,fullscreen:true,callback_fn:c})).show(b)}; 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 a=AJS.TD({"class":"caption"},this.caption),b=AJS.TD({"class":"close"});if(this.show_close_img){var c=AJS.IMG({src:this.img_close}), d=AJS.SPAN("Close"),e=AJS.DIV(c,d);AJS.AEV([c,d],"mouseover",function(){AJS.addClass(d,"on")});AJS.AEV([c,d],"mouseout",function(){AJS.removeClass(d,"on")});AJS.AEV([c,d],"mousedown",function(){AJS.addClass(d,"click")});AJS.AEV([c,d],"mouseup",function(){AJS.removeClass(d,"click")});AJS.AEV([c,d],"click",GB_hide);AJS.ACN(b,e)}tbody_header=AJS.TBODY();AJS.ACN(tbody_header,AJS.TR(a,b));AJS.ACN(this.header,tbody_header);AJS.ACN(this.top_cnt,this.header);this.fullscreen&&AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition, this))},setFrameSize:function(){if(this.fullscreen){overlay_h=AJS.getWindowSize().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 a=AJS.getWindowSize();AJS.setLeft(this.g_window,(a.w-this.width)/2-13);if(this.center_win){a=(a.h-this.height)/2-20+AJS.getScrollTop();if(a< 0)a=0;AJS.setTop(this.g_window,a)}else AJS.setTop(this.g_window,AJS.getScrollTop())}});AJS.preloadImages(GB_ROOT_DIR+"w_close.gif",GB_ROOT_DIR+"header_bg.gif");script_loaded=true; var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(a){for(var b=0;b<a.length;b++){var c=a[b].string,d=a[b].prop;this.versionSearchString=a[b].versionSearch||a[b].identity;if(c){if(c.indexOf(a[b].subString)!=-1)return a[b].identity}else if(d)return a[b].identity}}, searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b!=-1)return parseFloat(a.substring(b+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent, subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"}, {string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();