$(document).ready(function(){$('.insights_list').each(function(i){if(i==0)
$(this).css('display','block');else
$(this).css('display','none');});});function selInsight(a){$('#insights_tabs, #insightTabs').children().each(function(i){if(i==a)
$(this).addClass('selected');else
$(this).removeClass('selected');});$('.insights_list').each(function(i){if(i==a)
$(this).css('display','block');else
$(this).css('display','none');});}
function showHideServices(n){$('#graphicContentDef').addClass('hide');$('#graphicTitles').children().each(function(i){if(i==n)
$(this).addClass('selected');else
$(this).removeClass('selected');});for(j=0;j<4;j++){if(j==n)
$('#graphicContent'+n).css('display','block');else
$('#graphicContent'+j).css('display','none');}}
function thumbOver(id,src){num=src.substring(src.length-6,src.length-5);document.getElementById(id).src="../../../../images/newCognizant-images/cbc-"+num+"2.jpg";}
function thumbOut(id,src){num=src.substring(src.length-6,src.length-5);mainImg=$("#photo-cbcNew").css('background-image');
if(mainImg.substring(mainImg.length-6,mainImg.length-5) == '.'){currNum=mainImg.substring(mainImg.length-7,mainImg.length-6);}else{currNum=mainImg.substring(mainImg.length-6,mainImg.length-5);}if(currNum!=num)
document.getElementById(id).src="../../../../images/newCognizant-images/cbc-"+num+"1.jpg";}
function changeMainImg(src){num=parseInt(src.substring(src.length-6,src.length-5));document.getElementById("photo-cbcNew").style.backgroundImage="url(../../../../images/newCognizant-images/cbc-"+num+".jpg)";for(j=1;j<4;j++){if(j==num)
document.getElementById('thumb'+j).src="../../../../images/newCognizant-images/cbc-"+j+"2.jpg";else
document.getElementById('thumb'+j).src="../../../../images/newCognizant-images/cbc-"+j+"1.jpg";}}
$(document).ready(function(){num = Math.floor(Math.random()*3)+1;document.getElementById("photo-cbcNew").style.backgroundImage="url(../../../../images/newCognizant-images/cbc-"+num+".jpg)";for(j=1;j<4;j++){if(j==num)
document.getElementById('thumb'+j).src="../../../../images/newCognizant-images/cbc-"+j+"2.jpg";else
document.getElementById('thumb'+j).src="../../../../images/newCognizant-images/cbc-"+j+"1.jpg";}});