/* Coded by rajmopidi@gmail.com on 25th Aug 2006 */

var item = new Array();

//array of available pages and the search words
//order is "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

//Index Page
c=0; item[c]=new Array("index.aspx","","NewStar Home Page","Newstar, Newstar Software Services, index,index page,home,home page,NewStar home,NewStar,nss,welcome, india, hyderabad, andhra pradesh,logo, images, all","Home page of www.newstarit.com");

//Services Page
c++; item[c]=new Array("services.aspx","","NewStar Software Services","Software Services,Software Development,Web Applications Development,E-Commerce Solutions,Graphics & Web Designing,Professional Services,Business Analysis and Technical,Legacy Applications Re-Engineering, Offshore Software Development,Offshore Staffing and Team Creation,Mobile Application Development,Call Center, bpo, BPO, Call Centre Services,Maintenance and Support,Application Hosting,IT Recruitment, Consulting, Training", "Information about NewStar Services.");

//About NewStar
c++; item[c]=new Array("company.aspx","","About NewStar","Company,Profile,About company, history, Specializes,NewStar Software Services Specializes in, Business Strategy and Approach, Our Mission","Information about NewStar Company.");

//Vision & Beliefs
c++; item[c]=new Array("vision-beliefs.aspx","","Vision & Beliefs","NewStar Vision,goal,mission","Information about Vision & Beliefs.");

//Benefits with Newstar
c++; item[c]=new Array("benefits-with-newstar.aspx","","Benefits with NewStar","enjoyable work environment,Medical Facilities ,Relocation support for new appointees,","Information about Benefits with Newstar.");

//Global Delivery Model
c++; item[c]=new Array("global-deliverymodel.aspx","","Global Delivery Model","Global Delivery Model,Structure,enhancements,global,Delivery,model,NewStar model","Information about Global Delivery Model.");

//News Room
c++; item[c]=new Array("news-room.aspx","","News & Events","News & Events,News,news, events,","Information about News & Events.");

//SERVICES//

//Software Development
c++; item[c]=new Array("software-development.aspx","","Software Development","Software Development,Software,development,New Star software development team,software service,","Information about Software Development.");

//Web Applications Development
c++; item[c]=new Array("webapplications-development.aspx","","Web Applications Development","Web Applications Development,Web,application,application development,","Information about Web Applications Development.")

//Graphics & Web Design
c++; item[c]=new Array("graphics-and-web-designing.aspx","","Graphics & Web Design","web design,web development,seo, search engine optimisation, web design, graphics, photoshop, flash, html, dream weaver,templates,Logo design,Interactive, online shopping, Portal sites,Corporate Intranet Applications, multimedia,","Information about Graphics & Web Design")

//Business Analysis and Technical
c++; item[c]=new Array("business-analysis-and-technical.aspx","","Business Analysis and Technical","Business,analysis,technical,","Information about Business Analysis and Technical");

//Legacy Applications
c++; item[c]=new Array("legacy-applications.aspx","","Legacy Applications","Legacy,Legacy Application,Re- Engineering,","Information about Legacy Applications ");

//Offshore Software Development
c++; item[c]=new Array("offshore-software-development.aspx","","Offshore Software Development","offshore-software-development,","Information about Offshore Software Development");

//Offshore Staffing 
c++; item[c]=new Array("offshore-staffing.aspx","","Offshore Staffing ","Offshore Staffing and Team Creation, offshore, Staffing,","Information about Offshore");

//Mobile Application Development
c++; item[c]=new Array("mobileapplication-development.aspx","","Mobile Application Development","Download ring tones, images, Games, video,trust,business line,","Mobile Application Development");

//Maintenance and Support
c++; item[c]=new Array("maintenance-and-support.aspx","","Maintenance and Support","Maintenance,support,","Information about Maintenance and Support");

//IT Recruitment
c++; item[c]=new Array("ITRecruitment.aspx","","IT Recruitment", "it,IT Recruitment,Recruitment,placement, ERP – Oracle, Peoplesoft, JD Edwards, SAP etc, CRM – Siebel, Oracle, Clarify, EAI – IBM webSphere MQ Series, Message Broker, DataStage, webMethods, TIBCO, SAP XI, Biztalk, Microsoft Technologies – MS .Net (ASP.NET, VB.NET, C#), Crystal Report, Databases - Oracle, MS SQL Server, Sybase, mySQL, Java / J2EE – WebLogic, IBM WAS, JBOSS , Networking, Embedded Technologies","Information about IT Recruitment");

//Quality//
c++; item[c]=new Array("quality.aspx","","quality & service", "quality designs,","Information about Qulity");

