function insightsTabSel(a){if(a==2){document.getElementById('widget_whitepapers').style.display='none';document.getElementById('widget_casestudies').style.display='inline';document.getElementById('tab-WP').className='off';document.getElementById('tab-CS').className='';}
else{document.getElementById('widget_whitepapers').style.display='inline';document.getElementById('widget_casestudies').style.display='none';document.getElementById('tab-WP').className='';document.getElementById('tab-CS').className='off';}}
function showimg(a)
{for(i=1;i<=13;i++)
{if(i==a)
{document.getElementById('show'+i).style.display="block"
document.getElementById('link'+i).className="active";}
else{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showbg(a)
{for(i=1;i<=13;i++)
{if(i==a)
{document.getElementById('show'+i).style.display="block"
document.getElementById('link'+i).className="active";}
else{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showDefaultFromImg(e){if(!e)var e=window.event;var relTarg=e.target||e.fromElement;if(relTarg.nodeName=="IMG"||relTarg.nodeName=="DIV"){for(i=1;i<=13;i++)
{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showDefaultFromLI(e){if(!e)var e=window.event;var relTarg=e.target||e.fromElement;if(relTarg.nodeName=="A"){for(i=1;i<=13;i++)
{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showServimg(a)
{for(i=1;i<=4;i++)
{if(i==a)
{document.getElementById('show'+i).style.display="block"
document.getElementById('link'+i).className="active";}
else{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showServbg(a)
{for(i=1;i<=4;i++)
{if(i==a)
{document.getElementById('show'+i).style.display="block"
document.getElementById('link'+i).className="active";}
else{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showDefaultFromImgServ(e){if(!e)var e=window.event;var relTarg=e.target||e.fromElement;if(relTarg.nodeName=="IMG"||relTarg.nodeName=="DIV"){for(i=1;i<=4;i++)
{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function showDefaultFromLIServ(e){if(!e)var e=window.event;var relTarg=e.target||e.fromElement;if(relTarg.nodeName=="A"){for(i=1;i<=4;i++)
{document.getElementById('show'+i).style.display="none"
document.getElementById('link'+i).className="";}}}
function goToScreen(obj){dropdown=document.getElementById(obj);url=dropdown.options[dropdown.selectedIndex].value;window.open(url,'_self');}
function selLeftNavLink(obj){url=location.href;if(url.indexOf('/industries/')!='-1')document.getElementById('industries').className='current';if(url.indexOf('/services/')!='-1')document.getElementById('services').className='current';if(url.indexOf('/approach/')!='-1')document.getElementById('approach').className='current';if(url.indexOf('/insights/')!='-1')document.getElementById('insight').className='current';if(url.indexOf('/aboutus/')!='-1')document.getElementById('company').className='current';if(url.indexOf('/news/')!='-1')document.getElementById('company').className='current';if(url.indexOf('/investors/')!='-1')document.getElementById('company').className='current';if(url.indexOf('/careers/')!='-1')document.getElementById('company').className='current';if(url.indexOf('/contactus/')!='-1')document.getElementById('company').className='current';if(url.indexOf('/company/')!='-1')document.getElementById('company').className='current';if(obj=='landingPageLink'){parentObj=document.getElementById(obj).parentNode;txt=parentObj.childNodes[0].innerHTML;parentObj.removeChild(parentObj.childNodes[0]);parentObj.innerHTML=txt;}
else{document.getElementById(obj).className="selected";}
var subLink=obj.substring(0,3);var subLinkcom=obj.substring(0,3);if(subLink=='sub'){imgObj=document.getElementById(obj).parentNode.childNodes[0].childNodes[1];imgObj.src="../../images/newCognizant-images/leftNav-sideArrow-sel.gif";}
if(subLinkcom=='sub'){imgObj=document.getElementById(obj).parentNode.childNodes[0].childNodes[1];imgObj.src="../../../../images/newCognizant-images/leftNav-sideArrow-sel.gif";}}
function openLeftNavSubSection(obj){document.getElementById(obj).style.display="block";}
function linkFromTopNav(url){domainName=document.domain;window.location.href="http://"+domainName+"/"+url;}
function loadHdrImages(){document.getElementById('logoprintImg').src="http://"+domainName+"/images/newCognizant-images/cts-logo-print.jpg";}
function linkFromRightNav(url){domainName=document.domain;window.location.href="http://"+domainName+"/"+url;}
function linkFromGlobalNav(){var url=document.getElementById('global_office').value;if(url!=''){domainName=document.domain;window.location.href="http://"+domainName+"/"+url;}}
function linkFromFooter(url){domainName=document.domain;window.location.href="http://"+domainName+"/"+url;}
function selGlobalOfficeVal(){url=location.href;pageName=url.substring(url.lastIndexOf('/')+1,url.length);if(pageName.indexOf('regional-article-')!='-1'){pageName=url.substring(url.lastIndexOf('/')+18,url.length);}
if(pageName.indexOf('regional-locations-')!='-1'){pageName=url.substring(url.lastIndexOf('/')+20,url.length);}
for(i=0;i<=document.getElementById('global_office').options.length-1;i++){val=document.getElementById('global_office').options[i].value;val=val.substring(val.lastIndexOf('/')+1,val.length);if(val==pageName){document.getElementById('global_office').selectedIndex=i;break;}
if(val=='-1'){document.getElementById('global_office').selectedIndex=0;break;}}}
function highlightTopNav(tab){document.getElementById(tab).className='current';}
$(document).ready(function()
{domainName=document.domain;$("#rss").click(function()
{var strNewURL="http://"+domainName+"/scripts/rss/landingPage.asp";window.open(strNewURL,"_self");return false;});$("#community").click(function()
{var strNewURL="http://cognizanti.cognizant.com";window.open(strNewURL,"");return false;});$("#flickr").click(function()
{var strNewURL="http://www.flickr.com/photos/cognizant-worldwide/";window.open(strNewURL,"");return false;});$("#linkedin").click(function()
{var strNewURL="http://www.linkedin.com/companies/cognizant-technology-solutions";window.open(strNewURL,"");return false;});$("#slideshare").click(function()
{var strNewURL="http://www.slideshare.net/cognizant";window.open(strNewURL,"");return false;});$("#twitter").click(function()
{var strNewURL="http://twitter.com/cognizant";window.open(strNewURL,"");return false;});$("#youTube").click(function()
{var strNewURL="http://www.youtube.com/Cognizant";window.open(strNewURL,"");return false;});$("#cog2").click(function()
{var strNewURL="http://"+domainName+"/html/approach/cognizant-2.0.asp";window.open(strNewURL,"_self");return false;});});
function linkToWhitepapers()
{

domainName=document.domain;window.location.href="http://"+domainName+"/html/insights/insightslandingpage.asp";
}
function linkToCasestudies(){domainName=document.domain;window.location.href="http://"+domainName+"/html/insights/insightslandingpage.asp";}
function showDiv(a)
{divItem=$('#'+a).fadeIn();}
function hideDiv(a)
{divItem=$('#'+a).fadeOut();}
function linktoScreen(url){domainName=document.domain;window.location.href="http://"+domainName+"/"+url;}
function highlightApproach(){document.getElementById('approach').className='current';}