// JavaScript Document
var projectArray = new Array("Wyse Device Manager", "Digit&eacute;", "Digit&eacute; Website", "iAuthor", "PDA Applications", "Spreadsheet");
var totalImages = new Array(5,6,3,3,3,3);
var projectDetailsArray = new Array();
projectDetailsArray[0] = "<p>The Wyse Device Manager is the flagship thin client device management software from Wyse Technology. The project heralded Wyses foray into software and was the most prestigious project for the Bangalore center as it had been conceptualized and developed entirely in India.</p><p> I joined the team in its early conceptual stage when only high level features had been worked upon. After joining I led the effort to define and develop the user interface for which I used user centered interaction design processes which were instrumental in helping the team arrive at a decision on the direction of the user interface very early in the project.</p><p>Post the design phase I have been closely working with the development in the implementations of the design. My role in this project has been that of an Interaction Designer, Visual Designer, JavaScript Programmer and Design Manager</p>";
projectDetailsArray[1] = "<p>Digit&eacute; Enterprise is an enterprise level project and portfolio management application which is mainly aimed at IT projects.</p><p>I was hired by the company at a stage where the user interface was receiving a number of complaints from the user base and was in need of a facelift.</p><p>However resource constraints did not allow a complete overhaul. So my team and I worked out a way in which just by modifying the CSS files and by adding a few extra pages we were able to convert the entire application such that it had a more modern and lively look and feel.</p><p>Apart from the look and feel I was also involved in usability testing and definition of user interface guidelines while at Digit&eacute;</p><p>My role in this project has been that of an Interaction Designer, Visual Designer, JavaScript Programmer and Design Manager. I also over looked the development of user guides and help content so that they matched the user experience guidelines.</p>";
projectDetailsArray[2] = "<p>My role at Digit&eacute; also involved managing the MarCom team to develop print and web based marketing material. As a part of this role, I was responsible for the overall design, development and maintenance of the Digit&eacute; website</p><p>My role in this project was that of an Information Architect, Graphic Designer, Illustrator and JavaScript and HTML Developer, apart from that of a Design Manager</p>";
projectDetailsArray[3] = "<p>iAuthor was an application developed by Wanadu, a Mountain View based startup that was focused on developing Rich Client Applications for the elearning space</p><p>The application was an online application developed in Flash and allowed learning content authors to author content online using an interface that was similar to most common authoring tools</p><p>I was the user interface designer and flash developer on this project</p>";
projectDetailsArray[4] = "<p>These are a whole set of applications created for the Pocket PC based flash player</p><p>They include image/photo manipulation applications and online report viewers that provide real time information on to the mobile devices.</p><p>I was the interface designer and flash developer on all these projects</p>";
projectDetailsArray[5] = "<p>This is a prototype Flash based spreadsheet application that worked with XML data exported from Microsoft Excel</p><p>This limited proof of concept explored what could be achieved within Flash and I was able to enable charting at a time when Flash had limited drawing capabilities (Flash 5.)</p><p>I was the user interface designer and developer on this project</p>";

function nextProject()
{
		if (currentProject < projectArray.length-1)
		{
			currentProject++;
			document.getElementById("heading").innerHTML=projectArray[currentProject];
			document.getElementById("details").innerHTML=projectDetailsArray[currentProject];
			currentImage=-1;
			nextImage();
			toggleProjectButtons();
		}	
}



function previousProject()
{
		if (currentProject > 0)
		{
			currentProject--;
			document.getElementById("heading").innerHTML=projectArray[currentProject];
			document.getElementById("details").innerHTML=projectDetailsArray[currentProject];
			currentImage=-1;
			nextImage();
			toggleProjectButtons();
		}
}

function toggleProjectButtons()
{
		if (currentProject == projectArray.length-1)
		{
			
			document.getElementById("nextproject").src="images/page_end_disabled.gif";
		}
		else if (currentProject == 0)
		{
			
			document.getElementById("previousproject").src="images/page_beginning_disabled.gif";
		}
		else{
			document.getElementById("previousproject").src="images/page_beginning.gif";
			document.getElementById("nextproject").src="images/page_end.gif";
			
		}

}

function nextImage()
{
	if (currentImage < totalImages[currentProject]-1)
	{
		currentImage++;
		document.getElementById("prjImage").src = "images/image_"+currentProject+"_"+currentImage+".jpg";
	}
	toggleImageButtons();
}

function previousImage()
{
	if (currentImage > 0)
	{
		currentImage--;
		document.getElementById("prjImage").src = "images/image_"+currentProject+"_"+currentImage+".jpg";
	}
	toggleImageButtons();
}

function toggleImageButtons()
{
		if (currentImage == totalImages[currentProject]-1)
		{
			
			document.getElementById("nextimage").src="images/page_next_disabled.gif";
			document.getElementById("previmage").src="images/page_previous.gif";
		}
		else if (currentImage == 0)
		{
			
			document.getElementById("previmage").src="images/page_previous_disabled.gif";
			document.getElementById("nextimage").src="images/page_next.gif";
		}
		else{
			document.getElementById("previmage").src="images/page_previous.gif";
			document.getElementById("nextimage").src="images/page_next.gif";
			
		}

}

var currentProject =0;
var currentImage =0;