//Technology//
c++; item[c]=new Array("technology.aspx","","technology.asp", "Technology, Data Management, new technology, Web Services, Security and Identity Management, Mobile Technology, Data warehousing","Information about Technology");


//customers//
c++; item[c]=new Array("customers.aspx","","Customers", "Tripod Technology,SofGen ,whp,Global takeoff, hoa-mss,toshali Cements, Clonterm, Volta Impex,NRDCS,University Of Clarement Brown,ucb,","Information about Customers");

// Careers//
c++; item[c]=new Array("opportunities.aspx","","Opportunities", "careers, future, jobs,","Information about Careers");

// Partners & Alliances//
c++; item[c]=new Array("partners-alliances.aspx","","partners & Alliances","Business Partners,","Information about Partners & Alliances");


// Locations//
c++; item[c]=new Array("locations.aspx","","Locations","contact,contact us, india, hyderabad, andhra pradesh, hyd, America, somajiguda,canada, USA,","Information about Locations");

// Ghoto-Gallery//
c++; item[c]=new Array("photo-gallery.aspx","","Photo-Gallery","photo,photos,gallery","Information about Photo-Gallery");

// Sitemap//
c++; item[c]=new Array("Sitemap.aspx","","Sitemap","Sitemap,site,map","Information about Sitemap");

// application-management-outsourcing//
c++; item[c]=new Array("application-management-outsourcing.aspx","","different technologies ","technology,IT budgets,applications,application management,Packaged Applications,management,outsourcing,Strategic IT outsourcing ,IT management","Information about Application-Management 0utsourcing.aspx");

// IT-outsourcing.aspx//
c++; item[c]=new Array("it-outsourcing.aspx","","It-outsourcing","It-outsourcing, it, outsourcing, IT Infrastructure,IT landscape,organization","Information about IT-outsourcing");

// outsourced-product-development//
c++; item[c]=new Array("outsourced-product-development.aspx","","Outsourced-Product-Development","outsourced ,product ,development,software product development, product development,customer","Information about Outsourced Product Development");

// enterprise-application-solutions//
c++; item[c]=new Array("enterprise-application-solutions.aspx","","Enterprise Application Solutions","Enterprise, Application, ERP,SAP,Oracle,POCCenters,WebMethods, Tuxedo, Vitria, TIBCO,SeeBeyond,Consulting,Implementation,Support","Information about Enterprise Application Solutions");




/**  Search Window Start**/

page="<htm><head><title>Search Results-insta Software Services</title></head><body><table border=0 cellspacing=0 cellpadding=0 width=80% ><tr><td>";
//finds given word is valid, including first blank space
function search(frm)
	{
		
	 var key= document.getElementById("keys");
	 ser=key.value;
	 if(ser==""||ser.substr(0,1)==' ') 
		{
		alert("Enter Search word first");
		 key.focus();
		}
	 else
		{
		search1(ser);
		}
		
   }

   
//if given search word is valid, then proceed for seraching the application
function search1(frm)
	{
win = window.open("","","scrollbars=yes,resizing=no,height=350,width=400");
win.document.write(page);
txt = frm.split(" ");
for(i=0;i<txt.length;i++)
	{
	if(i==0)
		{
	win.document.write("<img src=images/newstar-logo.gif><br><br><img src=images/sebg.gif><p align=left><FONT SIZE=1 face=verdana COLOR=#FF0033>You have searched for </font><FONT SIZE=1 face=verdana COLOR=#339900>");
		}
	win.document.write(txt[i])
	if(i+1<txt.length)
	win.document.write("+")
	}
	win.document.write("</font>");
win.document.write("<br><br>");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
//if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
//fnd[i] += (j+1);
if (item[i][order[j]].toUpperCase().indexOf(txt[k]) > -1 || item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}

for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w,win, n);
fnd[w] = 0;
}
if(total==0)
{
win.document.write("</table><font color=red face=verdana size=1>Sorry..!! No Matching Data Found...");
win.document.write("<br><p align=right>Total found: "+total+"<br><p align=center><a href='javascript:window.close()'>Close This Window</a></p></font></body></htm>");
}
else
{
win.document.write("</td></tr></table><br><p align=right><font color=red face=verdana size=1>Total found: "+total+"<p align=center><a href='javascript:window.close()'>Close This Window</a></p></font></body></htm>");
}
win.document.close();
}

//Displaying found pages and their links based on search word
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td><font color=black face=verdana size=1><a href='"+link+"' target='_blank'>"+item[which][2]+"</a>"+"<br>";
line += item[which][4] + "<br><b>Found in Page :</b> "+link+"<br><br></td></tr></font>";
wind.document.write(line);
return 1;
}

