/* ============================== bajl.js ============================== */
/*!
 *    @fileoverview
 *       bAJL base script.
 *
 *    @version 2.8.20110525.nextia-static-20110927
 *    @requires jquery.js
 */
(function(b){var a=this;a.undefined=a.undefined;b.easing.def="easeOutCubic";a.BAJL=b.extend(a.BAJL,new (function(){var f=document;var g=f.documentElement;var e=f.implementation;var c=navigator.userAgent;this.settings={};this.settings.common={useBackCompat:false,showGeometry:false};this.ns={};this.ns.defaultNS=(!g)?"":g.namespaceURI||g.tagUrn||"";this.ns.xhtml1="http://www.w3.org/1999/xhtml";this.ns.xhtml2="http://www.w3.org/2002/06/xhtml2";this.ns.bajl="http://www.b-architects.com/";this.ua={};this.ua.versionText=b.browser.version;this.ua.version=parseFloat(b.browser.version);this.ua.isGecko=!!b.browser.mozilla;this.ua.isSafari=!!b.browser.safari;this.ua.isWebkit=!!b.browser.webkit;this.ua.isOpera=!!b.browser.opera;this.ua.isIE=!!b.browser.msie;this.ua.isWin=/Win/.test(c);this.ua.isMac=/Mac/.test(c);this.ua.isQuirksMode=(f.compatMode=="BackCompat"||this.ua.isIE&&this.ua.version<6);this.ua.documentMode=(!this.ua.isIE)?0:(f.documentMode)?f.documentMode:(!this.ua.isQuirksMode)?this.ua.version:5;this.ua.isDOMReady=(e)?e.hasFeature("HTML","1.0"):(this.ua.isIE&&g);this.geom={};this.env={};this.env.isOnline=/^https?\:$/.test(location.protocol);this.env.isDOMReady=false}));if(typeof a.Node=="undefined"){a.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}}if(typeof a.console!="object"){a.console={element:null,firebug:"0",userObjects:{},assert:function(){},clear:function(){},count:function(){},debug:function(){},dir:function(){},dirxml:function(){},error:function(){},getFirebugElement:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},log:function(){},notifyFirebug:function(){},profile:function(){},profileEnd:function(){},time:function(){},timeEnd:function(){},trace:function(){},warn:function(){}}}(function(){if(BAJL.ua.isIE){try{document.execCommand("BackgroundImageCache",false,true)}catch(c){}}b(function(){BAJL.env.isDOMReady=true;new BAJL.Timeout(function(){b(document.body).addClass("bajl-enabled");if(BAJL.settings.common.useBackCompat){b(document.body).addClass("dom-enabled")}if(BAJL.settings.common.showGeometry){BAJL.GetGeometry.continuously()}},1)})})();if(!Array.prototype.indexOf){Array.prototype.indexOf=function(e,d){if(typeof d!="number"){d=0}else{if(d<0){d=this.length+d}}for(var c=d,f=this.length;c<f;c++){if(this[c]===e){return c}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(e,d){if(typeof d!="number"){d=this.length-1}else{if(d<0){d=this.length+d}}for(var c=d;c>=0;c--){if(this[c]===e){return c}}return -1}}if(!Array.prototype.forEach){Array.prototype.forEach=function(c,d){for(var e=0,f=this.length;e<f;e++){c.call(d,this[e],e,this)}}}if(!Array.prototype.map){Array.prototype.map=function(c,d){var e=[];for(var f=0,g=this.length;f<g;f++){e.push(c.call(d,this[f],f,this))}return e}}if(!Array.prototype.filter){Array.prototype.filter=function(c,d){var e=[];for(var f=0,g=this.length;f<g;f++){if(c.call(d,this[f],f,this)){e.push(this[f])}}return e}}if(!Array.prototype.some){Array.prototype.some=function(c,d){for(var e=0,f=this.length;e<f;e++){if(c.call(d,this[e],e,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(c,d){for(var e=0,f=this.length;e<f;e++){if(!c.call(d,this[e],e,this)){return false}}return true}}BAJL.Number=function(c){return new BAJL.Number.Wrapper(c)};BAJL.Number.Wrapper=function(c){this.value=Number(c)||0};BAJL.Number.Wrapper.prototype.toString=function(){return String(this.value)};BAJL.Number.Wrapper.prototype.get=function(){return this.value};BAJL.Number.Wrapper.prototype.format=function(l){if(!l||typeof l!="string"){throw new TypeError("BAJL.Number.Wrapper.format: first argument must be a formatting string.")}else{var j=[];var h=parseFloat(this.value)||0;var i=l.split(".")[0].split("");var k=l.split(".")[1]||"";var m=(k)?Math.abs(h):Math.round(Math.abs(h));var d=(h<0)?"-":"";var c=m.toString().split(".")[0].split("");do{var o=c.pop()||"";var g=i.pop()||"";switch(g){case"0":j.push(o?o:"0");break;case"#":j.push(o?o:"");break;case"":c=[];break;default:j.push(g);c.push(o);break}}while(c.length>0||i.length>0);j=j.reverse().join("").replace(/^\D+/,"");if(k){var f=Math.pow(10,k.length);var e=Math.round(m*f)/f;if(e-j==1){j++}var n=e.toString().split(".")[1]||"0";n=n.split("").reverse().join("");k=k.split("").reverse().join("");j=j+"."+BAJL.Number(n).format(k).split("").reverse().join("")}if(BAJL.String(k).startsWith("#")&&BAJL.String(j).endsWith(".0")){j=BAJL.String(j).getBefore(".0")}return BAJL.String(d+j)}};BAJL.String=function(c){return new BAJL.String.Wrapper(c)};BAJL.String.Wrapper=function(c){this.value=String(c===undefined?"":c);this.length=this.value.length};BAJL.String.Wrapper.prototype.toString=function(){return this.value};BAJL.String.Wrapper.prototype.get=BAJL.String.Wrapper.prototype.toString;BAJL.String.Wrapper.prototype.format=function(d,e){var c;if(arguments.length==0){return this}else{if(typeof d=="object"){c=d}else{c=b.makeArray(arguments).map(function(f){return String(f)})}}b.each(c,BAJL.Delegate(function(f,g){this.value=this.value.replace(new RegExp("\\$\\{"+f+"\\}","g"),g)},this));this.length=this.value.length;return this};BAJL.String.Wrapper.prototype.getBefore=function(f,d,e){if(typeof f!="string"){throw new TypeError("BAJL.String.Wrapper.getBefore: first argument must be a string.")}else{if(f){var c=(!e)?this.value.indexOf(f):this.value.lastIndexOf(f);this.value=(c==-1)?"":this.value.substring(0,c)+(d?f:"");this.length=this.value.length}}return this};BAJL.String.Wrapper.prototype.getAfter=function(f,d,e){if(typeof f!="string"){throw new TypeError("String.Wrapper.getAfter: first argument must be a string.")}else{if(f){var c=(!e)?this.value.indexOf(f):this.value.lastIndexOf(f);this.value=(c==-1)?"":(d?f:"")+this.value.substring(c+f.length,this.value.length);this.length=this.value.length}}return this};BAJL.String.Wrapper.prototype.startsWith=function(c){return(this.value.indexOf(c)==0)};BAJL.String.Wrapper.prototype.endsWith=function(d){var c=this.value.lastIndexOf(d);return(c>-1&&c+d.length==this.value.length)};BAJL.String.Wrapper.prototype.rel2abs=function(f){var g=this.value;var c=f.split("/");var e=g.split("/");var d=/^(\/|\w+:)/;if(!f.match(d)){throw new TypeError("BAJL.String.Wrapper.rel2abs: first argument must be an absolute path/URL.")}else{if(g.match(d)){}else{if(g.charAt(0)=="#"||g.charAt(0)=="?"){this.value=f+g}else{if(e[0]=="."||e[0]==".."){this.value=BAJL.String(e.slice(1,e.length).join("/")).rel2abs(c.slice(0,c.length-e[0].length).join("/")+"/").get()}else{this.value=c.slice(0,c.length-1).join("/")+"/"+g}}}}this.length=this.value.length;return this};BAJL.String.Wrapper.prototype.abs2rel=function(f){var c=/^(\/|\w+:)/;if(!f.match(c)){throw new TypeError("BAJL.String.Wrapper.abs2rel: first argument must be an absolute path/URL.")}else{if(!this.value.match(c)){throw new TypeError("BAJL.String.Wrapper.abs2rel: current string is not an absolute path/URL.")}else{this.value=e(f,this.value).replace(/^\//,"")||f;this.length=this.value.length}}return this;function e(i,j){var g=i.split("/");var h=j.split("/");if(!i){return j}else{if(!j){return d(i)}else{if(g[0]!=h[0]){return d(i)+j}else{return arguments.callee(g.slice(1).join("/"),h.slice(1).join("/"))}}}}function d(g){return g.split("/").slice(1).map(function(){return".."}).join("/")+"/"}};BAJL.String.Wrapper.prototype.sanitize=function(){var d={"&":"&amp;","<":"&lt;",">":"&gt;","\u0022":"&quot;","\u0027":"&apos;"};for(var c in d){this.value=this.value.replace(new RegExp(c,"g"),d[c]);this.length=this.value.length}return this};BAJL.StyleSheets=function(d){var e=document.styleSheets;if(BAJL.ua.isSafari){var f=b("link").filter(function(){return Boolean(this.sheet)});var c="BAJL.StyleSheets.Sheet.disabled";if(f.length>e.length){f.each(function(){b(this).data(c,(b.inArray(this.sheet,e)==-1));this.disabled=true;this.disabled=false});b.each(e,function(){this.disabled=b(this.ownerNode).data(c)})}}if(typeof d=="number"){e=e[d]}else{if(typeof d=="object"&&d.type=="text/css"){e=d}}return new BAJL.StyleSheets.Wrapper(e)};BAJL.StyleSheets.Wrapper=function(c){this.length=0;b.makeArray(c).forEach(function(e,d){this[d]=e;this.length++},this)};BAJL.StyleSheets.Wrapper.prototype.eq=function(c){var d=(typeof c=="number")?this[c]:null;return new this.constructor(d)};BAJL.StyleSheets.Wrapper.prototype.get=function(c){return(typeof c=="number")?this[c]:Array.prototype.slice.call(this)};BAJL.StyleSheets.Wrapper.prototype.getOwnerNode=function(c){if(typeof c=="number"){return this[c].ownerNode||this[c].owingElement}else{return Array.prototype.map.call(this,function(f,d){return this.getOwnerNode(d)},this)}};BAJL.StyleSheets.Wrapper.prototype.size=function(){return this.length};BAJL.StyleSheets.Wrapper.prototype.each=function(c){b.each(this.get(),c);return this};BAJL.StyleSheets.Wrapper.prototype.filter=function(c){return new this.constructor(this.get().filter(function(e,d){return c.call(e,d,e)}))};BAJL.StyleSheets.Wrapper.prototype.insertRule=function(e){var k=/([^\{]+)(\{.+\})/;var h=this.get(0);if(!h){return}else{if(!k.test(e)){throw new TypeError("BAJL.StyleSheets.Wrapper.insertRule : first argument must be a style rule text.")}else{var d=(BAJL.ua.isSafari&&BAJL.ua.version<522);if(d||(!h.insertRule&&!h.addRule)){var c=document.createElement("style");c.type="text/css";c.appendChild(document.createTextNode(e));document.getElementsByTagName("head")[0].appendChild(c)}else{if(h.insertRule){try{var i=h.cssRules?h.cssRules.length:0;h.insertRule(e,i)}catch(g){}}else{if(h.addRule){var j=k.exec(e);var f=b.trim(j[1]);var l=b.trim(j[2]);if(BAJL.ua.documentMode>=8){l=l.slice(1,l.length-1)}f.split(",").forEach(function(m){h.addRule(m,l)})}}}return this}}};BAJL.OpenWindow=function(c,i,d,l,n,m){if(typeof c!="string"||!c){throw new URIError("BAJL.OpenWindow: first argument must be a string (url).")}else{var h=arguments.callee;var i=(typeof i=="string"&&i)?i:"_blank";var k=h.getPreset(i);var n=k.options||h.parseOptions(n);var m=k.moveFlag||Boolean(m);n.width=k.width||d||n.width||undefined;n.height=k.height||l||n.height||undefined;if(!(n.width>0)){delete n.width}if(!(n.height>0)){delete n.height}var g=[];for(var j in n){g.push(j+"="+n[j])}var f=a.open(c,i,g.join(","));try{f.focus()}catch(e){}if(m){f.moveTo(0,0)}if(a.event){a.event.returnValue=false}return f}};BAJL.OpenWindow.presets={};BAJL.OpenWindow.getPreset=function(c){if(typeof c!="string"||!c){return{}}else{return this.presets[c]||{}}};BAJL.OpenWindow.addPreset=function(h,f,c,e,d){if(typeof h!="string"||!h){throw new TypeError("BAJL.OpenWindow,addPreset: first argument (target) must be a string.")}else{var g=this.presets[h]={};var e=this.parseOptions(e);g.width=(f>0)?f:(e.width>0)?e.width:undefined;g.height=(c>0)?c:(e.height>0)?e.height:undefined;g.options=e;g.moveFlag=Boolean(d);delete g.options.width;delete g.options.height;return g}};BAJL.OpenWindow.parseOptions=function(d){if(typeof d!="string"||!d){return{}}else{var c={};d.replace(/\s/g,"").split(",").forEach(function(f){var e=f.split("=");if(e[0]){c[e[0]]=e[1]||""}});return c}};BAJL.OpenWindow.full=function(d,e,c){c=c||"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";return BAJL.OpenWindow(d,e,screen.availWidth,screen.availHeight,c,true)};BAJL.Observable=function(){this.callbackChains=null;this.callbackIgnoreLevel={}};BAJL.Observable.prototype.doCallback=function(e,g){var f=this.callbackChains;if(!f||!f[e]){return undefined}else{var d;var c=Array.prototype.slice.call(arguments,1);f[e].filter(function(h){var i=this.callbackIgnoreLevel[e]||"none";switch(i){case"preserved":return h.isDisposable;case"disposable":return !h.isDisposable;case"all":return false;case"none":return true;default:return true}},this).forEach(function(h){d=h.apply(null,c)});this.removeDisposableCallback(e);return d}};BAJL.Observable.prototype.addCallback=function(d,f,c,g){if(typeof d!="string"||d==""){throw new TypeError("BAJL.Observable.addCallback: argument 'name' must be a string as callback name.")}else{if(typeof f!="function"){throw new TypeError("BAJL.Observable.addCallback: argument 'func' must be a Function object.")}else{if(!this.callbackChains){this.callbackChains={}}if(!this.callbackChains[d]){this.callbackChains[d]=[]}var e=BAJL.Delegate(f,c);e.isDisposable=(g=="disposable");this.callbackChains[d].push(e)}}return this};BAJL.Observable.prototype.removeCallback=function(d,f,c){var e=this.callbackChains;if(typeof d!="string"||d==""){throw new TypeError("BAJL.Observable.removeCallback: argument 'name' must be a string as callback name.")}else{if(e&&e[d]){if(typeof f!="function"){delete e[d]}else{var g=(typeof c=="object"&&c)?c:a;e[d]=e[d].filter(function(h){return(h.func!==f||h.aThisObject!==g)})}}}return this};BAJL.Observable.prototype.removeDisposableCallback=function(c){var d=this.callbackChains;if(d&&d[c]){d[c]=d[c].filter(function(e){return !e.isDisposable})}return this};BAJL.Observable.prototype.ignoreCallback=function(c,f){var d=this.callbackChains;if(typeof c!="string"||c==""){throw new TypeError("BAJL.Observable.ignoreCallback: argument 'name' must be a string as callback name.")}else{if(d&&d[c]){var e=["all","preserved","disposable","none"];this.callbackIgnoreLevel[c]=(e.indexOf(f)!=-1)?f:"all"}}return this};if(BAJL.settings.common.useBackCompat){BAJL.Observable.prototype.doCallBack=function(){return this.doCallback.apply(this,arguments)};BAJL.Observable.prototype.addCallBack=function(){return this.addCallback.apply(this,arguments)};BAJL.Observable.prototype.removeCallBack=function(){return this.removeCallback.apply(this,arguments)};BAJL.Observable.prototype.removeDisposableCallBacks=function(){return this.removeDisposableCallback.apply(this,arguments)}}BAJL.Iterator=function(c,d){this.targets=c;this.keys=[];this.counter=0;this.mode=d||"value";if(arguments.length>0){this.init()}};BAJL.Iterator.prototype.init=function(){if(!this.targets||typeof this.targets!="object"){throw new TypeError("BAJL.Iterator#init: invalid object type.")}else{b.each(this.targets,BAJL.Delegate(function(c){this.keys.push(c)},this))}};BAJL.Iterator.prototype.hasNext=function(){return(this.counter<this.keys.length)};BAJL.Iterator.prototype.next=function(){if(!this.hasNext()){throw new ReferenceError("BAJL.Iterator#next: StopIteration")}else{var c=this.keys[this.counter++];var d=this.targets[c];switch(this.mode){case"key":return c;case"value":return d;case"both":return[c,d];default:return undefined}}};BAJL.Iterator.prototype.iterate=function(f,e,d){if(typeof f!="function"){throw new TypeError("BAJL.Iterator#iterate: first argument must be a function object.")}else{var c=(this.hasNext())?f.apply(d,b.makeArray(this.next())):false;if(c!==false){if(e>0){new BAJL.Timeout(function(){this.iterate(f,e,d)},e,this)}else{this.iterate(f,e,d)}}}};BAJL.Timeout=function(e,d,c){this.timer=0;this.func=b.isFunction(e)?e:new Function;this.ms=Math.max(0,d)||0;this.aThisObject=c||a;this.timerFunc="setTimeout";if(arguments.length){this.init()}};BAJL.Timeout.prototype.init=function(){var c=BAJL.Delegate(this.func,this.aThisObject);var d=a[this.timerFunc];this.timer=(BAJL.ua.isIE)?d(c,this.ms,"JScript"):d(c,this.ms)};BAJL.Timeout.prototype.clear=function(){clearTimeout(this.timer);clearInterval(this.timer)};BAJL.Timeout.prototype.clearTimer=function(){return this.clear.apply(this,arguments)};BAJL.Interval=function(e,d,c){this.timer=0;this.func=e;this.ms=Math.max(0,d)||0;this.aThisObject=c||a;this.timerFunc="setInterval";if(arguments.length){this.init()}};BAJL.Interval.prototype=new BAJL.Timeout;BAJL.Timer=function(){this.startTime=null;this.reset()};BAJL.Timer.prototype.reset=function(){this.startTime=(new Date()).getTime()};BAJL.Timer.prototype.getTime=function(){return(new Date()).getTime()-this.startTime};BAJL.Timer.prototype.getSeconds=function(){return this.getTime()/1000};BAJL.Tag=function(d,c){this.tagName=d;this.attributes=c||{};this.childNodes=[]};BAJL.Tag.prototype.attr=function(c,d){if(typeof c!="string"){throw new TypeError("BAJL.Tag.attr: first argument must be a string (name).")}else{if(d==undefined){return this.attributes[c]||""}else{return(this.attributes[c]=String(d))}}};BAJL.Tag.prototype.append=function(c){if(c==undefined||c==null){throw new TypeError("BAJL.Tag.append: first argument must be a string or a BAJL.Tag instance.")}else{if(c.constructor!=this.constructor){c=String(c)}this.childNodes.push(c)}};BAJL.Tag.prototype.toString=function(f){var h=(f)?"&lt;":"<";var e=(f)?"&gt;":">";var d=h+this.tagName;var j=(this.childNodes.length)?"":null;for(var g=0,k=this.childNodes.length;g<k;g++){j+=this.childNodes[g].toString(f)}for(var c in this.attributes){d+=" "+c+'="'+this.attributes[c]+'"'}d+=(j!=null)?e+j+h+"/"+this.tagName+e:" /"+e;return d};if(BAJL.settings.common.useBackCompat){BAJL.Tag.prototype.setAttributeBA=function(){return this.attr.apply(this,arguments)};BAJL.Tag.prototype.appendChildBA=function(){return this.append.apply(this,arguments)}}BAJL.CreateBackCompat=function(c){b.each(c,function(d,e){BAJL.SetValue(d,e)})};BAJL.SetValue=function(f,d,e){if(typeof f!="string"||!f){throw new TypeError("BAJL.SetValue: first argument type must be string (expr).")}else{if(e!==null){var c=f.split(".");var e=(e===undefined)?a:e;if(c.length==1){return(e[f]=d)}else{var g=c.shift();if(e[g]==undefined){e[g]={}}return arguments.callee(c.join("."),d,e[g])}}}};BAJL.GetValue=function(e,d){if(typeof e!="string"||!e){throw new TypeError("BAJL.GetValue: first argument type must be string (expr).")}else{var c=e.split(".");var d=(typeof d!="object"||!d)?a:d;if(c.length==1){return d[e]}else{var f=c.shift();return(d[f]==undefined)?undefined:arguments.callee(c.join("."),d[f])}}};BAJL.Singleton=function(d,c){if(typeof d!="function"){throw new TypeError("BAJL.Singleton: first argument must be a constructor function.")}else{return d.__BAJL_SingleInstance__||(d.__BAJL_SingleInstance__=new d())}};BAJL.Delegate=function(f,d){if(typeof f!="function"){throw new TypeError("BAJL.Delegate: first argument must be a function object.")}else{var c=d||a;var e=function(){return f.apply(c,arguments)};e.func=f;e.aThisObject=c;return e}};BAJL.BarrageShield=function(e,d,c){if(typeof e!="function"){throw new TypeError("BAJL.BarrageShield: first argument must be a function object.")}else{return function(){var f=arguments;var g=Math.max(d,1)||1;clearTimeout(e.__BAJL_BarrageShield_Timer__);e.__BAJL_BarrageShield_Timer__=setTimeout(function(){e.apply(c||a,f)},g)}}};BAJL.AlreadyApplied=function(c){if(typeof c!="function"){throw new TypeError("BAJL.AlreadyApplied: first argument must be a function object.")}else{return c.__BAJL_AlreadyApplied__||!(c.__BAJL_AlreadyApplied__=true)}};BAJL.PreloadImage=function(d){if(typeof d!="string"||!d){throw new TypeError("BAJL.PreloadImage: first argument must be a string (img src).")}else{var c=new Image;c.src=d;return c}};BAJL.GetLinkTarget=function(e,g){var e=b(e).filter("a, area").get(0);var g=g?String(g):"_self";if(e){var d=e.target||"_self";var f=e.hash||"#";var c=e.href.replace(f,"").replace(location.href.split("#")[0],"");if(d==g&&f!="#"&&!c){return b(f)}}return b()};BAJL.GetGeometry=function(k){var n=a;var l=document.documentElement;var m=document.body;var i=BAJL.geom;var o=arguments.callee;var j=(BAJL.ua.isIE&&BAJL.ua.isWin&&BAJL.ua.isQuirksMode);var f=(BAJL.ua.isIE&&BAJL.ua.isMac);var h=(BAJL.ua.isSafari&&BAJL.ua.version<522);i.windowW=n.innerWidth||(f?m.scrollWidth:l.offsetWidth);i.windowH=n.innerHeight||(f?m.scrollHeight:l.offsetHeight);i.pageW=(f)?l.offsetWidth:(j)?m.scrollWidth:l.scrollWidth;i.pageH=(f)?l.offsetHeight:(j)?m.scrollHeight:l.scrollHeight;i.scrollX=n.scrollX||l.scrollLeft||m.scrollLeft||0;i.scrollY=n.scrollY||l.scrollTop||m.scrollTop||0;i.windowX=(!k)?(i.windowX||0):k.clientX-((h)?i.scrollX:0);i.windowY=(!k)?(i.windowY||0):k.clientY-((h)?i.scrollY:0);i.pageX=(!k)?(i.pageX||0):k.clientX+((!h)?i.scrollX:0);i.pageY=(!k)?(i.pageX||0):k.clientY+((!h)?i.scrollY:0);i.zoom=o.getZoomRatio();i.scrollBar=o.getScrollBarWidth();if(BAJL.settings.common.showGeometry){var c=[["window","${windowW}x${windowH}"],["page","${pageW}x${pageH}"],["scroll","${scrollX},${scrollY}"],["pos(view)","${windowX},${windowY}"],["pos(abs)","${pageX},${pageY}"],["zoom","${zoom}"],["sbar","${scrollBar}"]].map(function(d){return d.join(": ")}).join(" | ");a.status=BAJL.String(c).format(i).get()}if(BAJL.settings.common.useBackCompat){i.mouseX=i.pageX;i.mouseY=i.pageY}return i};BAJL.GetGeometry.getZoomRatio=function(){var h=document.documentElement;var c=document.body;var e=arguments.callee;e._cache_=e._cache_||1;if(BAJL.ua.isIE&&BAJL.ua.version>=7){if(e._lock_){e._lock_.clear();e._lock_=new BAJL.Timeout(function(){e._lock_=null},500)}else{e._lock_=new BAJL.Timeout(function(){e._lock_=null},500);if(BAJL.ua.isQuirksMode){e._cache_=h.offsetWidth/c.offsetWidth}else{var i="BAJL_GetGeometry_getZoomRatio_TestNode";var f={position:"absolute",left:"0px",top:"0px",width:(h.scrollWidth*10)+"px",height:"10px",background:"red"};var g=b("#"+i).get(0)||b(document.createElement("ins")).attr("id",i).css(f).appendTo(document.body).get(0);b(g).show();e._cache_=h.scrollWidth/g.offsetWidth;b(g).hide()}}}return e._cache_};BAJL.GetGeometry.getScrollBarWidth=function(){var c=arguments.callee;if(typeof c._cache_!="number"){var f="BAJL_GetGeometry_getScrollBarWidth_TestNode";var d={position:"absolute",left:"-10000px",top:"-10000px",display:"block",visibility:"hidden",overflow:"scroll",width:"100px",height:"100px",border:"none",margin:"0",padding:"0"};var e=b("#"+f).get(0)||b(document.createElement("ins")).attr("id",f).css(d).appendTo(document.body).get(0);c._cache_=e.offsetWidth-e.clientWidth;b(e).remove()}return c._cache_};BAJL.GetGeometry.continuously=function(){if(!BAJL.AlreadyApplied(arguments.callee)){BAJL.GetGeometry();b(document).mousemove(BAJL.GetGeometry)}};BAJL.GetCommonDir=function(k){if(typeof k!="string"||!k){throw new TypeError("BAJL.GetCommonDir: first argument must be a string (directory name to find).")}else{var l="./";var c=document.getElementsByTagName("head")[0].getElementsByTagName("script");for(var f=0,e=c.length;f<e;f++){var g=c[f].src.split("/");var j=g.indexOf(k);if(j!=-1){l=g.slice(0,j+1).join("/")+"/";break}}if(!l.match(":")){var d=document.getElementsByTagName("base")[0];var h=(d)?d.href:location.href;if(BAJL.String(l).startsWith("/")){l=h.match(/^\w+:\/*[^\/]+/)[0]+l}else{l=BAJL.String(l).rel2abs(h).get()}}return l}};BAJL.WatchFor=function(f,i,c,e){var h=new Function("try { return "+f+" }catch(e){}");var g=new BAJL.Interval(function(){var j=h();if(j){g.clear();d.clear();(i||new Function)(j)}},10);var d=new BAJL.Timeout(function(){g.clear();(c||new Function)()},Math.max(0,e)||3000)};jQuery.fn.BAJL_ComputedStyle=function(e,d){var e=String(e||"");var d=String(d||"");var c=this.get(0);if(!e||!c){return""}else{return(c.currentStyle||document.defaultView.getComputedStyle(c,d))[e]||""}};jQuery.fn.BAJL_LinkTarget=function(c){return BAJL.GetLinkTarget(this,c)};jQuery.fn.BAJL_NormalizeTextNode=function(c){this.contents().each(function(){if(this.nodeType==Node.TEXT_NODE){if((this.nodeValue=jQuery.trim(this.nodeValue))==""){this.parentNode.removeChild(this)}}else{if(c&&this.nodeType==Node.ELEMENT_NODE){jQuery(this).BAJL_NormalizeTextNode(c)}}});return this};jQuery.fn.BAJL_HasElement=function(){return(this.size()>0&&this.get(0)&&this.get(0).nodeType==Node.ELEMENT_NODE)};jQuery.fn.BAJL_AddBeforeUnload=function(d,c){if(this.get(0)===a){if(a.addEventListener){a.addEventListener("beforeunload",BAJL.Delegate(d,c),false)}else{this.bind("beforeunload",function(f){if(f&&f.originalEvent){d.call(c,f.originalEvent)}})}}}})(jQuery);



/* ============================== bajl.rollover.js ============================== */
/*!
 *    @fileoverview
 *       Image Swap / Rollover Control
 *
 *    @version 2.5.20110304.nextia-static-20110912
 *    @requires jquery.js
 *    @requires bajl.js
 */
(function(a){BAJL.settings.Rollover={autoSetup:{enabled:true},presets:{".bajl-rollover":{findAtOnce:false,exclude:".bajl-norollover",statusSet:{normal:"",hover:"_o"},handlers:{mouseover:function(c,b){this.setStatus("hover")},mouseout:function(c,b){this.setStatus("default")}},cnamePrefix:"pseudo-"}}};a(function(){var b=BAJL.settings.Rollover;if(b.autoSetup.enabled){a.each(b.presets,function(d,c){BAJL.Rollover.setup(d,c)})}});jQuery.fn.BAJL_Rollover=function(c,b,d){return this.each(function(){new BAJL.Rollover(this,c,b,d)})};BAJL.Rollover=function(d,c,b,e){this.node=a(d).get(0);this.statusSet=a.extend({},c);this.status="normal";this.exclude=b||"";this.cnamePrefix=e||"";this.swappers=[];if(BAJL.env.isDOMReady){this.init()}};BAJL.Rollover.instances=[];BAJL.Rollover.storeInstance=function(b){if(!b||!(b instanceof BAJL.Rollover)){throw new TypeError("BAJL.Rollover.storeInstance: first argument must be an instance of BAJL.Rollover")}else{a(b.node).data("BAJL.Rollover.InstanceID",this.instances.push(b)-1)}};BAJL.Rollover.getInstance=function(b){if(typeof b=="number"){return this.instances[b]}else{if(b&&(b.nodeType==Node.ELEMENT_NODE||typeof b.jquery=="string"||typeof b=="string")){return this.instances[a(b).data("BAJL.Rollover.InstanceID")]}else{throw new TypeError("BAJL.Rollover.getInstance: first argument must be an ID number, element node, jQuery object, or jQuery selector text.")}}};BAJL.Rollover.disposeInstance=function(b){if(!b||!(b instanceof BAJL.Rollover)){throw new TypeError("BAJL.Rollover.disposeInstance: first argument must be an instance of BAJL.Rollover")}else{if(b.node){BAJL.Rollover.instances.splice(a(b.node).data("BAJL.Rollover.InstanceID"),1,undefined);b.dispose(true)}}};BAJL.Rollover.setup=function(b,c){var c=a.extend(new BAJL.Rollover.Setting,c);if(c.findAtOnce){a(b).each(function(){e(this,c)})}else{a(document).mouseover(function(g){var f=a(g.target);var h=g.target.namespaceURI||g.target.tagUrn||"";if(h!=BAJL.ns.defaultNS){f=a(g.target.parentNode)}f.closest(b).each(function(){a(e(this,c)).triggerHandler(g.type)})})}function e(h,g){if(!BAJL.Rollover.getInstance(h)){new BAJL.Rollover(h,g.statusSet,g.exclude,g.cnamePrefix);for(var f in g.handlers){a(h).bind(f,g.handlers,BAJL.Delegate(d,this))}}return h}function d(l){var h=l.type;var g=l.data[h];var j=l.currentTarget;var k=l.relatedTarget;var i=BAJL.Rollover.getInstance(j);var f=Boolean(i);if(f&&k){f=(function(m){return(!m)?true:(m==j)?false:arguments.callee(m.parentNode)})(k)}if(f&&g){g.call(i,j,l)}}};BAJL.Rollover.prototype.init=function(){var c=a(this.node);if(!c.BAJL_HasElement()){throw new ReferenceError("BAJL.Rollover#init: base element to rollover is not given.")}else{if(!BAJL.Rollover.getInstance(c)){var b="img, input:image";c.find(b).andSelf().filter(b).not(this.exclude).get().forEach(function(d){this.swappers.push(new BAJL.ImageSwapper(d,this.statusSet))},this);this.status=this.getDefaultStatus();c.toggleClass(this.cnamePrefix+this.status,Boolean(this.cnamePrefix)&&Boolean(this.status));BAJL.Rollover.storeInstance(this)}}};BAJL.Rollover.prototype.dispose=function(b){if(!b){BAJL.Rollover.disposeInstance(this)}else{a.each(this,BAJL.Delegate(function(c){delete this[c];if(typeof this[c]=="function"){this[c]=new Function}},this))}};BAJL.Rollover.prototype.getStatus=function(b){if(b&&typeof b=="boolean"){return this.swappers.map(function(c){return c.getStatus()})}else{return this.status}};BAJL.Rollover.prototype.getSwapperStatus=function(){return this.getStatus(true)};BAJL.Rollover.prototype.getDefaultStatus=function(c){var b=this.swappers.map(function(d){return d.getDefaultStatus()});return(c&&typeof c=="boolean")?b:(b[0]||"normal")};BAJL.Rollover.prototype.setStatus=function(b){this.swappers.forEach(function(d){d.setStatus(b)});var c=(b=="default")?this.getDefaultStatus():b;a(this.node).removeClass(this.cnamePrefix+this.status).toggleClass(this.cnamePrefix+c,this.cnamePrefix&&typeof this.statusSet[c]=="string");this.status=c;return this};BAJL.Rollover.prototype.setDefaultStatus=function(b){if(typeof b=="string"&&b){b=[b];while(b.length<this.swappers.length){b.push(b[0])}}if(a.isArray(b)){this.swappers.forEach(function(d,c){d.setDefaultStatus(b[c])})}return this};BAJL.ImageSwapper=function(c,b){this.node=a(c).get(0);this.statusSet=a.extend({},b);this.status="normal";this.defaultStatus="";this.images={};if(BAJL.env.isDOMReady){this.init()}};BAJL.ImageSwapper.instances=[];BAJL.ImageSwapper.prototype.init=function(){if(!a(this.node).is("img, input:image")){throw new TypeError('BAJL.ImageSwapper: first argument must be an img element or input[type="image"] element.')}else{var h=[];for(var g in this.statusSet){h.push(this.statusSet[g])}var e=new RegExp("("+h.join("|")+")$");var d=/\.(jpe?g|gif|png)$/i;var b=a(this.node).attr("src");var k=(d.test(b))?b.match(d)[0]:"";var c=b.replace(d,"");var f=(e.test(c))?c.match(e)[0]:"";var j=c.replace(e,"");if(k&&j){for(var g in this.statusSet){this.images[g]=BAJL.PreloadImage(j+this.statusSet[g]+k);if(this.statusSet[g]==f){this.defaultStatus=this.status=g}}}BAJL.ImageSwapper.instances.push(this);a(window).BAJL_AddBeforeUnload(BAJL.Delegate(function(){a(window).bind("pageshow",BAJL.Delegate(function(){this.setStatus("default")},this))},this))}};BAJL.ImageSwapper.prototype.getStatus=function(){return this.status};BAJL.ImageSwapper.prototype.getDefaultStatus=function(){return this.defaultStatus};BAJL.ImageSwapper.prototype.setStatus=function(b){if(b=="default"){b=this.defaultStatus}if(this.images[b]){this.status=b;a(this.node).attr("src",this.images[b].src);this.setStatus_AILoader(this.images[b].src)}return this};BAJL.ImageSwapper.prototype.setDefaultStatus=function(b){if(this.images[b]){this.defaultStatus=b}return this};BAJL.ImageSwapper.prototype.setStatus_AILoader=function(c){if(this.node.__BAJL_AILoader_Processed__&&c&&c.substr(c.length-4).toLowerCase()==".png"){var b=this.node.nextSibling;b.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+c+'", sizingMethod="scale")'}};BAJL.Rollover.Setting=function(){this.findAtOnce=false;this.exclude=".norollover";this.statusSet={normal:"",hover:"o"};this.handlers={mouseover:function(b){this.setStatus("hover")},mouseout:function(b){this.setStatus("default")}};this.cnamePrefix="pseudo-"};if(BAJL.settings.common.useBackCompat){BAJL.CreateBackCompat({BARollover:function(d,c,b){return new BAJL.Rollover(d,c,b?"."+b:"")},BAImageSwapper:BAJL.ImageSwapper,BARolloverSetupByClassName:function(){throw new ReferenceError("BARolloverSetupByClassName : this function is deleted")}})}})(jQuery);



/* ============================== bajl.scroller.js ============================== */
/*! 
 *    @fileoverview
 *       Smooth Scroller
 *
 *    @version 2.6.20110129
 *    @requires jquery.js
 *    @requires jquery.easing.js     (optional)
 *    @requires jquery.mousewheel.js (optional)
 *    @requires bajl.js
 */
(function(a){BAJL.settings.PageScroller={enabled:true,offsetX:0,offsetY:0,duration:1000,easing:"easeInOutCubic",ignore:"noSmoothScroll",onStart:function(b,d,c){},onScroll:function(b,d,c){},onAbort:function(b,d,c){},onComplete:function(b,e,d){var c=BAJL.ua;if(d&&(c.isGecko||c.isIE||(c.isWebkit&&c.version>522))){location.href=d.href}}};a(function(){if(BAJL.settings.PageScroller.enabled){BAJL.PageScroller.init()}else{delete BAJL.PageScroller}});BAJL.Scroller=function(c,b,f,d,e){this.node=a(c).get(0);this.offsetX=Number(b)||0;this.offsetY=Number(f)||0;this.duration=(Number(d)>=0)?Number(d):1000;this.easing=(a.easing[e])?e:"swing";this.destination={left:0,top:0};if(BAJL.env.isDOMReady){this.init()}};BAJL.Scroller.prototype=new BAJL.Observable;BAJL.Scroller.prototype.init=function(){if(!this.node||this.node.nodeType!=Node.ELEMENT_NODE){throw new ReferenceError("BAJL.Scroller.init: scrolling element is not found.")}else{var b=(a(this.node).is("html, body"))?a(document):a(this.node);this.destination={left:this.node.scrollLeft,top:this.node.scrollTop};if(!b.mousewheel){b.mousewheel=new Function}b.click(BAJL.Delegate(function(){this.abort()},this));b.mousewheel(BAJL.Delegate(function(){this.abort()},this))}};BAJL.Scroller.prototype.scrollTo=function(h,g,f){if(isNaN(h)||isNaN(g)){throw new TypeError("BAJL.Scroller.scrollTo: all arguments must be numbers.")}else{var i=1;var c=Math.max(0,this.node.scrollWidth-this.node.clientWidth);var b=Math.max(0,this.node.scrollHeight-this.node.clientHeight);f=(Number(f)>=0)?Number(f):this.duration;var e={scrollLeft:Math.min(c,Math.max(0,Math.round((h+this.offsetX)*i))),scrollTop:Math.min(b,Math.max(0,Math.round((g+this.offsetY)*i)))};var j={duration:f,easing:this.easing,step:BAJL.Delegate(this.step,this),complete:BAJL.Delegate(this.complete,this)};var d=(BAJL.ua.isWebkit&&a(this.node).is("html"))?a(document.body):a(this.node);if(d.scrollLeft()!=e.scrollLeft||d.scrollTop()!=e.scrollTop){this.destination={left:e.scrollLeft,top:e.scrollTop};this.abort();this.doCallbackByName("onStart");d.animate(e,j)}}return this};BAJL.Scroller.prototype.scrollBy=function(b,e,d){b=Number(b)||0;e=Number(e)||0;if(b!=0||e!=0){var c=(BAJL.ua.isWebkit&&a(this.node).is("html"))?a(document.body):a(this.node);this.scrollTo(c.scrollLeft()+b,c.scrollTop()+e,d)}return this};BAJL.Scroller.prototype.scrollToNode=function(f,g){var e=a(this.node);var c=a(f);if(c.parents().filter(function(){return(this==e.get(0))}).get(0)){var b=e.is("html, body")?{left:0,top:0}:e.offset();var d=e.is("html, body")?{left:0,top:0}:{left:e.scrollLeft(),top:e.scrollTop()};var h=c.offset();this.scrollTo(h.left+d.left-b.left+(BAJL.ua.isWebkit?4:0),h.top+d.top-b.top,g)}return this};BAJL.Scroller.prototype.step=function(){this.doCallbackByName("onScroll")};BAJL.Scroller.prototype.complete=function(){var b=(BAJL.ua.isWebkit&&a(this.node).is("html"))?a(document.body):a(this.node);if(b.is(":animated")){this.doCallbackByName("onComplete")}};BAJL.Scroller.prototype.abort=function(){var b=(BAJL.ua.isWebkit&&a(this.node).is("html"))?a(document.body):a(this.node);if(b.is(":animated")){b.stop();this.doCallbackByName("onAbort")}return this};BAJL.Scroller.prototype.doCallbackByName=function(b){this.doCallback(b,this.node.scrollLeft,this.node.scrollTop,this.destination.left,this.destination.top)};BAJL.PageScroller={};BAJL.PageScroller.init=function(){if(BAJL.AlreadyApplied(arguments.callee)){return}var d=BAJL.settings.PageScroller;var c=BAJL.ua.isQuirksMode?document.body:document.documentElement;var b=new BAJL.Scroller(c,d.offsetX,d.offsetY,d.duration,d.easing);var f=null;a(document).click(function(i){var h=a(i.target).closest("a, area").filter(function(){var k=a(this).hasClass(d.ignore);var j=a(this).attr("target");return(!k&&(!j||j=="_self"))});var g=h.BAJL_LinkTarget();if(g.size()!=0){i.preventDefault();i.stopPropagation();h.blur();b.scrollToNode(g);f=h.get(0)}});var e=function(h,g){return function(i,j){if(typeof h=="function"){h(i,j,f)}if(g){f=null}}};b.addCallback("onStart",e(d.onStart,false));b.addCallback("onScroll",e(d.onScroll,false));b.addCallback("onAbort",e(d.onAbort,true));b.addCallback("onComplete",e(d.onComplete,true));return(BAJL.PageScroller=b)};if(BAJL.settings.common.useBackCompat){BAJL.CreateBackCompat({BA_SMOOTHSCROLL_AS:BAJL.PageScroller,BASmoothScroll:function(b,f,e,c,d){return BAJL.PageScroller},BASmoothScrollField:function(e,b,g,f,c,d){return new BAJL.Scroller(e,b,g,f)}})}})(jQuery);



/* ============================== bajl.inputPrompt.js ============================== */
/*!
 *    @fileoverview
 *       create text-input with prompt text.
 *
 *    @version 2.3.20101005.nextia-static-20110912
 *    @requires jquery.js
 *    @requires bajl.js
 */
(function(a){BAJL.settings.InputPrompt={fromAttr:"placeholder",className:{applied:"bajl-inputprompt",changed:"bajl-inputprompt-changed",focused:"bajl-inputprompt-focus"},autoSetup:{enabled:true,targets:"input:text, input:password, textarea"}};a(function(){var b=BAJL.settings.InputPrompt.autoSetup;if(b.enabled){a(b.targets).BAJL_InputPrompt()}});jQuery.fn.BAJL_InputPrompt=function(b){return this.filter(function(){return BAJL.InputPrompt.isValidNode(this)}).each(function(){new BAJL.InputPrompt(this,b)})};BAJL.InputPrompt=function(c,b){this.$node=a(c).eq(0);this.promptText=b;this.changed=false;if(BAJL.env.isDOMReady){this.init()}};BAJL.InputPrompt.instances=[];BAJL.InputPrompt.storeInstance=function(b){if(!b||!(b instanceof BAJL.InputPrompt)){throw new TypeError("BAJL.InputPrompt.storeInstance: first argument must be an instance of BAJ.InputPrompt")}else{b.$node.data("BAJL.InputPrompt.InstanceID",this.instances.push(b)-1)}};BAJL.InputPrompt.getInstance=function(b){if(typeof b=="number"){return this.instances[b]}else{if(b&&(b.nodeType==Node.ELEMENT_NODE||typeof b.jquery=="string"||typeof b=="string")){return this.instances[a(b).data("BAJL.InputPrompt.InstanceID")]}else{throw new TypeError("BAJL.InputPrompt.getInstance: first argument must be an ID number, element node, jQuery object, or jQuery selector text.")}}};BAJL.InputPrompt.disposeInstance=function(b){if(!b||!(b instanceof BAJL.InputPrompt)){throw new TypeError("BAJL.InputPrompt.disposeInstance: first argument must be an instance of BAJ.InputPrompt")}else{if(b.$node){BAJL.InputPrompt.instances.splice(b.$node.data("BAJL.InputPrompt.InstanceID"),1,undefined);b.dispose(true)}}};BAJL.InputPrompt.isValidNode=function(b){return a(b).eq(0).is("input:text, input:password, textarea")};BAJL.InputPrompt.prototype.init=function(){if(!this.$node.BAJL_HasElement()){throw new ReferenceError("BAJL.InputPrompt.init: processing target element is not given.")}else{if(!BAJL.InputPrompt.isValidNode(this.$node)){throw new TypeError("BAJL.InputPrompt.init: processing target element is not acceptable.")}else{if(!BAJL.InputPrompt.getInstance(this.$node)){var c=BAJL.settings.InputPrompt;this.$node.addClass(c.className.applied);this.$node.closest("form").submit(BAJL.Delegate(this.clearPrompt,this));if(typeof this.promptText!="string"){var b=c.fromAttr;if(!b){this.setPrompt("")}else{this.setPrompt(this.$node.attr(b));this.$node.attr(b,"")}}var d=new BAJL.Interval(this.fillPrompt,500,this);if(!BAJL.ua.isIE||!this.$node.is(":password")){new BAJL.Timeout(function(){d.clear()},5000);this.$node.focus(function(){d.clear()})}this.$node.focus(BAJL.Delegate(this.onFocus,this));this.$node.blur(BAJL.Delegate(this.onBlur,this));BAJL.InputPrompt.storeInstance(this)}}}};BAJL.InputPrompt.prototype.dispose=function(b){if(!b){BAJL.InputPrompt.disposeInstance(this)}a.each(this,BAJL.Delegate(function(c){delete this[c];if(typeof this[c]=="function"){this[c]=new Function}},this))};BAJL.InputPrompt.prototype.isChanged=function(){return this.changed};BAJL.InputPrompt.prototype.getPrompt=function(){return this.promptText};BAJL.InputPrompt.prototype.setPrompt=function(b){if(typeof b!="string"){throw new TypeError("BAJL.InputPrompt.setPrompt: first argument must be a string.")}else{this.promptText=b;this.fillPrompt()}return this};BAJL.InputPrompt.prototype.getText=function(){return this.$node.val().replace(this.getPrompt(),"")};BAJL.InputPrompt.prototype.setText=function(b){if(typeof b!="string"){throw new TypeError("BAJL.InputPrompt.setText: first argument must be a string.")}else{this.$node.val(b);this.fillPrompt();return this}};BAJL.InputPrompt.prototype.fillPrompt=function(){var b=this.$node.val();if(b&&b!=this.promptText){this.changed=true}else{this.changed=false;this.$node.val(this.promptText)}this.$node.toggleClass(BAJL.settings.InputPrompt.className.changed,this.changed);return this};BAJL.InputPrompt.prototype.clearPrompt=function(){if(this.$node.val()==this.promptText){this.$node.val("")}};BAJL.InputPrompt.prototype.onFocus=function(){var b=this.$node.get(0);if(!b.readOnly&&!b.disabled){this.$node.addClass(BAJL.settings.InputPrompt.className.focused);this.clearPrompt()}};BAJL.InputPrompt.prototype.onBlur=function(){var b=this.$node.get(0);if(!b.readOnly&&!b.disabled){this.$node.removeClass(BAJL.settings.InputPrompt.className.focused);this.fillPrompt()}};if(BAJL.settings.common.useBackCompat){BAJL.CreateBackCompat({BAInteractiveTextField:BAJL.InputPrompt,"BAInteractiveTextField.nodeValidate":BAJL.InputPrompt.isValidNode,"BAInteractiveTextField.prototype.getValue":BAJL.InputPrompt.prototype.getText,"BAInteractiveTextField.prototype.setValue":BAJL.InputPrompt.prototype.setText,"BAInteractiveTextField.prototype.getInfoText":BAJL.InputPrompt.prototype.getPrompt,"BAInteractiveTextField.prototype.fillInfoText":BAJL.InputPrompt.prototype.fillPrompt,"BAInteractiveTextField.prototype.prepopulateInfoText":BAJL.InputPrompt.prototype.fillPrompt,"BAInteractiveTextField.prototype.removeInfoText":BAJL.InputPrompt.prototype.clearPrompt,"BAInteractiveTextField.prototype.addEventHandlers":function(b){if(typeof b!="object"||!b){b={}}for(var c in b){this.node.bind(c,BAJL.Delegate(function(g){var d=g.type;var f=g.currentTarget;b[d].call(this,f)},this))}},BAGetInteractiveTextField:function(b){return BAJL.InputPrompt.getInstance(b)},BAInteractiveTextFieldSetup:function(d,b){try{var e;(e=new BAJL.InputPrompt(d)).addEventHandlers(b);return e}catch(c){return null}}})}})(jQuery);



/* ============================== bajl.fontSizeObserver.js ============================== */
/*!
 *    @fileoverview
 *       observe changing font size.
 *
 *    @version 2.1.20100529
 *    @requires jquery.js
 *    @requires bajl.js
 */
(function(a){BAJL.FontSizeObserver=function(){this.$node=a();this.currentSize=0;this.timer=null;this.interval=500;if(BAJL.env.isDOMReady){this.init()}};BAJL.FontSizeObserver.prototype=new BAJL.Observable;BAJL.FontSizeObserver.prototype.init=function(){var d="bajl-fontsize-observer-probe";var c={position:"absolute",left:"-10000px",top:"-10000px",display:"block",visibility:"hidden",border:"none",margin:"0",padding:"0",font:"normal normal normal 100%/1 inherit",lineHeight:"1",textDecoration:"none"};var b=a("#"+d);if(!b.get(0)){b=a(document.createElement("ins")).attr("id",d).css(c).text("M").appendTo(document.body)}this.$node=b;this.startObserve()};BAJL.FontSizeObserver.prototype.getSize=function(){return this.$node.height()};BAJL.FontSizeObserver.prototype.startObserve=function(){if(!this.timer){this.currentSize=this.getSize();this.timer=new BAJL.Interval(this.observe,this.interval,this)}return this};BAJL.FontSizeObserver.prototype.stopObserve=function(){if(this.timer){this.timer.clear();this.timer=null}return this};BAJL.FontSizeObserver.prototype.observe=function(){var b=this.getSize();var c=b-this.currentSize;if(c!=0){this.doCallback("onChange",b,c)}this.currentSize=b};if(BAJL.settings.common.useBackCompat){BAJL.CreateBackCompat({BAFontSizeObserver:BAJL.FontSizeObserver})}})(jQuery);



/* ============================== bajl.crossfader.js ============================== */
/*!
 *    @fileoverview
 *       privides crossfade transition
 *
 *    @version 2.3.20110531.nextia-static-20110922
 *    @requires jquery.js
 *    @requires bajl.js
 *    @requires bajl.fontSizeObserver.js  (optional)
 */
(function(a){BAJL.settings.Crossfader={autoSetup:{enabled:true},presets:{"div.bajl-crossfader":{autoStart:true,interval:8000,duration:1000,group:".bajl-crossfader-group",units:".bajl-crossfader-unit",prevBtn:".bajl-crossfader-prev-btn a",nextBtn:".bajl-crossfader-next-btn a",selectBtn:".bajl-crossfader-select-btn a"}},className:{enabled:"bajl-crossfader-enabled",discarded:"bajl-crossfader-discarded",selected:"bajl-slidecanvas-selected-unit"},buttons:{className:{disabled:"bajl-pseudo-disabled",selected:"bajl-pseudo-selected"}}};BAJL.WatchFor("BAJL.settings.Crossfader",function(b){var c=BAJL.StyleSheets();if(b.autoSetup.enabled){a.each(b.presets,function(e,d){c.insertRule(e+"{ visibility : hidden }")})}});a(function(){var b=BAJL.settings.Crossfader;if(b.autoSetup.enabled){a.each(b.presets,function(d,c){a(d).BAJL_Crossfader(c)})}});jQuery.fn.BAJL_Crossfader=function(b){return this.each(function(){new BAJL.Crossfader(this,b)})};BAJL.Crossfader=function(c,b){if(!BAJL.env.isDOMReady){return}b=a.extend(new BAJL.Crossfader.Setting,b);this.$node=a(c);this.$group=this.$node.find(b.group);this.$units=this.$node.find(b.units);this.$selectBtn=this.$node.find(b.selectBtn);this.$prevBtn=this.$node.find(b.prevBtn);this.$nextBtn=this.$node.find(b.nextBtn);this.index=-1;this.order=this.$units.get();this.duration=b.duration;this.interval=this.duration+b.interval;this.init();if(b.autoStart){this.start("immediate")}};BAJL.Crossfader.prototype=new BAJL.Observable;BAJL.Crossfader.instances=[];BAJL.Crossfader.storeInstance=function(b){if(!b||!(b instanceof BAJL.Crossfader)){throw new TypeError("BAJL.Crossfader.storeInstance: first argument must be an instance of BAJL.Crossfader")}else{a(b.$node).data("BAJL.Crossfader.InstanceID",this.instances.push(b)-1)}};BAJL.Crossfader.getInstance=function(b){if(typeof b=="number"){return this.instances[b]}else{if(b&&(b.nodeType==Node.ELEMENT_NODE||typeof b.jquery=="string"||typeof b=="string")){return this.instances[a(b).data("BAJL.Crossfader.InstanceID")]}else{throw new TypeError("BAJL.Crossfader.getInstance: first argument must be an ID number, element node, jQuery object, or jQuery selector text.")}}};BAJL.Crossfader.disposeInstance=function(b){if(!b||!(b instanceof BAJL.Crossfader)){throw new TypeError("BAJL.Crossfader.disposeInstance: first argument must be an instance of BAJL.Crossfader")}else{if(b.$node){BAJL.Crossfader.instances.splice(b.$node.data("BAJL.Crossfader.InstanceID"),1,undefined);b.dispose(true)}}};BAJL.Crossfader.prototype.init=function(){new BAJL.Timeout(function(){this.$node.css("visibility","visible")},1,this);var b=BAJL.settings.Crossfader.className;var c=BAJL.settings.Crossfader.buttons.className;switch(this.$units.size()){case 0:break;case 1:this.index=0;this.$node.addClass(b.enabled).addClass(b.discarded);break;default:this.$node.addClass(b.enabled);this.$units.hide();if(BAJL.FontSizeObserver){BAJL.Singleton(BAJL.FontSizeObserver).addCallback("onChange",this.flatHeights,this)}this.$prevBtn.click(BAJL.Delegate(function(d){d.preventDefault();d.currentTarget.blur();if(!this.$prevBtn.hasClass(c.disabled)){this.prev()}},this));this.$nextBtn.click(BAJL.Delegate(function(d){d.preventDefault();d.currentTarget.blur();if(!this.$nextBtn.hasClass(c.disabled)){this.next()}},this));this.$selectBtn.each(function(d){a(this).data("BAJL.Crossfader.Button",d)}).click(BAJL.Delegate(function(d){d.preventDefault();this.select(a(d.currentTarget).blur().data("BAJL.Crossfader.Button"))},this));this.flatHeights(0);break}BAJL.Crossfader.storeInstance(this)};BAJL.Crossfader.prototype.dispose=function(b){if(!b){BAJL.Crossfader.disposeInstance(this)}else{a.each(this,BAJL.Delegate(function(c){delete this[c];if(typeof this[c]=="function"){this[c]=new Function}},this))}};BAJL.Crossfader.prototype.start=function(b){if(!this.timer){this.stop().startTimer();if(b===true||b==="immediate"){this.next()}}return this};BAJL.Crossfader.prototype.startTimer=function(){this.timer=new BAJL.Interval(this.next,this.interval,this);return this};BAJL.Crossfader.prototype.stop=function(){if(this.timer){this.timer.clear();this.timer=null}return this};BAJL.Crossfader.prototype.select=function(b){var e=Boolean(this.timer);var c=BAJL.settings.Crossfader.buttons.className;var b=Math.max(b,-1)||0;var d=this.$units.get(b);if(b==-1||b!=this.index){this.stop();this.$selectBtn.removeClass(c.selected).eq(b).toggleClass(c.selected,b!=-1);this.$prevBtn.toggleClass(c.disabled,b==0);this.$nextBtn.toggleClass(c.disabled,b==this.$units.size()-1);if(b==-1){a(this.order[0]).stop().show().fadeTo(this.duration,0,function(){a(this).hide()})}else{this.order.unshift(this.order.splice(this.order.indexOf(d),1)[0]);this.order.reverse().forEach(function(g,f){a(g).css("z-index",f+1)});this.order.reverse();a(this.order[0]).stop(false,true).hide().fadeTo(this.duration,1);if(this.index!=-1){a(this.order[1]).stop(false,true).show().fadeTo(this.duration,0,function(){a(this).hide()})}}this.index=b;if(e){this.startTimer()}this.doCallback("onSelect",b)}return this};BAJL.Crossfader.prototype.unselect=function(b){return this.select(-1)};BAJL.Crossfader.prototype.prev=function(){var b=this.index-1;if(b<0){b=this.$units.size()-1}this.select(b);return this};BAJL.Crossfader.prototype.next=function(){var b=this.index+1;if(!this.$units.get(b)){b=0}this.select(b);return this};BAJL.Crossfader.prototype.flatHeights=function(e){e=(e>=0)?e:500;var b=this.$group;var d=b.height();var c=this.$units.map(function(){return a(this).height()}).sort(function(h,g){return h<g})[0];var f=BAJL.Delegate(function(){this.$node.hide().show()},this);b.height(d).stop().animate({height:c},e,"swing",f);return this};BAJL.Crossfader.Setting=function(){this.group="div.bajl-crossfader-group";this.units="div.bajl-crossfader-unit";this.buttons="ul.bajl-crossfader-btns a";this.autoStart=true;this.duration=1000;this.interval=5000}})(jQuery);



/* ============================== bajl.tabView.js ============================== */
/*!
 *    @fileoverview
 *       tab view interface.
 *
 *    @version 2.3.20110531.nextia-static-20110922
 *    @requires jquery.js
 *    @requires bajl.js
 *    @requires bajl.fontSizeObserver.js  (optional)
 *    @requires bajl.rollover.js          (when using tab image rollover)
 *    @requires bajl.tabView.css
 */
(function(a){BAJL.settings.TabView={autoSetup:{enabled:true},presets:{"div.bajl-tabview":{tabs:"ul.bajl-tabview-tabs",tab:"li.bajl-tabview-tab",pane:"div.bajl-tabview-pane",fixedHeight:false,changeHash:false,effect:{enabled:true,duration:250,easing:"swing"},rollover:{findAtOnce:true,exclude:".norollover",statusSet:{normal:"",stay:"_s",hover:"_o"},handlers:{mouseover:function(c,b){this.setStatus(this.getStatus()=="stay"?"stay":"hover")},mouseout:function(c,b){this.setStatus(this.getStatus()=="stay"?"stay":"normal")}}}}},className:{enabled:"bajl-tabview-enabled",discarded:"bajl-tabview-discarded",selectedTab:"bajl-tabview-tab-selected",selectedPane:"bajl-tabview-pane-selected"}};BAJL.WatchFor("BAJL.settings.TabView",function(b){var c=BAJL.StyleSheets();if(b.autoSetup.enabled){a.each(b.presets,function(e,d){c.insertRule(e+"{ display : none }")})}});a(function(){var b=BAJL.settings.TabView;if(b.autoSetup.enabled){a.each(b.presets,function(e,d){a(e).css("display","block").BAJL_TabView(d)});var c=location.hash.split("#")[1]||"";BAJL.TabView.instances.forEach(function(d){if(d.has(c)){d.select(c,"noEffect");new BAJL.Timeout(function(){d.scrollIntoView()},500)}})}});jQuery.fn.BAJL_TabView=function(b){return this.each(function(){new BAJL.TabView(this,b)})};BAJL.TabView=function(c,b){this.$node=a(c).eq(0);this.setting=a.extend(new BAJL.TabView.Setting,b);this.pages=[];this.currentPage=null;this.preventFH=false;if(BAJL.env.isDOMReady){this.init()}};BAJL.TabView.prototype=new BAJL.Observable;BAJL.TabView.instances=[];BAJL.TabView.storeInstance=function(b){if(!b||!(b instanceof BAJL.TabView)){throw new TypeError("BAJL.TabView.storeInstance: first argument must be an instance of BAJL.TabView")}else{a(b.$node).data("BAJL.TabView.InstanceID",this.instances.push(b)-1)}};BAJL.TabView.getInstance=function(b){if(typeof b=="number"){return this.instances[b]}else{if(b&&(b.nodeType==Node.ELEMENT_NODE||typeof b.jquery=="string"||typeof b=="string")){return this.instances[a(b).data("BAJL.TabView.InstanceID")]}else{throw new TypeError("BAJL.TabView.getInstance: first argument must be an ID number, element node, jQuery object, or jQuery selector text.")}}};BAJL.TabView.prototype.init=function(){if(this.$node.size()==0){throw new ReferenceError("BAJL.TabView#init: base element node is not specified.")}else{if(!BAJL.TabView.getInstance(this.$node)){this.$node.addClass(BAJL.settings.TabView.className.enabled);var b=this.setting.changeHash;this.setting.changeHash=false;var d=this.setting.fixedHeight;this.setting.fixedHeight=false;var c=this.setting.effect.enabled;this.setting.effect.enabled=false;this.$node.children(this.setting.tabs).find(this.setting.tab).get().forEach(function(e){this.add(new BAJL.TabView.Page(e,this.setting.rollover))},this);if(BAJL.FontSizeObserver){BAJL.Singleton(BAJL.FontSizeObserver).addCallback("onChange",this.flatHeights,this)}this.__onWindowResize__=function(){this.flatHeights()};a(window).resize(BAJL.BarrageShield(this.__onWindowResize__,250,this));this.select(this.pages.filter(function(e){return e.selected}).pop()||0);this.setting.changeHash=b;this.setting.fixedHeight=d;this.setting.effect.enabled=c;this.flatHeights();BAJL.TabView.storeInstance(this)}}};BAJL.TabView.prototype.add=function(b){if(b instanceof BAJL.TabView.Page&&!this.has(b)){this.pages.push(b);this.flatHeights();b.addCallback("onSelectRequested",this.select,this)}if(this.pages.length==1){this.$node.addClass(BAJL.settings.TabView.className.discarded)}else{this.$node.removeClass(BAJL.settings.TabView.className.discarded)}return this};BAJL.TabView.prototype.get=function(b){switch(typeof b){case"string":return this.pages.filter(function(c){return(c.getId()==b)}).shift();case"number":return this.pages[b];default:return(this.pages.indexOf(b)!=-1)?b:undefined}};BAJL.TabView.prototype.getCurrentPage=function(){return this.currentPage};BAJL.TabView.prototype.getAllPages=function(){return a.makeArray(this.pages)};BAJL.TabView.prototype.has=function(b){return Boolean(this.get(b))};BAJL.TabView.prototype.select=function(e,b){var e=this.get(e);if(e&&e!=this.currentPage){var g=this.currentPage?this.currentPage.unselect().getHeight():-1;(this.currentPage=e).select();if(this.setting.changeHash){var f=e.getId();e.setId("");window.location.hash="#"+f;e.setId(f)}var c=this.setting.fixedHeight;var d=this.setting.effect;if(b!="noEffect"&&!c&&d.enabled&&g>=0){e.setHeight(g).setHeight("auto",d.duration,d.easing,function(){e.setHeight("auto")})}this.doCallback("onSelect",this.currentPage)}return this};BAJL.TabView.prototype.flatHeights=function(d){if(!this.preventFH&&(this.setting.fixedHeight||d&&typeof d=="boolean")){this.setting.fixedHeight=true;this.preventFH=true;new BAJL.Timeout(function(){this.preventFH=false},500,this);b.call(this,"auto");b.call(this,c.call(this))}return this;function b(e){this.pages.forEach(function(f){f.setHeight(e)})}function c(){return this.pages.map(function(e){return e.getHeight()}).sort(function(f,e){return f-e}).pop()||0}};BAJL.TabView.prototype.scrollIntoView=function(){this.$node.get(0).scrollIntoView(true)};BAJL.TabView.Page=function(c,b){this.id="";this.$tab=a(c).eq(0);this.$pane=a();this.$anchor=a();this.rollover=null;this.selected=false;if(BAJL.env.isDOMReady){this.init();this.rolloverSetup(b)}};BAJL.TabView.Page.prototype=new BAJL.Observable;BAJL.TabView.Page.prototype.init=function(){this.$anchor=this.$tab.find("a").andSelf().filter("a").eq(0);this.$pane=this.$anchor.BAJL_LinkTarget();if(this.$pane.size()==1){this.id=this.$pane.attr("id");this.selected=this.$tab.hasClass(BAJL.settings.TabView.className.selectedTab);this.$anchor.click(BAJL.Delegate(function(b){b.preventDefault();if(!this.selected){this.doCallback("onSelectRequested",this)}if(BAJL.PageScroller){BAJL.PageScroller.abort();this.$anchor.focus()}},this));if(BAJL.PageScroller){this.$anchor.addClass(BAJL.GetValue("BAJL.settings.PageScroller.ignore"))}}this.$anchor.css("outline","none").attr("hideFocus",true);return this};BAJL.TabView.Page.prototype.rolloverSetup=function(b){if(BAJL.Rollover&&this.$anchor.find("img").size()){BAJL.Rollover.setup(this.$anchor,b);this.rollover=BAJL.Rollover.getInstance(this.$anchor)}return this};BAJL.TabView.Page.prototype.getId=function(){return this.id};BAJL.TabView.Page.prototype.setId=function(b){if(typeof b!="string"){throw new TypeError("BAJL.TabView.Page.setId: first argument must be a string.")}else{this.$pane.attr("id",this.id=b);return this}};BAJL.TabView.Page.prototype.getHeight=function(){var c=BAJL.settings.TabView.className.selectedPane;var b=this.$pane.addClass(c).outerHeight();if(!this.selected){this.$pane.removeClass(c)}return b};BAJL.TabView.Page.prototype.setHeight=function(b,c,f,e){var d=this.getHeight();if(typeof b!="number"){b=this.$pane.height("auto").height()}else{this.$pane.stop().height(b=Math.max(0,b)||0).height(b=Math.max(b*2-this.getHeight(),0))}if(this.selected&&c>=0){this.setHeight(d);this.$pane.animate({height:b},c,(f&&a.easing[f])?f:"swing",function(){this.style.display="";if(a.isFunction(e)){e()}})}return this};BAJL.TabView.Page.prototype.select=function(){this.selected=true;this.$tab.addClass(BAJL.settings.TabView.className.selectedTab);this.$pane.addClass(BAJL.settings.TabView.className.selectedPane);if(this.rollover){this.rollover.setStatus("stay")}return this};BAJL.TabView.Page.prototype.unselect=function(){this.selected=false;this.$tab.removeClass(BAJL.settings.TabView.className.selectedTab);this.$pane.removeClass(BAJL.settings.TabView.className.selectedPane);if(this.rollover){this.rollover.setStatus("normal")}return this};BAJL.TabView.Setting=function(){this.tabs="ul.bajl-tabview-tabs";this.tab="li.bajl-tabview-tab";this.pane="div.bajl-tabView-pane";this.fixedHeight=false;this.changeHash=true;this.effect={enabled:true,duration:250,easing:"swing"};this.rollover=(BAJL.Rollover)?new BAJL.Rollover.Setting:null}})(jQuery);



/* ============================== bajl.flatHeights.js ============================== */
/*! 
 *    @fileoverview
 *       flatten heights of the element nodes.
 *
 *    @version 1.6.20110208
 *    @requires jquery.js
 *    @requires bajl.js
 *    @requires bajl.fontSizeObserver.js (optional)
 */
(function(a){BAJL.settings.FlatHeights={className:{enabled:"bajl-flatheights-target"}};jQuery.fn.BAJL_FlatHeights=function(b){var b=(b>0)?b:this.size();var c=this.get();while(c.length){new BAJL.FlatHeights(c.splice(0,b))}return this};BAJL.FlatHeights=function(b){this.$node=a(b);this.height=0;if(BAJL.env.isDOMReady){this.init()}};BAJL.FlatHeights.instances=[];BAJL.FlatHeights.storeInstance=function(b){if(!b||!(b instanceof BAJL.FlatHeights)){throw new TypeError("BAJL.FlatHeights.storeInstance: first argument must be an instance of BAJL.FlatHeights")}else{a(b.$node).data("BAJL.FlatHeights.InstanceID",this.instances.push(b)-1)}};BAJL.FlatHeights.getInstance=function(b){if(typeof b=="number"){return this.instances[b]}else{if(b&&(b.nodeType==Node.ELEMENT_NODE||typeof b.jquery=="string"||typeof b=="string")){return this.instances[a(b).data("BAJL.FlatHeights.InstanceID")]}else{throw new TypeError("BAJL.FlatHeights.getInstance: first argument must be an ID number, element node, jQuery object, or jQuery selector text.")}}};BAJL.FlatHeights.processAll=function(){this.instances.forEach(function(b){b.process()})};BAJL.FlatHeights.prototype.init=function(){this.$node.addClass(BAJL.settings.FlatHeights.className.enabled);this.process();BAJL.FlatHeights.storeInstance(this);if(BAJL.FontSizeObserver){BAJL.Singleton(BAJL.FontSizeObserver).addCallback("onChange",this.process,this)}var b=0;var c=new BAJL.Interval(function(){this.process();if(b==this.height){c.clear()}else{b=this.height}},100,this);new BAJL.Timeout(c.clear,1000,c)};BAJL.FlatHeights.prototype.process=function(){this.setHeight(this.getHeight(true));return this};BAJL.FlatHeights.prototype.getHeight=function(b){if(!b){return this.height}else{return this.$node.css("height","auto").map(function(){return this.offsetHeight}).sort(function(d,c){return c-d}).get(0)||0}};BAJL.FlatHeights.prototype.setHeight=function(b){b=Math.max(b,0)||0;this.$node.each(function(){var d=a(this).css("height",(b==0)?"auto":b+"px");var e=d.outerHeight();var c=2*b-e;if(e!=b&&c>=0){d.css("height",c+"px")}});this.height=b;return this}})(jQuery);



/* ============================== bajl.balloon.js ============================== */
/*!
 *    @fileoverview
 *       Balloon (Floating Layer) Controls.
 *
 *    @version 2.4.20110204
 *    @requires jquery.js
 *    @requires bajl.js
 *    @requires bajl.balloon.css
 */
(function(a){BAJL.settings.Balloon={className:"bajl-balloon"};BAJL.Balloon=function(b){this.node=null;this.contentBody=null;this.active=false;this.isPosFixed=false;this.posX=0;this.posY=0;this.offsetX=0;this.offsetY=0;this.posReviseX=false;this.posReviseY=false;this.ignoreX=false;this.ignoreY=false;this.activedCName="";if(BAJL.env.isDOMReady){this.init(b)}};BAJL.Balloon.prototype=new BAJL.Observable;BAJL.Balloon.instances=[];BAJL.Balloon.storeInstance=function(b){if(!b||!(b instanceof BAJL.Balloon)){throw new TypeError("BAJL.Balloon.storeInstance: first argument must be an instance of BAJ.Balloon")}else{a(b.node).data("BAJL.Balloon.InstanceID",this.instances.push(b)-1)}};BAJL.Balloon.getInstance=function(b){if(typeof b=="number"){return this.instances[b]}else{if(b&&(b.nodeType==Node.ELEMENT_NODE||typeof b.jquery=="string"||typeof b=="string")){return this.instances[a(b).data("BAJL.Balloon.InstanceID")]}else{throw new TypeError("BAJL.Balloon.getInstance: first argument must be an ID number, element node, jQuery object, or jQuery selector text.")}}};BAJL.Balloon.disposeInstance=function(b){if(!b||!(b instanceof BAJL.Balloon)){throw new TypeError("BAJL.Balloon.disposeInstance: first argument must be an instance of BAJ.Balloon")}else{if(b.node){BAJL.Balloon.instances.splice(a(b.node).data("BAJL.Balloon.InstanceID"),1,undefined);b.dispose(true)}}};BAJL.Balloon.prototype.init=function(b){this.node=a(document.createElement("ins")).addClass(BAJL.settings.Balloon.className).get(0);this.hide();if(typeof b=="object"&&b){this.addClass(b.className);this.setId(b.id);this.applyTemplate(b.template,b.cbodyExpr);this.setContent(b.content);this.appendTo(b.appendTo||document.body);this.setOffset(b.offsetX,b.offsetY);this.setPosRevise(b.posReviseX,b.posReviseY);this.moveTo(b.posX,b.posY);this.moveToCenter(b.ignoreX,b.ignoreY);this.activedCName=b.activedCName||""}else{this.appendTo(document.body);this.applyTemplate()}BAJL.Balloon.storeInstance(this)};BAJL.Balloon.prototype.dispose=function(b){if(!b){BAJL.Balloon.disposeInstance(this)}};BAJL.Balloon.prototype.isActive=function(){return this.active};BAJL.Balloon.prototype.appendTo=function(b){if(a(b).eq(0).BAJL_HasElement()){a(this.node).appendTo(b);this.moveTo(0,0);this.moveToCenter()}return this};BAJL.Balloon.prototype.addClass=function(b){if(typeof b=="string"){a(this.node).addClass(b)}return this};BAJL.Balloon.prototype.removeClass=function(b){if(typeof b=="string"){a(this.node).removeClass(b)}return this};BAJL.Balloon.prototype.setId=function(b){if(typeof b=="string"){a(this.node).attr("id",b)}return this};BAJL.Balloon.prototype.setOffset=function(b,c){if(typeof b=="number"){this.offsetX=b}if(typeof c=="number"){this.offsetY=c}this.moveTo();return this};BAJL.Balloon.prototype.setPosRevise=function(b,c){if(typeof b=="boolean"){this.posReviseX=b}if(typeof c=="boolean"){this.posReviseY=c}this.moveTo();return this};BAJL.Balloon.prototype.setPositionFixed=function(d,c,b){this.isPosFixed=true;return this};BAJL.Balloon.prototype.applyTemplate=function(b,d){var c=this.getContent();if(b===undefined||b===null){this.contentBody=a(this.node).empty().append(c).get(0)}else{if(!d||typeof d!="string"){throw new TypeError('BAJL.Balloon.applyTemplate: "cbodyExpr" argument is required, the argument must be a string.')}else{if(!a("<ins></ins>").append(b).find(d).BAJL_HasElement()){throw new ReferenceError("BAJL.Balloon.applyTemplate: content body element node is not found in the template.")}else{this.contentBody=a(this.node).empty().append(b).find(d).append(c).get(0)}}}return this};BAJL.Balloon.prototype.getContent=function(){return(this.contentBody)?a(this.contentBody).contents().get():[]};BAJL.Balloon.prototype.setContent=function(b){return this.clearContent(Boolean(b)).addContent(b)};BAJL.Balloon.prototype.addContent=function(b){var c=this.getGeometry();a(this.contentBody).append(b);var d=this.getGeometry();if(c.width!=d.width||c.height!=d.height){this.doCallbackByName("onResize");this.moveTo()}this.doCallbackByName("onContentChange");return this};BAJL.Balloon.prototype.clearContent=function(b){var c=this.hasContent();a(this.contentBody).empty();if(!b&&c){this.doCallbackByName("onContentChange")}return this};BAJL.Balloon.prototype.hasContent=function(){return(this.getContent().length>0)};BAJL.Balloon.prototype.getGeometry=function(){return{posX:this.posX,posY:this.posY,offsetX:this.offsetX,offsetY:this.offsetY,width:this.node.offsetWidth,height:this.node.offsetHeight}};BAJL.Balloon.prototype.show=function(b,c){a(document.body).addClass(this.activedCName);this.moveTo(b,c);a(this.node).css({visibility:"visible",display:"block"});if(!this.active){this.active=true;this.doCallbackByName("onShow")}return this};BAJL.Balloon.prototype.resizeTo=function(f,b){if(typeof f!="number"){f=-1}if(typeof b!="number"){b=-1}if(f>=0){this.node.style.width=(f==0)?"auto":f+"px"}if(b>=0){this.node.style.height=(b==0)?"auto":b+"px"}var e=this.node.offsetWidth;var c=this.node.offsetHeight;var g=(f>=0)?2*f-e:-1;var d=(b>=0)?2*b-c:-1;if(e!=f&&g>=0){this.node.style.width=g+"px"}if(c!=b&&d>=0){this.node.style.height=d+"px"}this.doCallbackByName("onResize");this.moveTo();return this};BAJL.Balloon.prototype.moveBy=function(b,c){b=(typeof b=="number")?b:0;c=(typeof c=="number")?c:0;this.moveTo(this.posX+b,this.posY+c);return this};BAJL.Balloon.prototype.moveTo=function(b,e){var d=this.posX;var c=this.posY;if(typeof b=="number"){this.posX=b}if(typeof e=="number"){this.posY=e}this.revisePosition();this.node.style.left=(this.posX+this.offsetX)+"px";this.node.style.top=(this.posY+this.offsetY)+"px";if(d!=this.posX||c!=this.posY){this.doCallbackByName("onMove")}return this};BAJL.Balloon.prototype.moveToCenter=function(e,c){var f={};var g=a(this.node).parent().get(0)||document.body;if(g===document.body){f=BAJL.GetGeometry();f=a.extend(null,f,{parentW:f.windowW,parentH:f.windowH})}else{f={parentW:a(g).outerWidth(),parentH:a(g).outerHeight()}}if(typeof e=="boolean"){this.ignoreX=e}if(typeof c=="boolean"){this.ignoreY=c}var i=(!this.ignoreX)?(f.parentW-a(this.node).outerWidth())/2:this.posX;if(i<0){i=0}var h=(!this.ignoreY)?(f.parentH-a(this.node).outerHeight())/2:this.posY;if(h<0){h=0}var d=(this.isPosFixed||!f.scrollX)?0:f.scrollX;var b=(this.isPosFixed||!f.scrollY)?0:f.scrollY;this.moveTo(i+d,h+b);return this};BAJL.Balloon.prototype.revisePosition=function(){if(this.posReviseX||this.posReviseY){var n=BAJL.GetGeometry();var e=(BAJL.ua.isIE&&BAJL.ua.isMac);var l=(BAJL.ua.isIE&&BAJL.ua.documentMode<=6);var k=(BAJL.ua.isIE&&BAJL.ua.documentMode==7);var j=(BAJL.ua.isIE&&BAJL.ua.documentMode>=8);var m=(BAJL.ua.isSafari&&BAJL.ua.version<522);var h=(k||m||e||n.pageH<=n.windowH)?0:n.scrollBar;var d=(k||m||e||n.pageW<=n.windowW)?0:n.scrollBar;if(l||j){h=n.scrollBar+4;d+=4}var i=a(this.node).offsetParent().offset();var g=(n.windowW+n.scrollX)-(i.left+this.posX+this.offsetX+this.node.offsetWidth+h);var f=(n.windowH+n.scrollY)-(i.top+this.posY+this.offsetY+this.node.offsetHeight+d);var c=(this.posX<n.scrollX)?n.scrollX:this.posX+(g<0?g:0);var b=(this.posY<n.scrollY)?n.scrollY:this.posY+(f<0?f:0);if(this.posReviseX){this.posX=c}if(this.posReviseY){this.posY=b}}};BAJL.Balloon.prototype.hide=function(){a(this.node).css({visibility:"hidden",display:"block",left:"-10000px"});if(this.activedCName){a(document.body).removeClass(this.activedCName)}if(this.active){this.active=false;this.doCallbackByName("onHide")}return this};BAJL.Balloon.prototype.doCallbackByName=function(b){this.doCallback(b,this.getGeometry())};if(BAJL.settings.common.useBackCompat){BAJL.Observable.prototype.doCallBackByName=function(){return this.doCallbackByName.apply(this,arguments)}}if(BAJL.settings.common.useBackCompat){BAJL.CreateBackCompat({BABalloon:BAJL.Balloon})}})(jQuery);



/* ============================== bajl.processingInfo.js ============================== */
/*!
 *    @fileoverview
 *       Processing infomational balloon.
 *
 *    @version 2.2.20110925.nextia-static-20110925
 *    @requires jquery.js
 *    @requires bajl.js
 *    @requires bajl.balloon.js
 *    @requires bajl.processingInfo.css
 */
(function(a){BAJL.settings.ProcessingInfo={className:"bajl-processing-info",content:"\u8AAD\u307F\u8FBC\u307F\u4E2D",effect:{duration:500}};BAJL.ProcessingInfo=function(b){if(BAJL.env.isDOMReady){this.init(b)}};BAJL.ProcessingInfo.prototype=new BAJL.Balloon;BAJL.ProcessingInfo.instances=[];BAJL.ProcessingInfo.prototype.initSuper=BAJL.ProcessingInfo.prototype.init;BAJL.ProcessingInfo.prototype.showSuper=BAJL.ProcessingInfo.prototype.show;BAJL.ProcessingInfo.prototype.hideSuper=BAJL.ProcessingInfo.prototype.hide;BAJL.ProcessingInfo.prototype.init=function(b){var b=a.extend({},BAJL.settings.ProcessingInfo,b);this.initSuper(b);this.hideSuper();a(window).resize(BAJL.Delegate(this.onWindowResize,this));BAJL.ProcessingInfo.instances.push(this)};BAJL.ProcessingInfo.prototype.show=function(b,d){if(!this.isActive()){this.showSuper(b,d);this.moveToCenter();var c=BAJL.settings.ProcessingInfo.effect.duration;a(this.node).stop().hide().fadeTo(c,1)}return this};BAJL.ProcessingInfo.prototype.hide=function(){var b=BAJL.settings.ProcessingInfo.effect.duration;var c=BAJL.Delegate(function(){this.moveTo(-10000,-10000);this.hideSuper()},this);a(this.node).stop().fadeTo(b,0,c);return this};BAJL.ProcessingInfo.prototype.onWindowResize=function(b){if(this.isActive()){this.moveToCenter()}};if(BAJL.settings.common.useBackCompat){BAJL.CreateBackCompat({BAProcessingInfo:BAJL.ProcessingInfo})}})(jQuery);




