var pmtollfreenum="1800-3000-3456";
var ipcall=0;
function setCookie(c_name,value)
{document.cookie = c_name + "=" + escape(value)+";DOMAIN="+findloc()+";PATH=/";}

function hp_phone()
{

	ipcall++;	
	var ban_country=GetCookie("USERCNTRY");
	var t;	
	if(ban_country!=null)
	{
		if(ban_country == 98)
		{ // banner for india
			//document.getElementById('phnodiv').src="http://www.privilegematrimony.com/images/contact-ph-india.gif";
			if (document.getElementById('pmrate')) { document.getElementById('pmrate').innerHTML="<b>Privilege Membership at Rs. 15,000/- for 3 months</b>"; }
			if (document.getElementById('topnavphdisp')) { document.getElementById('topnavphdisp').innerHTML="Call: 1800-3000-3456"; }
			if (document.getElementById('callphno')) { document.getElementById('callphno').innerHTML="1800-3000-3456"; }
			if (document.getElementById('callphnobig')) { document.getElementById('callphnobig').innerHTML="1800-3000-3456"; }
			if (document.getElementById('phnodisp')) { document.getElementById('phnodisp').innerHTML="1800-3000-3456"; }
			if (document.getElementById('innerphnodisp')) { document.getElementById('innerphnodisp').innerHTML="<font class='boldtxt' style='font:normal 18px arial; color:#5B992C;'>1800-3000-3456</font>"; }
			if (document.getElementById('indexphnodisp')) { document.getElementById('indexphnodisp').innerHTML=" or for a free Doorstep Demo, Call : 1800-3000-3456"; }

			pmtollfreenum = "1800-3000-3456";

		}
		else if ((ban_country == 220) || (ban_country == 17) || (ban_country == 55) || (ban_country == 63) || (ban_country == 100) || (ban_country == 101) || (ban_country == 103) || (ban_country == 108) || (ban_country == 114) || (ban_country == 118) || (ban_country == 161) || (ban_country == 173) || (ban_country == 185) || (ban_country == 204) || (ban_country == 214))
		{	// banner for uae
			//document.getElementById('phnodiv').src="http://www.privilegematrimony.com/images/contact-ph-uae.gif";
			if (document.getElementById('pmrate')) { document.getElementById('pmrate').innerHTML="<b>Privilege Membership at AED 1590 for 3 months</b>"; }
			if (document.getElementById('topnavphdisp')) { document.getElementById('topnavphdisp').innerHTML="Call: +971501402940"; }
			if (document.getElementById('callphno')) { document.getElementById('callphno').innerHTML="+971501402940"; }
			if (document.getElementById('callphnobig')) { document.getElementById('callphnobig').innerHTML="+971501402940"; }
			if (document.getElementById('phnodisp')) { document.getElementById('phnodisp').innerHTML="+971501402940"; }
			if (document.getElementById('innerphnodisp')) { document.getElementById('innerphnodisp').innerHTML="<font class='boldtxt' style='font:normal 18px arial; color:#5B992C;'>+971501402940</font>"; }
			if (document.getElementById('indexphnodisp')) { document.getElementById('indexphnodisp').innerHTML=",<br>Call : +971501402940"; }

			pmtollfreenum = "+971501402940";
		}
		else if (ban_country == 221)
		{	// banner for uk
			//document.getElementById('phnodiv').src="http://www.privilegematrimony.com/images/contact-ph-uae.gif";
			if (document.getElementById('pmrate')) { document.getElementById('pmrate').innerHTML="<b>Privilege Membership at UK 338 for 3 months</b>"; }
			if (document.getElementById('topnavphdisp')) { document.getElementById('topnavphdisp').innerHTML="Call: 8081683096"; }
			if (document.getElementById('callphno')) { document.getElementById('callphno').innerHTML="8081683096"; }
			if (document.getElementById('callphnobig')) { document.getElementById('callphnobig').innerHTML="8081683096"; }
			if (document.getElementById('phnodisp')) { document.getElementById('phnodisp').innerHTML="8081683096"; }
			if (document.getElementById('innerphnodisp')) { document.getElementById('innerphnodisp').innerHTML="<font class='boldtxt' style='font:normal 18px arial; color:#5B992C;'>8081683096</font>"; }
			if (document.getElementById('indexphnodisp')) { document.getElementById('indexphnodisp').innerHTML=",<br>Call : 8081683096"; }

			pmtollfreenum = "8081683096";
		}
		else if ((ban_country==2)||(ban_country==5 )||(ban_country==14)||(ban_country==20)||(ban_country==21)||(ban_country==27)||(ban_country==34)||(ban_country==53)||(ban_country==56)||(ban_country==57)||(ban_country==67)|| (ban_country==72)||(ban_country==73)||(ban_country==80)||(ban_country==83)||(ban_country==96) || (ban_country==97)||(ban_country==102)||(ban_country==104)||(ban_country==117)||(ban_country==122)||(ban_country==124)||(ban_country==125)||(ban_country==132)||(ban_country==140)||(ban_country==141)||(ban_country==150)|| (ban_country==170)||(ban_country==171)||(ban_country==175)||(ban_country==176)||(ban_country==183) || (ban_country==190)||(ban_country==191)||(ban_country==194)||(ban_country==202)||(ban_country==203)||(ban_country==214)||(ban_country==219))
		{	// banner for euro
			//document.getElementById('phnodiv').src="http://www.privilegematrimony.com/images/contact-ph-uae.gif";
			if (document.getElementById('pmrate')) { document.getElementById('pmrate').innerHTML="<b>Privilege Membership at EURO 393 for 3 months</b>"; }
			if (document.getElementById('topnavphdisp')) { document.getElementById('topnavphdisp').innerHTML="Call: 8081683096"; }
			if (document.getElementById('callphno')) { document.getElementById('callphno').innerHTML="8081683096"; }
			if (document.getElementById('callphnobig')) { document.getElementById('callphnobig').innerHTML="8081683096"; }
			if (document.getElementById('phnodisp')) { document.getElementById('phnodisp').innerHTML="8081683096"; }
			if (document.getElementById('innerphnodisp')) { document.getElementById('innerphnodisp').innerHTML="<font class='boldtxt' style='font:normal 18px arial; color:#5B992C;'>8081683096</font>"; }
			if (document.getElementById('indexphnodisp')) { document.getElementById('indexphnodisp').innerHTML=",<br>Call : 8081683096"; }

			pmtollfreenum = "8081683096";
		}
		else
		{ // for other countries
			//document.getElementById('phnodiv').src="http://www.privilegematrimony.com/images/contact-ph-india.gif";
			if (document.getElementById('pmrate')) { document.getElementById('pmrate').innerHTML="<b>Privilege Membership at US 499 for 3 months</b>"; }
			if (document.getElementById('topnavphdisp')) { document.getElementById('topnavphdisp').innerHTML="Call: 8668076684"; }
			if (document.getElementById('callphno')) { document.getElementById('callphno').innerHTML="8668076684"; }
			if (document.getElementById('callphnobig')) { document.getElementById('callphnobig').innerHTML="8668076684"; }
			if (document.getElementById('phnodisp')) { document.getElementById('phnodisp').innerHTML="8668076684"; }
			if (document.getElementById('innerphnodisp')) { document.getElementById('innerphnodisp').innerHTML="<font class='boldtxt' style='font:normal 18px arial; color:#5B992C;'>8668076684</font>"; }
			if (document.getElementById('indexphnodisp')) { document.getElementById('indexphnodisp').innerHTML=",<br>Call : 8668076684"; }
			pmtollfreenum = "8668076684";
		}
		

		clearInterval(t);
	}
	else{
		if(ipcall<=5){ 
			t=setTimeout("hp_phone()",1000); 
		}else{			
			clearTimeout(t);
			if (document.getElementById('pmrate')) { document.getElementById('pmrate').innerHTML="<b>Privilege Membership at Rs. 15,000/- for 3 months</b>"; }
			if (document.getElementById('topnavphdisp')) { document.getElementById('topnavphdisp').innerHTML="Call: 1800-3000-3456"; }
			if (document.getElementById('callphno')) { document.getElementById('callphno').innerHTML="1800-3000-3456"; }
			if (document.getElementById('callphnobig')) { document.getElementById('callphnobig').innerHTML="1800-3000-3456"; }
			if (document.getElementById('phnodisp')) { document.getElementById('phnodisp').innerHTML="1800-3000-3456"; }
			if (document.getElementById('innerphnodisp')) { document.getElementById('innerphnodisp').innerHTML="<font class='boldtxt' style='font:normal 18px arial; color:#5B992C;'>1800-3000-3456</font>"; }
			pmtollfreenum = "1800-3000-3456";			
		}
	}
	
}


function GetCookie(name)
{
var cname = name + "=";
var dc = document.cookie;
	if (dc.length > 0)
	{ 
		begin = parseInt(dc.indexOf(cname));
		if (begin >= 0)
		{
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
			return unescape(dc.substring(begin, end));
		}
	}
return null;
}

