
//HelpStr Is an Array Of Helpstring From ASP page just pass the helpId you want to display in Help Div -----
function GetHelpStr(id)
{
	switch(id)
	{
	      //HelpMessages for SearchResult page from 101 to 200 -----
		case 101:
			HelpStr='You can compare within properties from different projects. You can compare within parameters like Property/Project amenities, sellable area, price etc.';
			break;

		case 102:
			HelpStr='You can save search criterias which you have selected for current search, it helps you to easily find newly added property which matches to your saved criteria'
			break;
			
		case 103:
			HelpStr='You can save your favourite Properties, Projects, Builders. By clicking on your favourite you can direcly see that favourite any time.'
			break;
		case 104:
			HelpStr='This is advancaed search and based on various paramerters like City, Location, No. of Bedrooms, Terrace, Amenities etc...'
			break;

		default :
			HelpStr='Here some help will display !';
			break;
	}
return HelpStr;
}

function PopHelp(id)
{

	//alert(window.event.srcElement.offsetParent.offsetTop+window.event.srcElement.offsetTop+window.event.srcElement.height);
	//document.all.helper.style.top=window.event.srcElement.offsetTop-document.all.helper.clientHeight;
	//document.all.helper.style.left =(window.event.srcElement.offsetLeft-(window.event.srcElement.offsetWidth));

	document.all.helper.style.top = (event.y - document.all.helper.clientHeight)-5;
	document.all.helper.style.left = event.x - (document.all.helper.clientWidth / 2);

	document.all.helper.style.visibility='visible';


	if(parseInt(document.all.helper.style.left)<0)
	{
	  document.all.helper.style.backgroundImage ='Url(/Realestate/Images/helperleft.gif)'
 	  document.all.helper.style.left=window.event.srcElement.offsetLeft;
	}
	else if ((screen.width==1024) && ((event.x > (screen.width-350))))
	{
	  document.all.helper.style.backgroundImage ='Url(/Realestate/Images/helperright.gif)';
	  document.all.helper.style.top=(event.y-document.all.helper.clientHeight)-5; 
	  document.all.helper.style.left=event.x -(document.all.helper.clientWidth )+15;
	}
	else if((event.x)>screen.width-250)
	{
	  document.all.helper.style.backgroundImage ='Url(/Realestate/Images/helperright.gif)';
	   document.all.helper.style.top=(event.y-document.all.helper.clientHeight)-5; 
	  document.all.helper.style.left=event.x -(document.all.helper.clientWidth )+5;
	}
	else
	  document.all.helper.style.backgroundImage ='Url(/Realestate/Images/helper.gif)'

	//GetHelpStr() is a function which is written in the help file of the respective business category. This help file should be included in the web page along with the helper.js file.
	document.all.helper.innerHTML=GetHelpStr(id);
}

function NoPopHelp()
{
	document.all.helper.style.visibility='Hidden';
	document.all.helper.innerHTML= '';
}

document.write('<DIV name=helper id=helper Class=helper></DIV>')
