﻿// JScript File



	function GetXmlHttpObject()
	{
	
	var xmlHttp=null;
	try
	  {
	  // Firefox, Opera 8.0+, Safari
	  xmlHttp=new XMLHttpRequest();
	  }
	catch(e)
	  {
	  // Internet Explorer
	  try
		{
		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
	  catch(e)
		{
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	  }
	return xmlHttp;
	}

	function GetNews()
	{

	xmlHttp = GetXmlHttpObject();
	if (xmlHttp==null)
    {
    alert("Your browser does not support AJAX!");
    return;
    } 

	var url="GetNews.aspx?";
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=stateChangedNews;
	//document.write (url)
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} 


function stateChangedNews() 
{ 
	var fld_obj=(document.getElementById('NewsDetails'));
    fld_obj.innerHTML = "Loading...";
	if (xmlHttp.readyState==4)
	{ 
	fld_obj.innerHTML=xmlHttp.responseText
	}
}


function GetAllNews()
	{

	xmlHttp = GetXmlHttpObject();
	if (xmlHttp==null)
    {
    alert("Your browser does not support AJAX!");
    return;
    } 

	var url="newsroom.aspx?";
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=stateChangedAllNews;
	//document.write (url)
	xmlHttp.open("GET",url,true);
	
	xmlHttp.send(null);
} 


function stateChangedAllNews() 
{ 
	var fld_objAllNews=(document.getElementById('NewsDetails'));
	fld_objAllNews.innerHTML = "Loading...";
	if (xmlHttp.readyState==4)
	{ 
	fld_objAllNews.innerHTML=xmlHttp.responseText
	}
}

function Random_International()
{
var img_name = new Array("<p id='home_mid_top'><br><img src='img/tech-research-heading.jpg' align='left'><br><br><br><br><br><br><br>First Indian Technologies&#174;, a division of First Indian, has expertise in multiple domains and technologies for the information technology sector.<BR><BR><a href='technologyResearch.html'>Read more >></a></p>","<p id='home_mid_top'><br><img src='img/process-transform-heading.jpg' align='left'><br><br><br><br><br><br><br>Business decisions are influenced by the rapid flow of timely and accurate information. This necessitates various types of back-end transaction services. <BR><BR><a href='processing_transformation.html'>Read more >></a></p>","<p id='home_mid_top'><br><img src='img/businessrisk-heading.jpg' align='left'><br><br><br><br><br><br><br>First Indian Analytics provides data driven decision support for mortgage businesses. We provide cutting-edge risk management to industry giants.<BR><BR><a href='businessRiskAnalytics.html'>Read more >></a></p>","<p id='home_mid_top'><br><img src='img/itim-heading.jpg' align='left'><br><br><br><br><br><br><br>To ensure alignment of business strategy and IT investments, First Indian offers a diverse range of global IT Infrastructure Management services.<BR><BR><a href='itim.html'>Read more >></a></p>")

var img_name1 = new Array("<img src='img/Managedinformation-heading.jpg' align='left'><br><br><br><br><br><br><br>First Indian is uniquely positioned to help organizations Transition from maintenance of legacy records.<BR><BR><a href='Managedinformation_services.html'>Read more >></a>","<img src='img/Realtorproductivity-heading.jpg' align='left'><br><br><br><br><br><br><br>The real estate brokerage business in India is in the process of growing from fragmented and largely one-person shops.<BR><BR><a href='RealtorProductivityEnhancement.html'>Read more >></a>","<img src='img/lend-process-heading.jpg' align='left'><br><br><br><br><br><br><br>According to Reserve Bank of India data, the total volume of loans outstanding on account of housing in 2009.<BR><BR><a href='LenderProcessOutsourcing.html'>Read more >></a>")

var l = img_name.length;
var rnd_no = Math.floor(l*Math.random());
document.getElementById("home_mid_title_top").innerHTML = "Spotlight on..."+img_name[rnd_no];

var l1 = img_name1.length;
var rnd_no1 = Math.floor(l1*Math.random());
document.getElementById("home_right_top").innerHTML = img_name1[rnd_no1];
}


