(function($){$.each({focus:"focusin",blur:"focusout"},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie){return false}this.addEventListener(original,$.event.special[fix].handler,true)},teardown:function(){if($.browser.msie){return false}this.removeEventListener(original,$.event.special[fix].handler,true)},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments)}}});$.extend($.fn,{delegate:function(type,delegate,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments)}})},triggerEvent:function(type,target){return this.triggerHandler(type,[jQuery.event.fix({type:type,target:target})])}})})(jQuery);(function($){var addMethods=function(source){var ancestor=this.superclass&&this.superclass.prototype;var properties=$.keys(source);if(!$.keys({toString:true}).length){properties.push("toString","valueOf")}for(var i=0,length=properties.length;i<length;i++){var property=properties[i],value=source[property];if(ancestor&&$.isFunction(value)&&$.argumentNames(value)[0]=="$super"){var method=value,value=$.extend($.wrap((function(m){return function(){return ancestor[m].apply(this,arguments)}})(property),method),{valueOf:function(){return method},toString:function(){return method.toString()}})}this.prototype[property]=value}return this};$.extend({keys:function(obj){var keys=[];for(var key in obj){keys.push(key)}return keys},argumentNames:function(func){var names=func.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(/, ?/);return names.length==1&&!names[0]?[]:names},bind:function(func,scope){return function(){return func.apply(scope,$.makeArray(arguments))}},wrap:function(func,wrapper){var __method=func;return function(){return wrapper.apply(this,[$.bind(__method,this)].concat($.makeArray(arguments)))}},klass:function(){var parent=null,properties=$.makeArray(arguments);if($.isFunction(properties[0])){parent=properties.shift()}var klass=function(){this.initialize.apply(this,arguments)};klass.superclass=parent;klass.subclasses=[];klass.addMethods=addMethods;if(parent){var subclass=function(){};subclass.prototype=parent.prototype;klass.prototype=new subclass;parent.subclasses.push(klass)}for(var i=0;i<properties.length;i++){klass.addMethods(properties[i])}if(!klass.prototype.initialize){klass.prototype.initialize=function(){}}klass.prototype.constructor=klass;return klass},delegate:function(rules){return function(e){var target=$(e.target);for(var selector in rules){if(target.is(selector)||((target=target.parents(selector))&&target.length>0)){return rules[selector].apply(this,[target].concat($.makeArray(arguments)))}}}}});var bindEvents=function(instance){for(var member in instance){if(member.match(/^on(.+)/)&&typeof instance[member]=="function"){instance.element.bind(RegExp.$1,$.bind(instance[member],instance))}}};var behaviorWrapper=function(behavior){return $.klass(behavior,{initialize:function($super,element,args){this.element=$(element);if($super){$super.apply(this,args)}}})};var attachBehavior=function(el,behavior,args){var wrapper=behaviorWrapper(behavior);instance=new wrapper(el,args);bindEvents(instance);if(!behavior.instances){behavior.instances=[]}behavior.instances.push(instance);return instance};$.fn.extend({attach:function(){var args=$.makeArray(arguments),behavior=args.shift();if($.livequery&&this.selector){return this.livequery(function(){attachBehavior(this,behavior,args)})}else{return this.each(function(){attachBehavior(this,behavior,args)})}},attachAndReturn:function(){var args=$.makeArray(arguments),behavior=args.shift();return $.map(this,function(el){return attachBehavior(el,behavior,args)})},delegate:function(type,rules){return this.bind(type,$.delegate(rules))},attached:function(behavior){var instances=[];if(!behavior.instances){return instances}this.each(function(i,element){$.each(behavior.instances,function(i,instance){if(instance.element.get(0)==element){instances.push(instance)}})});return instances},firstAttached:function(behavior){return this.attached(behavior)[0]}});Remote=$.klass({initialize:function(options){if(this.element.attr("nodeName")=="FORM"){this.element.attach(Remote.Form,options)}else{this.element.attach(Remote.Link,options)}}});Remote.Base=$.klass({initialize:function(options){this.options=$.extend({},options||{})},_makeRequest:function(options){$.ajax(options);return false}});Remote.Link=$.klass(Remote.Base,{onclick:function(){var options=$.extend({url:this.element.attr("href"),type:"GET"},this.options);return this._makeRequest(options)}});Remote.Form=$.klass(Remote.Base,{onclick:function(e){var target=e.target;if($.inArray(target.nodeName.toLowerCase(),["input","button"])>=0&&target.type.match(/submit|image/)){this._submitButton=target}},onsubmit:function(){var data=this.element.serializeArray();if(this._submitButton){data.push({name:this._submitButton.name,value:this._submitButton.value})}var options=$.extend({url:this.element.attr("action"),type:this.element.attr("method")||"GET",data:data},this.options);this._makeRequest(options);return false}});$.ajaxSetup({beforeSend:function(xhr){xhr.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*")}})})(jQuery);(function($){jQuery.fn.replaceAttr=function(aName,rxString,repString){return this.each(function(){jQuery(this).attr(aName,jQuery(this).attr(aName).replace(rxString,repString))})}})(jQuery);(function($){$.fn.jqm=function(o){var p={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:F,ajaxText:"",target:F,modal:F,toTop:F,onShow:F,onHide:F,onLoad:F};return this.each(function(){if(this._jqm){return H[this._jqm].c=$.extend({},H[this._jqm].c,o)}s++;this._jqm=s;H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass("jqmID"+s),s:s};if(p.trigger){$(this).jqmAddTrigger(p.trigger)}})};$.fn.jqmAddClose=function(e){return hs(this,e,"jqmHide")};$.fn.jqmAddTrigger=function(e){return hs(this,e,"jqmShow")};$.fn.jqmShow=function(t){return this.each(function(){$.jqm.open(this._jqm,t)})};$.fn.jqmHide=function(t){return this.each(function(){$.jqm.close(this._jqm,t)})};$.jqm={hash:{},open:function(s,t){var h=H[s],c=h.c,cc="."+c.closeClass,z=(parseInt(h.w.css("z-index"))),z=(z>0)?z:3000,o=$("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":z-1,opacity:c.overlay/100});if(h.a){return F}h.t=t;h.a=true;h.w.css("z-index",z);if(c.modal){if(!A[0]){L("bind")}A.push(s)}else{if(c.overlay>0){h.w.jqmAddClose(o)}else{o=F}}h.o=(o)?o.addClass(c.overlayClass).prependTo("body"):F;if(ie6){$("html,body").css({height:"100%",width:"100%"});if(o){o=o.css({position:"absolute"})[0];for(var y in {Top:1,Left:1}){o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'")}}}if(c.ajax){var r=c.target||h.w,u=c.ajax,r=(typeof r=="string")?$(r,h.w):$(r),u=(u.substr(0,1)=="@")?$(t).attr(u.substring(1)):u;r.html(c.ajaxText).load(u,function(){if(c.onLoad){c.onLoad.call(this,h)}if(cc){h.w.jqmAddClose($(cc,h.w))}e(h)})}else{if(cc){h.w.jqmAddClose($(cc,h.w))}}if(c.toTop&&h.o){h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o)}(c.onShow)?c.onShow(h):h.w.show();e(h);return F},close:function(s){var h=H[s];if(!h.a){return F}h.a=F;if(A[0]){A.pop();if(!A[0]){L("unbind")}}if(h.c.toTop&&h.o){$("#jqmP"+h.w[0]._jqm).after(h.w).remove()}if(h.c.onHide){h.c.onHide(h)}else{h.w.hide();if(h.o){h.o.remove()}}return F},params:{}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version=="6.0"),F=false,i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),e=function(h){if(ie6){if(h.o){h.o.html('<p style="width:100%;height:100%"/>').prepend(i)}else{if(!$("iframe.jqm",h.w)[0]){h.w.prepend(i)}}}f(h)},f=function(h){try{$(":input:visible",h.w)[0].focus()}catch(_){}},L=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m)},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents(".jqmID"+h.s)[0]);if(r){f(h)}return !r},hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function(){if(!this[c]){this[c]=[];$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1}){for(var s in this[i]){if(H[this[i][s]]){H[this[i][s]].w[i](this)}}}return F})}this[c].push(s)})})}})(jQuery);(function($){$.fn.clearForm=function(){return this.each(function(){var type=this.type,tag=this.tagName.toLowerCase();if(tag=="form"){return $(":input",this).clearForm()}if(type=="text"||type=="password"||tag=="textarea"){this.value=""}else{if(type=="checkbox"||type=="radio"){this.checked=false}else{if(tag=="select"){this.selectedIndex=-1}}}})}})(jQuery);(function($){var defaults={delimiter:",",checkboxRangeKeyBinding:"shiftKey",useArray:false};$.Field={version:"0.9.1",setDefaults:function(options){$.extend(defaults,options)},setProperty:function(prop,value){defaults[prop]=value},getProperty:function(prop){return defaults[prop]}};$.fn.fieldArray=function(v){var t=$type(v);if(t=="undefined"){return getValue(this)}if(t=="string"||t=="number"){v=v.toString().split(defaults.delimiter);t="array"}if(t=="array"){return setValue(this,v)}return this};$.fn.getValue=function(){return getValue(this).join(defaults.delimiter)};var getValue=function(jq){var v=[];jq.each(function(lc){var t=getType(this);switch(t){case"checkbox":case"radio":if(this.checked){v.push(this.value)}break;case"select":if(this.type=="select-one"){v.push((this.selectedIndex==-1)?"":getOptionVal(this[this.selectedIndex]))}else{for(var i=0;i<this.length;i++){if(this[i].selected){v.push(getOptionVal(this[i]))}}}break;case"text":v.push(this.value);break}});return v};$.fn.setValue=function(v){return setValue(this,(!v?[""]:v.toString().split(defaults.delimiter)))};var setValue=function(jq,v){jq.each(function(lc){var t=getType(this),x;switch(t){case"checkbox":case"radio":if(valueExists(v,this.value)){this.checked=true}else{this.checked=false}break;case"select":var bSelectOne=(this.type=="select-one");var bKeepLooking=true;for(var i=0;i<this.length;i++){x=getOptionVal(this[i]);bSelectItem=valueExists(v,x);if(bSelectItem){this[i].selected=true;if(bSelectOne){bKeepLooking=false;break}}else{if(!bSelectOne){this[i].selected=false}}}if(bSelectOne&&bKeepLooking&&!!this[0]){this[0].selected=true}break;case"text":this.value=v.join(defaults.delimiter);break}});return jq};$.fn.formHash=function(inHash){var bGetHash=(arguments.length==0);var stHash={};this.filter("form").each(function(){var els=this.elements,el,n,stProcessed={},jel;for(var i=0,elsMax=els.length;i<elsMax;i++){el=els[i];n=el.name;if(!n||stProcessed[n]){continue}var jel=$(el.tagName.toLowerCase()+"[@name='"+n+"']",this);if(bGetHash){stHash[n]=jel[defaults.useArray?"fieldArray":"getValue"]()}else{if(typeof inHash[n]!="undefined"){jel[defaults.useArray?"fieldArray":"setValue"](inHash[n])}}stProcessed[n]=true}});return(bGetHash)?stHash:this};$.fn.autoAdvance=function(callback){return this.find(":text,:password,textarea").bind("keyup",function(e){var $field=$(this),iMaxLength=parseInt($field.attr("maxlength"),10);if(isNaN(iMaxLength)||("|9|16|37|38|39|40|".indexOf("|"+e.keyCode+"|")>-1)){return true}if($field.getValue().length>=$field.attr("maxlength")){var $next=$field.moveNext().select();if($.isFunction(callback)){callback.apply($field,[$next])}}})};$.fn.moveNext=function(){return this.moveIndex("next")};$.fn.movePrev=function(){return this.moveIndex("prev")};$.fn.moveIndex=function(i){var aPos=getFieldPosition(this);if(i=="next"){i=aPos[0]+1}else{if(i=="prev"){i=aPos[0]-1}}if(i<0){i=aPos[1].length-1}else{if(i>=aPos[1].length){i=0}}return $(aPos[1][i]).trigger("focus")};$.fn.getTabIndex=function(){return getFieldPosition(this)[0]};var getFieldPosition=function(jq){var $field=jq.filter("input select textarea").get(0),aTabIndex=[],aPosIndex=[];if(!$field){return[-1,[]]}$.each($field.form.elements,function(i,o){if(o.tagName!="FIELDSET"&&!o.disabled){if(o.tabIndex>0){aTabIndex.push(o)}else{aPosIndex.push(o)}}});aTabIndex.sort(function(a,b){return a.tabIndex-b.tabIndex});aTabIndex=$.merge(aTabIndex,aPosIndex);for(var i=0;i<aTabIndex.length;i++){if(aTabIndex[i]==$field){return[i,aTabIndex]}}return[-1,aTabIndex]};$.fn.limitSelection=function(limit,options){var opt=jQuery.extend((limit&&limit.constructor==Object?limit:{limit:limit,onsuccess:function(limit){return true},onfailure:function(limit){alert("You can only select a maximum a of "+limit+" items.");return false}}),options);var self=this;var getCount=function(el){if(el.type=="select-multiple"){return $("option:selected",self).length}else{if(el.type=="checkbox"){return self.filter(":checked").length}}return 0};var undoSelect=function(){setValue(self,getValue(self).slice(0,opt.limit));return opt.onfailure.apply(self,[opt.limit])};return this.bind((!!self[0]&&self[0].type=="select-multiple")?"change":"click",function(){if(getCount(this)>opt.limit){return(this.type=="select-multiple")?undoSelect():opt.onfailure.apply(self,[opt.limit])}opt.onsuccess.apply(self,[opt.limit]);return true})};$.fn.createCheckboxRange=function(callback){var iLastSelection=0,self=this,bCallback=$.isFunction(callback);if(bCallback){this.each(function(){callback.apply(this,[$(this).is(":checked")])})}return this.each(function(){if(this.type!="checkbox"){return false}var el=this;var updateLastCheckbox=function(e){iLastSelection=self.index(e.target)};var checkboxClicked=function(e){var bSetChecked=this.checked,current=self.index(e.target),low=Math.min(iLastSelection,current),high=Math.max(iLastSelection,current);if(bCallback){$(this).each(function(){callback.apply(this,[bSetChecked])})}if(!e[defaults.checkboxRangeKeyBinding]){return}for(var i=low;i<high;i++){var item=self.eq(i).attr("checked",bSetChecked?"checked":"");if(bCallback){callback.apply(item[0],[bSetChecked])}}return true};$(this).unbind("blur",updateLastCheckbox).unbind("click",checkboxClicked).bind("blur",updateLastCheckbox).bind("click",checkboxClicked);return true})};var getType=function(el){var t=el.type;switch(t){case"select":case"select-one":case"select-multiple":t="select";break;case"text":case"hidden":case"textarea":case"password":case"button":case"submit":case"submit":t="text";break;case"checkbox":case"radio":t=t;break}return t};var getOptionVal=function(el){return jQuery.browser.msie&&!(el.attributes.value.specified)?el.text:el.value};var valueExists=function(a,v){return($.inArray(v,a)>-1)};var $type=function(o){var t=(typeof o).toLowerCase();if(t=="object"){if(o instanceof Array){t="array"}else{if(o instanceof Date){t="date"}}}return t};var $isType=function(o,v){return($type(o)==String(v).toLowerCase())}})(jQuery);(function($){jQuery.fn.autoFill=function(target,options){options=options||{};options.type=options.type||"get";options.params=options.data||{};options.errorTrigger=options.errorTrigger||null;options.mSelectCheckName=options.mSelectCheckName||false;var isEmpty=function(obj){if(typeof(obj)=="object"){for(var i in obj){return false}}return true};var fillMultipleSelect=function(key,val,form){if(options.mSelectCheckName){jQuery("select[name^="+key+"] option",form).each(function(){this.selected=(jQuery.inArray(this.value,val)!=-1)})}else{jQuery("select[id="+key+"] option",form).each(function(){this.selected=(jQuery.inArray(this.value,val)!=-1)})}};var fill=function(data,form){if(isEmpty(data)||(options.errorTrigger!==null&&typeof(data[options.errorTrigger])!="undefined")){if(jQuery.isFunction(options.error)){options.error(form)}return false}if(jQuery.isFunction(options.beforeFillForm)){if(options.beforeFillForm(form)===false){return false}}var processed=0;for(var key in data){if(jQuery.isFunction(options.beforeFill)){if(options.beforeFill(key,data[key],form)===false){continue}}if(data[key]===null){continue}if(data[key].constructor==Array){fillMultipleSelect(key,data[key],form)}else{var obj=jQuery(":input[name="+key+"]",form);obj=obj.length>0?obj:jQuery(":input[id="+key+"]",form);if(obj.length==0){continue}if(obj.attr("type")=="radio"){obj.each(function(){if(this.value==data[key]){this.checked=true}})}else{if(obj.attr("type")=="checkbox"){if(obj.val()==data[key]){obj.attr("checked",true)}}else{obj.val(data[key],data)}}}processed++;if(jQuery.isFunction(options.afterFill)){if(options.afterFill(key,data[key],form)===false){}break}}if(jQuery.isFunction(options.complete)){options.complete(processed,data,form)}};return this.each(function(){var form=jQuery(this).get(0);if(typeof(target)!="object"){jQuery.ajax({type:options.type,url:target,dataType:"json",data:options.data,success:function(d){fill(d,form)},error:function(xmlhttp,status,e){options.ajaxError(e,form)}})}else{fill(target,form)}})}})(jQuery);(function($){jQuery.fn.populateByName=function(obj,options){options=options||{};function browseJSON(obj,element){var path=path||"";if(obj==undefined){}else{if(obj.constructor==Object){for(var prop in obj){var tmpProp=prop;if(jQuery.isFunction(options.fixText)){tmpProp=options.fixText(prop)}var child=jQuery.makeArray(jQuery("."+tmpProp,element)).length>0?jQuery("."+tmpProp,element):jQuery("#"+tmpProp,element);browseJSON(obj[prop],jQuery(child,element))}}else{if(obj.constructor==Array){var arr=jQuery.makeArray(element);var nbToCreate=obj.length-arr.length;var i=0;for(iExist=0;iExist<arr.length;iExist++){if(i<obj.length){$(element).eq(iExist).populateByName(obj[i])}i++}i=obj.length-1;for(iCreate=0;iCreate<nbToCreate;iCreate++){$(arr[arr.length-1]).clone(true).insertAfter(arr[arr.length-1]).populateByName(obj[i]);i--}}else{$(element).html(obj)}}}}this.each(function(){browseJSON(obj,this)});return this}})(jQuery);(function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+$.fn.jquery);return}$.blockUI=function(opts){install(window,opts)};$.unblockUI=function(opts){remove(window,opts)};$.fn.block=function(opts){return this.each(function(){if($.css(this,"position")=="static"){this.style.position="relative"}if($.browser.msie){this.style.zoom=1}install(this,opts)})};$.fn.unblock=function(opts){return this.each(function(){remove(this,opts)})};$.blockUI.version=2.08;$.blockUI.defaults={message:'<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="32 HEIGHT="32" id="loader_swf"><param name=wmode value="transparent"><PARAM NAME=movie VALUE="/nikeos/global/image/nikeOS_loader.swf"><PARAM NAME=quality VALUE=best><embed width="32" height="32"  salign="tl" allowscriptaccess="always" wmode="transparent" menu="false" scale="noscale" quality="best" name="loader_swf" id="loader_swf" style="width: 32px; height: 32px;" src="/nikeos/global/image/nikeOS_loader.swf" type="application/x-shockwave-flash"/></OBJECT>',css:{padding:0,margin:"0 auto",width:"100%",top:"30%",textAlign:"center"},overlayCSS:{backgroundColor:"#000",opacity:"0.7"},baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeOut:400,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null};var ie6=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var pageBlock=null;var pageBlockEls=[];function install(el,opts){var full=(el==window);var msg=opts&&opts.message!==undefined?opts.message:undefined;opts=$.extend({},$.blockUI.defaults,opts||{});opts.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,opts.overlayCSS||{});var css=$.extend({},$.blockUI.defaults.css,opts.css||{});msg=msg===undefined?opts.message:msg;if(full&&pageBlock){remove(window,{fadeOut:0})}if(msg&&typeof msg!="string"&&(msg.parentNode||msg.jquery)){var node=msg.jquery?msg[0]:msg;var data={};$(el).data("blockUI.history",data);data.el=node;data.parent=node.parentNode;data.display=node.style.display;data.position=node.style.position;data.parent.removeChild(node)}var z=opts.baseZ;var lyr1=($.browser.msie)?$('<iframe class="blockUI" style="z-index:'+z+++';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):$('<div class="blockUI" style="display:none"></div>');var lyr2=$('<div class="blockUI" style="z-index:'+z+++';cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0;overflow: auto;"></div>');var lyr3=full?$('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';position:fixed"></div>'):$('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');if(msg){lyr3.css(css)}if(!opts.applyPlatformOpacityRules||!($.browser.mozilla&&/Linux/.test(navigator.platform))){lyr2.css(opts.overlayCSS)}lyr2.css("position",full?"fixed":"absolute");if($.browser.msie){lyr1.css("opacity","0.0")}$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full?"body":el);var expr=$.browser.msie&&(!$.boxModel||$("object,embed",full?null:el).length>0);if(ie6||expr){if(full&&opts.allowBodyStretch&&$.boxModel){$("html,body").css("height","100%")}if((ie6||!$.boxModel)&&!full){var t=sz(el,"borderTopWidth"),l=sz(el,"borderLeftWidth");var fixT=t?"(0 - "+t+")":0;var fixL=l?"(0 - "+l+")":0}$.each([lyr1,lyr2,lyr3],function(i,o){var s=o[0].style;s.position="absolute";if(i<2){full?s.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? Screen.getDocumentHeight() : Screen.getDocumentHeight() + "px"'):s.setExpression("height",'Screen.getDocumentHeight() + "px"');full?s.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):s.setExpression("width",'this.parentNode.offsetWidth + "px"');if(fixL){s.setExpression("left",fixL)}if(fixT){s.setExpression("top",fixT)}}else{if(opts.centerY){if(full){s.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}s.marginTop=0}}})}lyr3.append(msg).show();if(msg&&(msg.jquery||msg.nodeType)){$(msg).show()}bind(1,el,opts);if(full){pageBlock=lyr3[0];pageBlockEls=$(":input:enabled:visible",pageBlock);if(opts.focusInput){setTimeout(focus,20)}}else{center(lyr3[0],opts.centerX,opts.centerY)}}function remove(el,opts){var full=el==window;var data=$(el).data("blockUI.history");opts=$.extend({},$.blockUI.defaults,opts||{});bind(0,el,opts);var els=full?$("body").children().filter(".blockUI"):$(".blockUI",el);if(full){pageBlock=pageBlockEls=null}if(opts.fadeOut){els.fadeOut(opts.fadeOut);setTimeout(function(){reset(els,data,opts,el)},opts.fadeOut)}else{reset(els,data,opts,el)}}function reset(els,data,opts,el){els.each(function(i,o){if(this.parentNode){this.parentNode.removeChild(this)}});if(data&&data.el){data.el.style.display=data.display;data.el.style.position=data.position;data.parent.appendChild(data.el);$(data.el).removeData("blockUI.history")}if(typeof opts.onUnblock=="function"){opts.onUnblock(el,opts)}}function bind(b,el,opts){var full=el==window,$el=$(el);if(!b&&(full&&!pageBlock||!full&&!$el.data("blockUI.isBlocked"))){return}if(!full){$el.data("blockUI.isBlocked",b)}var events="mousedown mouseup keydown keypress click";b?$(document).bind(events,opts,handler):$(document).unbind(events,handler)}function handler(e){if(e.keyCode&&e.keyCode==9){if(pageBlock&&e.data.constrainTabKey){var els=pageBlockEls;var fwd=!e.shiftKey&&e.target==els[els.length-1];var back=e.shiftKey&&e.target==els[0];if(fwd||back){setTimeout(function(){focus(back)},10);return false}}}if($(e.target).parents("div.blockMsg").length>0){return true}return $(e.target).parents().children().filter("div.blockUI").length==0}function focus(back){if(!pageBlockEls){return}var e=pageBlockEls[back===true?pageBlockEls.length-1:0];if(e){try{e.focus()}catch(error){}}}function center(el,x,y){var p=el.parentNode,s=el.style;var l=((p.offsetWidth-el.offsetWidth)/2)-sz(p,"borderLeftWidth");var t=((p.offsetHeight-el.offsetHeight)/2)-sz(p,"borderTopWidth");if(x){s.left=l>0?(l+"px"):"0"}if(y){s.top=t>0?(t+"px"):"0"}}function sz(el,p){return parseInt($.css(el,p))||0}})(jQuery);(function($){$.extend($.fn,{livequery:function(type,fn,fn2){var self=this,q;if($.isFunction(type)){fn2=fn,fn=type,type=undefined}$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&type==query.type&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid)){return(q=query)&&false}});q=q||new $.livequery(this.selector,this.context,type,fn,fn2);q.stopped=false;$.livequery.run(q.id);return this},expire:function(type,fn,fn2){var self=this;if($.isFunction(type)){fn2=fn,fn=type,type=undefined}$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&(!type||type==query.type)&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid)&&!this.stopped){$.livequery.stop(query.id)}});return this}});$.livequery=function(selector,context,type,fn,fn2){this.selector=selector;this.context=context||document;this.type=type;this.fn=fn;this.fn2=fn2;this.elements=[];this.stopped=false;this.id=$.livequery.queries.push(this)-1;fn.$lqguid=fn.$lqguid||$.livequery.guid++;if(fn2){fn2.$lqguid=fn2.$lqguid||$.livequery.guid++}return this};$.livequery.prototype={stop:function(){var query=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(i,el){query.fn2.apply(el)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var query=this;var oEls=this.elements,els=$(this.selector,this.context),nEls=els.not(oEls);this.elements=els;if(this.type){nEls.bind(this.type,this.fn);if(oEls.length>0){$.each(oEls,function(i,el){if($.inArray(el,els)<0){$.event.remove(el,query.type,query.fn)}})}}else{nEls.each(function(){query.fn.apply(this)});if(this.fn2&&oEls.length>0){$.each(oEls,function(i,el){if($.inArray(el,els)<0){query.fn2.apply(el)}})}}}};$.extend($.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if($.livequery.running&&$.livequery.queue.length){var length=$.livequery.queue.length;while(length--){$.livequery.queries[$.livequery.queue.shift()].run()}}},pause:function(){$.livequery.running=false},play:function(){$.livequery.running=true;$.livequery.run()},registerPlugin:function(){$.each(arguments,function(i,n){if(!$.fn[n]){return}var old=$.fn[n];$.fn[n]=function(){var r=old.apply(this,arguments);$.livequery.run();return r}})},run:function(id){if(id!=undefined){if($.inArray(id,$.livequery.queue)<0){$.livequery.queue.push(id)}}else{$.each($.livequery.queries,function(id){if($.inArray(id,$.livequery.queue)<0){$.livequery.queue.push(id)}})}if($.livequery.timeout){clearTimeout($.livequery.timeout)}$.livequery.timeout=setTimeout($.livequery.checkQueue,20)},stop:function(id){if(id!=undefined){$.livequery.queries[id].stop()}else{$.each($.livequery.queries,function(id){$.livequery.queries[id].stop()})}}});$.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove");$(function(){$.livequery.play()});var init=$.prototype.init;$.prototype.init=function(a,c){var r=init.apply(this,arguments);if(a&&a.selector){r.context=a.context,r.selector=a.selector}if(typeof a=="string"){r.context=c||document,r.selector=a}return r};$.prototype.init.prototype=$.prototype})(jQuery);if(window.jQuery){(function($){$.extend({xml2json:function(xml,extended){if(!xml){return{}}function parseXML(node,simple){if(!node){return null}var txt="",obj=null,att=null;var nt=node.nodeType,nn=jsVar(node.localName||node.nodeName);var nv=node.text||node.nodeValue||"";if(node.childNodes){if(node.childNodes.length>0){$.each(node.childNodes,function(n,cn){var cnt=cn.nodeType,cnn=jsVar(cn.localName||cn.nodeName);var cnv=cn.text||cn.nodeValue||"";if(cnt==8){return}else{if(cnt==3||cnt==4||!cnn){if(cnv.match(/^\s+$/)){return}txt+=cnv}else{obj=obj||{};if(obj[cnn]){if(!obj[cnn].length){obj[cnn]=myArr(obj[cnn])}obj[cnn][obj[cnn].length]=parseXML(cn,true);obj[cnn].length=obj[cnn].length}else{obj[cnn]=parseXML(cn)}}}})}}if(node.attributes){if(node.attributes.length>0){att={};obj=obj||{};$.each(node.attributes,function(a,at){var atn=jsVar(at.name),atv=at.value;att[atn]=atv;if(obj[atn]){if(!obj[atn].length){obj[atn]=myArr(obj[atn])}obj[atn][obj[atn].length]=atv;obj[atn].length=obj[atn].length}else{obj[atn]=atv}})}}if(obj){obj=$.extend((txt!=""?new String(txt):{}),obj||{});txt=(obj.text)?(typeof(obj.text)=="object"?obj.text:[obj.text||""]).concat([txt]):txt;if(txt){obj.text=txt}txt=""}var out=obj||txt;if(extended){if(txt){out={}}txt=out.text||txt||"";if(txt){out.text=txt}if(!simple){out=myArr(out)}}return out}var jsVar=function(s){return String(s||"").replace(/-/g,"_")};var isNum=function(s){return(typeof s=="number")||String((s&&typeof s=="string")?s:"").test(/^((-)?([0-9]*)((\.{0,1})([0-9]+))?$)/)};var myArr=function(o){if(!o.length){o=[o]}o.length=o.length;return o};if(typeof xml=="string"){xml=$.text2xml(xml)}if(!xml.nodeType){return}if(xml.nodeType==3||xml.nodeType==4){return xml.nodeValue}var root=(xml.nodeType==9)?xml.documentElement:xml;var out=parseXML(root,true);xml=null;root=null;return out},text2xml:function(str){var out;try{var xml=($.browser.msie)?new ActiveXObject("Microsoft.XMLDOM"):new DOMParser();xml.async=false}catch(e){throw new Error("XML Parser could not be instantiated")}try{if($.browser.msie){out=(xml.loadXML(str))?xml:false}else{out=xml.parseFromString(str,"text/xml")}}catch(e){throw new Error("Error parsing XML string")}return out}})})(jQuery)}(function(){var _after=1;var _before=2;var _around=3;var _intro=4;var _regexEnabled=true;var weaveOne=function(source,method,advice){var old=source[method];var aspect;if(advice.type==_after){aspect=function(){var returnValue=old.apply(this,arguments);return advice.value.apply(this,[returnValue,method])}}else{if(advice.type==_before){aspect=function(){advice.value.apply(this,[arguments,method]);return old.apply(this,arguments)}}else{if(advice.type==_intro){aspect=function(){return advice.value.apply(this,arguments)}}else{if(advice.type==_around){aspect=function(){var invocation={object:this,args:arguments};return advice.value.apply(invocation.object,[{arguments:invocation.args,method:method,proceed:function(){return old.apply(invocation.object,invocation.args)}}])}}}}}aspect.unweave=function(){source[method]=old;pointcut=source=aspect=old=null};source[method]=aspect;return aspect};var weave=function(pointcut,advice){var source=(typeof(pointcut.target.prototype)!="undefined")?pointcut.target.prototype:pointcut.target;var advices=[];if(advice.type!=_intro&&typeof(source[pointcut.method])=="undefined"){for(var method in source){if(source[method]!=null&&source[method] instanceof Function&&method.match(pointcut.method)){advices[advices.length]=weaveOne(source,method,advice)}}if(advices.length==0){throw"No method: "+pointcut.method}}else{advices[0]=weaveOne(source,pointcut.method,advice)}return _regexEnabled?advices:advices[0]};jQuery.aop={after:function(pointcut,advice){return weave(pointcut,{type:_after,value:advice})},before:function(pointcut,advice){return weave(pointcut,{type:_before,value:advice})},around:function(pointcut,advice){return weave(pointcut,{type:_around,value:advice})},introduction:function(pointcut,advice){return weave(pointcut,{type:_intro,value:advice})},setup:function(settings){_regexEnabled=settings.regexMatch}}})();(function($){$.extend({manageAjax:function(o){o=$.extend({manageType:"normal",maxReq:0,blockSameRequest:false,global:true},o);return new $.ajaxManager(o)},ajaxManager:function(o){this.opt=o;this.queue=[]}});$.extend($.ajaxManager.prototype,{add:function(o){var quLen=this.queue.length,s=this.opt,q=this.queue,self=this,i,j;var cD=(o.data&&typeof o.data!="string")?$.param(o.data):o.data;if(s.blockSameRequest){var toPrevent=false;for(i=0;i<quLen;i++){if(q[i]&&q[i].data===cD&&q[i].url===o.url&&q[i].type===o.type){toPrevent=true;break}}if(toPrevent){return false}}q[quLen]={fnError:o.error,fnSuccess:o.success,fnComplete:o.complete,fnAbort:o.abort,error:[],success:[],complete:[],done:false,queued:false,data:cD,url:o.url,type:o.type,xhr:null};o.error=function(){if(q[quLen]){q[quLen].error=arguments}};o.success=function(){if(q[quLen]){q[quLen].success=arguments}};o.abort=function(){if(q[quLen]){q[quLen].abort=arguments}};function startCallbacks(num){if(q[num].fnError){q[num].fnError.apply($,q[num].error)}if(q[num].fnSuccess){q[num].fnSuccess.apply($,q[num].success)}if(q[num].fnComplete){q[num].fnComplete.apply($,q[num].complete)}self.abort(num,true)}o.complete=function(){if(!q[quLen]){return}q[quLen].complete=arguments;q[quLen].done=true;switch(s.manageType){case"sync":if(quLen===0||!q[quLen-1]){var curQLen=q.length;for(i=quLen;i<curQLen;i++){if(q[i]){if(q[i].done){startCallbacks(i)}else{break}}}}break;case"queue":if(quLen===0||!q[quLen-1]){var curQLen=q.length;for(i=0,j=0;i<curQLen;i++){if(q[i]&&q[i].queued){q[i].xhr=jQuery.ajax(q[i].xhr);q[i].queued=false;break}}}startCallbacks(quLen);break;case"abortOld":startCallbacks(quLen);for(i=quLen;i>=0;i--){if(q[i]){self.abort(i)}}break;default:startCallbacks(quLen);break}};if(s.maxReq){if(s.manageType!="queue"){for(i=quLen,j=0;i>=0;i--){if(j>=s.maxReq){this.abort(i)}if(q[i]){j++}}}else{for(i=0,j=0;i<=quLen&&!q[quLen].queued;i++){if(q[i]&&!q[i].queued){j++}if(j>s.maxReq){q[quLen].queued=true}}}}q[quLen].xhr=(q[quLen].queued)?o:jQuery.ajax(o);return quLen},cleanUp:function(){this.queue=[]},abort:function(num,completed){var qLen=this.queue.length,s=this.opt,q=this.queue,self=this,i;function del(num){if(!q[num]){return}(!completed&&q[num].fnAbort)&&q[num].fnAbort.apply($,[num]);if(!q[num]){return}if(q[num].xhr){if(typeof q[num].xhr.abort!="undefined"){q[num].xhr.abort()}if(typeof q[num].xhr.close!="undefined"){q[num].xhr.close()}q[num].xhr=null}if(s.global&&$.active&&!--$.active){$.event.trigger("ajaxStop")}q[num]=null}if(!num&&num!==0){for(i=0;i<qLen;i++){del(i)}this.cleanUp()}else{del(num);var allowCleaning=true;for(i=qLen;i>=0;i--){if(q[i]){allowCleaning=false;break}}if(allowCleaning){this.cleanUp()}}}})})(jQuery);jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires="; expires="+date.toUTCString()}var path=options.path?"; path="+(options.path):"";var domain=options.domain?"; domain="+(options.domain):"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("")}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+"=")){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}};jQuery.extend({getURLParam:function(strParamName){var strReturn="";var strHref=window.location.href;var bFound=false;var cmpstring=strParamName+"=";var cmplen=cmpstring.length;if(strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?")+1);var aQueryString=strQueryString.split("&");for(var iParam=0;iParam<aQueryString.length;iParam++){if(aQueryString[iParam].substr(0,cmplen)==cmpstring){var aParam=aQueryString[iParam].split("=");strReturn=aParam[1];bFound=true;break}}}if(bFound==false){return null}return strReturn}});eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c)}k=[function(e){return r[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}("(5($){$.19={P:'1.2'};$.u(['j','w'],5(i,d){$.q['O'+d]=5(){p(!3[0])6;g a=d=='j'?'s':'m',e=d=='j'?'D':'C';6 3.B(':y')?3[0]['L'+d]:4(3,d.x())+4(3,'n'+a)+4(3,'n'+e)};$.q['I'+d]=5(b){p(!3[0])6;g c=d=='j'?'s':'m',e=d=='j'?'D':'C';b=$.F({t:Z},b||{});g a=3.B(':y')?3[0]['8'+d]:4(3,d.x())+4(3,'E'+c+'w')+4(3,'E'+e+'w')+4(3,'n'+c)+4(3,'n'+e);6 a+(b.t?(4(3,'t'+c)+4(3,'t'+e)):0)}});$.u(['m','s'],5(i,b){$.q['l'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b=='m'?a:$(h)['U'](),b=='s'?a:$(h)['T']()):3['l'+b]=a}):3[0]==h||3[0]==r?S[(b=='m'?'R':'Q')]||$.N&&r.M['l'+b]||r.A['l'+b]:3[0]['l'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,'K');8.k-=4(o,'J');9.f+=4(7,'H');9.k+=4(7,'Y');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,'z')=='13'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);",62,72,"|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions".split("|"),0,{}));var Nike={};Nike.regexpReplace=function(in_str,reg_exp,replace_str,opts){var re;if(in_str==null){return in_str}if(typeof(opts)=="undefined"){opts="g"}re=new RegExp(reg_exp,opts);return in_str.replace(re,replace_str)};function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!="function"){window.onload=func}else{window.onload=function(){if(oldonload){oldonload()}func()}}}function isDefined(object,variable){return(typeof((object)[variable])=="undefined")?false:true}function defined(o){return(typeof(o)!="undefined")}var Screen=(function(){var screen={};screen.getBody=function(){if(document.body){return document.body}if(document.getElementsByTagName){var bodies=document.getElementsByTagName("BODY");if(bodies!=null&&bodies.length>0){return bodies[0]}}return null};screen.getScrollTop=function(){if(document.documentElement&&defined(document.documentElement.scrollTop)&&document.documentElement.scrollTop>0){return document.documentElement.scrollTop}if(document.body&&defined(document.body.scrollTop)){return document.body.scrollTop}return null};screen.getScrollLeft=function(){if(document.documentElement&&defined(document.documentElement.scrollLeft)&&document.documentElement.scrollLeft>0){return document.documentElement.scrollLeft}if(document.body&&defined(document.body.scrollLeft)){return document.body.scrollLeft}return null};screen.zero=function(n){return(!defined(n)||isNaN(n))?0:n};screen.getDocumentWidth=function(){var width=0;var body=screen.getBody();if(document.documentElement&&(!document.compatMode||document.compatMode=="CSS1Compat")){var rightMargin=parseInt(CSS.get(body,"marginRight"),10)||0;var leftMargin=parseInt(CSS.get(body,"marginLeft"),10)||0;width=Math.max(body.offsetWidth+leftMargin+rightMargin,document.documentElement.clientWidth)}else{width=Math.max(body.clientWidth,body.scrollWidth)}if(isNaN(width)||width==0){width=screen.zero(self.innerWidth)}return width};screen.getDocumentHeight=function(){var body=screen.getBody();var innerHeight=(defined(self.innerHeight)&&!isNaN(self.innerHeight))?self.innerHeight:0;if(document.documentElement&&(!document.compatMode||document.compatMode=="CSS1Compat")){var topMargin=parseInt(CSS.get(body,"marginTop"),10)||0;var bottomMargin=parseInt(CSS.get(body,"marginBottom"),10)||0;return Math.max(body.offsetHeight+topMargin+bottomMargin,document.documentElement.clientHeight,document.documentElement.scrollHeight,screen.zero(self.innerHeight))}return Math.max(body.scrollHeight,body.clientHeight,screen.zero(self.innerHeight))};screen.getViewportWidth=function(){if(document.documentElement&&(!document.compatMode||document.compatMode=="CSS1Compat")){return document.documentElement.clientWidth}else{if(document.compatMode&&document.body){return document.body.clientWidth}}return screen.zero(self.innerWidth)};screen.getViewportHeight=function(){if(!window.opera&&document.documentElement&&(!document.compatMode||document.compatMode=="CSS1Compat")){return document.documentElement.clientHeight}else{if(document.compatMode&&!window.opera&&document.body){return document.body.clientHeight}}return screen.zero(self.innerHeight)};return screen})();var CSS=(function(){var css={};css.rgb2hex=function(rgbString){if(typeof(rgbString)!="string"||!defined(rgbString.match)){return null}var result=rgbString.match(/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*/);if(result==null){return rgbString}var rgb=+result[1]<<16|+result[2]<<8|+result[3];var hex="";var digits="0123456789abcdef";while(rgb!=0){hex=digits.charAt(rgb&15)+hex;rgb>>>=4}while(hex.length<6){hex="0"+hex}return"#"+hex};css.hyphen2camel=function(property){if(!defined(property)||property==null){return null}if(property.indexOf("-")<0){return property}var str="";var c=null;var l=property.length;for(var i=0;i<l;i++){c=property.charAt(i);str+=(c!="-")?c:property.charAt(++i).toUpperCase()}return str};css.hasClass=function(obj,className){if(!defined(obj)||obj==null||!RegExp){return false}var re=new RegExp("(^|\\s)"+className+"(\\s|$)");if(typeof(obj)=="string"){return re.test(obj)}else{if(typeof(obj)=="object"&&obj.className){return re.test(obj.className)}}return false};css.addClass=function(obj,className){if(typeof(obj)!="object"||obj==null||!defined(obj.className)){return false}if(obj.className==null||obj.className==""){obj.className=className;return true}if(css.hasClass(obj,className)){return true}obj.className=obj.className+" "+className;return true};css.removeClass=function(obj,className){if(typeof(obj)!="object"||obj==null||!defined(obj.className)||obj.className==null){return false}if(!css.hasClass(obj,className)){return false}var re=new RegExp("(^|\\s+)"+className+"(\\s+|$)");obj.className=obj.className.replace(re," ");return true};css.replaceClass=function(obj,className,newClassName){if(typeof(obj)!="object"||obj==null||!defined(obj.className)||obj.className==null){return false}css.removeClass(obj,className);css.addClass(obj,newClassName);return true};css.getStyle=function(o,property){if(o==null){return null}var val=null;var camelProperty=css.hyphen2camel(property);if(property=="float"){val=css.getStyle(o,"cssFloat");if(val==null){val=css.getStyle(o,"styleFloat")}}else{if(o.currentStyle&&defined(o.currentStyle[camelProperty])){val=o.currentStyle[camelProperty]}else{if(window.getComputedStyle){val=window.getComputedStyle(o,null).getPropertyValue(property)}else{if(o.style&&defined(o.style[camelProperty])){val=o.style[camelProperty]}}}}if(/^\s*rgb\s*\(/.test(val)){val=css.rgb2hex(val)}if(/^#/.test(val)){val=val.toLowerCase()}return val};css.get=css.getStyle;css.setStyle=function(o,property,value){if(o==null||!defined(o.style)||!defined(property)||property==null||!defined(value)){return false}if(property=="float"){o.style.cssFloat=value;o.style.styleFloat=value}else{if(property=="opacity"){o.style["-moz-opacity"]=value;o.style["-khtml-opacity"]=value;o.style.opacity=value;if(defined(o.style.filter)){o.style.filter="alpha(opacity="+value*100+")"}}else{o.style[css.hyphen2camel(property)]=value}}return true};css.set=css.setStyle;css.uniqueIdNumber=1000;css.createId=function(o){if(defined(o)&&o!=null&&defined(o.id)&&o.id!=null&&o.id!=""){return o.id}var id=null;while(id==null||document.getElementById(id)!=null){id="ID_"+(css.uniqueIdNumber++)}if(defined(o)&&o!=null&&(!defined(o.id)||o.id=="")){o.id=id}return id};return css})();(function(JQ){JQ.fn.custCheckBox=function(options){var defaults={disable_all:false,wrapperclass:"group",callback:function(){}};var opts=JQ.extend(defaults,options);return this.each(function(){var obj=JQ(this);JQ.fn.buildbox=function(thisElm){JQ(thisElm).css({display:"none"}).before('<span class="cust_checkbox">&nbsp;&nbsp;&nbsp;&nbsp;</span>');var isChecked=JQ(thisElm).attr("checked");var boxtype=JQ(thisElm).attr("type");var disabled=JQ(thisElm).attr("disabled");if(boxtype==="checkbox"){JQ(thisElm).prev("span").addClass("checkbox");if(disabled||opts.disable_all){boxtype="checkbox_disabled"}}else{JQ(thisElm).prev("span").addClass("radio");if(disabled||opts.disable_all){boxtype="radio_disabled"}}if(isChecked){JQ(thisElm).prev("span").addClass("cust_"+boxtype+"_on")}else{JQ(thisElm).prev("span").addClass("cust_"+boxtype+"_off")}if(opts.disable_all){JQ(thisElm).attr("disabled","disabled")}JQ(thisElm).prev("span").prev("label").unbind().click(function(){if(!opts.disable_all){var custbox=JQ(this).next("span");var boxtype=JQ(custbox).next("input").attr("type");var disabled=JQ(custbox).next("input").attr("disabled");if(JQ(custbox).hasClass("checkbox")){if(JQ(custbox).hasClass("cust_"+boxtype+"_off")&&!disabled){JQ(custbox).removeClass("cust_"+boxtype+"_off").addClass("cust_"+boxtype+"_on").next("input").attr("checked","checked")}else{if(!disabled){JQ(custbox).removeClass("cust_"+boxtype+"_on").addClass("cust_"+boxtype+"_off").next("input").removeAttr("checked")}}}else{if(!disabled){JQ(custbox).parent().find(".cust_checkbox").removeClass("cust_"+boxtype+"_on").addClass("cust_"+boxtype+"_off").next("input").removeAttr("checked");JQ(custbox).removeClass("cust_"+boxtype+"_off").addClass("cust_"+boxtype+"_on").next("input").attr("checked","checked")}}opts.callback.call(this)}});JQ(thisElm).prev("span").unbind().click(function(){if(!opts.disable_all){var boxtype=JQ(this).next("input").attr("type");var disabled=JQ(this).next("input").attr("disabled");if(JQ(this).hasClass("checkbox")){if(JQ(this).hasClass("cust_"+boxtype+"_off")&&!disabled){JQ(this).removeClass("cust_"+boxtype+"_off").addClass("cust_"+boxtype+"_on").next("input").attr("checked","checked")}else{if(!disabled){JQ(this).removeClass("cust_"+boxtype+"_on").addClass("cust_"+boxtype+"_off").next("input").removeAttr("checked")}}}else{if(!disabled){JQ(this).parent().find(".cust_checkbox").removeClass("cust_"+boxtype+"_on").addClass("cust_"+boxtype+"_off").next("input").removeAttr("checked");JQ(this).removeClass("cust_"+boxtype+"_off").addClass("cust_"+boxtype+"_on").next("input").attr("checked","checked")}}opts.callback.call(this)}})};JQ.fn.buildbox(JQ(obj))})}})(jQuery);function Q(){this.qsArray=window.location.search.substring(1).split("&");this.qsObject={};this.init=function(){for(var i=0;i<this.qsArray.length;i++){if((this.qsArray[i].indexOf("=")==-1)||this.qsArray[i].indexOf("=")==this.qsArray[i].length+1){this.qsObject[this.qsArray[i]]=""}else{this.qsObject[this.qsArray[i].split("=")[0]]=this.qsArray[i].split("=")[1]}}};this.getParam=function(param){return this.qsObject[name]};this.modifyParam=function(name,value){this.qsObject[name]=value};this.removeParam=function(name){delete this.qsObject[name]};this.getQueryString=function(){var qs="?";for(i in this.qsObject){if(this.qsObject[i]!=null){qs+=(i+"="+this.qsObject[i]+"&")}}return qs.substring(0,qs.length-1)};this.makeLink=function(pageName,subPageName){if(subPageName){this.qsObject.page=subPageName}return(pageName+this.getQueryString())}}function createSmartLinks(){JQ("a.smart").each(function(){if(!JQ(this).attr("href").match(/javascript:/)){var targetHref=JQ(this).attr("href");var currentQ=new Q();currentQ.init();var targetQ=new Q();targetQ.qsArray=targetHref.split("?")[1].split("&");targetQ.init();var targetPage=targetHref.split("?")[0];var targetSubPage=targetQ.getParam("page");for(i in targetQ.qsObject){currentQ.modifyParam(i,targetQ.qsObject[i])}JQ(this).attr({href:currentQ.makeLink(targetPage,targetSubPage)})}})}if(!("console" in window)||!("firebug" in console)){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}}String.prototype.rtrim=function(){return this.replace(/\s+$/,"")};String.prototype.toInt=function(){var a=new Array();for(var i=0;i<this.length;i++){a[i]=this.charCodeAt(i)}return a};function placeText(elementId,clickHandler,swfwidth,swfheight,font,fontHeight,fontColor,fontAlpha,align,valign,selectable,wordWrap,fitTextToSize,buttonMode,libPath){var nWidth=(swfwidth==null)?200:swfwidth;var nHeight=(swfheight==null)?200:swfheight;var strFont=(font==null)?"Codent":font;var nFontHeight=(fontHeight==null)?16:fontHeight;var strFontColor=(fontColor==null)?"0x000000":fontColor;var nFontAlpha=(fontAlpha==null)?1:fontAlpha;var strAlign=(align==null)?"left":align;var strVAlign=(valign==null)?"top":valign;var bSelectable=(selectable==null)?false:selectable;var bWordWrap=(wordWrap==null)?false:wordWrap;var bShrinkToFit=(fitTextToSize==null)?false:fitTextToSize;var bButtonMode=(buttonMode==null)?false:buttonMode;var minifieldLocation=(typeof(window.minifieldLocation)=="undefined")?"/nikeos/global/swf/minifield/minifield.swf":window.minifieldLocation;var strText=Base64.encode(window.document.getElementById(elementId).innerHTML);var so=new SWFObject(minifieldLocation,"sotester",nWidth,nHeight,"9","#ffffff");so.addVariable("elementId",elementId);so.addVariable("clickHandler",clickHandler);so.addVariable("font",strFont);so.addVariable("fontHeight",nFontHeight);so.addVariable("fontColor",strFontColor);so.addVariable("fontAlpha",nFontAlpha);so.addVariable("align",strAlign);so.addVariable("valign",strVAlign);so.addVariable("selectable",bSelectable);so.addVariable("wordWrap",bWordWrap);so.addVariable("fitTextToSize",bShrinkToFit);so.addVariable("buttonMode",bButtonMode);so.addVariable("txt",strText);if(libPath!=null){so.addVariable("libPath",libPath)}so.addVariable("debugMode",false);so.addParam("quality","high");so.addParam("wmode","transparent");so.write(elementId)}JQ.getAllQueryStrings=function(options){options=JQ.extend({URL:location.href},options);var qs=unescape(options.URL).split("?")[1];var args=new Array();if(typeof(qs)!="undefined"){qs=qs.split("&");JQ.each(qs,function(i){var currentArg=this.split("=");args[currentArg[0]]=args[i]={name:currentArg[0],value:(function(){if(currentArg.length==2){return currentArg[1]}else{return currentArg[0]}})()}})}return args};JQ.QueryStringExsist=function(options){return(typeof(JQ.getAllQueryStrings()[options.ID])!="undefined")};JQ.getQueryString=function(options){options=JQ.extend({URL:location.href,onStart:function(options){},onError:function(options){},onSuccess:function(options,value){},callback:function(options,value){}},options);var value=options.DefaultValue;options.onStart(options);if(JQ.QueryStringExsist({ID:options.ID})){value=JQ.getAllQueryStrings(options)[options.ID].value;options.onSuccess(options,value)}else{options.onError(options)}options.callback(options,value);return value};
