max_steps=4;offset=0;area_switch=false;search_input_timer=false;search_input_delay=1;Event.observe(document,'dom:loaded',function(event){Event.observe('mls_search_tabs','click',function(){try{clearTimeout(search_input_timer);}catch(er){}
$$('.mls_search_content').invoke('removeClassName','empty');});if($('property_list')||$('community_list')){tgt_class=$('property_list')?'property_list':'community_list';Event.observe($(tgt_class),'mouseover',function(event){elt=Event.findElement(event,'.row');if(elt)
elt.addClassName('highlight');});Event.observe($(tgt_class),'mouseout',function(event){elt=Event.findElement(event,'.row');if(elt)
elt.removeClassName('highlight');});Event.observe($(tgt_class),'click',function(event){elt=Event.findElement(event,'.row');if(Event.element(event).hasClassName('request_information'))
return;event.stop();if(elt){target_url=elt.getAttribute('url');if(top!=self)
window.open(target_url,'_blank');else
window.location=target_url;}});}});function update_search_area(v){set_cookie('search_city',v,0,'/');if(area_switch){clearTimeout(area_switch);}
area_switch=setTimeout(function(){offset=0;load_steps();},500);}
function bind_search_form_observer(){if($('search_form')){new Form.Observer('search_form',0.5,function(form,value){if(typeof search_call_back=='function'){try{clearTimeout(search_input_timer);}catch(er){}
search_input_timer=setTimeout(function(){search_call_back();},search_input_delay*1000);}});}}
function load_property_map(ofs){f=function(o){clear_markers();xmlDoc=create_xml_doc(o.responseText);properties=xmlDoc.getElementsByTagName('property_item');search_type=getText(xmlDoc,'search_type');property_count=getText(xmlDoc,'property_count');list_length=getText(xmlDoc,'list_length');rslt_top=get_pagination(list_length,offset,property_count,'load_property_map');rslt_bottom=get_pagination(list_length,offset,property_count,'load_property_map');$('property_list').insert({top:rslt_top});rslt_top.addClassName('results_top');for(x=0;x<properties.length;x++){m_info=xml_marker_info(properties[x]);the_img=m_info.listing_image?'<img src="'+m_info.listing_image+'" />':'';if(!m_info.lat||!m_info.lng){continue;}
wcnt=property_iwindow_cnt(m_info.list_price,m_info.address,the_img,m_info.mls_number,m_info.sqft,m_info.number_beds,m_info.baths,m_info.sef_url);property_point(add_google_point(m_info.lat,m_info.lng,m_info.address),wcnt);}
fit_map_bounds();reset_iwindow();$('property_list').insert({bottom:rslt_bottom});rslt_bottom.addClassName('results_bottom');hide_loader('property_list');if(gcb){google.maps.event.removeListener(gcb);gcb=false;}}
generate_search_text();search_call_back=load_property_map;offset=ofs?ofs:0;reset_iwindow();show_loader('property_list','Loading Search...','loader.gif');if(!$('property_map')||!gmap){$('property_list').innerHTML='';google_map=Builder.node('div',{id:'property_map'});$('property_list').appendChild(google_map);myLatlng=new google.maps.LatLng(42.256925,-83.590916);create_google_map('property_map');gcb=google.maps.event.addListener(gmap,'tilesloaded',function(){new Ajax.Request('/mls/xml/property_list.php?list_length='+map_list_length+'&offset='+offset,{postBody:$('search_form').serialize(),method:'post',onSuccess:f});});}else{new Ajax.Request('/mls/xml/property_list.php?list_length='+map_list_length+'&offset='+offset,{postBody:$('search_form').serialize(),method:'post',onSuccess:f});}}
function load_property_list(ofs){f=function(o){hide_loader('property_list');xmlDoc=create_xml_doc(o.responseText);properties=xmlDoc.getElementsByTagName('property_item');search_type=getText(xmlDoc,'search_type');search_area=getText(xmlDoc,'search_area');property_count=getText(xmlDoc,'property_count');list_length=getText(xmlDoc,'list_length');rslt_top=get_pagination(list_length,offset,property_count,'load_property_list');rslt_bottom=get_pagination(list_length,offset,property_count,'load_property_list');$('property_list').insert({top:rslt_top});rslt_top.addClassName('results_top');for(x=0;x<properties.length;x++){m_info=xml_marker_info(properties[x]);open_house=m_info.open_house=='true'?true:false;ri_js="ajax_box('"+m_info.mls_number+"', '"+search_type+"', '"+search_area+"', 'request_information_box'); return false;";the_image=Builder.node('img',{src:m_info.listing_image,style:'display: none'});Event.observe(the_image,'load',function(event){elt=Event.element(event);elt.show();});row=Builder.node('div',{className:'row '+alt('property_list'),'url':m_info.sef_url},[Builder.node('div',{className:'thumb'},the_image),Builder.node('div',{className:'addr'},m_info.address),Builder.node('div',{className:'col'},'MLS #: '+m_info.mls_number),Builder.node('div',{className:'col'},'List Price: '+m_info.list_price),Builder.node('div',{className:'col'},'SQFT: '+m_info.sqft),Builder.node('div',{className:'col'},'City: '+m_info.city),Builder.node('div',{className:'col'},'# Beds: '+m_info.number_beds),Builder.node('div',{className:'col'},'# Baths: '+m_info.baths),Builder.node('div',{className:'row_options'},[Builder.node('a',{href:m_info.sef_url,className:'view_property'},['View Property']),Builder.node('a',{href:'#',onclick:ri_js,className:'request_information'},['Request Information']),Builder.node('a',{href:m_info.sef_url,style:(!open_house?'display: none':''),className:'open_house'},['Open House'])])]);$('property_list').appendChild(row);listing_created=parseInt(m_info.listing_create_date);if(listing_created>new_listing_cutoff){row.addClassName('new_listing');row.getElementsBySelector('.row_options').first().insert({top:Builder.node('a',{className:'new_listing',href:m_info.sef_url},'New Listing')});}}
$('property_list').insert({bottom:rslt_bottom});rslt_bottom.addClassName('results_bottom');}
generate_search_text();$('property_list').innerHTML='';search_call_back=load_property_list;offset=ofs?ofs:0;show_loader('property_list','Loading Search...','loader.gif');new Ajax.Request('/mls/xml/property_list.php?offset='+offset+'&j='+ut(),{postBody:$('search_form').serialize(),method:'post',onSuccess:f});}
function check_box_height(){lb=$('left_box');rb=$('right_box');lb.style.height='auto';rb.style.height='auto';if(lb.getHeight()>rb.getHeight()){new Effect.Morph(rb,{style:{height:lb.getHeight()+'px'}});}else{new Effect.Morph(lb,{style:{height:rb.getHeight()+'px'}});}}
function load_steps(i){s=i?i:1;for(x=s;x<=max_steps;x++)
get_step(x);}
function get_step(i){f=function(o){$('step_'+i).innerHTML=o.responseText;if(i==max_steps){$('search_form').elements['id'].value='';search_call_back();}}
new Ajax.Request('/mls/properties/step_'+i+'.php',{postBody:$('search_form').serialize(),method:'post',onSuccess:f});}
function swap_preview_image(src){the_img=$$('#preview_header img').first();show_loader('preview_header','Loading...','loader.gif');Event.stopObserving('preview_image','load');Event.observe('preview_image','load',function(){hide_loader('preview_header')});the_img.src=src;}
function show_sub_area(area,ptr){i=$('sub_area_'+area);if(!i)
return;Effect.toggle(i,'blind',{duration:1.0});ptr.src='/images/'+(i.visible()?'icon.expand.gif':'icon.col.gif');}
function check_sub_areas(area,ptr){i=$('sub_area_'+area);if(!i)
return;cbs=i.getElementsByTagName('input');f=ptr.checked;for(x=0;x<cbs.length;x++){if(cbs[x].type=='checkbox'&&cbs[x].checked==!f)
cbs[x].checked=f;}}
function load_search(cb){f=function(o){xmlDoc=create_xml_doc(o.responseText);items=xmlDoc.getElementsByTagName('item');for(x=0;x<items.length;x++){input_key=getText(items[x],'key');input_value=getText(items[x],'val');frm_elt=$('search_form').elements[input_key];if(frm_elt){if(frm_elt.length){for(i=0;i<frm_elt.length;i++){frm_elt[i].checked=frm_elt[i].value==input_value?true:false;}}
if(frm_elt.nodeName){if(frm_elt.nodeName=='INPUT'){if(frm_elt.getAttribute('type')=='checkbox'){frm_elt.checked=true;expand_elt=frm_elt.ancestors().find(function(elt){return elt.hasClassName('sub_areas')&&!elt.visible()?true:false;});if(expand_elt){f_id=expand_elt.id.replace('sub_area_','');show_sub_area(f_id,$('img_'+f_id));}}}
if(frm_elt.nodeName=='SELECT'){$(frm_elt).setValue(input_value);}}}}
bind_search_form_observer();if(cb&&typeof cb=='function')
cb();}
new Ajax.Request('/mls/xml/load_search.php',{postBody:'search_key='+search_key,method:'post',onSuccess:f});}
var gmap=false;var gcb=false;markers=new Array();var iwindow;function create_google_map(gid){if(gmap){try{google.maps.event.clearInstanceListeners(gmap);}catch(er){}}
myLatlng=new google.maps.LatLng(42.256925,-83.590916);var myOptions={zoom:default_zoom,center:myLatlng,mapTypeId:google.maps.MapTypeId.ROADMAP};gmap=new google.maps.Map(document.getElementById(gid),myOptions);$(gid).addClassName('a_google_map');}
function reset_iwindow(){if(iwindow){try{iwindow.close();}catch(er){}}else{iwindow=new google.maps.InfoWindow({maxWidth:500,maxHeight:500,content:''});}}
function add_google_point(lat,lng,mtitle){myLatlng=new google.maps.LatLng(lat,lng);marker=new google.maps.Marker({position:myLatlng,map:gmap,title:mtitle});markers[markers.length]=marker;return marker;}
function fit_map_bounds(){the_bounds=new google.maps.LatLngBounds();for(x=0;x<markers.length;x++){pos=markers[x].getPosition();the_bounds.extend(pos);}
gmap.fitBounds(the_bounds);gmap.setCenter(the_bounds.getCenter());}
function clear_markers(){for(x=0;x<markers.length;x++)
markers[x].setMap();markers=new Array();}
function get_pagination(list_length,offset,item_count,fnc_str,item_ttl){item_count=parseInt(item_count);show_next=list_length*(offset+1)<item_count?'':'none';show_prev=offset==0?'none':'';item_ttl=item_ttl?item_ttl:'Properties';start_count=parseInt(offset*list_length+1);end_count=start_count+parseInt(list_length)-1;if(end_count>item_count)
end_count=item_count
$$('div.results_top','div.results_bottom').invoke('remove');pagination_title=start_count+' - '+end_count+' of '+item_count+' '+item_ttl+' Found';if($$('.mls_search_content .a_google_map').length==0){if(!item_count){pagination_title='Sorry! No '+item_ttl+' Found.  Please try again.';$$('.mls_search_content').invoke('addClassName','empty');}else
$$('.mls_search_content').invoke('removeClassName','empty');}
rslt=Builder.node('div',[Builder.node('h2',pagination_title),Builder.node('div',{className:'index'},[Builder.node('a',{href:'#',style:'display: '+show_next,onclick:fnc_str+'('+(offset+1)+'); return false;'},'Next Page >>'),Builder.node('a',{href:'#',style:'display: '+show_prev,onclick:fnc_str+'('+(offset-1)+'); return false;'},'<< Previous Page')])]);return rslt;}
function property_point(marker,cnt){google.maps.event.addListener(marker,'click',function(){iwindow.setContent(cnt);iwindow.open(gmap,marker);});}
function xml_marker_info(n){xml_hash=$H();nodes=n.getElementsByTagName('*');for(i=0;i<nodes.length;i++){node_name=nodes[i].nodeName;node_value=getNodeText(nodes[i]);switch(node_name){case'latitude':node_name='lat';break;case'longitude':node_name='lng';break;}
xml_hash.set(node_name,node_value);}
return xml_hash.toObject();}
function load_neighborhood_map(ofs){f=function(o){clear_markers();xmlDoc=create_xml_doc(o.responseText);map_markers=xmlDoc.getElementsByTagName('marker');community_count=getText(xmlDoc,'community_count');list_length=getText(xmlDoc,'list_length');rslt_top=get_pagination(list_length,offset,community_count,'load_neighborhood_map','Communities');rslt_bottom=get_pagination(list_length,offset,community_count,'load_neighborhood_map','Communities');$('community_list').insert({top:rslt_top});rslt_top.addClassName('results_top');if(!map_markers.length)
return;for(x=0;x<map_markers.length;x++){m_info=xml_marker_info(map_markers[x]);the_img=m_info.thumb?'<img src="'+m_info.thumb+'">':'';price_range=!m_info.low_price||!m_info.high_price?'':m_info.low_price+' - '+m_info.high_price;if(!m_info.lat||!m_info.lng){continue;}
wcnt=community_iwindow_cnt(m_info.name,the_img,m_info.listing_count,price_range,m_info.search_string);property_point(add_google_point(m_info.lat,m_info.lng,m_info.name),wcnt);}
fit_map_bounds();reset_iwindow();$('community_list').insert({bottom:rslt_bottom});rslt_bottom.addClassName('results_bottom');hide_loader('community_list');if(gcb){google.maps.event.removeListener(gcb);gcb=false;}}
generate_search_text();search_call_back=load_neighborhood_map;show_loader('community_list','Loading Neighborhoods...','loader.gif');offset=ofs?ofs:0;reset_iwindow();if(!$('community_map')||!gmap){$('community_list').innerHTML='';google_map=Builder.node('div',{id:'community_map'});$('community_list').appendChild(google_map);myLatlng=new google.maps.LatLng(42.256925,-83.590916);create_google_map('community_map');gcb=google.maps.event.addListener(gmap,'tilesloaded',function(){new Ajax.Request('/mls/xml/community_list.php?list_length='+map_list_length+'&offset='+offset,{postBody:$('search_form').serialize(),method:'post',onSuccess:f});});}else{new Ajax.Request('/mls/xml/community_list.php?list_length='+map_list_length+'&offset='+offset,{postBody:$('search_form').serialize(),method:'post',onSuccess:f});}}
function load_neighborhood_list(ofs){f=function(o){hide_loader('community_list');xmlDoc=create_xml_doc(o.responseText);map_markers=xmlDoc.getElementsByTagName('marker');community_count=getText(xmlDoc,'community_count');list_length=getText(xmlDoc,'list_length');rslt_top=get_pagination(list_length,offset,community_count,'load_neighborhood_list','Communities');rslt_bottom=get_pagination(list_length,offset,community_count,'load_neighborhood_list','Communities');$('community_list').insert({top:rslt_top});rslt_top.addClassName('results_top');for(x=0;x<map_markers.length;x++){m_info=xml_marker_info(map_markers[x]);the_image=m_info.thumb?Builder.node('img',{src:m_info.thumb,style:''}):'';ndiv=Builder.node('div',{className:'row '+alt('community_list'),'url':m_info.sef_url},[Builder.node('div',{className:'item',style:'display: none; width: 50px; text-align: center;'},Builder.node('input',{type:'checkbox',name:'neighborhoods['+m_info.id+']',value:'1'})),Builder.node('div',{className:'item details'},[Builder.node('div',{className:'ntitle'},m_info.name),Builder.node('div',{className:'ncount'},'[ '+m_info.listing_count+' Listings ]'),(m_info.low_price&&m_info.high_price?'Price Range: '+m_info.low_price+' - '+m_info.high_price:'')]),Builder.node('div',{className:'row_options'},[Builder.node('a',{className:'loupe',href:m_info.search_string},'View Listings')]),Builder.node('div',{className:'thumb'},the_image)]);$('community_list').appendChild(ndiv);community_created=parseInt(m_info.community_create_date);if(community_created>new_community_cutoff){ndiv.addClassName('new_listing');ndiv.getElementsBySelector('.row_options').first().insert({bottom:Builder.node('a',{className:'new_listing',href:m_info.search_string},'New Community')});}}
$('community_list').insert({bottom:rslt_bottom});rslt_bottom.addClassName('results_bottom');}
generate_search_text();search_call_back=load_neighborhood_list;$('community_list').innerHTML='';offset=ofs?ofs:0;show_loader('community_list','Loading Neighborhoods...','loader.gif');new Ajax.Request('/mls/xml/community_list.php?offset='+offset,{postBody:$('search_form').serialize(),method:'post',onSuccess:f});}
function community_iwindow_cnt(community_name,the_img,listing_count,price_range,sef_url){wcnt='<div class="gpopup">'+'<div class="gtitle">'+community_name+'</div>'+
the_img+'<div class="gcount">[ '+listing_count+' Listings ]</div>'+'<div style="padding: 4px 0px">Community Price Range<br />'+price_range+'</div>'+'<button class="input_loupe" onclick="window.location=\''+sef_url+'\'">'+'View Listings'+'</button>'+'</div>';return wcnt;}
function property_iwindow_cnt(list_price,address,the_img,mls_number,sqft,number_beds,number_baths,sef_url){wcnt='<div class="gpopup">'+'<div class="gtitle"><span>'+list_price+'</span>'+address+'</div>'+
the_img+'<div class="ln"><div>MLS #:</div> '+mls_number+'</div>'+'<div class="ln"><div>SQFT:</div> '+sqft+'</div>'+'<div class="ln"><div># Beds:</div> '+number_beds+'</div>'+'<div class="ln"><div># Baths:</div> '+number_baths+'</div>'+'<button class="input_loupe" onclick="window.location=\''+sef_url+'\'">'+'View Property'+'</button>'+'</div>';return wcnt;}
function tabber(){Event.observe($$('ul.tabs').first(),'click',function(event){elt=Event.findElement(event,'li');if(!elt)
return;$$('ul.tabs li').invoke('removeClassName','active');elt.addClassName('active');});}google_map_id='property_search_map';google_parent_id='property_list';plot_xml_file='property_plot_search.php';home_markers=new Array();function load_plot_search(){if(google_parent_id)
$(google_parent_id).innerHTML='';if(!gmap||!$(google_map_id)){if(!$(google_map_id))
$(google_parent_id).appendChild(Builder.node('div',{id:google_map_id}));create_google_map(google_map_id);}
if(!$('map_coordinates')){$('search_form').appendChild(new Element('input',{id:'map_coordinates',name:'coords',type:'hidden'}));}else{spin_search_timer();}
search_call_back=function(){};spin_search_timer();$('map_coordinates').setValue('');clear_plot_markers();bind_click_ps_listener();create_map_controls();}
function bind_click_ps_listener(){setTimeout(function(){google.maps.event.clearListeners(gmap,'click');google.maps.event.addListener(gmap,'click',function(event){place_marker(event.latLng);});},1);}
var active_marker;var active_info_window;var old_marker;var community_poly;map_callback=false;show_markers=true;plot_list=new Array();plot_markers=new Array();function place_marker(location){var clickedLocation=location;var marker=new google.maps.Marker({position:location,map:gmap,draggable:true,visible:show_markers});plot_markers[plot_markers.length]=marker;google.maps.event.addListener(marker,'dragstart',function(){old_marker=marker.getPosition();});google.maps.event.addListener(marker,'dragend',function(){swap_plots_in_list(old_marker,marker.getPosition());plot_area_points();});google.maps.event.addListener(marker,'click',function(event){active_marker=marker;reset_iwindow();cnt='<input type="button" value="Remove Marker" onclick="remove_plot_marker();"> &nbsp; '+'<input type="button" value="Remove All Markers" onclick="clear_plot_markers();">';iwindow.setContent(cnt);iwindow.open(gmap,marker);google.maps.event.clearListeners(gmap,'click');});plot_list.push(location);plot_area_points();}
function clear_plot_markers(){for(x=0;x<plot_markers.length;x++){try{plot_markers[x].setMap();}catch(er){}}
plot_markers=new Array();plot_list=new Array();remove_plot_overlay();reset_iwindow();bind_click_listener();}
function remove_plot_marker(){remove_plot_from_list(active_marker);try{active_marker.setVisible(false);}catch(er){}
active_marker=false;plot_area_points();reset_iwindow();bind_click_listener();}
function remove_plot_overlay(){if(community_poly){try{community_poly.setMap();}catch(er){}}}
function remove_plot_from_list(marker){for(x=0;x<plot_list.length;x++){if(plot_list[x]==marker.getPosition()){plot_list.splice(x,1);break;}}
plot_area_points();}
function bind_click_listener(){google.maps.event.clearListeners(gmap,'click');setTimeout(function(){google.maps.event.addListener(gmap,'click',function(event){place_marker(event.latLng);});},1);}
function swap_plots_in_list(old_marker,new_marker){old_position=old_marker;new_position=new_marker;for(x=0;x<plot_list.length;x++){if(plot_list[x]==old_position){plot_list[x]=new_position;break;}}
plot_area_points();}
plot_search_timer=false;function plot_area_points(){if(!plot_list.length)
return;plot_list_formatted=new Array();for(x=0;x<plot_list.length;x++){plot_list_formatted.push(plot_list[x]);}
plot_list_formatted.push(plot_list[0]);remove_plot_overlay();community_poly=new google.maps.Polygon({paths:plot_list,strokeColor:"#FF0000",strokeOpacity:0.8,strokeWeight:2,fillColor:"#FF0000",fillOpacity:0.35});community_poly.setMap(gmap);spin_search_timer();}
function spin_search_timer(){clear_search_timer();plot_search_timer=setTimeout(function(){plot_search_properties('search_form');plot_search_timer=false;},1500);}
function clear_search_timer(){try{clearTimeout(plot_search_timer);}catch(er){}
plot_search_timer=false;}
function get_plot_list(){return plot_list.join(',');}
function create_map_controls(){if($('map_controls'))
return;ctrls=Builder.node('div',{id:'map_controls',className:'map_controls'},[Builder.node('div',[Builder.node('input',{type:'button',className:'button',value:'Clear Markers',onclick:'clear_plot_markers();'}),Builder.node('button',{type:'button',className:'button',value:'Need Help?',onclick:'show_plot_help();'},[Builder.node('img',{src:'/images/help-small.png'}),'Need Help?'])])]);$(google_parent_id).appendChild(ctrls);}
function clear_home_markers(){for(x=0;x<home_markers.length;x++)
home_markers[x].setMap();home_markers=new Array();}
function plot_search_properties(frm,ofs){f=function(o){hide_loader(google_parent_id);clear_home_markers();xmlDoc=create_xml_doc(o.responseText);map_markers=xmlDoc.getElementsByTagName('marker');prop_count=getText(xmlDoc,'count');list_length=getText(xmlDoc,'list_length');rslt_top=get_pagination(list_length,offset,prop_count,'plot_search_properties');rslt_bottom=get_pagination(list_length,offset,prop_count,'plot_search_properties');$(google_parent_id).insert({top:rslt_top});rslt_top.addClassName('results_top');for(x=0;x<map_markers.length;x++){m_info=xml_marker_info(map_markers[x]);the_img=m_info.listing_image?'<img src="'+m_info.listing_image+'" />':'';switch(m_info.plot_type){case'community':price_range=!m_info.low_price||!m_info.high_price?'':m_info.low_price+' - '+m_info.high_price;wcnt=community_iwindow_cnt(m_info.name,the_img,m_info.listing_count,price_range,m_info.sef_url);break;default:wcnt=property_iwindow_cnt(m_info.list_price,m_info.address,the_img,m_info.mls_number,m_info.sqft,m_info.number_beds,m_info.baths,m_info.sef_url);}
property_point(add_google_home_point(m_info.lat,m_info.lng,m_info.address,'/images/home_map_icon.png'),wcnt);}
fit_map_home_bounds();reset_iwindow();}
offset=ofs?ofs:0;frm=$(frm);if(plot_list.length<3&&plot_list.length>0)
return false;show_loader(google_parent_id,'Loading...','loader.gif');$('map_coordinates').setValue(get_plot_list());clear_search_timer();new Ajax.Request('/mls/xml/'+plot_xml_file+'?list_length='+map_list_length+'&offset='+offset,{postBody:frm.serialize(),method:'post',onSuccess:f});}
function add_google_home_point(lat,lng,mtitle,ico){myLatlng=new google.maps.LatLng(lat,lng);marker=new google.maps.Marker({position:myLatlng,map:gmap,title:mtitle,icon:ico});home_markers[home_markers.length]=marker;return marker;}
function fit_map_home_bounds(){the_bounds=new google.maps.LatLngBounds();for(x=0;x<home_markers.length;x++){pos=home_markers[x].getPosition();the_bounds.extend(pos);}
for(x=0;x<plot_markers.length;x++){pos=plot_markers[x].getPosition();the_bounds.extend(pos);}
gmap.fitBounds(the_bounds);gmap.setCenter(the_bounds.getCenter());}
function show_plot_help(){custom_alert('Loading...','Map Search Help');$('custom_alert').setStyle({width:'600px'});new Ajax.Request('/help/plot_search.html',{method:'get',onSuccess:function(o){$('alert_content').update(o.responseText);center_box('custom_alert','fixed');}});}
