(function(e){function l(a,b,c){b="("+c.replace(m,"\\$1")+")";return a.replace(new RegExp(b,"gi"),"<strong>$1</strong>")}function j(a,b){this.el=e(a);this.el.attr("autocomplete","off");this.suggestions=[];this.data=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.el.val();this.intervalId=0;this.cachedResponse=[];this.onChangeInterval=null;this.ignoreValueChange=false;this.serviceUrl=b.serviceUrl;this.isLocal=false;this.options={autoSubmit:false,minChars:1,maxHeight:300,deferRequestBy:0,width:0,highlight:true,params:{},fnFormatResult:l,delimiter:null,zIndex:9999};this.initialize();this.setOptions(b)}var m=new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");e.fn.autocomplete=function(a){return new j(this.get(0),a)};j.prototype={killerFn:null,initialize:function(){var a,b,c;a=this;b=Math.floor(Math.random()*1048576).toString(16);c="Autocomplete_"+b;this.killerFn=function(f){if(e(f.target).parents(".autocomplete").size()===0){a.killSuggestions();a.disableKillerFn()}};if(!this.options.width){this.options.width=this.el.width()}this.mainContainerId="AutocompleteContainter_"+b;e('<div id="'+this.mainContainerId+'" style="position:absolute;z-index:9999;"><div class="autocomplete-w1"><div class="autocomplete" id="'+c+'" style="display:none; width:300px;"></div></div></div>').appendTo("body");this.container=e("#"+c);this.fixPosition();window.opera?this.el.keypress(function(f){a.onKeyPress(f)}):this.el.keydown(function(f){a.onKeyPress(f)});this.el.keyup(function(f){a.onKeyUp(f)});this.el.blur(function(){a.enableKillerFn()});this.el.focus(function(){a.fixPosition()})},setOptions:function(a){var b=this.options;e.extend(b,a);if(b.lookup){this.isLocal=true;if(e.isArray(b.lookup)){b.lookup={suggestions:b.lookup,data:[]}}}e("#"+this.mainContainerId).css({zIndex:b.zIndex});this.container.css({maxHeight:b.maxHeight+"px",width:b.width})},clearCache:function(){this.cachedResponse=[];this.badQueries=[]},disable:function(){this.disabled=true},enable:function(){this.disabled=false},fixPosition:function(){var a=this.el.offset();e("#"+this.mainContainerId).css({top:a.top+this.el.innerHeight()+"px",left:a.left+"px"})},enableKillerFn:function(){var a=this;e(document).bind("click",a.killerFn)},disableKillerFn:function(){var a=this;e(document).unbind("click",a.killerFn)},killSuggestions:function(){var a=this;this.stopKillSuggestions();this.intervalId=window.setInterval(function(){a.hide();a.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(a){if(!(this.disabled||!this.enabled)){switch(a.keyCode){case 27:this.el.val(this.currentValue);this.hide();break;case 9:case 13:if(this.selectedIndex===-1){this.hide();return}this.select(this.selectedIndex);if(a.keyCode===9){return}break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}a.stopImmediatePropagation();a.preventDefault()}},onKeyUp:function(a){if(!this.disabled){switch(a.keyCode){case 38:case 40:return}clearInterval(this.onChangeInterval);if(this.currentValue!==this.el.val()){if(this.options.deferRequestBy>0){var b=this;this.onChangeInterval=setInterval(function(){b.onValueChange()},this.options.deferRequestBy)}else{this.onValueChange()}}}},onValueChange:function(){clearInterval(this.onChangeInterval);this.currentValue=this.el.val();var a=this.getQuery(this.currentValue);this.selectedIndex=-1;if(this.ignoreValueChange){this.ignoreValueChange=false}else{a===""||a.length<this.options.minChars?this.hide():this.getSuggestions(a)}},getQuery:function(a){var b;b=this.options.delimiter;if(!b){return e.trim(a)}a=a.split(b);return e.trim(a[a.length-1])},getSuggestionsLocal:function(a){var b,c,f,g,d;c=this.options.lookup;f=c.suggestions.length;b={suggestions:[],data:[]};a=a.toLowerCase();for(d=0;d<f;d++){g=c.suggestions[d];if(g.toLowerCase().indexOf(a)===0){b.suggestions.push(g);b.data.push(c.data[d])}}return b},getSuggestions:function(a){var b,c;if((b=this.isLocal?this.getSuggestionsLocal(a):this.cachedResponse[a])&&e.isArray(b.suggestions)){this.suggestions=b.suggestions;this.data=b.data;this.suggest()}else{if(!this.isBadQuery(a)){c=this;c.options.params.query=a;e.get(this.serviceUrl,c.options.params,function(f){c.processResponse(f)},"text")}}},isBadQuery:function(a){for(var b=this.badQueries.length;b--;){if(a.indexOf(this.badQueries[b])===0){return true}}return false},hide:function(){this.enabled=false;this.selectedIndex=-1;this.container.hide()},suggest:function(){if(this.suggestions.length===0){this.hide()}else{var a,b,c,f,g,d,h,k;a=this;b=this.suggestions.length;f=this.options.fnFormatResult;g=this.getQuery(this.currentValue);h=function(i){return function(){a.activate(i)}};k=function(i){return function(){a.select(i)}};this.container.hide().empty();for(d=0;d<b;d++){c=this.suggestions[d];c=e((a.selectedIndex===d?'<div class="selected"':"<div")+' title="'+c+'">'+f(c,this.data[d],g)+"</div>");c.mouseover(h(d));c.click(k(d));this.container.append(c)}this.enabled=true;this.container.show()}},processResponse:function(a){var b;try{b=eval("("+a+")")}catch(c){return}if(!e.isArray(b.data)){b.data=[]}if(!this.options.noCache){this.cachedResponse[b.query]=b;b.suggestions.length===0&&this.badQueries.push(b.query)}if(b.query===this.getQuery(this.currentValue)){this.suggestions=b.suggestions;this.data=b.data;this.suggest()}},activate:function(a){var b,c;b=this.container.children();this.selectedIndex!==-1&&b.length>this.selectedIndex&&e(b.get(this.selectedIndex)).removeClass();this.selectedIndex=a;if(this.selectedIndex!==-1&&b.length>this.selectedIndex){c=b.get(this.selectedIndex);e(c).addClass("selected")}return c},deactivate:function(a,b){a.className="";if(this.selectedIndex===b){this.selectedIndex=-1}},select:function(a){var b;if(b=this.suggestions[a]){this.el.val(b);if(this.options.autoSubmit){b=this.el.parents("form");b.length>0&&b.get(0).submit()}this.ignoreValueChange=true;this.hide();this.onSelect(a)}},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){this.container.children().get(0).className="";this.selectedIndex=-1;this.el.val(this.currentValue)}else{this.adjustScroll(this.selectedIndex-1)}}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(a){var b,c;a=this.activate(a).offsetTop;b=this.container.scrollTop();c=b+this.options.maxHeight-25;if(a<b){this.container.scrollTop(a)}else{a>c&&this.container.scrollTop(a-this.options.maxHeight+25)}},onSelect:function(a){var b,c,f;b=this;c=b.options.onSelect;f=b.suggestions[a];a=b.data[a];b.el.val(function(g){var d,h;d=b.options.delimiter;if(!d){return g}h=b.currentValue;d=h.split(d);if(d.length===1){return g}return h.substr(0,h.length-d[d.length-1].length)+g}(f));e.isFunction(c)&&c(f,a)}}})(jQuery);
/* Copyright (c) 2008 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Color functions from Steve's Cross Browser Gradient Backgrounds v1.0 (steve@slayeroffice.com && http://slayeroffice.com/code/gradient/)
 *
 * Version 1.0.1-pre
 */
(function(a){a.fn.gradient=function(c){c=a.extend({from:"000000",to:"ffffff",direction:"horizontal",position:"top",length:null},c||{});function f(k,j,l){var g=[],h;for(h=0;h<k.length;h+=1){g[h]=Math.round(k[h]*j)+Math.round(l[h]*(1-j))}return g}function d(g){return parseInt(g,16)}function e(g){var h=[];h=[d(g.substring(0,2)),d(g.substring(2,4)),d(g.substring(4,6))];return h}function b(j,i,k){var h=[],g=1;k=(k<100)?k:100;do{h[h.length]=f(e(j),g,e(i));g-=((100/k)*0.01)}while(g>0);return h}return this.each(function(){var o=a(this),g=o.innerWidth(),t=o.innerHeight(),q=0,p=0,r=1,m=1,n=[],j=c.length||(c.direction=="vertical"?g:t),l=(c.position=="bottom"?"bottom:0;":"top:0;")+(c.position=="right"?"right:0;":"left:0;"),s=b(c.from,c.to,j),k;if(c.direction=="horizontal"){m=Math.round(j/s.length)||1;r=g}else{r=Math.round(j/s.length)||1;m=t}n.push('<div class="gradient" style="position: absolute; '+l+" width: "+(c.direction=="vertical"?j+"px":"100%")+"; height: "+(c.direction=="vertical"?"100%":j+"px")+"; overflow: hidden; z-index: 0; background-color: #"+(c.position.indexOf("bottom")!=-1?c.from:c.to)+'">');for(k=0;k<s.length;k+=1){n.push('<div style="position:absolute;z-index:1;top:'+p+"px;left:"+q+"px;height:"+(c.direction=="vertical"?"100%":m+"px")+";width:"+(c.direction=="vertical"?r+"px":"100%")+";background-color:rgb("+s[k][0]+","+s[k][1]+","+s[k][2]+');"></div>');c.direction=="vertical"?q+=r:p+=m;if(p>=t||q>=g){break}}n.push("</div>");if(o.css("position")=="static"){o.css("position","relative")}o.html('<div style="display:'+o.css("display")+'; position: relative; z-index: 2;">'+this.innerHTML+"</div>").prepend(n.join(""))})}})(jQuery);
/*
	MLDD MENU CODE:
	last edit: 11/11/2009

	Copyright 2008 SpiceBrains.com
*/
eval(function(h,b,j,f,g,i){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};while(j--){if(f[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),f[j])}}return h}("7 2m=0;9(!2A){7 3w=0;7 3v=0;7 3u=49;7 2A='2c';7 3t=48;7 3s='h';7 3r=19;7 3o=3n}7 12='47';7 V=L U();f 46(45){7 1A=P.K('1U');7 l=0;m(7 i=0;i<1A.k;i++){9(1A[i].1d==12){1A[i].j.X='1l';7 q=1A[i];7 2l=q.44('1Z');V[l]=L 3y(q,l,2l);l++}}}f b(d){e.d=d;e.1w=1b;e.D=0;e.1o=0;e.2a=0;e.1N=0;e.2U=0;e.x=0;e.y=0;e.1O=0;e.1H=0;e.2g=0;e.2h=0;e.16=1b;e.T=L U();e.G=0;e.27='';}f 3y(q,3x,1Z){7 M=q;7 1y=3x;7 o=e;7 1t=1E;7 1V=19;7 2o=1E;7 1M=3w;7 2f=3v;7 2w=3u;7 1e=2A;7 Y=3t;7 1q=3s;7 1T=3r;7 B;9(1Z){B=1Z.43(\",\");9(B[0])1M=B[0]*1;9(B[1])2f=B[1]*1;9(B[2])2w=B[2]*1;9(B[3])1e=B[3];9(B[4])Y=B[4]*1;9(B[5])1q=B[5];9(B[6])1T=B[6]*1;9(!Y)Y=2z}e.g=L U();f E(l,42,1z,N){7 c=o.g[l];m(7 z=0;z<c.T.k;z++)2v(c.T[z]);7 G=c.G;7 N=3q.3p(2z/N);7 F=0;9(G<1z){m(7 i=G;i<=1z;i=i+4){c.T[F]=1u(\"2d(\"+1y+\",\"+l+\",\"+i+\")\",(F*N));F++}}R 9(G>1z){m(7 i=G;i>=1z;i=i-4){c.T[F]=1u(\"2d(\"+1y+\",\"+l+\",\"+i+\")\",(F*N));F++}}}f 1x(l,2y,N){7 c=o.g[l];m(7 z=0;z<c.T.k;z++)2v(c.T[z]);7 G=c.G;7 N=3q.3p(2z/N);7 F=0;9(1q=='h')1Y=0;R 1Y=1;9(2y=='3m'){m(i=G;i<=Q;i=i+2){c.T[F]=1u(\"2b(\"+1y+\",\"+l+\",\"+i+\",\"+1Y+\")\",(F*N));F++}}R 9(2y=='3k'){m(i=G;i>=0;i=i-2){c.T[F]=1u(\"2b(\"+1y+\",\"+l+\",\"+i+\",\"+1Y+\")\",(F*N));F++}}}f 3b(l){9(!o.g[l].1w&&(3o==3n)){9(1e=='3l')E(l,0,Q,Y);R 9(1e=='1x')1x(l,'3m',Y);R o.g[l].d.j.X='1l';3j(o.g[l].d);o.g[l].1w=19;}}f 2p(l){9(o.g[l].1w){9(1e=='3l')E(l,Q,0,Y);R 9(1e=='1x')1x(l,'3k',Y);R o.g[l].d.j.X='28';3i(o.g[l].d);o.g[l].1w=1b;}}f 1Q(b){7 D=0;7 1v=b;10(1v.1d!=12){9(1v.18=='2q')D++;1v=1v.1c}p D}f 2x(b){7 H;7 J=b;7 l=0;10(J.1d!=12){9(J.18=='3g'){l++;H=J}J=J.1c}p H}f 3j(b){9(1Q(b)!=1)p-1;7 H=2x(b);9(H){H=H.K(\"a\")[0];H.3h='41'}}f 3i(b){9(1Q(b)!=1)p-1;7 H=2x(b);9(H){H=H.K(\"a\")[0];H.3h='40'}}f 1W(q){m(i=0;i<o.g.k;i++){9(o.g[i].d==q)p i}p-1}f 2W(b){10(b.1d!=12){b=b.1c;9(b.18=='2q')p 1W(b)}p-1}f 2T(q){7 2e=q.1D;q.j.29='37';7 1n=2e-q.1D;q.j.29=1n+'C';p 1n}f 2S(b){10(b.1d!=12){b=b.1c;9(b.18=='3g')3Z}p b.K(\"a\")[0].2i;}f 2s(){m(7 i=0;i<o.g.k;i++){2p(i)}}f 3a(){1t=O.1u(2s,2w)}f 2n(){9(1t){O.2v(1t);1t=1E}}f 1p(3f,3e){7 3c=3f+3e;m(7 i=0;i<o.g.k;i++){9(o.g[i].D>1){o.g[i].d.j.1L=o.g[i].x+'C';o.g[i].16=1b}}m(7 i=0;i<o.g.k;i++){7 c=o.g[i];9(c.D>1){7 2t=c.1o;7 2u=c.1O;7 3d=2C(c.d)[0];9((3d+2t+2u*c.D-2u)>3c&&1T){c.d.j.1L=-2t-1M+'C';c.16=19}}}}e.2L=f(){2s()};e.2M=f(){1p(1g(),1f())};e.2Z=f(){1p(1g(),1f())};e.2Y=f(){1p(1g(),1f())};e.35=f(){9(1V){1V=1b;2n();7 1X=e;7 b=1X.K(\"1U\")[0];7 2r=1W(b);9(2r>=0)3b(2r);7 S=L U();S[0]=1X.K(\"1U\")[0];9(!S[0])S[0]=0;7 J=1X.1c;7 u=0;10(J.1d!=12){9(J.18=='2q'){u++;S[u]=J}J=J.1c}7 1a=L U(o.g.k);m(7 i=0;i<1a.k;i++)1a[i]=1b;m(7 i=0;i<S.k;i++)1a[1W(S[i])]=19;m(7 i=0;i<1a.k;i++)9(!1a[i]&&(2o!=S[0]))2p(i);2o=S[1]}};e.34=f(){1V=19};e.32=f(){3a()};e.30=f(){2n()};9(P.39('38'))2m=P.39('38');2m.2l='';7 36=M.j.1h;M.j.1h='X:1l;3Y:1L;1O-I:37;3X:0;3W:0;';M.j.1h=';I:'+M.1P+'C;'+'1G:'+M.2i+'C;'+36;7 1s=M.K(\"2V\");e.g[0]=L b(M);m(7 z=0;z<1s.k;z++){7 2k=1s[z].K(\"1U\")[0];9(2k)e.g[e.g.k]=L b(2k);1s[z].31=e.35;1s[z].33=e.34}M.33=e.32;M.31=e.30;9(1T)O.3V=e.2Z;O.3U=e.2Y;m(7 u=1;u<e.g.k;u++){7 1S=e.g[u].d.2G;7 11=L U();7 1r=L U();7 1R=0;m(7 x=0;x<1S.k;x++){9(!1j(1S[x]))11[11.k]=1S[x]}m(7 y=0;y<11.k;y++){7 17=11[y].K(\"*\");9(17.k&&!1j(17[0])&&17[0].18!='A'){17[0].j.2X='2c';1r[1r.k]=17[0]}}m(7 z=0;z<11.k;z++){7 2j=11[z].K(\"a\");9(2j[0]){7 I=2j[0].1P;9(I>1R)1R=I}}m(7 s=0;s<1r.k;s++)1r[s].j.2X='3T';e.g[u].d.j.I=1R+'C'}m(7 u=0;u<e.g.k;u++){7 c=e.g[u];c.D=1Q(c.d);c.2h=2W(c.d);c.1o=c.d.1P;c.2a=c.d.2i;c.1N=2H(c.d.K(\"2V\")[0]).1P;c.2U=0;c.1O=(c.1o-c.1N)/2;c.1H=2T(c.d);c.2g=2S(c.d)}m(7 u=0;u<e.g.k;u++){7 D=e.g[u].D;7 c=e.g[u];9((1q=='h'&&D>1)||(1q=='v'&&D>0)){c.x=e.g[c.2h].1N+1M;c.y=c.d.1D-c.1H-c.2g+2f;c.d.j.1L=c.x+'C';c.d.j.2e=c.y+'C'}}1p(1g(),1f())}f 2d(1K,1I,E){7 1J=V[1K];7 b=1J.g[1I];b.G=E;b.d.j.E=(E/Q);b.d.j.3S=(E/Q);b.d.j.3R=(E/Q);b.d.j.2R=\"3Q(E=\"+E+\")\";9(E>2O)b.d.j.2R='2c';9(E>0)b.d.j.X='1l';9(E<=0)b.d.j.X='28'}f 2b(1K,1I,W,2Q){7 1J=V[1K];7 b=1J.g[1I];7 D=b.D;7 I=b.1o;7 1G=b.2a;7 1n=b.1H;7 16=b.16;b.G=W;9(!16){9(D==1&&2Q==0){7 h=1G-W*1G/Q;14(b.d,h,1m,1m,0);b.d.j.29=-h+1n+'C'}R{7 w=I-W*I/Q;14(b.d,0,1m,1m,w);b.d.j.1F=-w+'C'}}R{7 w=I-W*I/Q;7 2P=I-w;14(b.d,0,2P,1m,0);b.d.j.1F=w+'C'}9(W<=0){b.d.j.X='28';14(b.d,0,0,0,0);b.d.j.1F='2N';}9(W>0){b.d.j.X='1l';}9(W>2O){14(b.d,0,0,0,0);b.d.j.1F='2N';}}f 3P(){m(7 i=0;i<V.k;i++){V[i].2M()}}f 2K(){m(7 i=0;i<V.k;i++){V[i].2L()}}P.3O=2K;f 2I(15){p!(/[^\\t\\n\\r ]/.3N(15.3M))}f 1j(15){p(15.2J==8)||((15.2J==3)&&2I(15))}f 2F(1k){10((1k=1k.3L)){9(!1j(1k))p 1k}p 1E}f 2H(d){7 1i=d.2G[0];9(1j(1i))1i=2F(1i);p 1i}f 14(d,26,25,24,23){9((26==0)&&(25==0)&&(24==0)&&(23==0)){7 27=d.j.1h;d.j.1h=27.3K(/2E: {0,2}.*\\);{0,1}/i,'');p}d.j.2E='3J('+26+'C, '+25+'C, '+24+'C, '+23+'C)'}f 1g(){p P.22.3I}f 3H(){p P.22.3G}f 1f(){p P.3F=='3E'&&!O.3D?P.22.2D:P.3C.2D}f 2C(q){7 21=20=0;9(q.2B){3B{21+=q.3A;20+=q.1D}10(q=q.2B)}p[21,20]}Z=U();f 1B(){7 i,13;m(i=0;i<Z.k;i++){13=Z[i];9(13!=1B)13()}}f 3z(13){9(O.1C&&O.1C!=1B)Z[Z.k]=O.1C;O.1C=1B;Z[Z.k]=13}",62,258,"|||||||var||if||layer|current_layer|handler|this|function|_0|||style|length|index|for||_1|return|obj||||num|||||||params_array|px|level|opacity|timer|degree|button|width|currobj|getElementsByTagName|new|_2|speed|window|document|100|else|open_layers|timeouts|Array|obj_menu|pos|visibility|_3|_4|while|nodes|MLDDM_CLASS|loaderFunc|uniclip|nod|reverse|dnodes|nodeName|true|layers_to_hide|false|parentNode|className|_5|getScrollLeft|getClientWidth|cssText|node|is_ignorable|sib|visible|2000|margintop|outerwidth|setpositions|_6|specific_nodes|all_li|_7|setTimeout|currentobj|showed|slide|_8|opac_end|candidates|callAllLoaders|onload|offsetTop|null|marginLeft|height|topmargin|layer_num|object|obj_num|left|_9|innerwidth|border|offsetWidth|getlevel|maxwidth|nodesww|_10|ul|_11|getlayerindex|currentli|_12|params|curtop|curleft|documentElement|y2|x2|y1|x1|csstext|hidden|marginTop|outerheight|changePOS|none|changeOpac|top|_13|shifter|parentindex|offsetHeight|anodes|layer_handler|value|_14|mcancelclosetime|_15|mclose|UL|ind|closeall|layer_width|border_width|clearTimeout|_16|getbutton|direction|1000|mlddm_effect|offsetParent|findPos|scrollLeft|clip|node_after|childNodes|getchildnode|is_all_ws|nodeType|mlddmclose|pcloseall|reset|auto|98|mw|ori|filter|getparentheight|gettopmargin|innerheight|li|getparentindex|display|eventscroll|eventresize|allover|onmouseover|allout|onmouseout|eventout|eventover|css|0px|debug|getElementById|mclosetime|mopen|max_right|layer_absx|scroll_left|client_width|LI|id|button_off|button_on|hide|fade|show|375|mlddm_md|round|Math|mlddm_direction|mlddm_orientation|mlddm_effect_speed|mlddm_timeout|mlddm_shifty|mlddm_shiftx|obj_n|menu|appendLoader|offsetLeft|do|body|opera|CSS1Compat|compatMode|clientHeight|getClientHeight|clientWidth|rect|replace|nextSibling|data|test|onclick|mlddmreset|alpha|KhtmlOpacity|MozOpacity|block|onscroll|onresize|padding|margin|float|break|buttonnohover|buttonhover|opac_start|split|getAttribute|md7|mlddminit|mlddm|300|500".split("|")));appendLoader(mlddminit);
/*
	MSI FRPP MENU FUNCTIONS
	last edit: 2/19/2010
*/
var mlddm_shiftx=0,mlddm_shifty=0,mlddm_timeout=1000,mlddm_effect="slide",mlddm_effect_speed=300,mlddm_orientation="h",mlddm_direction=0;$(document).ready(function(){var l=$(".grad"),o,c,m,b,g,f=false;function h(p){if(isNaN(p)){p=0;return p}else{return p}}function j(u){var s=0,r,q,t,p;$(".vehicle",u).each(function(v,w){r=h(parseInt($(w).css("height"),10));q=h(parseInt($(w).css("padding-top"),10));t=h(parseInt($(w).css("padding-bottom"),10));p=h(parseInt(v,10))+1;s=r+q+t+p});return s}function d(r){var q,s,t,p;q=20;s=20;t=h(parseInt(r.find(".nav-top-mid").html().length,10))*7;p=q+s+t+14;r.width(p+"px")}function n(p){p.gradient({from:"222222",to:"444444",direction:"horizontal"})}function e(){window.location.href="../parts/search.asp?q="+$.trim($("#main-search-input").val())}function k(p){window.location.href="../parts/search.asp?q="+p}function i(){$("#main-search-input").focus(function(){if(!f){$(this).val("");f=true}}).keypress(function(p){if(p.which==13){e()}});$("#search-button").click(function(){e()})}if($.browser.msie){if($.browser.version=="6.0"){$(".mlddm .head").each(function(p,q){o=$(q);d(o)});l.wrapInner("<span class='IE6_span'></span>");c=$(".grad .IE6_span");n(c);$(".mlddm ul").css("margin-top","0px")}else{l.wrapInner("<div class='IE7_div'></div>");m=$(".mlddm ul li").height();$(".IE7_div",l).each(function(p,q){b=$("li:not(ul > li)",q).length;g=b*m;g+=j($(this));$(this).height(g)});l.wrapInner("<div></div>");c=$(".grad div");n(c)}}else{l.wrapInner("<div></div>");c=$(".grad div");n(c)}try{$("#main-search-input").autocomplete({serviceUrl:"../include2009/serverscripts/autocomplete.asp",minChars:2,delimiter:/(,|;)\s*/,maxHeight:300,width:150,zIndex:9999,deferRequestBy:300,onSelect:function(q,p){k(q)}})}catch(a){}i()});