function LTrim(str)
/*	PURPOSE: Remove leading blanks from our string.
	IN: str - the string we want to LTrim
*/
{	var whitespace = new String(" \t\n\r");

	var s = new String(str);

	if (whitespace.indexOf(s.charAt(0)) != -1) {
	// We have a string with leading blank(s)...

		var j=0, i = s.length;

		// Iterate from the far left of string until we
		// don't have any more whitespace...
		while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
			j++;
			// Get the substring from the first non-whitespace
			// character to the end of the string...
			s = s.substring(j, i);
	}
	return s;
}

/*
==================================================================
RTrim(string) : Returns a copy of a string without trailing spaces.
==================================================================
*/
function RTrim(str)
/*	PURPOSE: Remove trailing blanks from our string.
	IN: str - the string we want to RTrim
*/
{	// We don't want to trip JUST spaces, but also tabs,
	// line feeds, etc.  Add anything else you want to
	// "trim" here in Whitespace
	var whitespace = new String(" \t\n\r");

	var s = new String(str);

	if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
		// We have a string with trailing blank(s)...

		var i = s.length - 1;       // Get length of string

		// Iterate from the far right of string until we
		// don't have any more whitespace...
		while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
			i--;

		// Get the substring from the front of the string to
		// where the last non-whitespace character is...
		s = s.substring(0, i+1);
	}
	return s;
}

/*
=============================================================
Trim(string) : Returns a copy of a string without leading or trailing spaces
=============================================================
*/
function trim(str)
/*	PURPOSE: Remove trailing and leading blanks from our string.
	IN: str - the string we want to Trim

	RETVAL: A Trimmed string!
*/
{	return RTrim(LTrim(str));
}

function isEmail(string) {
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1){
		return true;
	}else{
		return false;
	}
}

function numeric_dot(string) {
	if (string.search(/^[0-9\.]*$/) != -1){
		return true;
	}else{
		return false;
	}
}

function numeric(string) {
	if (string.search(/^[0-9]*$/) != -1){
		return true;
	}else{
		return false;
	}
}

function blurText(text){
	if(trim(text.value) == ''){
		text.value = text.defaultValue;
	}
}

function focusText(text){
	if(text.value == text.defaultValue){
		text.value='';
	}
}

function clear_textbox()
{
if (document.searchadviser.searchstring.value == "search our site...")
document.searchadviser.searchstring.value = "";
}

