// http://closure-compiler.appspot.com/home
// ==ClosureCompiler==
// @output_file_name default.js
// @compilation_level SIMPLE_OPTIMIZATIONS
// @code_url http://searchmarketingexpo.com/_js/superfish.js
// @code_url http://searchmarketingexpo.com/_js/supersubs.js
// @code_url http://searchmarketingexpo.com/_js/jquery.innerfade.js
// @code_url http://searchmarketingexpo.com/_js/jtruncate.js
// @code_url http://searchmarketingexpo.com/_js/thickbox.js
// @code_url http://searchmarketingexpo.com/_js/video.js
// @code_url http://searchmarketingexpo.com/_js/validate.js
// @code_url http://searchmarketingexpo.com/_js/validateSF.js
// @code_url http://searchmarketingexpo.com/_js/etval.js
// @code_url http://searchmarketingexpo.com/greybox/AJS.js
// @code_url http://searchmarketingexpo.com/greybox/AJS_fx.js
// @code_url http://searchmarketingexpo.com/greybox/gb_scripts.js
// ==/ClosureCompiler==
(function(a){a.fn.superfish=function(d){var e=a.fn.superfish,f=e.c,g=a(['<span class="',f.arrowClass,'"> &#187;</span>'].join("")),h=function(){var l=a(this),n=r(l);clearTimeout(n.sfTimer);l.showSuperfishUl().siblings().hideSuperfishUl()},m=function(){var l=a(this),n=r(l),q=e.op;clearTimeout(n.sfTimer);n.sfTimer=setTimeout(function(){q.retainPath=a.inArray(l[0],q.$path)>-1;l.hideSuperfishUl();q.$path.length&&l.parents(["li.",q.hoverClass].join("")).length<1&&h.call(q.$path)},q.delay)},r=function(l){l=
l.parents(["ul.",f.menuClass,":first"].join(""))[0];e.op=e.o[l.serial];return l},o=function(l){l.addClass(f.anchorClass).append(g.clone())};return this.each(function(){var l=this.serial=e.o.length,n=a.extend({},e.defaults,d);n.$path=a("li."+n.pathClass,this).slice(0,n.pathLevels).each(function(){a(this).addClass([n.hoverClass,f.bcClass].join(" ")).filter("li:has(ul)").removeClass(n.pathClass)});e.o[l]=e.op=n;a("li:has(ul)",this)[a.fn.hoverIntent&&!n.disableHI?"hoverIntent":"hover"](h,m).each(function(){n.autoArrows&&
o(a(">a:first-child",this))}).not("."+f.bcClass).hideSuperfishUl();var q=a("a",this);q.each(function(s){var t=q.eq(s).parents("li");q.eq(s).focus(function(){h.call(t)}).blur(function(){m.call(t)})});n.onInit.call(this)}).each(function(){menuClasses=[f.menuClass];e.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)&&menuClasses.push(f.shadowClass);a(this).addClass(menuClasses.join(" "))})};var b=a.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var d=b.op;a.browser.msie&&a.browser.version>6&&d.dropShadows&&
d.animation.opacity!=undefined&&this.toggleClass(b.c.shadowClass+"-off")};b.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};b.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{height:"show"},speed:"fast",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var d=
b.op,e=d.retainPath===true?d.$path:"";d.retainPath=false;e=a(["li.",d.hoverClass].join(""),this).add(this).not(e).removeClass(d.hoverClass).find(">ul").hide().css("visibility","hidden");d.onHide.call(e);return this},showSuperfishUl:function(){var d=b.op,e=this.addClass(d.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(e);d.onBeforeShow.call(e);e.animate(d.animation,d.speed,function(){b.IE7fix.call(e);d.onShow.call(e)});return this}})})(jQuery);(function(a){a.fn.supersubs=function(b){var d=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var e=a(this),f=a.meta?a.extend({},d,e.data()):d,g=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(e).width();a("#menu-fontsize").remove();$ULs=e.find("ul");$ULs.each(function(h){h=$ULs.eq(h);var m=h.children(),r=m.children("a"),o=m.css("white-space","nowrap").css("float"),l=h.add(m).add(r).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/
g;l+=f.extraWidth;if(l>f.maxWidth)l=f.maxWidth;else if(l<f.minWidth)l=f.minWidth;l+="em";h.css("width",l);m.css({"float":o,width:"100%","white-space":"normal"}).each(function(){var n=a(">ul",this),q=n.css("left")!==undefined?"left":"right";n.css(q,l)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);$(document).ready(function(){$("ul.sf-menu").supersubs({minWidth:10,maxWidth:27,extraWidth:0.5}).superfish()});(function(a){a.fn.innerfade=function(b){return this.each(function(){a.innerfade(this,b)})};a.innerfade=function(b,d){var e={animationtype:"fade",speed:"normal",type:"sequence",timeout:2E3,containerheight:"auto",runningclass:"innerfade",children:null};d&&a.extend(e,d);var f=e.children===null?a(b).children():a(b).children(e.children);if(f.length>1){a(b).css("position","relative").css("height",e.containerheight).addClass(e.runningclass);for(var g=0;g<f.length;g++)a(f[g]).css("z-index",String(f.length-
g)).css("position","absolute").hide();if(e.type=="sequence"){setTimeout(function(){a.innerfade.next(f,e,1,0)},e.timeout);a(f[0]).show()}else if(e.type=="random"){var h=Math.floor(Math.random()*f.length);setTimeout(function(){do m=Math.floor(Math.random()*f.length);while(h==m);a.innerfade.next(f,e,m,h)},e.timeout);a(f[h]).show()}else if(e.type=="random_start"){e.type="sequence";var m=Math.floor(Math.random()*f.length);setTimeout(function(){a.innerfade.next(f,e,(m+1)%f.length,m)},e.timeout);a(f[m]).show()}else alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}};
a.innerfade.next=function(b,d,e,f){if(d.animationtype=="slide"){a(b[f]).slideUp(d.speed);a(b[e]).slideDown(d.speed)}else if(d.animationtype=="fade"){a(b[f]).fadeOut(d.speed);a(b[e]).fadeIn(d.speed,function(){removeFilter(a(this)[0])})}else alert("Innerfade-animationtype must either be 'slide' or 'fade'");if(d.type=="sequence")if(e+1<b.length){e+=1;f=e-1}else{e=0;f=b.length-1}else if(d.type=="random")for(f=e;e==f;)e=Math.floor(Math.random()*b.length);else alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");
setTimeout(function(){a.innerfade.next(b,d,e,f)},d.timeout)}})(jQuery);function removeFilter(a){a.style.removeAttribute&&a.style.removeAttribute("filter")}$(document).ready(function(){$("#banners ul").innerfade({speed:2E3,timeout:7E3,type:"sequence",containerheight:"110px"})});(function(a){a.fn.jTruncate=function(b){b=a.extend({length:300,minTrail:20,moreText:"more",lessText:"less",ellipsisText:"...",moreAni:"",lessAni:""},b);return this.each(function(){obj=a(this);var d=obj.html();if(d.length>b.length+b.minTrail){var e=d.indexOf(" ",b.length);if(e!=-1){e=d.indexOf(" ",b.length);var f=d.substring(0,e);d=d.substring(e,d.length-1);obj.html(f+'<span class="truncate_ellipsis">'+b.ellipsisText+'</span><span class="truncate_more">'+d+"</span>");obj.find(".truncate_more").css("display",
"none");obj.append('<div class="clearboth"><a href="#" class="truncate_more_link">'+b.moreText+"</a></div>");var g=a(".truncate_more_link",obj),h=a(".truncate_more",obj),m=a(".truncate_ellipsis",obj);g.click(function(){if(g.text()==b.moreText){h.show(b.moreAni);g.text(b.lessText);m.css("display","none")}else{h.hide(b.lessAni);g.text(b.moreText);m.css("display","inline")}return false})}}})}})(jQuery);$().ready(function(){$(".read_more").jTruncate({length:100,minTrail:0,moreText:"Read more",lessText:"Show less"})});var tb_pathToImage="/blog/wp-content/themes/smx20/_assets/loadingAnimation.gif";
eval(function(a,b,d,e,f,g){f=function(h){return(h<b?"":f(parseInt(h/b)))+((h%=b)>35?String.fromCharCode(h+29):h.toString(36))};if(!"".replace(/^/,String)){for(;d--;)g[f(d)]=e[d]||f(d);e=[function(h){return g[h]}];f=function(){return"\\w+"};d=1}for(;d--;)if(e[d])a=a.replace(new RegExp("\\b"+f(d)+"\\b","g"),e[d]);return a}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,
211,"|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox".split("|"),
0,{}));function launchPresentation(){window.open("http://www.searchmarketingexpo.com/media/smxadvanced.html","presWin","width=340,height=270,toolbar=no,location=0,directories=0,status=1,menuBar=no,scrollBars=0,resizable=no,top=300,left=600")};function checkEmail(a){var b="";if(a=="")b="You didn't enter an email address.\n";if(/^.+@.+\..{2,3}$/.test(a)){if(a.match(/[\(\)\<\>\,\;\:\\\"\[\]]/))b="Your email address contains illegal characters.\n"}else b="Please enter a valid email address.\n";return b}
function checkPhone(a){var b="";if(a=="")b="Please enter a phone number.\n";a=a.replace(/[\(\)\.\-\ ]/g,"");if(isNaN(parseInt(a)))b="The phone number field is empty or contains illegal characters.\n";a.length>9||(b="The phone number is the wrong length. Make sure you included an area code and international code if applicable.\n");return b}
function isEmpty(a){var b="";if(a.length==0)b="Please enter your first name.\n";else if(a.length<2)b="Your first name must contain at least 2 letters.\n";return b}function isEmptyLn(a){var b="";if(a.length==0)b="Please enter your last name.\n";else if(a.length<2)b="Your last name must contain at least 2 letters.\n";return b}function isEmptyCo(a){var b="";if(a.length==0)b="Please enter your company name.\n";else if(a.length<2)b="Your company name must contain at least 2 letters.\n";return b}
function isEmptyJt(a){var b="";if(a.length==0)b="Please enter your job title.\n";else if(a.length<2)b="Your job title must contain at least 2 letters.\n";return b}function isEmptyAdd1(a){var b="";if(a.length==0)b="Please enter your street address.\n";return b}function isEmptyCity(a){var b="";if(a.length==0)b="Please enter the name of your city.\n";return b}function isEmptyState(a){var b="";if(a.length==0)b="Please enter the name of your state or province.\n";return b}
function isEmptyCountry(a){var b="";if(a.length==0)b="Please enter the name of your country.\n";return b}function isEmptyZip(a){var b="";if(a.length==0)b="Please enter your zip or postal code.\n";return b}function isEmptyPubs(a){var b="";if(a.length==0)b="Please enter the names of the publications for which you write.\n";return b}function isEmptyArticle1(a){var b="";if(a.length==0)b=" Please provide links to 3 published and bi-lined articles - field 1 is empty.\n";return b}
function isEmptyArticle2(a){var b="";if(a.length==0)b=" Please provide links to 3 published and bi-lined articles - field 2 is empty.\n";return b}function isEmptyArticle3(a){var b="";if(a.length==0)b=" Please provide links to 3 published and bi-lined articles - field 3 is empty.\n";return b}function isEmptyBio(a){var b="";if(a.length==0)b="Please enter either the speaker's bio - 2-7 paragraphs - or a link to where it can be found online.\n";return b}
function isEmptyPitch(a){var b="";if(a.length==0)b="Please enter either your pitch for this session - in 2-7 paragraphs.\n";return b}function isEmptySpitch(a){var b="";if(a.length==0)b="Please enter either your pitch for this session - in 2-7 paragraphs.\n";return b}function checkDropdown(a){var b="";if(a==0)b="Please choose an option from the conference drop-down list.\n";return b}
function checkDropdownSession(a){var b="";if(a==0)b="Please choose for which session you are submitting a pitch.\n";return b};function checkEmail(a){var b="";if(a=="")b="You didn't enter an email address.\n";if(/^.+@.+\..{2,3}$/.test(a)){if(a.match(/[\(\)\<\>\,\;\:\\\"\[\]]/))b="Your email address contains illegal characters.\n"}else b="Please enter a valid email address.\n";return b}
function checkPhone(a){var b="";if(a=="")b="Please enter a phone number.\n";a=a.replace(/[\(\)\.\-\ ]/g,"");if(isNaN(parseInt(a)))b="The phone number field is empty or contains illegal characters.\n";a.length>9||(b="The phone number is the wrong length. Make sure you included an area code and international code if applicable.\n");return b}
function isEmpty(a){var b="";if(a.length==0)b="Please enter your first name.\n";else if(a.length<2)b="Your first name must contain at least 2 letters.\n";return b}function isEmptyLn(a){var b="";if(a.length==0)b="Please enter your last name.\n";else if(a.length<2)b="Your last name must contain at least 2 letters.\n";return b}function isEmptyCo(a){var b="";if(a.length==0)b="Please enter your company name.\n";else if(a.length<2)b="Your company name must contain at least 2 letters.\n";return b}
function isEmptyJt(a){var b="";if(a.length==0)b="Please enter your job title.\n";else if(a.length<2)b="Your job title must contain at least 2 letters.\n";return b}function isEmptyUrl(a){var b="";if(a.length==0)b="Please enter your website URL.\n";return b}function isEmptyComments(a){var b="";if(a.length==0)b="Please enter your question or comments.\n";return b}function checkDropdown(a){var b="";if(a==0)b="Please select from the drop down which SMX event you are inquiring about.\n";return b}
function isValidWord(a){return error=a=="natghz"?"":"Please re-enter the code you see in the box.\n"};var whitespace=" \t\n\r";function isValidEmail(a){if(isEmptyET(a))return false;if(isWhitespace(a))return false;for(var b=1,d=a.length;b<d&&a.charAt(b)!="@";)b++;if(b>=d||a.charAt(b)!="@")return false;else b+=2;for(;b<d&&a.charAt(b)!=".";)b++;return b>=d-1||a.charAt(b)!="."?false:true}function isEmptyET(a){return a==null||a.length==0}function isWhitespace(a){var b;if(isEmptyET(a))return true;for(b=0;b<a.length;b++){var d=a.charAt(b);if(whitespace.indexOf(d)==-1)return false}return true}
function checkEmailForm(){z=0;celements=document.getElementsByName("lid");for(c=0;c<celements.length;c++)if(celements[c].checked)z+=1;if(z<1){alert("Please select at least one list.");return false}if(!isValidEmail(document.subscribeForm.elements["Email Address"].value)){document.subscribeForm.elements["Email Address"].style.backgroundColor="yellow";alert("Please enter a valid Email Address. (name@host.com)");document.subscribeForm.elements["Email Address"].focus();return false}};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(),d=function(e){(new RegExp("(^|\\s)"+b+"(\\s|$)")).test(e.className)||(e.className+=(e.className?" ":"")+b)};AJS.map(a,function(e){d(e)})},setStyle:function(){var a=AJS.forceArray(arguments),
b=a.pop(),d=a.pop();AJS.map(a,function(e){e.style[d]=AJS.getCssDim(b)})},extend:function(a){var b=new this("no_init");for(k in a){var d=b[k],e=a[k];if(d&&d!=e&&typeof e=="function")e=this._parentize(e,d);b[k]=e}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 d=a._cscope||window;return function(){var e=AJS.$FA(arguments).concat(b);return a.apply(d,e)}},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,d;if(self.innerHeight){b=self.innerWidth;d=self.innerHeight}else if(a.documentElement&&
a.documentElement.clientHeight){b=a.documentElement.clientWidth;d=a.documentElement.clientHeight}else if(a.body){b=a.body.clientWidth;d=a.body.clientHeight}return{w:b,h:d}},flattenList:function(a){var b=[],d=function(e,f){AJS.map(f,function(g){if(g!=null)AJS.isArray(g)?d(e,g):e.push(g)})};d(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,d){AJS.REV(a,b,d)});AJS.listeners=[]},join:function(a,b){try{return b.join(a)}catch(d){var e=b[0]||"";AJS.map(b,function(f){e+=a+f},1);return e+""}},getIndex:function(a,b,d){for(var e=
0;e<b.length;e++)if(d&&d(b[e])||a==b[e])return e;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,d,e){var f=[];AJS.isDefined(d)||
(d=document);AJS.isDefined(a)||(a="*");a=d.getElementsByTagName(a);d=a.length;var g=new RegExp("(^|\\s)"+b+"(\\s|$)");for(j=i=0;i<d;i++)if(g.test(a[i].className)||b==null){f[j]=a[i];j++}return e?f[0]:f},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,d,e){var f="ajsl_"+b+d;e||
(e=false);d=a[f]||d;if(a["on"+b]==d)a["on"+b]=a[f+"old"];if(a.removeEventListener){a.removeEventListener(b,d,e);AJS.isOpera()&&a.removeEventListener(b,d,!e)}else a.detachEvent&&a.detachEvent("on"+b,d)},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 d=a[b];if(typeof d=="function")a[b]=AJS.$b(d,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(),d=function(e){e.className=e.className.replace(new RegExp("\\s?"+b,"g"),"")};AJS.map(a,function(e){d(e)})},setHTML:function(a,b){a.innerHTML=b;return a},
map:function(a,b,d,e){var f=0,g=a.length;if(d)f=d;if(e)g=e;for(;f<g;f++){d=b(a[f],f);if(d!=undefined)return d}},addEventListener:function(a,b,d,e,f){var g="ajsl_"+b+d;f||(f=false);AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(b,["keypress","keydown","keyup","click"])){var h=d;d=function(o){AJS.setEventKey(o);return h.apply(window,arguments)}}var m=AJS.isIn(b,["submit","load","scroll","resize"]),r=AJS.$A(a);AJS.map(r,function(o){if(e){var l=d;d=function(){AJS.REV(o,b,d);return l.apply(window,arguments)}}if(m){var n=
o["on"+b],q=function(){if(n){d(arguments);return n(arguments)}else return d(arguments)};o[g]=q;o[g+"old"]=n;a["on"+b]=q}else{o[g]=d;if(o.attachEvent)o.attachEvent("on"+b,d);else o.addEventListener&&o.addEventListener(b,d,f);AJS.listeners.push([o,b,d])}})},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(d){b.push(d)});return b},update:function(a,b){for(var d in b)a[d]=b[d];return a},
getBody:function(){return AJS.$bytc("body")[0]},HTML2DOM:function(a,b){var d=AJS.DIV();d.innerHTML=a;return b?d.childNodes[0]:d},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,d){a._cscope=b;return AJS._getRealScope(a,d)},createDOM:function(a,b){var d=0,e,f=document.createElement(a),g=b[0];if(AJS.isDict(b[d])){for(k in g){e=g[k];if(k=="style"||
k=="s")f.style.cssText=e;else if(k=="c"||k=="class"||k=="className")f.className=e;else f.setAttribute(k,e)}d++}if(g==null)d=1;for(d=d;d<b.length;d++)if(e=b[d]){g=typeof e;if(g=="string"||g=="number")e=AJS.TN(e);f.appendChild(e)}return f},swapDOM:function(a,b){a=AJS.getElement(a);var d=a.parentNode;if(b){b=AJS.getElement(b);d.replaceChild(b,a)}else d.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 d=b[k],e=a[k];if(d&&d!=e&&typeof e=="function")e=this._parentize(e,d);b[k]=e}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 d=new AJS.fx.Base;d.elm=AJS.$(a);d.options.duration=600;d.setOptions(b);AJS.update(d,{increase:function(){a.style.backgroundColor=this.now==7?"#fff":"#"+AJS.fx._shades[Math.floor(this.now)]}});return d.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,d){this.property=="opacity"?AJS.setOpacity(a,d):AJS.setStyle(a,b,d)}});AJS.fx.Style=AJS.fx.Base.extend({init:function(a,b,d){this.parent();this.elm=a;this.setOptions(d);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={},d={};for(p in a){b[p]=a[p][0];d[p]=a[p][1]}return this._start(b,d)}},increase:function(){for(var a in this.now)this.setStyle(this.elm,a,this.now[a])}});
AJS.fx.Transitions={linear:function(a,b,d,e){return d*a/e+b},sineInOut:function(a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-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";var b=window.location.hostname.indexOf("www"),d=this.src_loader.indexOf("www");if(b!=-1&&d==-1)this.src_loader=this.src_loader.replace("://","://www.");if(b==-1&&d!=-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 d=b.callback_fns;d!=[]&&AJS.map(d,function(f){f()});b.onHide();if(b.use_fx){var e=b.overlay;AJS.fx.fadeOut(b.overlay,{onComplete:function(){AJS.removeElement(e);e=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);d=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(d),function(f){f.style.visibility="visible"});GB_CURRENT=null;b.reload_on_close&&window.location.reload();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.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{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 d=b.getAttribute("rel");if(d.indexOf("gb_")==0){var e=d.match(/\w+/)[0],f=d.match(/\[(.*)\]/)[1],g=0,h={caption:b.title||"",url:b.href};if(e=="gb_pageset"||e=="gb_imageset"){GB_SETS[f]||(GB_SETS[f]=[]);GB_SETS[f].push(h);g=GB_SETS[f].length}if(e=="gb_pageset")b.onclick=function(){GB_showFullScreenSet(GB_SETS[f],g);return false};if(e=="gb_imageset")b.onclick=function(){GB_showImageSet(GB_SETS[f],
g);return false};if(e=="gb_image")b.onclick=function(){GB_showImage(h.caption,h.url);return false};if(e=="gb_page")b.onclick=function(){var m=f.split(/, ?/);GB_show(h.caption,h.url,parseInt(m[1]),parseInt(m[0]));return false};if(e=="gb_page_fs")b.onclick=function(){GB_showFullScreen(h.caption,h.url);return false};if(e=="gb_page_center")b.onclick=function(){var m=f.split(/, ?/);GB_showCenter(h.caption,h.url,parseInt(m[1]),parseInt(m[0]));return false}}}})}AJS.AEV(window,"load",decoGreyboxLinks);
GB_showImage=function(a,b,d){return(new GB_Gallery({width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:a,callback_fn:d})).show(b)};GB_showPage=function(a,b,d){return(new GB_Gallery({type:"page",caption:a,callback_fn:d,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),d=AJS.TD({id:"GB_middle","class":"middle",
width:"20%"}),e=AJS.IMG({src:this.img_close});AJS.AEV(e,"click",GB_hide);e=AJS.TD({"class":"close",width:"40%"},e);b=AJS.TBODY(AJS.TR(b,d,e));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,d){a=new GB_Sets({type:"page",fullscreen:true,center_win:false},a);a.addCallback(d);a.showSet(b-1);return false};GB_showImageSet=function(a,b,d){a=new GB_Sets({type:"image",fullscreen:false,center_win:true,width:300,height:300},a);a.addCallback(d);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.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(a,b,d,e,f){return(new GB_Window({caption:a,height:d||500,width:e||500,fullscreen:false,callback_fn:f})).show(b)};GB_showCenter=function(a,b,d,e,f){return(new GB_Window({caption:a,center_win:true,height:d||500,width:e||500,fullscreen:false,callback_fn:f})).show(b)};GB_showFullScreen=function(a,b,d){return(new GB_Window({caption:a,fullscreen:true,callback_fn:d})).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 d=AJS.IMG({src:this.img_close}),
e=AJS.SPAN("Close"),f=AJS.DIV(d,e);AJS.AEV([d,e],"mouseover",function(){AJS.addClass(e,"on")});AJS.AEV([d,e],"mouseout",function(){AJS.removeClass(e,"on")});AJS.AEV([d,e],"mousedown",function(){AJS.addClass(e,"click")});AJS.AEV([d,e],"mouseup",function(){AJS.removeClass(e,"click")});AJS.AEV([d,e],"click",GB_hide);AJS.ACN(b,f)}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;