// JavaScript Document
var posCount=1;
	var prevPos=0;
			
	function init()
	{ 
	 document.getElementById("whatwedoinnelink1").className="whatwedoinnelink";
	 document.getElementById("whatwedoinnelink2").className="whatwedoinnelink";	
	 document.getElementById("whatwedoinnelink3").className="whatwedoinnelink";	
	 document.getElementById("whatwedoinnelink4").className="whatwedoinnelink";	
	 document.getElementById("whatwedoinnelink5").className="whatwedoinnelink";			
//	 document.getElementById("whatwedoinnelink6").className="whatwedoinnelink";
var button_one = new Image();
var button_two = new Image();
var button_three = new Image();
var button_four = new Image();
var button_five = new Image();

button_one.src = 'images/home_customdevelopment.jpg';
button_two.src = 'images/home_opensource.jpg';
button_three.src = 'images/home_technicalsupport.jpg';
button_four.src = 'images/home_multimedia.jpg';
	}
	
	function timedCount()
	{ 
		whatwe_changeonmouseover(posCount);	
		document.getElementById("whatwedoinnelink"+posCount).className="whatwedoinnelink_over";	
		if(posCount==1) document.getElementById("whatwedoinnelink5").className="whatwedoinnelink";
		else  document.getElementById("whatwedoinnelink"+(posCount-1)).className="whatwedoinnelink";
		if (posCount >= 5) { 
			posCount = 0;
		} 
		posCount=posCount+1;
		setTimeout("timedCount()",5000); 
	}
			
	function whatwe_changeonmouseover(pos)
	{ 
		var html;
		document.getElementById("whatwedoinnelink"+pos).className="whatwedoinnelink_over";		
		if (pos != posCount-1) {
			if (posCount == 1) 
				document.getElementById("whatwedoinnelink5").className = "whatwedoinnelink";
			else 
				document.getElementById("whatwedoinnelink" + (posCount - 1)).className = "whatwedoinnelink";
		}				
		posCount=pos; 		
		if (pos != prevPos)  
		if(prevPos>0) document.getElementById("whatwedoinnelink"+prevPos).className="whatwedoinnelink";
		  //martin
		prevPos=pos;
		 if(pos==1)
		 {
		 	  html="<img src='images/home_webapplication.jpg'>";
		 }
		 else if(pos==2)
		 {
		 	   html="<img src='images/home_customdevelopment.jpg'>";
		 }
		 else if(pos==3)
		 {
		 	  html="<img src='images/home_opensource.jpg'>";
		 }
		 else if(pos==4)
		 {
		 	  html="<img src='images/home_technicalsupport.jpg'>";
		 }
		 else if(pos==5)
		 {
		 	 html="<img src='images/home_multimedia.jpg'>";
		 }
	
		 document.getElementById("whatwedomain").innerHTML=html;
	}	