/* cycle plugin - v2.65 */
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}(';(4($){6 x="2.3r";3($.1m==1B){$.1m={11:!($.1U.2s)}}4 P(){3(1V.1W&&1V.1W.P){1V.1W.P("[y] "+3s.3t.3u.3v(3w," "))}}$.C.y=4(e,f){6 o={s:7.2t,c:7.3x};3(7.9==0&&e!="1X"){3(!$.2u&&o.s){P("2v 13 2w, 3y 1C");$(4(){$(o.s,o.c).y(e,f)});8 7}P("1D; 3z 1f 1Y 3A 2t"+($.2u?"":" (2v 13 2w)"));8 7}8 7.12(4(){e=2x(7,e,f);3(e===D){8}3(7.F){1o(7.F)}7.F=7.15=0;6 a=$(7);6 b=e.1Z?$(e.1Z,7):a.3B();6 c=b.3C();3(c.9<2){P("1D; 3D 3E 2y: "+c.9);8}6 d=2z(a,b,c,e,o);3(d===D){8}3(d.K||d.1p){7.F=21(4(){1g(c,d,0,!d.1h)},d.1p?10:d.K+(d.2A||0))}})};4 2x(a,b,c){3(a.1n==1B){a.1n=0}3(b===1B||b===A){b={}}3(b.22==2B){3F(b){23"1X":a.1n++;3(a.F){1o(a.F)}a.F=0;$(a).3G("y.1E");8 D;23"24":a.15=1;8 D;23"2C":a.15=0;3(c===Q){b=$(a).1F("y.1E");3(!b){P("2D 13 1Y, 2E 13 2C");8 D}3(a.F){1o(a.F);a.F=0}1g(b.1f,b,1,1)}8 D;3H:b={S:b}}}I{3(b.22==3I){6 d=b;b=$(a).1F("y.1E");3(!b){P("2D 13 1Y, 2E 13 1q 25");8 D}3(d<0||d>=b.1f.9){P("3J 25 2F: "+d);8 D}b.B=d;3(a.F){1o(a.F);a.F=0}3(2G c=="3K"){b.1G=c}1g(b.1f,b,1,d>=b.L);8 D}}8 b}4 26(a,b){3(!$.1m.11&&b.1x&&a.2H.27){3L{a.2H.3M("27")}3N(3O){}}}4 2z(f,g,j,k,o){6 l=$.1a({},$.C.y.2I,k||{},$.2J?f.2J():$.3P?f.1F():{});3(l.29){l.2a=l.2b||j.9}6 m=f[0];f.1F("y.1E",l);l.$1i=f;l.1H=m.1n;l.1f=j;l.R=l.R?[l.R]:[];l.M=l.M?[l.M]:[];l.M.2c(4(){l.1y=0});3(!$.1m.11&&l.1x){l.M.T(4(){26(7,l)})}3(l.1p){l.M.T(4(){1g(j,l,0,!l.1h)})}2K(l);3(!$.1m.11&&l.1x&&!l.2L){2d(g)}3(f.J("1I")=="3Q"){f.J("1I","3R")}3(l.G){f.G(l.G)}3(l.E&&l.E!="1J"){f.E(l.E)}3(l.U){l.U=1K(l.U)}3(l.17){l.1j=[];1r(6 i=0;i<j.9;i++){l.1j.T(i)}l.1j.3S(4(a,b){8 1z.17()-0.5});l.N=0;l.U=l.1j[0]}I{3(l.U>=j.9){l.U=0}}l.L=l.U=l.U||0;6 n=l.U;g.J({1I:"2M",2N:0,2O:0}).2e().12(4(i){6 z=n?i>=n?j.9-(i-n):n-i:j.9-i;$(7).J("z-2F",z)});$(j[n]).J("11",1).3T();26(j[n],l);3(l.1b&&l.G){g.G(l.G)}3(l.1b&&l.E&&l.E!="1J"){g.E(l.E)}6 p=l.2P&&!f.3U();3(p){6 q=0,1s=0;1r(6 i=0;i<j.9;i++){6 r=$(j[i]),e=r[0],w=r.3V(),h=r.3W();3(!w){w=e.3X}3(!h){h=e.3Y}q=w>q?w:q;1s=h>1s?h:1s}3(q>0&&1s>0){f.J({G:q+"2Q",E:1s+"2Q"})}}3(l.24){f.2R(4(){7.15++},4(){7.15--})}3(2S(l)===D){8 D}3(!l.1t){6 s=$.C.y.1A[l.S];3($.1c(s)){s(f,g,l)}I{3(l.S!="2f"&&!l.1t){P("2T 2U: "+l.S,"; 1C 1D");8 D}}}6 t=D;k.1L=k.1L||0;g.12(4(){6 a=$(7);7.V=(l.1b&&l.E)?l.E:a.E();7.W=(l.1b&&l.G)?l.G:a.G();3(a.3Z("2V")){6 b=($.1U.2s&&7.W==28&&7.V==30&&!7.2g);6 c=($.1U.40&&7.W==42&&7.V==19&&!7.2g);6 d=(7.V==0&&7.W==0&&!7.2g);3(b||c||d){3(o.s&&l.2W&&++k.1L<41){P(k.1L," - 2V 25 13 43, 44 1C: ",7.2X,7.W,7.V);21(4(){$(o.s,o.c).y(k)},l.2Y);t=Q;8 D}I{P("45 13 46 47 48 49: "+7.2X,7.W,7.V)}}}8 Q});3(t){8 D}l.O=l.O||{};l.1d=l.1d||{};l.1e=l.1e||{};g.13(":2h("+n+")").J(l.O);3(l.2Z){$(g[n]).J(l.2Z)}3(l.K){l.K=1K(l.K);3(l.14.22==2B){l.14=$.S.4a[l.14]||1K(l.14)}3(!l.1M){l.14=l.14/2}4b((l.K-l.14)<31){l.K+=l.14}}3(l.2i){l.1u=l.1v=l.2i}3(!l.1N){l.1N=l.14}3(!l.1k){l.1k=l.14}l.1w=j.9;l.L=l.2j=n;3(l.17){l.B=l.L;3(++l.N==j.9){l.N=0}l.B=l.1j[l.N]}I{l.B=l.U>=(j.9-1)?0:l.U+1}6 u=g[n];3(l.R.9){l.R[0].1O(u,[u,u,l,Q])}3(l.M.9>1){l.M[1].1O(u,[u,u,l,Q])}3(l.H){$(l.H).2k(4(){8 1q(l,l.1h?-1:1)})}3(l.1P){$(l.1P).2k(4(){8 1q(l,l.1h?1:-1)})}3(l.1l){32(j,l)}33(l,j);8 l}4 2K(a){a.X={R:[],M:[]};a.X.O=$.1a({},a.O);a.X.18=$.1a({},a.18);a.X.1d=$.1a({},a.1d);a.X.1e=$.1a({},a.1e);$.12(a.R,4(){a.X.R.T(7)});$.12(a.M,4(){a.X.M.T(7)})}4 2S(a){6 b=$.C.y.1A;3(a.S.34(",")>0){a.1t=Q;a.Y=a.S.4c(/\\s*/g,"").4d(",");1r(6 i=0;i<a.Y.9;i++){6 c=a.Y[i];6 d=b[c];3(!d||!b.35(c)||!$.1c(d)){P("4e 2T 2U: ",c);a.Y.36(i,1);i--}}3(!a.Y.9){P("4f 4g 1A 4h; 1C 1D.");8 D}}I{3(a.S=="4i"){a.1t=Q;a.Y=[];1r(p 4j b){6 d=b[p];3(b.35(p)&&$.1c(d)){a.Y.T(p)}}}}3(a.1t&&a.37){6 e=1z.38(1z.17()*20)+30;1r(6 i=0;i<e;i++){6 f=1z.38(1z.17()*a.Y.9);a.Y.T(a.Y.36(f,1)[0])}P("4k S 4l: ",a.Y)}8 Q}4 33(d,e){d.4m=4(a,b){6 c=$(a),s=c[0];3(!d.2b){d.2a++}e[b?"2c":"T"](s);3(d.39){d.39[b?"2c":"T"](s)}d.1w=e.9;c.J("1I","2M");c[b?"4n":"3a"](d.$1i);3(b){d.L++;d.B++}3(!$.1m.11&&d.1x&&!d.2L){2d(c)}3(d.1b&&d.G){c.G(d.G)}3(d.1b&&d.E&&d.E!="1J"){$2y.E(d.E)}s.V=(d.1b&&d.E)?d.E:c.E();s.W=(d.1b&&d.G)?d.G:c.G();c.J(d.O);3(d.1l){$.C.y.2l(e.9-1,s,$(d.1l),e,d)}3($.1c(d.3b)){d.3b(c)}I{c.2e()}}}$.C.y.3c=4(a,b){b=b||a.S;a.R=[];a.M=[];a.O=$.1a({},a.X.O);a.18=$.1a({},a.X.18);a.1d=$.1a({},a.X.1d);a.1e=$.1a({},a.X.1e);a.1Q=A;$.12(a.X.R,4(){a.R.T(7)});$.12(a.X.M,4(){a.M.T(7)});6 c=$.C.y.1A[b];3($.1c(c)){c(a.$1i,$(a.1f),a)}};4 1g(a,b,c,d){3(c&&b.1y&&b.3d){$(a).1X(Q,Q);b.1y=D}3(b.1y){8}6 p=b.$1i[0],Z=a[b.L],H=a[b.B];3(p.1n!=b.1H||p.F===0&&!c){8}3(!c&&!p.15&&((b.29&&(--b.2a<=0))||(b.1R&&!b.17&&b.B<b.L))){3(b.2m){b.2m(b)}8}3(c||!p.15){6 e=b.S;Z.V=Z.V||$(Z).E();Z.W=Z.W||$(Z).G();H.V=H.V||$(H).E();H.W=H.W||$(H).G();3(b.1t){3(b.1S==1B||++b.1S>=b.Y.9){b.1S=0}e=b.Y[b.1S];b.4o=e}3(b.1G){e=b.1G;b.1G=A}$.C.y.3c(b,e);3(b.R.9){$.12(b.R,4(i,o){3(p.1n!=b.1H){8}o.1O(H,[Z,H,b,d])})}6 f=4(){$.12(b.M,4(i,o){3(p.1n!=b.1H){8}o.1O(H,[Z,H,b,d])})};3(b.B!=b.L){b.1y=1;3(b.1Q){b.1Q(Z,H,b,f,d)}I{3($.1c($.C.y[b.S])){$.C.y[b.S](Z,H,b,f)}I{$.C.y.2f(Z,H,b,f,c&&b.3e)}}}b.2j=b.L;3(b.17){b.L=b.B;3(++b.N==a.9){b.N=0}b.B=b.1j[b.N]}I{6 g=(b.B+1)==a.9;b.B=g?0:b.B+1;b.L=g?a.9-1:b.B-1}3(b.1l){$.C.y.2n(b.1l,b.L)}}6 h=0;3(b.K&&!b.1p){h=3f(Z,H,b,d)}I{3(b.1p&&p.15){h=10}}3(h>0){p.F=21(4(){1g(a,b,0,!b.1h)},h)}}$.C.y.2n=4(a,b){$(a).4p("a").4q("3g").27("a:2h("+b+")").4r("3g")};4 3f(a,b,c,d){3(c.2o){6 t=c.2o(a,b,c,d);3(t!==D){8 t}}8 c.K}$.C.y.H=4(a){1q(a,a.1h?-1:1)};$.C.y.1P=4(a){1q(a,a.1h?1:-1)};4 1q(a,b){6 c=a.1f;6 p=a.$1i[0],K=p.F;3(K){1o(K);p.F=0}3(a.17&&b<0){a.N--;3(--a.N==-2){a.N=c.9-2}I{3(a.N==-1){a.N=c.9-1}}a.B=a.1j[a.N]}I{3(a.17){3(++a.N==c.9){a.N=0}a.B=a.1j[a.N]}I{a.B=a.L+b;3(a.B<0){3(a.1R){8 D}a.B=c.9-1}I{3(a.B>=c.9){3(a.1R){8 D}a.B=0}}}}3($.1c(a.2p)){a.2p(b>0,a.B,c[a.B])}1g(c,a,1,b>=0);8 D}4 32(a,b){6 c=$(b.1l);$.12(a,4(i,o){$.C.y.2l(i,o,c,a,b)});$.C.y.2n(b.1l,b.U)}$.C.y.2l=4(i,b,c,d,e){6 a=($.1c(e.2q))?e.2q(i,b):\'<a 4s="#">\'+(i+1)+"</a>";3(!a){8}6 f=$(a);3(f.4t("4u").9==0){6 g=[];3(c.9>1){c.12(4(){6 a=f.4v(Q);$(7).4w(a);g.T(a)});f=$(g)}I{f.3a(c)}}f.4x(e.3h,4(){e.B=i;6 p=e.$1i[0],K=p.F;3(K){1o(K);p.F=0}3($.1c(e.2r)){e.2r(e.B,d[e.B])}1g(d,e,1,e.L<i);8 D});3(e.3i){f.2R(4(){e.$1i[0].15++},4(){e.$1i[0].15--})}};$.C.y.4y=4(a,b){6 d,l=a.2j,c=a.L;3(b){d=c>l?c-l:a.1w-l}I{d=c<l?l-c:l+a.1w-c}8 d};4 2d(b){4 1T(s){s=1K(s).4z(16);8 s.9<2?"0"+s:s}4 3j(e){1r(;e&&e.4A.4B()!="4C";e=e.4D){6 v=$.J(e,"3k-3l");3(v.34("4E")>=0){6 a=v.4F(/\\d+/g);8"#"+1T(a[0])+1T(a[1])+1T(a[2])}3(v&&v!="4G"){8 v}}8"#4H"}b.12(4(){$(7).J("3k-3l",3j(7))})}$.C.y.3m=4(a,b,c,w,h,d){$(c.1f).13(a).2e();c.O.11=1;c.O.3n="4I";3(w!==D&&b.W>0){c.O.G=b.W}3(h!==D&&b.V>0){c.O.E=b.V}c.18=c.18||{};c.18.3n="4J";$(a).J("3o",c.1w+(d===Q?1:0));$(b).J("3o",c.1w+(d===Q?0:1))};$.C.y.2f=4(a,b,c,d,e){6 f=$(a),$n=$(b);6 g=c.1N,1k=c.1k,1u=c.1u,1v=c.1v;$n.J(c.O);3(e){3(2G e=="4K"){g=1k=e}I{g=1k=1}1u=1v=A}6 h=4(){$n.3p(c.1d,g,1u,d)};f.3p(c.1e,1k,1v,4(){3(c.18){f.J(c.18)}3(!c.1M){h()}});3(c.1M){h()}};$.C.y.1A={3q:4(d,e,f){e.13(":2h("+f.L+")").J("11",0);f.R.T(4(a,b,c){$.C.y.3m(a,b,c);c.O.11=0});f.1d={11:1};f.1e={11:0};f.O={2N:0,2O:0}}};$.C.y.4L=4(){8 x};$.C.y.2I={S:"3q",K:4M,2o:A,1p:0,14:4N,1N:A,1k:A,H:A,1P:A,2p:A,1l:A,2r:A,3h:"2k",2q:A,R:A,M:A,2m:A,2i:A,1u:A,1v:A,4O:A,1d:A,1e:A,O:A,18:A,1Q:A,E:"1J",U:0,1M:1,17:0,1b:0,2P:1,24:0,3i:0,29:0,2b:0,2A:0,1Z:A,1x:!$.1m.11,1R:0,3e:0,37:1,1h:0,3d:Q,2W:Q,2Y:31}})(4P);',62,300,'|||if|function||var|this|return|length|||||||||||||||||||||||||cycle||null|nextSlide|fn|false|height|cycleTimeout|width|next|else|css|timeout|currSlide|after|randomIndex|cssBefore|log|true|before|fx|push|startingSlide|cycleH|cycleW|original|fxs|curr||opacity|each|not|speed|cyclePause||random|cssAfter||extend|fit|isFunction|animIn|animOut|elements|go|rev|cont|randomMap|speedOut|pager|support|cycleStop|clearTimeout|continuous|advance|for|maxh|multiFx|easeIn|easeOut|slideCount|cleartype|busy|Math|transitions|undefined|slideshow|terminating|opts|data|oneTimeFx|stopCount|position|auto|parseInt|requeueAttempts|sync|speedIn|apply|prev|fxFn|nowrap|lastFx|hex|browser|window|console|stop|found|slideExpr||setTimeout|constructor|case|pause|slide|removeFilter|filter||autostop|countdown|autostopCount|unshift|clearTypeFix|hide|custom|complete|eq|easing|lastSlide|click|createPagerAnchor|end|updateActivePagerLink|timeoutFn|prevNextClick|pagerAnchorBuilder|pagerClick|msie|selector|isReady|DOM|ready|handleArguments|slides|buildOptions|delay|String|resume|options|can|index|typeof|style|defaults|metadata|saveOriginalOpts|cleartypeNoBg|absolute|top|left|containerResize|px|hover|supportMultiTransitions|unknown|transition|img|requeueOnImageNotLoaded|src|requeueTimeout|cssFirst||250|buildPager|exposeAddSlide|indexOf|hasOwnProperty|splice|randomizeEffects|floor|els|appendTo|onAddSlide|resetState|manualTrump|fastOnEvent|getTimeout|activeSlide|pagerEvent|pauseOnPagerHover|getBg|background|color|commonReset|display|zIndex|animate|fade|65|Array|prototype|join|call|arguments|context|queuing|zero|by|children|get|too|few|switch|removeData|default|Number|invalid|string|try|removeAttribute|catch|smother|meta|static|relative|sort|show|innerHeight|outerWidth|outerHeight|offsetWidth|offsetHeight|is|opera|100||loaded|requeuing|could|determine|size|of|image|speeds|while|replace|split|discarding|No|valid|named|all|in|randomized|sequence|addSlide|prependTo|currFx|find|removeClass|addClass|href|parents|body|clone|append|bind|hopsFromLast|toString|nodeName|toLowerCase|html|parentNode|rgb|match|transparent|ffffff|block|none|number|ver|4000|1000|shuffle|jQuery'.split('|'),0,{}))
