﻿
__SiteBasePath='/';


/* jquery.swfobject.min.js */
/* jquery.swfobject.license.txt */
(function(A){A.flashPlayerVersion=function(){var D,B=null,I=false,H="ShockwaveFlash.ShockwaveFlash";if(!(D=navigator.plugins["Shockwave Flash"])){try{B=new ActiveXObject(H+".7")}catch(G){try{B=new ActiveXObject(H+".6");D=[6,0,21];B.AllowScriptAccess="always"}catch(F){if(D&&D[0]===6){I=true}}if(!I){try{B=new ActiveXObject(H)}catch(E){D="X 0,0,0"}}}if(!I&&B){try{D=B.GetVariable("$version")}catch(C){}}}else{D=D.description}D=D.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[D[1]*1,D[3]*1,D[5]*1]}();A.flashExpressInstaller="expressInstall.swf";A.hasFlashPlayer=(A.flashPlayerVersion[0]!==0);A.hasFlashPlayerVersion=function(C){var B=A.flashPlayerVersion;C=(/string|integer/.test(typeof C))?C.toString().split("."):C;return(C)?(B[0]>=(C.major||C[0]||B[0])&&B[1]>=(C.minor||C[1]||B[1])&&B[2]>=(C.release||C[2]||B[2])):(B[0]!==0)};A.flash=function(M){if(!A.hasFlashPlayer){return false}var C=M.swf||"",K=M.params||{},E=document.createElement("body"),B,L,H,D,J,I,G,F;M.height=M.height||180;M.width=M.width||320;if(M.hasVersion&&!A.hasFlashPlayerVersion(M.hasVersion)){A.extend(M,{id:"SWFObjectExprInst",height:Math.max(M.height,137),width:Math.max(M.width,214)});C=M.expressInstaller||A.flashExpressInstaller;K={flashvars:{MMredirectURL:window.location.href,MMplayerType:(A.browser.msie&&A.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(M.flashvars&&typeof K==="object"){A.extend(K,{flashvars:M.flashvars})}for(J in (I=["swf","expressInstall","hasVersion","params","flashvars"])){delete M[I[J]]}B=[];for(J in M){if(typeof M[J]==="object"){L=[];for(I in M[J]){L.push(I.replace(/([A-Z])/,"-$1").toLowerCase()+":"+M[J][I]+";")}M[J]=L.join("")}B.push(J+'="'+M[J]+'"')}M=B.join(" ");if(typeof K==="object"){B=[];for(J in K){if(typeof K[J]==="object"){L=[];for(I in K[J]){if(typeof K[J][I]==="object"){H=[];for(G in K[J][I]){if(typeof K[J][I][G]==="object"){D=[];for(F in K[J][I][G]){D.push(F.replace(/([A-Z])/,"-$1").toLowerCase()+":"+K[J][I][G][F]+";")}K[J][I][G]=D.join("")}H.push(G+"{"+K[J][I][G]+"}")}K[J][I]=H.join("")}L.push(window.escape(I)+"="+window.escape(K[J][I]))}K[J]=L.join("&amp;")}B.push('<PARAM NAME="'+J+'" VALUE="'+K[J]+'">')}K=B.join("")}if(!(/style=/.test(M))){M+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(M))){M=M.replace(/style="/,'style="vertical-align:text-top;')}if(A.browser.msie){M+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';K='<PARAM NAME="movie" VALUE="'+C+'">'+K}else{M+=' type="application/x-shockwave-flash" data="'+C+'"'}E.innerHTML="<OBJECT "+M+">"+K+"</OBJECT>";return A(E.firstChild)};A.fn.flash=function(C){if(!A.hasFlashPlayer){return this}var B=0,D;while((D=this.eq(B++))[0]){D.html(A.flash(A.extend({},C)));if(D[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){B=this.length}}return this}}(jQuery));


/* jquery.growfield.min.js */
(function($){if($.support==undefined)$.support={boxModel:$.boxModel};var windowLoaded=false;$(window).one('load',function(){windowLoaded=true;});$.fx.prototype.originalUpdate=$.fx.prototype.update;$.fx.prototype.update=false;$.fx.prototype.update=function(){if(!this.options.inline)return this.originalUpdate.call(this);if(this.options.step)
this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);};var growfield=function(dom){this.dom=dom;this.o=$(dom);this.opt={auto:true,animate:100,easing:null,min:false,max:false,restore:false,step:false};this.enabled=this.dummy=this.busy=this.initial=this.sizeRelated=this.prevH=this.firstH=false;};growfield.prototype={toggle:function(mode){if((mode=='disable'||mode===false)&&this.enabled)return this.setEvents('off');if((mode=='enable'||mode===true)&&!this.enabled)return this.setEvents('on');return this;},setEvents:function(mode){var o=this.o,opt=this.opt,th=this,initial=false;if(mode=='on'&&!this.enabled){var windowLoad=o.height()==0?true:false;if(!windowLoad||windowLoaded)$(function(){th.prepareSizeRelated();});else $(window).one('load',function(){th.prepareSizeRelated();});if(opt.auto){o.bind('keyup.growfield',function(e){th.keyUp(e);return true;});o.bind('focus.growfield',function(e){th.focus(e);return true;});o.bind('blur.growfield',function(e){th.blur(e);return true;});initial={overflow:o.css('overflow'),cssResize:o.css('resize')};if($.browser.safari)o.css('resize','none');this.initial=initial;o.css({overflow:'hidden'});if(!windowLoad||windowLoaded)$(function(){th.createDummy();});else $(window).one('load',function(){th.createDummy();});}else{o.bind('keydown.growfield',function(e){th.manualKeyUp(e);return true;});o.css('overflow-y','auto');if(!windowLoad||windowLoaded)$(function(){th.update(o.height());});else $(window).one('load',function(){th.update(o.height());});}
o.addClass('growfield');this.enabled=true;}
else if(mode=='off'&&this.enabled){if(this.dummy){this.dummy.remove();this.dummy=false;}
o.unbind('.growfield').css('overflow',this.initial.overflow);if($.browser.safari)o.css('resize',this.initial.cssResize);this.enabled=false;}
return this;},setOptions:function(options){var opt=this.opt,o=this.o;$.extend(opt,options);if(!$.easing)opt.easing=null;},update:function(h,animate){var sr=this.sizeRelated,val=this.o.val(),opt=this.opt,dom=this.dom,o=this.o,th=this,prev=this.prevH;var noHidden=!opt.auto,noFocus=opt.auto;h=this.convertHeight(Math.round(h),'inner');h=opt.min>h?opt.min:opt.max&&h>opt.max?opt.max:opt.auto&&!val?opt.min:h;if(opt.max&&opt.auto){if(prev!=opt.max&&h==opt.max){o.css('overflow-y','scroll');if(!opt.animate)o.focus();noHidden=true;noFocus=false;}
if(prev==opt.max&&h<opt.max){o.css('overflow-y','hidden');if(!opt.animate)o.focus();noFocus=false;}}
if(h==prev)return true;this.prevH=h;if(animate){th.busy=true;o.animate({height:h},{duration:opt.animate,easing:opt.easing,overflow:null,inline:true,complete:function(){if(!noHidden)o.css('overflow','hidden');if(!noFocus)o.focus();th.busy=false;},queue:false});}else dom.style.height=h+'px';},manualKeyUp:function(e){if(!e.ctrlKey)return;if(e.keyCode!=38&&e.keyCode!=40)return;this.update(this.o.outerHeight()+(this.opt.step*(e.keyCode==38?-1:1)),this.opt.animate);},keyUp:function(e){if(this.busy)return true;if($.inArray(e.keyCode,[37,38,39,40])!=-1)return true;this.update(this.getDummyHeight(),this.opt.animate);},focus:function(e){if(this.busy)return true;if(this.opt.restore)this.update(this.getDummyHeight(),this.opt.animate);},blur:function(e){if(this.busy)return true;if(this.opt.restore)this.update(0,false);},getDummyHeight:function(){var val=this.o.val(),h=0,sr=this.sizeRelated,add="\n111\n111";if($.browser.safari)val=val.substring(0,val.length-1);if(!sr.lh||!sr.fs)val+=add;this.dummy.val(val);if($.browser.msie)this.dummy[0].style.height=this.dummy[0].scrollHeight+'px';h=this.dummy[0].scrollHeight;if(sr.lh&&sr.fs)h+=sr.lh>sr.fs?sr.lh+sr.fs:sr.fs*2;if($.browser.msie)this.dummy[0].style.height='20px';return h;},createDummy:function(){var o=this.o,val=this.o.val();var dummy=o.clone().addClass('growfieldDummy').attr('name','').attr('tabindex',-9999).css({position:'absolute',left:-9999,top:0,height:'20px',resize:'none'}).insertBefore(o).show();if(!val)dummy.val('dummy text');this.dummy=dummy;this.update(!jQuery.trim(val)?0:this.getDummyHeight(),false);},convertHeight:function(h,to){var sr=this.sizeRelated,mod=(to=='inner'?-1:1),bm=$.support.boxModel;return h
+(bm?sr.bt:0)*mod
+(bm?sr.bb:0)*mod
+(bm?sr.pt:0)*mod
+(bm?sr.pb:0)*mod;},prepareSizeRelated:function(){var o=this.o,opt=this.opt;if(!opt.min){opt.min=parseInt(o.css('min-height'),10)||this.firstH||parseInt(o.height(),10)||20;if(opt.min<=0)opt.min=20;if(!this.firstH)this.firstH=opt.min;}
if(!opt.max){opt.max=parseInt(o.css('max-height'),10)||false;if(opt.max<=0)opt.max=false;}
if(!opt.step)opt.step=parseInt(o.css('line-height'),10)||parseInt(o.css('font-size'),10)||20;var sr={pt:parseInt(o.css('paddingTop'),10)||0,pb:parseInt(o.css('paddingBottom'),10)||0,bt:parseInt(o.css('borderTopWidth'),10)||0,bb:parseInt(o.css('borderBottomWidth'),10)||0,lh:parseInt(o.css('lineHeight'),10)||false,fs:parseInt(o.css('fontSize'),10)||false};this.sizeRelated=sr;}};$.fn.growfield=function(options){if('destroy'==options)return this.each(function(){var gf=$(this).data('growfield');if(gf==undefined)return true;gf.toggle(false);$(this).removeData('growfield');return true;});if('restart'==options)return this.each(function(){var gf=$(this).data('growfield');if(gf==undefined)return true;gf.toggle(false).toggle(true);});var tp=typeof options;return this.each(function(){if(!/textarea/i.test(this.tagName)||$(this).hasClass('growfieldDummy'))return true;var initial=false,o=$(this),gf=o.data('growfield');if(gf==undefined){initial=true;o.data('growfield',new growfield(this));gf=o.data('growfield');}
if(initial){var opt=$.extend({},$.fn.growfield.defaults,options);gf.setOptions(opt);}
if(!initial&&(!options||tp=='object'))gf.setOptions(options);if(tp=='string'){if(options.indexOf('!')==0&&$.fn.growfield.presets[options.substr(1)])o.unbind('.'+i+'.'+options.substr(1));else if($.fn.growfield.presets[options]){var pOpt=$.fn.growfield.presets[options];gf.setOptions(pOpt,options);}}
if(initial&&!opt.skipEnable)gf.toggle(true);if(!initial&&(tp=='boolean'||options=='enable'||options=='disable'))gf.toggle(options);});};$.fn.growfield.defaults={};$.fn.growfield.presets={};})(jQuery);


/* jquery.insertatcaret.js */

$.fn.insertAtCaret=function(myValue){return this.each(function(){if(document.selection){this.focus();sel=document.selection.createRange();sel.text=myValue;this.focus();}
else if(this.selectionStart||this.selectionStart=='0'){var startPos=this.selectionStart;var endPos=this.selectionEnd;var scrollTop=this.scrollTop;this.value=this.value.substring(0,startPos)+myValue+this.value.substring(endPos,this.value.length);this.focus();this.selectionStart=startPos+myValue.length;this.selectionEnd=startPos+myValue.length;this.scrollTop=scrollTop;}else{this.value+=myValue;this.focus();}});};


/* carmichaelFisher.js */

var cmf=window.cmf={init:function(handler){if(Sys&&Sys.Application&&Sys.Application.add_load){Sys.Application.add_load(function(){jQuery(document).ready(function(){handler();});});}else{jQuery(document).ready(function(){handler();});}},initEditor:function(elementID){Sys.Application.add_load(function(){var ed=$find(elementID);if(ed._resizeExtender){ed._resizeExtender.dispose();ed._resizeExtender=null;}
ed._resizeExtender=new Telerik.Web.UI.ResizeExtender(ed,ed._rootElement,{s:ed._bottomResizer},ed._tableElement);});}};$(document).ready(function(){$('#menu > ul > li > ul').hover(function(){$(this).siblings('a').addClass('hover');},function(){$(this).siblings('a').removeClass('hover');});$('a[rel=external]').bind('click',function(){window.open($(this).attr('href'));return false;});});



