var IMG_SERVER="http://img.makaan.com";var ALERT_IMG="http://img.makaan.com/images/alert.gif";var SERVER_PATH="http://www.makaan.com";var IMG_SERVER_PROPERTY="http://www.makaan.com";var IMG_SERVER_LOGO="http://www.makaan.com";var BODY_COLOR="#D4EBFA";var TAX_RATE=10.3;var borderline="#FFFFFF";if(screen.width=="800"){var tablewidth="783"}else{var tablewidth="1007"}if(screen.width>="1024"){var tablewidths="998"}else{var tablewidths="775"}function changetab(D,C){if(C==true){if(D=="reg"){document.getElementById("menu-reg-mid").style.color="#FFFFFF";document.getElementById("menu-reg-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-reg-left").style.backgroundPosition="0px -29px";document.getElementById("menu-reg-right").style.backgroundPosition="0px -29px"}else{if(D=="search"){document.getElementById("menu-search-mid").style.color="#FFFFFF";document.getElementById("menu-search-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-search-left").style.backgroundPosition="0px -29px";document.getElementById("menu-search-right").style.backgroundPosition="0px -29px"}else{if(D=="list"){document.getElementById("menu-list-mid").style.color="#FFFFFF";document.getElementById("menu-list-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-list-left").style.backgroundPosition="0px -29px";document.getElementById("menu-list-right").style.backgroundPosition="0px -29px"}else{if(D=="req"){document.getElementById("menu-req-mid").style.color="#FFFFFF";document.getElementById("menu-req-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-req-left").style.backgroundPosition="0px -29px";document.getElementById("menu-req-right").style.backgroundPosition="0px -29px"}else{if(D=="adv"){document.getElementById("menu-adv-mid").style.color="#FFFFFF";document.getElementById("menu-adv-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-adv-left").style.backgroundPosition="0px -29px";document.getElementById("menu-adv-right").style.backgroundPosition="0px -29px"}else{if(D=="loan"){document.getElementById("menu-loan-mid").style.color="#FFFFFF";document.getElementById("menu-loan-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-loan-left").style.backgroundPosition="0px -29px";document.getElementById("menu-loan-right").style.backgroundPosition="0px -29px"}else{if(D=="blp"){document.getElementById("menu-blp-mid").style.color="#FFFFFF";document.getElementById("menu-blp-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-blp-left").style.backgroundPosition="0px -29px";document.getElementById("menu-blp-right").style.backgroundPosition="0px -29px"}}}}}}}}else{if(D=="reg"){document.getElementById("menu-reg-mid").style.color="#000000";document.getElementById("menu-reg-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-reg-left").style.backgroundPosition="0px 0px";document.getElementById("menu-reg-right").style.backgroundPosition="0px 0px"}else{if(D=="search"){document.getElementById("menu-search-mid").style.color="#000000";document.getElementById("menu-search-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-search-left").style.backgroundPosition="0px 0px";document.getElementById("menu-search-right").style.backgroundPosition="0px 0px"}else{if(D=="list"){document.getElementById("menu-list-mid").style.color="#000000";document.getElementById("menu-list-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-list-left").style.backgroundPosition="0px 0px";document.getElementById("menu-list-right").style.backgroundPosition="0px 0px"}else{if(D=="req"){document.getElementById("menu-req-mid").style.color="#000000";document.getElementById("menu-req-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-req-left").style.backgroundPosition="0px 0px";document.getElementById("menu-req-right").style.backgroundPosition="0px 0px"}else{if(D=="adv"){document.getElementById("menu-adv-mid").style.color="#000000";document.getElementById("menu-adv-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-adv-left").style.backgroundPosition="0px 0px";document.getElementById("menu-adv-right").style.backgroundPosition="0px 0px"}else{if(D=="loan"){document.getElementById("menu-loan-mid").style.color="#000000";document.getElementById("menu-loan-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-loan-left").style.backgroundPosition="0px 0px";document.getElementById("menu-loan-right").style.backgroundPosition="0px 0px"}else{if(D=="blp"){document.getElementById("menu-blp-mid").style.color="#000000";document.getElementById("menu-blp-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-blp-left").style.backgroundPosition="0px 0px";document.getElementById("menu-blp-right").style.backgroundPosition="0px 0px"}}}}}}}}}var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){xmlhttp=false}}if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){xmlhttp=new XMLHttpRequest()}Array.prototype.inArray=function(D){var C;for(C=0;C<this.length;C++){if(this[C]===D){return true}}return false};function testfrm(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){document.getElementById(F).innerHTML=xmlhttp.responseText}else{document.getElementById(F).innerHTML='<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};xmlhttp.send(null)}catch(H){}}function makerequest(serverPage,objID){var obj=document.getElementById(objID);try{xmlhttp.open("GET",serverPage,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var text=xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));if(text==""){text="&nbsp;"}obj.innerHTML=text;mystr=xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));var thelength=xmlhttp.responseText.length;var last_char=xmlhttp.responseText.charAt(thelength-1);if(eval("last_char")==0){return false}else{return true}}else{document.getElementById(objID).innerHTML='<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};xmlhttp.send(null)}catch(e){}}function makerequestfastfree(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){G.innerHTML=xmlhttp.responseText}else{document.getElementById(F).innerHTML='<table width="40%" border="0" align="rignt"  style="border:1px solid #48A1CB;"><tr><td colspan="2" class="text" width = "20%"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr><tr><td align="center">&nbsp;</td><td align="center">&nbsp;</td></tr></table>'}};xmlhttp.send(null)}catch(H){}}function showsms(L,M){var H=new Array();H=M.split("_");var I="div_f"+H[1];if(document.getElementById(I)!=null&&document.getElementById(I)!="undefined"){if(document.getElementById(I).style.display!="none"){var J=document.getElementById(I)}else{var J=document.getElementById(M)}}else{var J=document.getElementById(M)}try{xmlhttp.open("GET",L,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){J.innerHTML=xmlhttp.responseText;return true}else{document.getElementById(M).innerHTML='<table width="100%" class="whitefill"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};xmlhttp.send(null)}catch(K){}}function makeajaxrequest(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var B="";B=xmlhttp.responseText;var A=B.length;var C=B.charAt(A-1);if(C=="."){B=B.substr(0,(B.length-1))}G.innerHTML=B}else{document.getElementById(F).innerHTML="Processing.....please wait"}};xmlhttp.send(null)}catch(H){}}function ajaxrequest(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){G.innerHTML=xmlhttp.responseText}};xmlhttp.send(null)}catch(H){}}function makeajaxpostrequest(I,F){var G=document.getElementById(F);try{xmlhttp.open("POST",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){G.innerHTML=xmlhttp.responseText}};xmlhttp.send(null)}catch(H){}}function ajax_poll(K,G,J){var H=document.getElementById(G);try{xmlhttp.open("GET",K,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){H.innerHTML=xmlhttp.responseText}else{document.getElementById("no_option").innerHTML='<table width="100%"><tr><td height="20" valign="center" align="center" class="text" style="color:#ff0000;">Processing.....please wait</td></tr></table>'}};xmlhttp.send(null)}catch(I){}}function compare_property_ajax(L,M,H){var J=document.getElementById(M);var K=document.getElementById(H);try{xmlhttp.open("GET",L,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){J.innerHTML=xmlhttp.responseText;K.innerHTML=xmlhttp.responseText}else{document.getElementById(M).innerHTML="<img src='"+IMG_SERVER+'/images/compare-button.gif\' alt="Compare Property" title="Compare Property" border="0" onmouseover="javascript:ajax_showTooltip(\'<font class=divmsgbold>Compare different properties</font><font class=divmsg><br>Please check atleast two listings that you would like to compare and click on this button.</font>\',this);return false;" onmouseout="ajax_hideTooltip();" />';document.getElementById(H).innerHTML="<img src='"+IMG_SERVER+'/images/compare-button.gif\' alt="Compare Property" title="Compare Property" border="0" onmouseover="javascript:ajax_showTooltip(\'<font class=divmsgbold>Compare different properties</font><font class=divmsg><br>Please check atleast two listings that you would like to compare and click on this button.</font>\',this);return false;" onmouseout="ajax_hideTooltip();" />'}};xmlhttp.send(null)}catch(I){}}function update_session(D,F){if(get_cookie("SELECTED_IDS")==null||get_cookie("SELECTED_IDS")==""){var G=new Array(1);G[0]=F}else{G=get_cookie("SELECTED_IDS").split(",");if(D==true&&!G.inArray(F)){G.push(F)}else{if(D==false){for(i=0;i<G.length;i++){if(G[i]==F){G.splice(i,1)}}}}}set_cookie("SELECTED_IDS",G.join(","));count_sel_ids=G.length;document.frm_search.count_id.value=count_sel_ids}function update_comparesession(D,F){if(get_cookie("SELECTED_COMP_IDS")==null||get_cookie("SELECTED_COMP_IDS")==""){var G=new Array(1);G[0]=F}else{G=get_cookie("SELECTED_COMP_IDS").split(",");if(D==true&&!G.inArray(F)){G.push(F)}else{if(D==false){for(i=0;i<G.length;i++){if(G[i]==F){G.splice(i,1)}}}}}set_cookie("SELECTED_COMP_IDS",G.join(","))}function click_counter(G,I,H){var F="/ssi/popup/clicks-counter.php?case=ppcbanner&id="+G+"&city="+H+"&page="+I;xmlhttp.open("GET",F,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){}};xmlhttp.send(null)}function makeajaxrequesnumber(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){G.innerHTML=xmlhttp.responseText}else{G.innerHTML="<table border=0 width='100%'><tr><td valign='top' class='columnhead' width='30%'></td><td   width='1%' ></td><td  width='79%' valign='middle'><font style='font-size:9px'>Processing.....please wait</font></td> </tr></table>"}};xmlhttp.send(null)}catch(H){}}function makeajaxrequest_ratingsystem(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){G.innerHTML=xmlhttp.responseText}else{G.innerHTML="<table border=0 height='100%' width='100%'><tr><td valign='middle' align='center'> <img src='http://img.makaan.com/images/submit_process2.gif'></td></tr></table>"}};xmlhttp.send(null)}catch(H){}}function makeajaxrequest_homepagelocality(I,F){var G=document.getElementById(F);try{xmlhttp.open("GET",I,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){G.innerHTML=xmlhttp.responseText;if(screen.width=="800"){var B="hrefhomelinks";var A=new RegExp("\\b"+B+"\\b");var C=document.getElementsByTagName("*");for(var D=0;D<C.length;D++){var K=C[D].className;if(A.test(K)){C[D].className="smallhrefhomelinks cursor"}}}}else{G.innerHTML="<table border=0 height='50' width='100%'><tr><td valign='middle' align='center'> <img src='http://img.makaan.com/images/loading.gif'></td></tr></table>"}};xmlhttp.send(null)}catch(H){}}function makeajaxrequest_buyerlead(serverPage,objID,getid,newbl){if(!newbl){newbl=0}var obj=document.getElementById(objID);try{xmlhttp.open("GET",serverPage,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){message=xmlhttp.responseText;var cla="dbuyerleadbutton";var myclass=new RegExp("\\b"+cla+"\\b");var elem=document.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){elem[i].style.display="none"}}var clb="buyerleadbutton";var myclass=new RegExp("\\b"+clb+"\\b");var elem=document.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){elem[i].style.display=""}}document.body.style.cursor="auto";if(message=="counterfull"){message_display("","This lead can not be captured.");obj.style.display="none";document.getElementById("tr_"+getid).style.display="none"}else{if(message=="nobalance"){message_display_nobalance("","You don't have balance to purchase buyer lead(s). Contact your account manager for renewal of services.");document.getElementById("tr_"+getid).style.display="none"}else{if(message=="alreadytaken"){message_display("","You have already captured this lead.");document.getElementById("tr_"+getid).style.display="none"}else{obj.style.display="";array_string=Array();array_string=message.split("|#|");var mybalancelead="";var mytotcapturelead="";if(array_string[0]==""||array_string[0]=="NA"){leadctr=0}else{if(array_string[0]!=undefined){leadctr=array_string[0]}}if(array_string[1]==""||array_string[1]=="NA"){mybalancelead=0}else{if(array_string[1]!=undefined){mybalancelead=array_string[1]}}if(array_string[2]==""||array_string[2]=="NA"){mytotcapturelead=0}else{if(array_string[2]!=undefined){mytotcapturelead=array_string[2]}}if(newbl!=0&&mybalancelead!=""){if(document.getElementById("newpleads")){document.getElementById("newpleads").innerHTML=parseInt(document.getElementById("newpleads").innerHTML)+1}}else{if(mybalancelead!=""){document.getElementById("balancelead").innerHTML=mybalancelead;if(document.getElementById("newleads")){document.getElementById("newleads").innerHTML=parseInt(document.getElementById("newleads").innerHTML)+1}}}if(newbl!=0&&mytotcapturelead!=""){document.getElementById("totcaptureplead").innerHTML="("+mytotcapturelead}else{if(mytotcapturelead!=""){document.getElementById("totcapturelead").innerHTML="("+mytotcapturelead+")"}}document.getElementById("captureimage_"+getid).style.backgroundImage="url('http://img.makaan.com/images/buyer-leads/capture-inact.gif')";htmlcontent="";htmlcontent_text="";htmlcontent="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr>";htmlcontent+="<td width='17%' align='right'>Contact Details</td> <td width='1%' align='center'>:</td><td width='82%'>";var saparator="";if(array_string[3]!="NA"&&array_string[3]!=undefined){htmlcontent_text+="<b>"+array_string[3]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}if(array_string[4]!="NA"&&array_string[4]!=undefined){htmlcontent_text+=saparator+"<b>"+array_string[4]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}if(array_string[5]!="NA"&&array_string[5]!=undefined){htmlcontent_text+=saparator+"<b>"+array_string[5]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}if(array_string[6]!="NA"&&array_string[6]!=undefined){htmlcontent_text+=saparator+"<b>"+array_string[6]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}htmlcontent+=htmlcontent_text;htmlcontent+="</td>";htmlcontent+="</tr> </table></center>";if(htmlcontent_text!=""){obj.innerHTML=htmlcontent}else{obj.innerHTML="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr><td align='center'><b>This lead could not be captured at this moment. Please try again later.</b></td></tr> </table></center>"}if(newbl==0){document.getElementById("captureimage_"+getid).innerHTML="<span style='color:#000000;'>&nbsp;Capture&nbsp;"+leadctr+"/"+total_cnt+"</span>"}else{document.getElementById("captureimage_"+getid).innerHTML="<span style='color:#000000;'>&nbsp;Capture&nbsp;</span>"}formObj=eval("document.frm");for(var i=1;i<formObj.length;i++){fldObj=formObj.elements[i];if(fldObj.type=="checkbox"){if(fldObj.value==getid){fldObj.disabled=true}}}message_success="";if(htmlcontent_text!=""){message_success="You have successfully captured 1 lead(s). Buyer details have been displayed in green background.";message_display_smily("",message_success)}}}}}else{obj.innerHTML="<table border=0 align='center' cellpadding='0' cellspacing='0' width='80%'><tr><td align='center' valign='middle' class='text'><img src='http://img.makaan.com/images/buyer-leads/buyer-process.gif'></td></tr></table>"}};xmlhttp.send(null)}catch(e){}}function makeajaxrequest_buyerlead_all(serverPage,objID,getid,newbl){if(!newbl){newbl=0}var obj=document.getElementById(objID);formObj=eval("document.frm");var alreadytaken_allmessage="";var counter_allmessage="";try{xmlhttp.open("GET",serverPage,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){allmessage=xmlhttp.responseText;array_string_all=Array();array_string_all=allmessage.split("|$|");array_string_alllength=0;array_string_alllength=array_string_all.length;array_regid=Array();array_regid=getid.split(",");getlength=array_regid.length;var cla="dbuyerleadbutton";var myclass=new RegExp("\\b"+cla+"\\b");var elem=document.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){elem[i].style.display="none"}}var clb="buyerleadbutton";var myclass=new RegExp("\\b"+clb+"\\b");var elem=document.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){elem[i].style.display=""}}document.body.style.cursor="auto";if(allmessage=="nobalance"){message_display_nobalance("","You don't have balance to purchase buyer lead(s). Contact your account manager for renewal of services.");obj.style.display="none";return false}else{mycounter=0;for(var x=1;x<array_string_alllength;x++){message="";message=array_string_all[x];getidindex=x-1;if(message=="counterfull"){counter_allmessage="This lead can not be captured."}else{if(message=="alreadytaken"){alreadytaken_allmessage="You have already captured this lead(s)."}else{obj.style.display="none";array_string=Array();array_string=message.split("|#|");array_string_length=array_string.length;get_divid="";get_divid=array_string[5];document.getElementById("tr_"+get_divid).style.display="";if(array_string[0]==""||array_string[0]=="NA"){leadctr=0}else{leadctr=array_string[0]}document.getElementById("captureimage_"+get_divid).style.backgroundImage="url('http://img.makaan.com/images/buyer-leads/capture-inact.gif')";htmlcontent="";htmlcontent_text="";htmlcontent="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr>";htmlcontent+="<td width='17%' align='right'>Contact Details</td> <td width='1%' align='center'>:</td><td width='82%'>";var saparator="";if(array_string[1]!="NA"&&array_string[1]!=undefined){htmlcontent_text+="<b>"+array_string[1]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}if(array_string[2]!="NA"&&array_string[2]!=undefined){htmlcontent_text+=saparator+"<b> "+array_string[2]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}if(array_string[3]!="NA"&&array_string[3]!=undefined){htmlcontent_text+=saparator+"<b> "+array_string[3]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}if(array_string[4]!="NA"&&array_string[4]!=undefined){htmlcontent_text+=saparator+"<b> "+array_string[4]+"</b>";saparator="&nbsp;&nbsp;|&nbsp;&nbsp;  "}htmlcontent+=htmlcontent_text;htmlcontent+="</td>";htmlcontent+="</tr> </table></center>";if(htmlcontent_text!=""){document.getElementById("div_"+get_divid).innerHTML=htmlcontent}else{document.getElementById("div_"+get_divid).innerHTML="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr><td align='center'><b>This lead could not be captured at this moment. Please try again later.</b></td></tr> </table></center>"}if(newbl==0){document.getElementById("captureimage_"+get_divid).innerHTML="<span style='color:#000000;'>&nbsp;Capture&nbsp;"+leadctr+"/"+total_cnt+"</span>"}else{document.getElementById("captureimage_"+get_divid).innerHTML="<span style='color:#000000;'>&nbsp;Capture&nbsp;</span>"}for(var i=1;i<formObj.length;i++){fldObj=formObj.elements[i];if(fldObj.type=="checkbox"&&fldObj.name=="id[]"){if(fldObj.value==get_divid){fldObj.disabled=true}}}mycounter++}}}}cal_array=array_string_all[0];array_string_leftpanel=cal_array.split("|#|");var mybalancelead="";var mytotcapturelead="";if(array_string_leftpanel[1]==""||array_string_leftpanel[1]=="NA"){mybalancelead=0}else{if(array_string_leftpanel[1]!=undefined){mybalancelead=array_string_leftpanel[1]}}if(array_string_leftpanel[0]==""||array_string_leftpanel[0]=="NA"){mytotcapturelead=0}else{if(array_string_leftpanel[0]!=undefined){mytotcapturelead=array_string_leftpanel[0]}}if(newbl!=0&&mybalancelead!=""){if(document.getElementById("newpleads")){document.getElementById("newpleads").innerHTML=parseInt(document.getElementById("newpleads").innerHTML)+mycounter}}else{if(mybalancelead!=""){if(document.getElementById("balancelead")){document.getElementById("balancelead").innerHTML=mybalancelead}if(document.getElementById("newleads")){document.getElementById("newleads").innerHTML=parseInt(document.getElementById("newleads").innerHTML)+mycounter}}}if(newbl!=0&&mytotcapturelead!=""){if(document.getElementById("totcaptureplead")){document.getElementById("totcaptureplead").innerHTML="("+mytotcapturelead}}else{if(mytotcapturelead!=""){if(document.getElementById("totcapturelead")){document.getElementById("totcapturelead").innerHTML="("+mytotcapturelead+")"}}}message_success="";message_success="You have successfully captured "+mycounter+" lead(s). Buyer details have been displayed in green background.";if(alreadytaken_allmessage!=""){message_display("",alreadytaken_allmessage)}else{if(counter_allmessage!=""){message_display("",counter_allmessage)}else{if(htmlcontent_text!=""){message_display_smily("",message_success)}}}}else{obj.innerHTML="<table border=0 align='center' cellpadding='0' cellspacing='0' width='80%'><tr><td align='center' valign='middle' class='text'><img src='http://img.makaan.com/images/buyer-leads/buyer-process.gif'></td></tr></table>"}};xmlhttp.send(null)}catch(e){}}function makeajaxrequest_buyerlead_nobalance(serverPage,objID,getid){if(document.getElementById(objID)){var obj=document.getElementById(objID)}else{var obj=""}formObj=eval("document.frm");try{xmlhttp.open("GET",serverPage,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(obj){obj.style.display="none"}if(document.getElementById(objID)){document.getElementById(objID).style.display="none"}allmessage=xmlhttp.responseText;var cla="dbuyerleadbutton";var myclass=new RegExp("\\b"+cla+"\\b");var elem=document.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){elem[i].style.display="none"}}var clb="buyerleadbutton";var myclass=new RegExp("\\b"+clb+"\\b");var elem=document.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){elem[i].style.display=""}}}else{if(obj){obj.innerHTML="<table border=0 align='center' cellpadding='0' cellspacing='0' width='80%'><tr><td align='center' valign='middle' class='text'><img src='http://img.makaan.com/images/buyer-leads/buyer-leads2.gif'></td></tr></table>"}}};xmlhttp.send(null)}catch(e){}}function make_getalert_request(serverPage,objID){var local_xmlhttp=false;try{local_xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{local_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){local_xmlhttp=false}}if(!local_xmlhttp&&typeof XMLHttpRequest!="undefined"){local_xmlhttp=new XMLHttpRequest()}Array.prototype.inArray=function(value){var i;for(i=0;i<this.length;i++){if(this[i]===value){return true}}return false};var obj=document.getElementById(objID);try{local_xmlhttp.open("GET",serverPage,true);local_xmlhttp.onreadystatechange=function(){if(local_xmlhttp.readyState==4){var text=local_xmlhttp.responseText.substr(0,(local_xmlhttp.responseText.length-1));if(text==""){text="&nbsp;"}obj.innerHTML=text;mystr=local_xmlhttp.responseText.substr(0,(local_xmlhttp.responseText.length-1));var thelength=local_xmlhttp.responseText.length;var last_char=local_xmlhttp.responseText.charAt(thelength-1);if(eval("last_char")==0){return false}else{return true}}else{document.getElementById(objID).innerHTML='<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};local_xmlhttp.send(null)}catch(e){}}function make_getalert_mobilecheck(L,M){var H=false;try{H=new ActiveXObject("Msxml2.XMLHTTP")}catch(I){try{H=new ActiveXObject("Microsoft.XMLHTTP")}catch(K){H=false}}if(!H&&typeof XMLHttpRequest!="undefined"){H=new XMLHttpRequest()}Array.prototype.inArray=function(A){var B;for(B=0;B<this.length;B++){if(this[B]===A){return true}}return false};var J=document.getElementById(M);try{H.open("GET",L,true);H.onreadystatechange=function(){if(H.readyState==4){var A=H.responseText;if(A==""){A="&nbsp;"}if(A==1){J.innerHTML="";document.getElementById("div_mobileerr").style.display="";document.getElementById("div_msg2").style.display="none"}else{J.innerHTML="&nbsp;";document.getElementById("div_msg2").style.display="";document.getElementById("div_mobileerr").style.display="none"}}else{document.getElementById(M).innerHTML='<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};H.send(null)}catch(I){}}function getalert_makeajax_postrequest(serverPage,objID,getstring){var local_xmlhttp=false;try{local_xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{local_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){local_xmlhttp=false}}if(!local_xmlhttp&&typeof XMLHttpRequest!="undefined"){local_xmlhttp=new XMLHttpRequest()}Array.prototype.inArray=function(value){var i;for(i=0;i<this.length;i++){if(this[i]===value){return true}}return false};var obj=document.getElementById(objID);try{xmlhttp.open("POST",serverPage+"?"+getstring,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var getmessage="";getmessage=xmlhttp.responseText;var temp=new Array();temp=getmessage.split("##$$##");output=temp[0].substr(temp[0].length-4,temp[0].length);if(output=="DONE"){obj.innerHTML=temp[0].substr(0,temp[0].length-4);if(document.getElementById("div_welcome")){document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[1]+"</b>&nbsp;&nbsp;"}if(document.getElementById("div_toplinks")){document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>'}if(document.getElementById("div_register_tab")){document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>'}if(document.getElementById("div_msg")){document.getElementById("div_msg").innerHTML=""}if(document.getElementById("div_msg2")){document.getElementById("div_msg2").innerHTML=""}}else{output=getmessage.substr(getmessage.length-1,getmessage.length);if(eval(output)=="0"||eval(output)==0){document.getElementById("div_msg2").innerHTML="";document.getElementById("div_msg2").innerHTML=getmessage.substr(0,getmessage.length-1)}else{document.getElementById("div_msg2").innerHTML=getmessage}}}else{document.getElementById("div_msg2").innerHTML='<table width="100%" height="20"><tr><td valign="middle" align="center" class="text" style="color:000000;height:100%;"><img src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};xmlhttp.send(null)}catch(e){}}function buyerleadrequest(L,M){var H=false;try{H=new ActiveXObject("Msxml2.XMLHTTP")}catch(I){try{H=new ActiveXObject("Microsoft.XMLHTTP")}catch(K){H=false}}if(!H&&typeof XMLHttpRequest!="undefined"){H=new XMLHttpRequest()}Array.prototype.inArray=function(A){var B;for(B=0;B<this.length;B++){if(this[B]===A){return true}}return false};var J=document.getElementById(M);try{H.open("GET",L,true);H.onreadystatechange=function(){if(H.readyState==4){getmessage=H.responseText;J.innerHTML=getmessage}else{J.innerHTML='<table width="100%" height="200"><tr><td valign="middle" align="center" class="text" style="color:000000;height:100%;"><img src="'+IMG_SERVER+'/images/broker-search/loadingfile.gif"/></td></tr></table>'}};H.send(null)}catch(I){}}if(screen.width=="800"){var tablewidths="762"}else{var tablewidths="972";var tableborder="#51BAEF;"}function chr_replace123(A){A=A.replace("#040;","'");A=A.replace("#039;","&");return unescape(A)}function prevHomeProject(G){var B="";var A=edloop="";var F=G.length-1;var D=document.slide.stslide.value;var O=document.slide.edslide.value;edloop=parseInt(D)-1;if(edloop<0){edloop=F}A=edloop;for(y=0;y<3;y++){A--;if(A<0){A=F}}document.slide.stslide.value=parseInt(A);document.slide.edslide.value=parseInt(edloop);D=A;B+="<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr>";for(y=0;y<4;y++){var C=text2="";if(G[D][3]!=""){C=chr_replace123(G[D][3])}if(G[D][4]!=""){text2=chr_replace123(G[D][4])}if(D>F){D=0}B+="<td width='25%' valign='top' align='center'";if(y!=0){B+=" style='background: url("+IMG_SERVER+"/images/citypage/white.gif) no-repeat;'"}B+="><table width='165px' border='0' cellspacing='0' cellpadding='0' style='font-family:Verdana;font-size:12px; background:#FFFFFF;' class='cursor'>";B+="<tr><td align='center'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank'><img src='"+IMG_SERVER+"/images/banners/"+G[D][0]+"' alt='"+G[D][5]+"' title='"+G[D][5]+"'></a></td></tr>";B+="<tr><td align='center' style='padding-left:7px;height:30px;' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks' style='color:#000000;text-decoration:none;'><b>"+C+"</b></a></td></tr>";B+="<tr><td align='left' style='text-align: justify; color: #4470A1' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span style='text-align: justify;'>"+text2+"</span></td></tr>";B+="<tr><td align='right' style='color: #4470A1' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span class='textnopad'><u>more &gt;&gt;</u></a></span></td></tr>";B+="</table></td>";D++;if(D>F){D=0}}B+="</tr></table>";document.getElementById("fp").innerHTML=B}function nextHomeProject(G){var B="";var A=edloop="";var F=G.length-1;if(document.slide.stslide.value==""||document.slide.edslide.value==""){var D=0;var O=3;A=0;edloop=3;document.slide.stslide.value="0";document.slide.edslide.value="3"}else{var D=document.slide.stslide.value;var O=document.slide.edslide.value;A=parseInt(O)+1;if(A>F){A=0}edloop=A;for(y=0;y<3;y++){edloop++;if(edloop>F){edloop=0}}document.slide.stslide.value=parseInt(A);document.slide.edslide.value=parseInt(edloop)}D=A;B+="<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr>";for(y=0;y<4;y++){var C=text2="";if(G[D][3]!=""){C=chr_replace123(G[D][3])}if(G[D][4]!=""){text2=chr_replace123(G[D][4])}if(D>F){D=0}B+="<td width='25%' valign='top' align='center'";if(y!=0){B+=" style='background: url("+IMG_SERVER+"/images/citypage/white.gif) no-repeat;'"}B+="><table width='165px' border='0' cellspacing='0' cellpadding='0' style='font-family:Verdana;font-size:12px; background:#FFFFFF;' class='cursor'>";B+="<tr><td align='center'><a href='"+G[D][1]+"' onclick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' ><img src='"+IMG_SERVER+"/images/banners/"+G[D][0]+"' alt='"+G[D][5]+"' title='"+G[D][5]+"'></a></td></tr>";B+="<tr><td align='center' style='padding-left:7px;height:30px;' class='textnopad'><a href='"+G[D][1]+"' onclick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='texttitle hrefheader cursor' style='color:#000000;text-decoration:none;'><b>"+C+"</b></a></td></tr>";B+="<tr><td align='left' style='text-align: justify;' class='textnopad'><a href='"+G[D][1]+"' onclick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span style='text-align: justify;'>"+text2+"</span></td></tr>";B+="<tr><td align='right' style='color: #4470A1' class='textnopad'><a href='"+G[D][1]+"' onclick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span class='textnopad'><u>more &gt;&gt;</u></a></span></td></tr>";B+="</table></td>";D++;if(D>F){D=0}}B+="</tr></table>";document.getElementById("fp").innerHTML=B}function prevCityProject(G){var B="";var A=edloop="";var F=G.length-1;var D=document.slide.stslide.value;var O=document.slide.edslide.value;edloop=parseInt(D)-1;if(edloop<0){edloop=F}A=edloop;for(y=0;y<1;y++){A--;if(A<0){A=F}}document.slide.stslide.value=parseInt(A);document.slide.edslide.value=parseInt(edloop);D=A;B+="<table width='100%' cellpadding='0' cellspacing='3' border='0'><tr>";for(y=0;y<2;y++){var C=text2="";if(G[D][3]!=""){C=chr_replace123(G[D][3])}if(G[D][4]!=""){text2=chr_replace123(G[D][4])}if(D>F){D=0}B+="<td width='50%' valign='top' align='center'>";B+="<table  border='0' width='100%' id='prevCityProject' cellspacing='0' cellpadding='0' style='font-family:Verdana;font-size:12px; background:#FFFFFF;' class='cursor'>";B+="<tr><td align='center'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank'><img src='"+IMG_SERVER+"/images/banners/"+G[D][0]+"' alt='"+G[D][5]+"' title='"+G[D][5]+"' class='chunk'></a></td></tr>";B+="<tr><td align='center' style='padding-left:7px;height:25px;' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='texttitle hrefheader cursor' style='color:#000000;text-decoration:none;'><b><span class='fp_text1'>"+C+"</span></b></a></td></tr>";B+="<tr><td align='left' style='text-align: justify;' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span style='text-align: justify;' class='fp_text2'>"+text2+"</span></td></tr>";B+="<tr><td align='right' style='padding-left:7px;' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span class='textnopad' id='morecontent'><u>more &gt;&gt;</u></a></span></td></tr>";B+="</table></td>";if(y==0){B+=" <td valign='bottom'><img src='"+IMG_SERVER+"/images/citypage/white-fp.gif'></td>"}D++;if(D>F){D=0}}B+="</tr></table>";document.getElementById("fp").innerHTML=B;change_image_800()}function nextCityProject(G){var B="";var A=edloop="";var F=G.length-1;if(document.slide.stslide.value==""||document.slide.edslide.value==""){var D=0;var O=1;A=0;edloop=1;document.slide.stslide.value="0";document.slide.edslide.value="1"}else{var D=document.slide.stslide.value;var O=document.slide.edslide.value;A=parseInt(O)+1;if(A>F){A=0}edloop=A;for(y=0;y<1;y++){edloop++;if(edloop>F){edloop=0}}document.slide.stslide.value=parseInt(A);document.slide.edslide.value=parseInt(edloop)}D=A;B+="<table width='100%' cellpadding='0' cellspacing='3' border='0'><tr>";for(y=0;y<2;y++){var C=text2="";if(G[D][3]!=""){C=chr_replace123(G[D][3])}if(G[D][4]!=""){text2=chr_replace123(G[D][4])}if(D>F){D=0}B+="<td width='50%' valign='top' align='center'>";B+="<table border='0' width='100%' id='nextCityProject' cellspacing='0' cellpadding='0' style='font-family:Verdana;font-size:12px; background:#FFFFFF;' class='cursor'>";B+="<tr><td align='center'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank'><img src='"+IMG_SERVER+"/images/banners/"+G[D][0]+"' alt='"+G[D][5]+"' title='"+G[D][5]+"' class='chunk'></a></td></tr>";B+="<tr><td align='center' style='padding-left:7px;height:25px;' class='textnopad'><a href='"+G[D][1]+"' target='_blank' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' class='texttitle hrefheader cursor' style='color:#000000;text-decoration:none;'><b><span class='fp_text1'>"+C+"</span></b></a></td></tr>";B+="<tr><td align='left' style='text-align: justify;' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span style='text-align: justify;' class='fp_text2'>"+text2+"</span></td></tr>";B+="<tr><td align='right' style='padding-left:7px;' class='textnopad'><a href='"+G[D][1]+"' onClick='javascript: update_banner_hits("+G[D][2]+",\"2\")' target='_blank' class='hrefhomelinks'><span class='textnopad' id='morecontent'><u>more &gt;&gt;</u></a></span></td></tr>";B+="</table></td>";if(y==0){B+=" <td valign='bottom'><img src='"+IMG_SERVER+"/images/citypage/white-fp.gif'></td>"}D++;if(D>F){D=0}}B+="</tr></table>";document.getElementById("fp").innerHTML=B;change_image_800()}function change_image_800(){if(screen.width=="800"){var B=document.getElementsByTagName("img");for(var A=0;A<B.length;A++){if(B[A].className=="chunk"){B[A].style.width="85px";B[A].style.height="95px"}}var B=document.getElementsByTagName("span");for(var A=0;A<B.length;A++){if(B[A].className=="fp_text1"||B[A].className=="fp_text2"){B[A].style.fontSize="9px"}if(B[A].className=="textnopad"){B[A].style.fontSize="9px"}}}}function changecityid(A){document.frm_search.city.value=A;document.frm_search.submit()}function changelocid(A){document.frm_search.loc.value=A;document.frm_search.submit()}function setBudget2(F,G,A,Q,C,l,P){if(!l){l=0}if(!P){P=0}if(Q==0){F=F}else{if(document.frm_first.property_for["0"].checked==true){F="1"}else{if(document.frm_first.property_for["1"].checked==true){F="2"}else{F="1"}}}var B;var O=(navigator.appName=="Microsoft Internet Explorer")?-1:null;var L=document.frm_first.elements.budget_from;if(Q!=1){while(L.options.length){L.remove(0)}var M=F;var D=budgetval[M];B=document.createElement("option");if(F=="2"){B.text="<5000";B.value="4999"}else{B.text="<10 Lacs";B.value="999999"}L.add(B,O);if(M!=""){var I=0;for(var N=0;N<D.length;N++){if(I==0&&F=="2"&&l=="4999"){B.selected=true;I=1}else{if(I==0&&F=="1"&&l=="999999"){B.selected=true;I=1}}B=document.createElement("option");B.text=D[N].text;B.value=D[N].value;if(N==(D.length-1)){B.text=">"+B.text}L.add(B,O);if(I==0&&D[N].value==l){B.selected=true;I=1}else{if(I==0&&F==1&&D[N].value=="3000000"){B.selected=true}else{if(I==0&&F==2&&D[N].value=="15000"){B.selected=true}}}}}}var H=document.frm_first.elements.budget_to;while(H.options.length){H.remove(0)}var M=F;var D=budgetval[M];var J=0;if(Q!=1){if(F==1){J=4}else{J=3}}else{J=L.selectedIndex}var K=L.options.length-1;if(J==0||J==K){B=document.createElement("option");B.text="Max Price";B.value="";H.add(B,O);H.disabled=true}else{if(M!=""){var I=0;for(var N=J;N<D.length;N++){B=document.createElement("option");B.text=D[N].text;B.value=D[N].value;H.add(B,O);if(D[N].value==P){B.selected=true;I=1}else{if(I==0&&M==1&&D[N].value==G){B.selected=true}else{if(I==0&&D[N].value==A){B.selected=true}}}}H.disabled=false}}}function disable_combo(ctrl,frm_name){if(ctrl==2||ctrl==4||ctrl==10||ctrl==11||ctrl==12||ctrl==13||ctrl==14||ctrl==15||ctrl==16){val=(eval("document."+frm_name+".bedroom"));val.disabled=true}else{val=(eval("document."+frm_name+".bedroom"));val.disabled=false}}function validate_search(frm){var city=eval("document."+frm+".city.value");if(city==""){alert("Please select the city");eval("document."+frm+".city.focus();");return false}return true}function change_citytype(A){var B;if(A==""||A=="1"){document.getElementById("span_delhihighlight").style.display="";document.getElementById("span_delhidim").style.display="none";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.getElementById("head_Delhi").style.display="";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.frm_search.city.value="M1";document.getElementById("span_more").innerHTML='<a href="/real-estate/delhi-property" alt="Delhi Properties" title="Delhi Properties" class="hrefhomelinks cursor">More Properties in Delhi &gt;&gt;</a>';document.frm_search.city.value="M1";makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M1","head_Delhi")}else{if(A=="2"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="";document.getElementById("span_mumbaidim").style.display="none";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.frm_search.city.value="M2";document.getElementById("span_more").innerHTML='<a href="/real-estate/mumbai-property" alt="Mumbai Properties" title="Mumbai Properties" class="hrefhomelinks cursor">More Properties in Mumbai &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M2","head_Mumbai")}else{if(A=="3"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="";document.getElementById("span_bangaloredim").style.display="none";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.frm_search.city.value="M3";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.getElementById("span_more").innerHTML='<a href="/real-estate/bangalore-propertyp" alt="Bangalore Properties" title="Bangalore Properties" class="hrefhomelinks cursor">More Properties in Bangalore &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M3","head_Bangalore")}else{if(A=="4"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="";document.getElementById("span_chennaidim").style.display="none";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.frm_search.city.value="M5";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.getElementById("span_more").innerHTML='<a href="/real-estate/chennai-property" alt="Chennai Properties" title="Chennai Properties" class="hrefhomelinks cursor">More Properties in Chennai &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M5","head_Chennai")}else{if(A=="5"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="";document.getElementById("span_punedim").style.display="none";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="";document.getElementById("head_Hyderabad").style.display="none";document.frm_search.city.value="S299";document.getElementById("span_more").innerHTML='<a href="/real-estate/pune-property" alt="Pune Properties" title="Pune Properties" class="hrefhomelinks cursor">More Properties in Pune &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=S299","head_Pune")}else{if(A=="6"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="";document.getElementById("span_hyderabaddim").style.display="none";document.frm_search.city.value="M6";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="";document.getElementById("span_more").innerHTML='<a href="/real-estate/hyderabad-property" alt="Hyderabad Properties" title="Hyderabad Properties" class="hrefhomelinks cursor">More Properties in Hyderabad &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M6","head_Hyderabad")}}}}}}}function change_citytype_home(A){var B;if(A==""||A=="1"){document.getElementById("span_delhihighlight").style.display="";document.getElementById("span_delhidim").style.display="none";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.getElementById("head_Delhi").style.display="";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.frm_search.city.value="M1";document.getElementById("span_more").innerHTML='<a href="/real-estate/delhi-property" alt="Delhi Properties" title="Delhi Properties" class="hrefhomelinks cursor">More Properties in Delhi &gt;&gt;</a>';document.frm_search.city.value="M1";makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M1","head_Delhi")}else{if(A=="2"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="";document.getElementById("span_mumbaidim").style.display="none";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.frm_search.city.value="M2";document.getElementById("span_more").innerHTML='<a href="/real-estate/mumbai-property" alt="Mumbai Properties" title="Mumbai Properties" class="hrefhomelinks cursor">More Properties in Mumbai &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M2","head_Mumbai")}else{if(A=="3"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="";document.getElementById("span_bangaloredim").style.display="none";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.frm_search.city.value="M3";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.getElementById("span_more").innerHTML='<a href="/real-estate/bangalore-propertyp" alt="Bangalore Properties" title="Bangalore Properties" class="hrefhomelinks cursor">More Properties in Bangalore &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M3","head_Bangalore")}else{if(A=="4"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="";document.getElementById("span_chennaidim").style.display="none";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.frm_search.city.value="M5";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="none";document.getElementById("span_more").innerHTML='<a href="/real-estate/chennai-property" alt="Chennai Properties" title="Chennai Properties" class="hrefhomelinks cursor">More Properties in Chennai &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M5","head_Chennai")}else{if(A=="5"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="";document.getElementById("span_punedim").style.display="none";document.getElementById("span_hyderabadhighlight").style.display="none";document.getElementById("span_hyderabaddim").style.display="";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="";document.getElementById("head_Hyderabad").style.display="none";document.frm_search.city.value="S299";document.getElementById("span_more").innerHTML='<a href="/real-estate/pune-property" alt="Pune Properties" title="Pune Properties" class="hrefhomelinks cursor">More Properties in Pune &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=S299","head_Pune")}else{if(A=="6"){document.getElementById("span_delhihighlight").style.display="none";document.getElementById("span_delhidim").style.display="";document.getElementById("span_mumbaihighlight").style.display="none";document.getElementById("span_mumbaidim").style.display="";document.getElementById("span_bangalorehighlight").style.display="none";document.getElementById("span_bangaloredim").style.display="";document.getElementById("span_chennaihighlight").style.display="none";document.getElementById("span_chennaidim").style.display="";document.getElementById("span_punehighlight").style.display="none";document.getElementById("span_punedim").style.display="";document.getElementById("span_hyderabadhighlight").style.display="";document.getElementById("span_hyderabaddim").style.display="none";document.frm_search.city.value="M6";document.getElementById("head_Delhi").style.display="none";document.getElementById("head_Mumbai").style.display="none";document.getElementById("head_Bangalore").style.display="none";document.getElementById("head_Chennai").style.display="none";document.getElementById("head_Pune").style.display="none";document.getElementById("head_Hyderabad").style.display="";document.getElementById("span_more").innerHTML='<a href="/real-estate/hyderabad-property" alt="Hyderabad Properties" title="Hyderabad Properties" class="hrefhomelinks cursor">More Properties in Hyderabad &gt;&gt;</a>';makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city=M6","head_Hyderabad")}}}}}}}function change_locptype(B,A){var C;if(B==""||B=="1"){document.getElementById("span_aparthighlight").style.display="";document.getElementById("span_apartdim").style.display="none";document.getElementById("span_plothighlight").style.display="none";document.getElementById("span_plotdim").style.display="";document.getElementById("span_villahighlight").style.display="none";document.getElementById("span_villadim").style.display="";document.frm_search.property_type.value="3";makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city="+A+"&property_type=3&page=citypage","head_city_locality")}else{if(B=="2"){document.getElementById("span_aparthighlight").style.display="none";document.getElementById("span_apartdim").style.display="";document.getElementById("span_plothighlight").style.display="";document.getElementById("span_plotdim").style.display="none";document.getElementById("span_villahighlight").style.display="none";document.getElementById("span_villadim").style.display="";document.frm_search.property_type.value="4";makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city="+A+"&property_type=4&page=citypage","head_city_locality")}else{if(B=="3"){document.getElementById("span_aparthighlight").style.display="none";document.getElementById("span_apartdim").style.display="";document.getElementById("span_plothighlight").style.display="none";document.getElementById("span_plotdim").style.display="";document.getElementById("span_villahighlight").style.display="";document.getElementById("span_villadim").style.display="none";document.frm_search.property_type.value="6";makeajaxrequest_homepagelocality("/ssi/ajax/featured-locality.php?city="+A+"&property_type=6&page=citypage","head_city_locality")}}}}function change_city(A){if(A==""){return false}var B;if(A=="National"){B="/index.php?bypass=1"}else{if(A=="Delhi"){B="/real-estate/delhi-property.php"}else{if(A=="Ahmedabad"){B="/real-estate/ahmedabad-property.php"}else{if(A=="Bangalore"){B="/real-estate/bangalore-property.php"}else{if(A=="Chandigarh"){B="/real-estate/chandigarh-property.php"}else{if(A=="Chennai"){B="/real-estate/chennai-property.php"}else{if(A=="Hyderabad"){B="/real-estate/hyderabad-property.php"}else{if(A=="Jaipur"){B="/real-estate/jaipur-property.php"}else{if(A=="Kochi"){B="/real-estate/kochi-property.php"}else{if(A=="Kolkata"){B="/real-estate/kolkata-property.php"}else{if(A=="Mumbai"){B="/real-estate/mumbai-property.php"}else{if(A=="Pune"){B="/real-estate/pune-property"}}}}}}}}}}}}document.location=B}function change_ptype(B,C){var A;if(B==""||B=="1"){A='<select name="property_type" class="txtComp" onchange="javascript:disable_combo(this.value,\'frm_first\');" style="width:170px;"><option value="1" style="background-color:#FDF6B5;" ';if(C==""||C=="1"){A+=" selected"}A+='>Residential Property</option><option value="3" ';if(C=="3"){A+=" selected"}A+='>Apartment</option><option value="4" ';if(C=="4"){A+=" selected"}A+='>Plot/Land</option><option value="5" ';if(C=="5"){A+=" selected"}A+='>Builder Floor</option><option value="6" ';if(C=="6"){A+=" selected"}A+='>Bungalow/Villa</option><option value="7" ';if(C=="7"){A+=" selected"}A+='>Farm House</option><option value="8" ';if(C=="8"){A+=" selected"}A+='>Service/Studio Apartment</option><option value="9" ';if(C=="9"){A+=" selected"}A+=">Other Residential</option></select>";document.frm_first.bedroom.disabled=false;if(document.getElementById("span_resitab")!=null&&document.getElementById("span_resitab")!="undefined"){document.getElementById("span_resitab").style.background="url("+IMG_SERVER+"/images/src-tb-graditant.gif) top left";document.getElementById("span_resitab").style.top="1px"}if(document.getElementById("span_commtab")!=null&&document.getElementById("span_commtab")!="undefined"){document.getElementById("span_commtab").style.background="url("+IMG_SERVER+"/images/src-tb-normal.gif) top left";document.getElementById("span_commtab").style.top="0px"}if(document.getElementById("tab_search_main")!=null&&document.getElementById("tab_search_main")!="undefined"){document.getElementById("tab_search_main").style.background="url("+IMG_SERVER+"/images/citypage/home-search-1.jpg) top left no-repeat"}}else{if(B=="2"){A='<select name="property_type" class="txtComp" onchange="javascript:disable_combo(this.value,\'frm_first\');" style="width:170px;"><option value="2" style="background-color:#FDF6B5;"';if(C=="2"){A+=" selected"}A+='>Commercial Property</option><option value="10" ';if(C=="10"){A+=" selected"}A+='>Land</option><option value="11" ';if(C=="11"){A+=" selected"}A+='>Office</option><option value="12" ';if(C=="12"){A+=" selected"}A+='>Business Centre</option><option value="13" ';if(C=="13"){A+=" selected"}A+='>Warehouse/Godown</option><option value="14" ';if(C=="14"){A+=" selected"}A+='>Industrial setup</option><option value="15" ';if(C=="15"){A+=" selected"}A+='>Shop</option><option value="16" ';if(C=="16"){A+=" selected"}A+=">Other Commercial</option></select>";document.frm_first.bedroom.disabled=true;if(document.getElementById("span_resitab")!=null&&document.getElementById("span_resitab")!="undefined"){document.getElementById("span_resitab").style.background="url("+IMG_SERVER+"/images/src-tb-normal.gif) top left";document.getElementById("span_resitab").style.top="0px"}if(document.getElementById("span_commtab")!=null&&document.getElementById("span_commtab")!="undefined"){document.getElementById("span_commtab").style.background="url("+IMG_SERVER+"/images/src-tb-graditant.gif) top left";document.getElementById("span_commtab").style.top="1px"}if(document.getElementById("tab_search_main")!=null&&document.getElementById("tab_search_main")!="undefined"){document.getElementById("tab_search_main").style.background="url("+IMG_SERVER+"/images/citypage/home-search-commercial.jpg) top left no-repeat"}}}document.getElementById("div_ptype").innerHTML=A}function pproject(max){if(max%4!=0){max=parseInt(max)+1}var startnum=parseInt(document.getElementById("span_num").innerHTML);if((startnum-1)>=0){document.getElementById("span_num").innerHTML=parseInt(startnum)-1;for(i=0;i<max;i++){if(i==(startnum-1)||i==(startnum-0)||i==(startnum+1)||i==(startnum+2)){eval("document.getElementById('td_"+i+'\').style.display = ""')}else{eval("document.getElementById('td_"+i+'\').style.display = "none"')}}startnum=startnum-1;if((startnum-1)>=0){document.img_back.src="http://img.makaan.com/images/fp-prev.gif"}else{document.img_back.src="http://img.makaan.com/images/fp-prev-disable.gif"}if((startnum+1)<max){document.img_next.src="http://img.makaan.com/images/fp-next.gif"}else{document.img_next.src="http://img.makaan.com/images/fp-next-disable.gif"}}else{document.img_back.src="http://img.makaan.com/images/fp-prev-disable.gif"}}function update_banner_clicks(F,C,G){var B=false;try{B=new ActiveXObject("Msxml2.XMLHTTP")}catch(A){try{B=new ActiveXObject("Microsoft.XMLHTTP")}catch(H){B=false}}if(!B&&typeof XMLHttpRequest!="undefined"){B=new XMLHttpRequest()}var D="/ssi/popup/clicks-counter.php?case="+C+"&id="+F+"&type="+G;B.open("GET",D,true);B.onreadystatechange=function(){if(B.readyState==4){}};B.send(null)}function update_banner_hits(D,G){var C=false;try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){C=false}}if(!C&&typeof XMLHttpRequest!="undefined"){C=new XMLHttpRequest()}var F="/ssi/popup/clicks-counter.php?case=sitebanner&id="+D+"&type="+G;C.open("GET",F,true);C.onreadystatechange=function(){if(C.readyState==4){}};C.send(null)}var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var D;var G;var F;try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");D=G.GetVariable("$version")}catch(F){}if(!D){try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");D="WIN 6,0,21,0";G.AllowScriptAccess="always";D=G.GetVariable("$version")}catch(F){}}if(!D){try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");D=G.GetVariable("$version")}catch(F){}}if(!D){try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");D="WIN 3,0,18,0"}catch(F){}}if(!D){try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");D="WIN 2,0,0,11"}catch(F){D=-1}}return D}function GetSwfVer(){var L=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var M=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var J=navigator.plugins["Shockwave Flash"+M].description;var N=J.split(" ");var P=N[2].split(".");var K=P[0];var Q=P[1];if(N[3]!=""){tempArrayMinor=N[3].split("r")}else{tempArrayMinor=N[4].split("r")}var O=tempArrayMinor[1]>0?tempArrayMinor[1]:0;var L=K+"."+Q+"."+O}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){L=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){L=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){L=2}else{if(isIE&&isWin&&!isOpera){L=ControlVersion()}}}}}return L}function DetectFlashVer(I,K,L){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var J=versionArray[0];var H=versionArray[1];var M=versionArray[2];if(J>parseFloat(I)){return true}else{if(J==parseFloat(I)){if(H>parseFloat(K)){return true}else{if(H==parseFloat(K)){if(M>=parseFloat(L)){return true}}}}}return false}}}function AC_AddExtension(D,C){if(D.indexOf("?")!=-1){return D.replace(/\?/,C+"?")}else{return D+C}}function AC_Generateobj(H,I,G){var J="";if(isIE&&isWin&&!isOpera){J+="<object ";for(var K in H){J+=K+'="'+H[K]+'" '}for(var K in I){J+='><param name="'+K+'" value="'+I[K]+'" /> '}J+="></object>"}else{J+="<embed ";for(var K in G){J+=K+'="'+G[K]+'" '}J+="> </embed>"}document.write(J)}function AC_FL_RunContent(){var B=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(B.objAttrs,B.params,B.embedAttrs)}function AC_GetArgs(Q,N,L,O,K){var J=new Object();J.embedAttrs=new Object();J.params=new Object();J.objAttrs=new Object();for(var P=0;P<Q.length;P=P+2){var M=Q[P].toLowerCase();switch(M){case"classid":break;case"pluginspage":J.embedAttrs[Q[P]]=Q[P+1];break;case"src":case"movie":Q[P+1]=AC_AddExtension(Q[P+1],N);J.embedAttrs.src=Q[P+1];J.params[L]=Q[P+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":J.objAttrs[Q[P]]=Q[P+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":J.embedAttrs[Q[P]]=J.objAttrs[Q[P]]=Q[P+1];break;default:J.embedAttrs[Q[P]]=J.params[Q[P]]=Q[P+1]}}J.objAttrs.classid=O;if(K){J.embedAttrs.type=K}return J}var content;var contentcontainer;var position=1;var rot_position=0;var rot_timer;var maxY,wd,maxX,ready,slideDur=1000,destX=0,destY=0,distY,distX,per,sliding,slideStart,aniTimer,startX,startY,xcoordinate,ycoordinate,url_path_rotation;var totProject;var capcity=2;var imgScroll1=new Image();imgScroll1.src=IMG_SERVER+"/images/scroll/next.gif";var imgScroll2=new Image();imgScroll2.src=IMG_SERVER+"/images/scroll/next-disable.gif";var imgScroll3=new Image();imgScroll3.src=IMG_SERVER+"/images/scroll/prev.gif";var imgScroll4=new Image();imgScroll4.src=IMG_SERVER+"/images/scroll/prev-disable.gif";if(screen.width=="800"){var slidewidth=175}else{var slidewidth=192}function load(M,S,P,Q){var K=document.getElementById("table-content");var L=K.getElementsByTagName("td");var R=L.length/3;var O=L.length*slidewidth+"px";var N=document.getElementById("table-content").clientWidth;N=O;document.getElementById("table-content").style.width=N;totProject=Q-1;position=1;url_path_rotation=P;if(!document.getElementById){return}content=document.getElementById("content");contentcontainer=document.getElementById("content-container");content.visibility="hidden";content.style.top=0;content.style.left=0;xcoordinate=0;ycoordinate=0;maxY=(content.offsetHeight-contentcontainer.offsetHeight>0)?content.offsetHeight-contentcontainer.offsetHeight:0;wd=M?document.getElementById(M).offsetWidth:content.offsetWidth;maxX=(wd-contentcontainer.offsetWidth>0)?wd-contentcontainer.offsetWidth:0;content.style.visibility="visible";ready=true;document.getElementById("slideprevious").style.visibility="visible";document.getElementById("slidenext").style.visibility="visible";rot_timer=setInterval("do_rotation()",S);disableAnchor(document.getElementById("slidenext"),true);document.getElementById("image_next").style.display="none";document.getElementById("dimage_next").style.display="";disableAnchor(document.getElementById("slideprevious"),true);document.getElementById("image_previous").style.display="none";document.getElementById("dimage_previous").style.display=""}function glideTo(D,C){content=document.getElementById("content");contentcontainer=document.getElementById("content-container");startX=parseInt(content.style.left);if(startX==""){startX=0}startY=parseInt(content.style.top);destX=-Math.max(Math.min(D,maxX),0);destY=-Math.max(Math.min(C,maxY),0);distY=destY-startY;distX=destX-startX;per=Math.PI/(2*slideDur);sliding=false;slideStart=(new Date()).getTime();aniTimer=setInterval("doSlide()",10);on_slide_start(startX,startY)}function doSlide(){var G=(new Date()).getTime()-slideStart;if(G<slideDur){var D=startX+distX*Math.sin(per*G);var F=startY+distY*Math.sin(per*G);shiftTo(D,F);on_slide(D,F)}else{clearInterval(aniTimer);sliding=false;shiftTo(destX,destY);on_slide_end(destX,destY)}}function shiftTo(C,D){if(typeof(C)=="number"){content.style.left=C+"px";content.style.top=D+"px"}}on_slide_start=function(){};on_slide=function(){};on_slide_end=function(){};function next_previous(str,img_url){clearInterval(rot_timer);if(str=="next"){if(document.getElementById("slideprevious").href==""){disableAnchor(document.getElementById("slideprevious"),false);document.getElementById("image_previous").style.display="";document.getElementById("dimage_previous").style.display="none"}if(position<totProject){position++;glideTo(eval(position-1)*slidewidth,0);disableAnchor(document.getElementById("slidenext"),false);document.getElementById("image_next").style.display="";document.getElementById("dimage_next").style.display="none"}if(position==totProject){disableAnchor(document.getElementById("slidenext"),true);document.getElementById("image_next").style.display="none";document.getElementById("dimage_next").style.display=""}}if(str=="previous"){if(document.getElementById("slidenext").href==""){disableAnchor(document.getElementById("slidenext"),false);document.getElementById("image_next").style.display="";document.getElementById("dimage_next").style.display="none"}if(position>1){position--;glideTo(eval(position-1)*slidewidth,0);disableAnchor(document.getElementById("slideprevious"),false);document.getElementById("image_previous").style.display="";document.getElementById("dimage_previous").style.display="none"}if(position==1){disableAnchor(document.getElementById("slideprevious"),true);document.getElementById("image_previous").style.display="none";document.getElementById("dimage_previous").style.display=""}}}function do_rotation(){if(position<totProject){position++;glideTo(eval(position-1)*slidewidth,0);disableAnchor(document.getElementById("slideprevious"),false);document.getElementById("image_previous").style.display="";document.getElementById("dimage_previous").style.display="none";disableAnchor(document.getElementById("slidenext"),false);document.getElementById("image_next").style.display="";document.getElementById("dimage_next").style.display="none"}else{position=1;glideTo(eval(position-1)*slidewidth,0);disableAnchor(document.getElementById("slideprevious"),false);document.getElementById("image_previous").style.display="none";document.getElementById("dimage_previous").style.display="";disableAnchor(document.getElementById("slidenext"),false);document.getElementById("image_next").style.display="none";document.getElementById("dimage_next").style.display=""}}function disableAnchor(F,G){if(G){var D=F.getAttribute("href");F.removeAttribute("href")}else{if(F.id=="slidenext"){F.setAttribute("href","javascript:next_previous('next','"+url_path_rotation+"')")}if(F.id=="slideprevious"){F.setAttribute("href","javascript:next_previous('previous','"+url_path_rotation+"')")}}}function showhide(F){var G=document.getElementById(F);for(var D=1;D<=2;D++){if(document.getElementById("reporttab0"+D)){document.getElementById("reporttab0"+D).style.display="none";document.getElementById("reporttab0"+D+"img").src="/images/new/product-lp/reporttab0"+D+"-off.gif"}}if(G){document.getElementById(G.id+"img").src="/images/new/product-lp/"+G.id+"-on.gif";G.style.display="block"}}var i=1;var j=1;var intervalID;var selval=1;function slideshow(D){for(var C=1;C<=2;C++){if(document.getElementById("slider"+C)){}}if(D=="startslide"){intervalID=setInterval(startslidefn,5000)}else{if(D!="startslide"&&D!="pause"&&D!="play"&&D!="next"&&D!="prev"){selval=D;for(var C=1;C<=2;C++){if(document.getElementById("slider"+C)){}}clearInterval(intervalID)}}}function startslidefn(){for(var B=1;B<=4;B++){if(document.getElementById("slider"+B)){}}if(j>=2){selval="1";j=1}else{j++;selval=j}}function get_cookie(H){var I=document.cookie.split(";");var M="";var K="";var J="";var L=false;for(i=0;i<I.length;i++){M=I[i].split("=");K=M[0].replace(/^\s+|\s+$/g,"");if(K==H){L=true;if(M.length>1){J=unescape(M[1].replace(/^\s+|\s+$/g,""))}return J;break}M=null;K=""}if(!L){return null}}function set_cookie(P,N,J,K,O,L){var Q=new Date();Q.setTime(Q.getTime());if(J){J=J*1000*60*60*24}var M=new Date(Q.getTime()+(J));if(K=="undefined"||K==null){K="/"}document.cookie=P+"="+escape(N)+((J)?";expires="+M.toGMTString():"")+((K)?";path="+K:"/")+((O)?";domain="+O:"")+((L)?";secure":"")}function delete_cookie(D,F,G){if(F=="undefined"||F==null){F="/"}if(get_cookie(D)){document.cookie=D+"="+((F)?";path="+F:"")+((G)?";domain="+G:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};