function changeOption(_1,_2,_3){
var _4=$("fld_"+_2);
if(_4){
if(_1.checked==true){
if(_4.value!=""){
_4.value+=", ";
}
_4.value+=_3;
}else{
var _5=_4.value.split(",");
var _6=_3.trim();
var _7="";
for(var i=0;i<_5.length;i++){
var _9=_5[i].trim();
if(_9!=_6){
if(_7!=""){
_7+=", ";
}
_7+=_9;
}
}
_4.value=_7;
}
}
};
var SliderDragger=function(el,_b){
this.options=_b;
this.el=el;
this.el.onmousedown=this.onMouseDown.bind(this);
this.el.onmouseup=this.onMouseUp.bind(this);
};
SliderDragger.prototype={onMouseDown:function(e){
e=e||window.event;
this.start_mouse_x=Lib.getMousePos(e).x;
this.start_left=this.el.style.left.replace(/px/,"")-0;
document.onmousemove=this.onMouseMove.bind(this);
document.onmouseup=this.onMouseUp.bind(this);
if(this.options.onStartDrag){
this.options.onStartDrag();
}
return false;
},onMouseMove:function(e){
e=e||window.event;
current_mouse_x=Lib.getMousePos(e).x;
var _e=(this.start_left-(this.start_mouse_x-current_mouse_x));
if(this.options.bounds){
var _f=this.options.bounds.left;
if(typeof _f==="function"){
_f=this.options.bounds.left();
}
var _10=this.options.bounds.right;
if(typeof _10==="function"){
_10=this.options.bounds.right();
}
if(_e<_f){
_e=_f;
}
if(_e>_10){
_e=_10;
}
}
this.el.style.left=_e+"px";
if(this.options.onDrag){
this.options.onDrag();
}
return false;
},onMouseUp:function(){
document.onmousemove=null;
document.onmouseup=null;
if(this.options.onDragStop){
this.options.onDragStop();
}
}};
Lib.documentHash={getHash:function(){
return (document.location.hash||"").replace(/[#]/,"");
},set:function(_11,_12){
var _13=Lib._getParamsFrom(this.getHash());
_13[_11]=_12;
var str=[];
for(var _15 in _13){
str.push(_15+"="+_13[_15]);
}
document.location.hash=str.join("&");
},get:function(_16){
var _17=Lib._getParamsFrom(this.getHash());
return _17[_16]||null;
}};
var Slider=function(_18,_19){
this.SLIDER_WIDTH=10;
this.SLIDER_BG_WIDTH=201;
this.SLIDER_AREA=this.SLIDER_BG_WIDTH-(this.SLIDER_WIDTH*2);
_19=_19||{};
this.options=_19;
this.name=_18;
document.write("<div id=\"div_"+this.name+"\"></div>");
this.main_div=$("div_"+this.name);
this.main_div.innerHTML="<img src=\"/images/slider_bg2.gif\"><input type=\"hidden\" id=\""+_18.split(/[\[\]]/).join("_").replace(/_$/,"")+"\" name=\""+_18+"\" value=\"\" />";
this.main_div.style.position="relative";
this.slider_bg=this.main_div.firstChild;
this.form_el=this.main_div.childNodes[1];
this.left_slider=document.createElement("img");
this.right_slider=document.createElement("img");
this.left_slider.src="/images/slider_left2.gif";
this.right_slider.src="/images/slider_right2.gif";
this.left_slider.className="slider";
this.right_slider.className="slider";
this.left_slider.style.position="absolute";
this.right_slider.style.position="absolute";
window.ondomready.addEvent(function(){
this.left_slider.style.top="0px";
this.left_slider.style.left="0px";
this.right_slider.style.top="0px";
this.right_slider.style.left=(this.SLIDER_BG_WIDTH-this.SLIDER_WIDTH)+"px";
new SliderDragger(this.left_slider,{bounds:{left:0,right:function(){
return this.right_slider.style.left.replace(/px/,"")-this.SLIDER_WIDTH;
}.bind(this)},onDrag:this.onDrag.bind(this),onStartDrag:this.onStartDrag.bind(this)});
new SliderDragger(this.right_slider,{bounds:{left:function(){
return (this.left_slider.style.left.replace(/px/,"")-0)+this.SLIDER_WIDTH;
}.bind(this),right:this.SLIDER_BG_WIDTH-this.SLIDER_WIDTH},onDrag:this.onDrag.bind(this),onStartDrag:this.onStartDrag.bind(this)});
this.main_div.appendChild(this.left_slider);
this.main_div.appendChild(this.right_slider);
this.onDrag(true);
var _1a=Lib.getParams();
if(_1a["rid"]&&_1a["rid"]!==""){
var _1b=Cookie.get("rid");
if(_1b===null||_1b!=_1a["rid"]){
Cookie.set("rid",_1a["rid"],45);
new Ajax("/affiliates/ref?user_id="+encodeURIComponent(_1a["rid"])+"&ref="+encodeURIComponent(document.referrer||"")).request();
}
}
}.bind(this));
};
Slider.prototype={onStartDrag:function(){
$("host_plan_enabled_"+this.name.replace(/host_field[\[]/,"").replace(/[\]]/,"")).checked=true;
},onDrag:function(_1c){
if(this.options.updateBox){
if(_1c===true){
var val=Lib.documentHash.get(this.name);
if(val&&val!==null){
var pos=val.split(/[|]/);
if(pos.length>1){
this.left_slider.style.left=pos[0]+"px";
this.right_slider.style.left=((pos[1]-0)+this.SLIDER_WIDTH)+"px";
}
}
}
var _1f=this.left_slider.style.left.replace(/px/,"")-0;
var _20=(this.right_slider.style.left.replace(/px/,"")-0)-this.SLIDER_WIDTH;
var _21=(typeof this.options.updateBox==="string")?$(this.options.updateBox):this.options.updateBox;
var max=this.options.max||1000;
var min=this.options.min||0;
if(this.options.scale=="log"||true){
var _24=(_1f>=this.SLIDER_AREA)?0:(Math.log(this.SLIDER_AREA-_1f)/Math.log(this.SLIDER_AREA));
var _25=(_20>=this.SLIDER_AREA)?0:(Math.log(this.SLIDER_AREA-_20)/Math.log(this.SLIDER_AREA));
}else{
var _24=(_1f>=this.SLIDER_AREA)?0:((this.SLIDER_AREA-_1f)/(this.SLIDER_AREA));
var _25=(_20>=this.SLIDER_AREA)?0:((this.SLIDER_AREA-_20)/(this.SLIDER_AREA));
}
var _26=((1-_24)*(max-min))+min;
var _27=((1-_25)*(max-min))+min;
var _28=this.options.unit||"";
if(_28!="Ghz"&&_28!="$"){
_26=Math.round(_26);
_27=Math.round(_27);
}else{
_26=new Number(_26).toFixed(2);
_27=new Number(_27).toFixed(2);
}
this.form_el.value=_26+" | "+_27;
if(_1c!=true){
if(this.name&&_1f&&_20){
clearTimeout(this.url_timer);
this.url_timer=setTimeout(function(){
Lib.documentHash.set(this.name,_1f+"|"+_20);
}.bind(this),600);
}
}
_26=(_28=="$")?_28+_26:_26+_28;
_27=(_28=="$")?_28+_27:_27+_28;
_21.innerHTML=_26+" - "+_27;
HostSearch.updatePlansRequest();
}
}};
function seralize_form(_29){
var els=_29.elements;
var _2b=[];
for(var i=0;i<els.length;i++){
var _2d=els[i].type;
if(_2d!=="checkbox"&&_2d!=="radio"||els[i].checked==true){
_2b.push(encodeURIComponent(els[i].name)+"="+encodeURIComponent(els[i].value));
}
}
var _2e=_2b.join("&");
new Ajax("/hosting/search",{method:"post",postBody:_2e}).request();
};
var HostSearch={initialize:function(_2f){
this.in_search=_2f||false;
this.MAX_SHOWN_PLANS=18;
this.current_page=0;
var _30=Lib.documentHash.get("page");
if(_30!=null){
this.current_page=(_30-0);
}
var _31=$("searchResults");
if(typeof _31!=="undefined"){
this.main_div=_31;
}
},initialLoad:function(){
this.loadPlans(function(){
this.displaySearchedPlans();
}.bind(this));
},loadPlans:function(_32){
new Ajax("/hosting/list",{onComplete:function(_33){
this.plans=eval("("+_33+");");
if(typeof _32!=="undefined"){
_32();
}
}.bind(this)}).request();
},generateFromField:function(_34,_35,_36){
var fld=host_fields[_34];
if(fld){
this.generateInfoBlock(_35[_34],fld.label,_36,fld.unit);
}
},generateInfoBlock:function(_38,_39,_3a,_3b){
if(_39!=""){
_3a.push("<b>");
_3a.push(_39);
_3a.push(":</b> ");
}
if(_3b&&_3b==="$"){
_3a.push(_3b);
}
_3a.push(_38);
if(_3b&&_3b!=="$"){
_3a.push(_3b);
}
},toggleMore:function(_3c,el){
var ani=new Animator({duration:300,onComplete:function(){
if(_3c.innerHTML==="less"){
_3c.innerHTML="more";
}else{
_3c.innerHTML="less";
}
}});
if(el.style.height=="60px"){
ani.addSubject(new NumericalStyleSubject(el,"height",60,22)).play();
}else{
ani.addSubject(new NumericalStyleSubject(el,"height",22,60)).play();
}
},generatePlan:function(_3f,_40){
_40.push("<div class=\"outerSmallPlan\" id=\"plan_",_3f.pid,"\"><div class=\"smallPlan\">");
_40.push("<div class=\"planRow1\">");
if(this.in_search===true){
_40.push("<div class=\"planCol0\">");
_40.push("<input type=\"checkbox\" id=\"compare_",_3f.pid,"\" name=\"compare_",_3f.pid,"\" value=\"1\" />");
_40.push("</div>");
_40.push("<div class=\"planCol1A\">");
_40.push("<a href=\"/hosting/host/",_3f.cid,"\">",_3f.company,"</a> - ");
}else{
_40.push("<div class=\"planCol1B\">");
}
_40.push("<a href=\"/hosting/plan/"+_3f.pid+"\">",_3f.plan_name,"</a>");
_40.push("</div>");
_40.push("<div class=\"planCol2\">");
var ppm=(_3f.price_per_month||-1).toFixed(2);
_40.push("$"+ppm+"/mo");
_40.push("&nbsp;</div><div class=\"planCol3\">");
var _42=_3f.hard_drive_type||"";
if(_42!==""){
_42=" "+_42;
}
this.generateInfoBlock((_3f.disk_space===-1)?"Unlimited":Math.round(_3f.disk_space||0)+host_fields["disk_space"].unit+_42,"",_40);
_40.push("&nbsp;</div><div class=\"planCol4\">");
var _43=(_3f.transfer===-1)?"Unmetered":_3f.transfer+host_fields["transfer"].unit;
this.generateInfoBlock(_43,"",_40);
_40.push("&nbsp;</div><div class=\"planCol5\">");
if(_3f.setup_fee&&_3f.setup_fee>0){
this.generateInfoBlock("$"+_3f.setup_fee,"",_40);
}
_40.push("&nbsp;</div>");
var _44=Cookie.get("rid");
_40.push("<div class=\"planCol1p5\"><a target=\"_new\" onclick=\"HostSearch.trackBuy(",_3f.pid,");\" href=\"",_3f.af.replace(/__SID__/,"4x"+(_44||0)),"\"><img style=\"vertical-align: middle;\" src=\"/images/buy.gif\" /></a>");
for(var k=0;k<_3f.ti.length;k++){
_40.push("<img style=\"display: none;\" src=\"",_3f.ti[k],"\" />");
}
_40.push("</div>");
_40.push("<div class=\"planCol6\"><a href=\"\" onclick=\"HostSearch.toggleMore(this, $('plan_"+_3f.pid+"'));return false;\">more</a>");
if(this.in_search===true){
_40.push("</div><div class=\"planCol7\">");
if(_3f.rating!==0){
_40.push("<a href=\"/host_reviews/index/",_3f.cid,"\">");
this.stars(_40,_3f.rating);
_40.push("</a>");
}
}
_40.push("</div>");
if(_3f.plan_type==="dedicated"){
_40.push("<div class=\"planCol8\">");
var _46="";
if(_3f.number_of_cpus>1){
_46+=_3f.number_of_cpus+"x ";
}
_46+=_3f.processor_type+" "+_3f.cpu_speed+"Ghz";
this.generateInfoBlock(_46,"",_40);
_40.push("&nbsp;</div>");
}
if(_3f.plan_type==="dedicated"&&_3f.ram){
_40.push("<div class=\"planCol9\">");
var ram=_3f.ram;
if(ram>=1024){
ram=Math.round(ram/1024);
this.generateInfoBlock((Math.round(ram*100)/100)+"GB","",_40);
}else{
this.generateInfoBlock(ram+"MB","",_40);
}
_40.push("&nbsp;</div>");
}
_40.push("</div><div class=\"planRow2\">");
_40.push("<div class=\"planRow2Col1\">");
if(_3f.scripting_language){
this.generateInfoBlock(_3f.scripting_language.join(", "),"",_40);
}else{
if(_3f.operating_system){
this.generateInfoBlock(_3f.operating_system.join(", "),"",_40);
}
}
_40.push("</div><div class=\"planRow2Col2\">");
if(_3f.control_panel){
this.generateInfoBlock(_3f.control_panel.join(", "),"",_40);
}else{
if(_3f.other_feature){
this.generateInfoBlock(_3f.other_feature.join(", "),"",_40);
}else{
if(_3f.database){
this.generateInfoBlock(_3f.database.join(", "),"",_40);
}
}
}
_40.push("</div>");
_40.push("</div></div></div>");
},generatePlans:function(_48){
var _49=[];
_48.sort(function(a,b){
var av=a.price_per_month;
if(typeof a.price_per_month==="undefined"){
av=100000;
}
var bv=b.price_per_month;
if(typeof b.price_per_month==="undefined"){
bv=100000;
}
if(av===bv){
if(a.plan_name>b.plan_name){
return 1;
}else{
if(a.plan_name<b.plan_name){
return -1;
}else{
return 0;
}
}
}else{
return av-bv;
}
});
if(this.current_page>=Math.ceil(_48.length/this.MAX_SHOWN_PLANS)){
this.current_page=Math.ceil(_48.length/this.MAX_SHOWN_PLANS)-1;
}
var _4e=this.current_page*this.MAX_SHOWN_PLANS;
var end=_4e+this.MAX_SHOWN_PLANS-1;
for(var i=_4e;i<_48.length&&i<end;i++){
this.generatePlan(_48[i],_49);
}
this.generatePaging(Math.ceil(_48.length/this.MAX_SHOWN_PLANS),this.current_page+1,5,_49);
return _49.join("");
},generatePaging:function(_51,_52,_53,_54){
var _55=Math.max(1,Math.floor(_52-(_53/2)));
var _56=Math.min((_55+_53),_51);
if(_56-_55<_53){
_55-=1;
_55=Math.max(_55,1);
}
if(_55===_56){
return;
}
_54.push("<div class=\"paging\">");
for(var i=_55;i<=_56;i++){
if(i===_52){
_54.push("<a href=\"\" onclick=\"HostSearch.changePage("+(i-1)+");return false;\" class=\"current\">");
}else{
_54.push("<a href=\"\" onclick=\"HostSearch.changePage("+(i-1)+");return false;\" >");
}
_54.push(i);
_54.push("</a>");
}
_54.push("</div>");
},changePage:function(_58){
this.current_page=_58;
Lib.documentHash.set("page",_58);
this.displaySearchedPlans();
},displayPlans:function(_59){
if(_59.length===0){
this.main_div.innerHTML="<div class=\"noMatch\">No plans match your requirements, please widen your search</div>";
}else{
this.main_div.innerHTML=this.generatePlans(_59);
}
var _5a=$("loadSpot");
if(_5a&&typeof _5a!=="undefined"){
_5a.style.display="none";
}
},displaySearchedPlans:function(){
for(var i=0;i<this.plans.length;i++){
var _5c=this.plans[i];
_5c.active=true;
if(typeof _5c.is_showing==="undefined"){
_5c.is_showing=true;
}
}
for(prop in host_fields){
var _5d=host_fields[prop];
if(this.ignore_fields&&this.ignore_fields[prop]===1){
continue;
}
var _5e=this.getSearchFieldValue(prop,_5d.type);
if(!_5e||_5e==null){
continue;
}
switch(_5d.type){
case "single_text":
break;
case "single_number":
case "single_price":
var _5f=$("host_plan_enabled_"+prop);
if(_5f===null||typeof _5f==="undefined"||_5f.checked!==true){
break;
}
var _60=_5e.split(/ | /);
var _61=_60[2];
var low=_60[0];
for(var i=0;i<this.plans.length;i++){
var _5c=this.plans[i];
if(_5c.active&&(typeof _5c[prop]==="undefined"||(_5c[prop]!=-1&&(_5c[prop]>_61||_5c[prop]<low)))){
_5c.active=false;
}
}
break;
case "multi":
var _5f=$("host_plan_enabled_"+prop);
if(_5f===null||typeof _5f==="undefined"||_5f.checked!==true){
break;
}
if(_5e.length===0){
break;
}
for(var i=0;i<this.plans.length;i++){
var _5c=this.plans[i];
if(_5c.active){
var _63=_5c[prop];
if(typeof _63==="undefined"){
_5c.active=false;
}else{
for(var k=0;k<_5e.length;k++){
if(!_63.includes(_5e[k])){
_5c.active=false;
}
}
}
}
}
break;
case "drop_down":
if(prop!=="plan_type"){
var _5f=$("host_plan_enabled_"+prop);
if(_5f===null||typeof _5f==="undefined"||_5f.checked!==true){
break;
}
}
for(var i=0;i<this.plans.length;i++){
var _5c=this.plans[i];
if(_5c.active){
var _63=_5c[prop];
if(typeof _63==="undefined"){
_5c.active=false;
}else{
if(!_5e.includes(_63)){
_5c.active=false;
}
}
}
}
break;
}
}
var _65=[];
for(var i=0;i<this.plans.length;i++){
var _5c=this.plans[i];
if(_5c.active===true){
_65.push(this.plans[i]);
}
}
this.displayPlans(_65);
},getSearchFieldValue:function(_66,_67){
switch(_67){
case "single_number":
case "single_price":
var _68=$("host_field_"+_66);
if(!_68||typeof _68==="undefined"){
return null;
}
return _68.value;
break;
case "multi":
case "drop_down":
var _69=$("host_search_form");
if(!_69||typeof _69==="undefined"){
return null;
}
var els=_69.elements;
var _6b=[];
for(var i=0;i<els.length;i++){
if(els[i].id.indexOf("host_field_"+_66)===0&&els[i].checked===true){
_6b.push(els[i].value);
}
}
return _6b;
break;
}
return null;
},updatePlansRequest:function(){
if(this.plans){
clearTimeout(this.updateStoppedTimeout);
this.updateStoppedTimeout=setTimeout(function(){
this.displaySearchedPlans(true);
}.bind(this),100);
var _6d=$("loadSpot");
if(_6d&&typeof _6d!=="undefined"){
_6d.style.display="inline";
}
}
},changePlanType:function(_6e){
var _6f=[];
var _70=[];
var _71=["plan_type","disk_space","transfer","hard_drive_type","setup_fee","price_per_month","operating_system","scripting_language","domain_price","email_accounts","database","number_of_databases","control_panel","other_feature","cpu_speed","processor_type","ram","included_software","notes","number_of_sites","number_of_cpus"];
switch(_6e){
case "dedicated":
case "VPS":
_6f=["plan_type","disk_space","transfer","hard_drive_type","setup_fee","price_per_month","operating_system","domain_price","control_panel","other_feature","cpu_speed","processor_type","ram","notes","number_of_cpus"];
_70=["scripting_language","email_accounts","database","number_of_databases","included_software","number_of_sites"];
$("hardware_header").style.display="block";
if($("hardware").style.height!="0px"){
$("hardware").style.display="block";
}
this.ignore_fields={scripting_language:1,email_accounts:1,database:1,number_of_databases:1,included_software:1,number_of_sites:1};
break;
case "shared":
_6f=["plan_type","disk_space","transfer","setup_fee","price_per_month","scripting_language","domain_price","email_accounts","database","number_of_databases","control_panel","other_feature","included_software","notes","number_of_sites"];
_70=["operating_system","cpu_speed","processor_type","ram","number_of_cpus","hard_drive_type"];
$("hardware_header").style.display="none";
$("hardware").style.display="none";
this.ignore_fields={operating_system:1,cpu_speed:1,processor_type:1,ram:1,number_of_cpus:1,hard_drive_type:1};
break;
}
_6f.each(function(fld){
var _73=$("search_slot_"+fld);
if(_73){
_73.parentNode.style.display="block";
}
});
_70.each(function(fld){
var _75=$("search_slot_"+fld);
if(_75){
_75.parentNode.style.display="none";
}
});
},comparePlans:function(){
var _76=document.getElementsByTagName("input");
var _77=[];
for(var i=0;i<_76.length;i++){
var _79=_76[i];
if(_79.id&&(_79.id+"").match(/^compare_/)!=null&&_79.checked==true){
_77.push("plans[]="+_79.id.replace(/^compare_/,"").trim());
}
}
document.location.href="/hosting/compare/?"+_77.join("&");
},removeCompareCol:function(id){
var tds=$("compareTable").getElementsByTagName("td");
for(var i=0;i<tds.length;i++){
var td=tds[i];
var _7e=td.className.split(" ");
for(var k=0;k<_7e.length;k++){
if(_7e[k]=="cmp"+id){
td.parentNode.removeChild(td);
}
}
}
},selectAll:function(_80){
var _81=document.getElementsByTagName("input");
var _82=[];
for(var i=0;i<_81.length;i++){
var _84=_81[i];
if(_84.id&&(_84.id+"").match(/^compare_/)!=null){
_84.checked=_80;
}
}
},stars:function(_85,_86){
var _87=Math.round(_86*2);
for(var i=1;i<=(_87/2);i++){
_85.push("<img src=\"/images/stars/star.gif\" />");
}
var _89=false;
if((_87%2)!=0){
_85.push("<img src=\"/images/stars/star_half.gif\" />");
_89=true;
}
_87=Math.floor(_87/2)*2;
var _8a=(_89)?(_87/2)+1:(_87/2);
for(var i=_8a;i<=4;i++){
_85.push("<img src=\"/images/stars/star_grey.gif\" />");
}
},trackBuy:function(pid){
var i=new Image();
i.src="http://www.googleadservices.com/pagead/conversion/1067883136/imp.gif?value=1&label=purchase&script=0";
try{
_gaq.push(["_trackPageview","/off/buy_plan"]);
}
catch(e){
}
new Ajax("/hosting/buy_plan/"+pid).request();
}};
var Accordian=function(_8d,_8e){
this.elements=[];
this.headers=[];
this.open_index=0;
for(var i=0;i<_8d.length;i++){
var el=$(_8d[i]);
var _91=[];
while(el.childNodes[0]){
var _92=el.childNodes[0];
_91.push(_92);
_92.parentNode.removeChild(_92);
}
var _93=document.createElement("div");
for(var k=0;k<_91.length;k++){
var _92=_91[k];
_93.appendChild(_92);
}
_93.className="mySubNode";
el.appendChild(_93);
this.elements.push(el);
if(typeof _8e==="undefined"){
this.headers.push(el.firstChild);
}
}
if(typeof _8e!=="undefined"){
for(var i=0;i<_8e.length;i++){
this.headers.push($(_8e[i]));
}
}
for(var i=0;i<this.headers.length;i++){
var el=this.headers[i];
el.onclick=(function(i){
return function(){
this.show(i);
}.bind(this);
}.bind(this))(i);
}
var _96=Lib.documentHash.get("accord");
var _97=0;
if(_96!=null){
for(var i=0;i<this.elements.length;i++){
if(this.elements[i].id==_96){
_97=i;
this.open_index=i;
break;
}
}
}
for(var i=0;i<this.elements.length;i++){
var el=this.elements[i];
if(i===_97){
el.style.overflow="hidden";
el.style.position="relative";
}else{
el.style.position="relative";
el.style.height="0px";
el.style.overflow="hidden";
el.style.display="none";
}
}
};
Accordian.prototype.show=function(_98){
if(_98==this.open_index){
return;
}
var el=this.elements[_98];
var _9a=this.elements[this.open_index];
var ani=new Animator({duration:600,onComplete:function(){
_9a.style.display="none";
this.open_index=_98;
Lib.documentHash.set("accord",el.id);
}.bind(this)});
el.style.display="block";
el.firstChild.style.height="auto";
_9a.firstChild.style.height="auto";
var _9c=(Lib.getComputedStyle(el.firstChild,"height")+"").replace(/px/,"")-0;
var _9d=(Lib.getComputedStyle(_9a.firstChild,"height")+"").replace(/px/,"")-0;
ani.addSubject(new NumericalStyleSubject(el,"height",0,_9c));
ani.addSubject(new NumericalStyleSubject(_9a,"height",_9d,0));
ani.play();
};
function searchSlotShow(div){
var _9f=div.parentNode;
_9f.style.overflow="hidden";
var _a0=div;
do{
_a0=_a0.nextSibling;
}while(_a0.nodeType==3);
_9f.style.height="";
_9f.style.textDecoration="";
if(_a0.className==="searchOptionsBox"){
_a0.style.display="block";
}
};
function searchSlotHide(div){
var _a2=div.parentNode;
_a2.style.overflow="hidden";
var _a3=div;
do{
_a3=_a3.nextSibling;
}while(_a3.nodeType==3);
_a2.style.textDecoration="underline";
_a2.style.height="18px";
if(_a3.className==="searchOptionsBox"){
_a3.style.display="none";
}
};
function searchSlotToggle(div){
var _a5=div.parentNode;
if(_a5.style.height==="18px"){
searchSlotShow(div);
}else{
searchSlotHide(div);
}
};

