var gTimerFrame =null;
var stopCheck = false;

var sInString;
function TrimString(sInString) {
sInString = sInString.replace( /^\s+/g, "" );// strip leading
return sInString.replace( /\s+$/g, "" );// strip trailing
}
function completeTask(){
	stopCheck=true
}

function startMonitor(){
	window.setTimeout("completeTask()",2000);
}

function InvoktopWindow(path)
{
    window.top.location=path;
}
function InvoktopStatsWindow(path)
{
  	window.top.opener.parent.startLoading('Generating statistics...', 1);
  	window.top.opener.location=path;
  	window.setTimeout("parent.window.close()",500);
}
function topLocation(url){
	self.parent.location.href =url;
}

function topLocation1(url){
	window.location.href =url;
}

function popup(url){
    window.open(url,"child","toolbar=no,width=500,height=200,status=yes,scrollbars=auto,resizable=yes,menubar=no");
}
function statsPopup(url){
	window.open(url,"child","toolbar=no,width=300,height=350,status=yes,scrollbars=auto,resizable=yes,menubar=no");
}


function statsPopupWin(url){
	window.open(url,"child","toolbar=no,width=300,height=390,status=yes,scrollbars=auto,resizable=no,menubar=no");
}

function newpopup(url){
	window.open(url,"child","toolbar=no,width=500,height=380,status=yes,scrollbars=auto,resizable=yes,menubar=no");
}
function createPersonPopup(url){
	window.open(url,"child","toolbar=no,width=500,height=480,status=yes,scrollbars=no,resizable=no,menubar=no");
}
function attachmentPopup(url){
	child=window.open(url,"child","toolbar=no,width=900,height=350,status=yes,scrollbars=auto,resizable=yes,menubar=no");
	child.focus();
}
function parentRefresh(url){
	opener.document.location.href=url;
	window.close();
}

function showHide(index){
	if(index==1){
	
		document.getElementById('Ian').style.display='block';
		document.getElementById('Ray').style.display='none';
		document.getElementById('Jim').style.display='none';
		document.getElementById('Jerome').style.display='none';
		document.getElementById('Kau').style.display='none';
		
		document.getElementById('ian_img').src="photos_new/1_over.jpg";
		document.getElementById('ray_img').src="photos_new/2.jpg";
		document.getElementById('jim_img').src="photos_new/3.jpg";
		document.getElementById('jerome_img').src="photos_new/4.jpg";
		document.getElementById('kau_img').src="photos_new/5.jpg";
		
	}
	
	
	if(index==2){
	
		document.getElementById('Ian').style.display='none';
		document.getElementById('Ray').style.display='none';
		document.getElementById('Jim').style.display='block';
		document.getElementById('Jerome').style.display='none';
		document.getElementById('Kau').style.display='none';
		
		document.getElementById('ian_img').src="photos_new/1.jpg";
		document.getElementById('ray_img').src="photos_new/2.jpg";
		document.getElementById('jim_img').src="photos_new/3_over.jpg";
		document.getElementById('jerome_img').src="photos_new/4.jpg";
		document.getElementById('kau_img').src="photos_new/5.jpg";
		
	}
	
	
	if(index==3){
		
		document.getElementById('Ian').style.display='none';
		document.getElementById('Ray').style.display='block';
		document.getElementById('Jim').style.display='none';
		document.getElementById('Jerome').style.display='none';
		document.getElementById('Kau').style.display='none';
		
		document.getElementById('ian_img').src="photos_new/1.jpg";
		document.getElementById('ray_img').src="photos_new/2_over.jpg";
		document.getElementById('jim_img').src="photos_new/3.jpg";
		document.getElementById('jerome_img').src="photos_new/4.jpg";
		document.getElementById('kau_img').src="photos_new/5.jpg";
		
	}
	
	
	
	if(index==4){
		
		document.getElementById('Ian').style.display='none';
		document.getElementById('Ray').style.display='none';
		document.getElementById('Jim').style.display='none';
		document.getElementById('Jerome').style.display='block';
		document.getElementById('Kau').style.display='none';
		
		document.getElementById('ian_img').src="photos_new/1.jpg";
		document.getElementById('ray_img').src="photos_new/2.jpg";
		document.getElementById('jim_img').src="photos_new/3.jpg";
		document.getElementById('jerome_img').src="photos_new/4_over.jpg";
		document.getElementById('kau_img').src="photos_new/5.jpg";
		
	}
	
	
	if(index==5){
		
		document.getElementById('Ian').style.display='none';
		document.getElementById('Ray').style.display='none';
		document.getElementById('Jim').style.display='none';
		document.getElementById('Jerome').style.display='none';
		document.getElementById('Kau').style.display='block';
		
		document.getElementById('ian_img').src="photos_new/1.jpg";
		document.getElementById('ray_img').src="photos_new/2.jpg";
		document.getElementById('jim_img').src="photos_new/3.jpg";
		document.getElementById('jerome_img').src="photos_new/4.jpg";
		document.getElementById('kau_img').src="photos_new/5_over.jpg";
		
	}
	
	
	
	
	
}

function showHideExp(index){
if(index==1){
	
	document.getElementById('Ray').style.display='none';
	
	document.getElementById('ray_img').src="photos_new/2.jpg";

	
}

if(index==2){
	
	document.getElementById('Ray').style.display='none';
	
	document.getElementById('ray_img').src="photos_new/2.jpg";

	
}


if(index==3){
	
	document.getElementById('Ray').style.display='block';
	document.getElementById('ray_img').src="photos_new/2_over.jpg";

}




if(index==4){
	
	document.getElementById('Ray').style.display='none';
	
	document.getElementById('ray_img').src="photos_new/2.jpg";

}

if(index==5){
	
	document.getElementById('Ray').style.display='none';
	
	document.getElementById('ray_img').src="photos_new/2.jpg";

}



}

