if((document.URL.substr(34,9)=="search/ap")||(document.URL.substr(34,7)=="search?")||(document.URL.substr(34,7)=="search#")){
	//NO FILTRI
	if(document.getElementById('certified_price_filter')==null){
		//SOLO UNA PAGINA RISULTATI
	    if(document.getElementsByTagName('h3').item(1)==null){
			//NESSUN RISULTATO
	        if(document.getElementById('apartment_row_1')==null){
				    document.getElementById("search_result_map").style.display="none";
				    document.write("<style>.right_part[style='margin-top:72px'],#map_search_result{min-height:395px !important;max-height:395px !important;border-bottom-width:2px;}.search_result .left_part{font-size:36px !important;width: 397px;margin-right:15px!important; padding-left: 185px;padding-top:100px;color: rgba(136, 136, 136,0.5);text-align:center !important;min-height: 308px;max-height: 308px;background-color: rgb(234, 234, 234);border-style:solid; border-width:2px;border-color: rgba(255, 255, 255,1);border-top-left-radius: 5px;border-top-right-radius: 5px;border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;box-shadow: rgba(199, 199, 199, 0.4) 2px 2px, rgba(199, 199, 199, 0.4) -2px -2px,rgba(199, 199, 199, 0.2) 0px 0px 3px 3px;position: relative;top: 20px;left: 0px;}.search_result .left_part div[align=left]{position: relative;top: -18px;left: 38px;text-shadow: 1px 1px 2px #fff !important;}.search_sorting.color_title.ui-corner-all{border:none !important;}.search_sorting.color_title.ui-corner-all form#searchSortingForm{display:none !important;}#footer{position:relative;top:-50px!important;}</style>");
			        }
			//MENO DI 5 RISULTATI
		    else if((document.getElementById('apartment_row_1')!=null)&&(document.getElementById('apartment_row_5')==null)){
				          document.write("<style>.search_result .apart_list{min-height:951px !important;max-height:951px !important;padding-top:39px !important;position: relative;top:-34px !important;}.apart_list .list_item{margin-top:29px!important;margin-bottom:29px!important;}.search_sorting.color_title.ui-corner-all form#searchSortingForm{position:relative;top:33px !important;}.search_sorting.color_title.ui-corner-all{border:none !important;}#footer{position:relative;top:-50px!important;}</style>");
						        if($.browser.opera){
									 document.write("<style>#footer .user a[href='/login']{position:relative;top:-35px!important;}</style>");
								}
			              }
            //5 RISULTATI ESATTI
		    else if((document.getElementById('apartment_row_1')!=null)&&(document.getElementById('apartment_row_5')!=null)){
				          document.write("<style>.search_result .apart_list{min-height:951px !important;max-height:951px !important;padding-top:39px !important;position: relative;top:-34px !important;}.apart_list .list_item{margin-top:29px!important;margin-bottom:29px!important;}.search_sorting.color_title.ui-corner-all form#searchSortingForm{position:relative;top:33px !important;}.search_sorting.color_title.ui-corner-all{border:none !important;}#footer{position:relative;top:-50px!important;}</style>");
			              } 
            }
		//PIU' PAGINE RISULTATI
        else if(document.getElementsByTagName('h3').item(1)!=null){
			//MENO DI 5 RISULTATI
			if(document.getElementById('apartment_row_5')==null){
				    document.write("<style>#footer{position:relative;top:-180px!important;}</style>");
			        }
			//5 RISULTATI	  
			else if(document.getElementById('apartment_row_5')!=null){
				         document.write("<style>#footer{position:relative;top:-180px!important;}</style>");
			             }
	        }
	}
	//SI FILTRI
	else if(document.getElementById('certified_price_filter')!=null){
		//SOLO UNA PAGINA RISULTATI
	    if(document.getElementsByTagName('h3').item(1)==null){
			//NESSUN RISULTATO
	        if(document.getElementById('apartment_row_1')==null){
				    document.getElementById("search_result_map").style.display="none";
					document.write("<style>.right_part[style='margin-top:72px'],#map_search_result{min-height:395px !important;max-height:395px !important;border-bottom-width:2px;}.search_result .left_part{font-size:36px !important;width: 397px;margin-right:15px!important;padding-left: 185px;padding-top:100px;color: rgba(136, 136, 136,0.5);text-align:center !important;min-height: 308px;max-height: 308px;background-color: rgb(234, 234, 234);border-style:solid; border-width:2px;border-color: rgba(255, 255, 255,1);border-top-left-radius: 5px;border-top-right-radius: 5px;border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;box-shadow: rgba(199, 199, 199, 0.4) 2px 2px, rgba(199, 199, 199, 0.4) -2px -2px,rgba(199, 199, 199, 0.2) 0px 0px 3px 3px;position: relative;top: 20px;left: 0px;}.search_result .left_part div[align=left]{position: relative;top: -18px;left: 38px;text-shadow: 1px 1px 2px #fff !important;}.search_sorting.color_title.ui-corner-all{border:none !important;}.search_sorting.color_title.ui-corner-all form#searchSortingForm{display:none !important;}#ricerca{position:relative;top:-320px;}#footer .user a[href='/login']{position:relative;top:-65px!important;}</style>");
					     //SCRITTE DOPO APPLICAZ.FILTRI
					     if(document.getElementById('no_filters')!=null){
					             document.write("<style>#no_filters{position:relative;left:-187px!important;top:86px!important;}.search_result .right_part form#searchSortingForm{margin-top:44px!important;}#footer{position:relative;top:191px!important;}#footer .user a[href='/login']{position:relative;top:-65px!important;}</style>");
								 }
					     else{
					             document.write("<style>#footer{position:relative;top:147px!important;}</style>");
						 }
			        }
			//MENO DI 5 RISULTATI
		    else if((document.getElementById('apartment_row_1')!=null)&&(document.getElementById('apartment_row_5')==null)){
				      if(document.getElementById('no_filters')!=null){document.write("<style>.search_result .right_part form#searchSortingForm{margin-top:44px!important;}</style>");}
				          document.write("<style>.search_result .apart_list{min-height:951px !important;max-height:951px !important;padding-top:39px !important;position: relative;top:-34px !important;}.search_sorting.color_title.ui-corner-all form#searchSortingForm{position:relative;top:33px !important;}.search_sorting.color_title.ui-corner-all{border:none !important;}#ricerca{position: relative;top:-320px;}#footer{position:relative;top:150px!important;}#footer .user a[href='/login']{position:relative;top:-65px!important;}</style>");
			              }
            //5 RISULTATI ESATTI
		    else if((document.getElementById('apartment_row_1')!=null)&&(document.getElementById('apartment_row_5')!=null)){
				          document.write("<style>.search_result .apart_list{min-height:951px !important;max-height:951px !important;padding-top:39px !important;position: relative;top:-34px !important;}.apart_list .list_item{margin-top:29px!important;margin-bottom:29px!important;}.search_sorting.color_title.ui-corner-all form#searchSortingForm{position:relative;top:33px !important;}.search_sorting.color_title.ui-corner-all{border:none !important;}#ricerca{position: relative;top:-320px;}#footer{position:relative;top:150px!important;}#footer .user a[href='/login']{position:relative;top:-65px!important;}</style>");
			              } 
            }
		//PIU' PAGINE RISULTATI
        else if(document.getElementsByTagName('h3').item(1)!=null){
			//MENO DI 5 RISULTATI
			if(document.getElementById('apartment_row_5')==null){
				    document.write("<style>#ricerca{position: relative;top:-320px;}#footer{position:relative;top:20px!important;}#footer .user a[href='/login']{position:relative;top:-65px!important;}</style>");
			        }
			//5 RISULTATI	  
			else if(document.getElementById('apartment_row_5')!=null){
				         document.write("<style>#ricerca{position: relative;top:-320px;}#footer{position:relative;top:20px!important;}#footer .user a[href='/login']{position:relative;top:-65px!important;}</style>");
			             }
	        }
     }
}
