var timer=0;
	function HideText(d) {
		if(d.length < 1) { 
			return;
		}
		document.getElementById(d).style.display = "none";
		}
	
	function ShowText(d) {
		if(d.length < 1) { 
			return;
		}
		document.getElementById('DsFinancial').style.display = "none";
		document.getElementById('DSFixedAssets').style.display = "none";
		document.getElementById('DSCMSEShop').style.display = "none";
		document.getElementById('DSCMSEProduct').style.display = "none";
		document.getElementById('DSCMSProfessional').style.display = "none";
		document.getElementById('DsHrPayRoll').style.display = "none";
		document.getElementById('DsPointofSell').style.display = "none";
		document.getElementById('td_DsFinancial').style.color = "#000000";
		document.getElementById('td_DSFixedAssets').style.color = "#000000";
		document.getElementById('td_DSCMSEShop').style.color = "#000000";
		document.getElementById('td_DSCMSEProduct').style.color = "#000000";
		document.getElementById('td_DSCMSProfessional').style.color = "#000000";
		document.getElementById('td_DsHrPayRoll').style.color = "#000000";
		document.getElementById('td_DsPointofSell').style.color = "#000000";
		document.getElementById('td_DsFinancial').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSFixedAssets').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSCMSEShop').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSCMSEProduct').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSCMSProfessional').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DsHrPayRoll').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DsPointofSell').style.backgroundColor = "#FFFFFF";
		var dtd = 'td_'+d;
		document.getElementById(dtd).style.color = "white";
		document.getElementById(dtd).style.backgroundColor = "black";
		var dd = document.getElementById(d);
		var chd='';
		switch(d)
		{
			case 'DSCMSProfessional':
				chd='DSCMSEShop';
				break;
			case 'DSCMSEShop':
				chd='DSCMSEProduct';
				break;
			case 'DSCMSEProduct':
				chd='DsFinancial';
				break;
			case 'DsFinancial':
				chd='DsHrPayRoll';
				break;
			case 'DsHrPayRoll':
				chd='DsPointofSell';
				break;
			case 'DsPointofSell':
				chd='DSFixedAssets';
				break;	
			case 'DSFixedAssets':
				chd='DSCMSProfessional';
				break;	
		} 
		dd.style.display = "block";
		timer = setTimeout("ShowText('"+chd+"')",7000);
	}
	function ShowText2(d,dtd) {
		if(d.length < 1) { 
			return;
		}
		
		document.getElementById('DsFinancial').style.display = "none";
		document.getElementById('DSFixedAssets').style.display = "none";
		document.getElementById('DSCMSEShop').style.display = "none";
		document.getElementById('DSCMSEProduct').style.display = "none";
		document.getElementById('DSCMSProfessional').style.display = "none";
		document.getElementById('DsHrPayRoll').style.display = "none";
		document.getElementById('DsPointofSell').style.display = "none";
		document.getElementById('td_DsFinancial').style.color = "#000000";
		document.getElementById('td_DSFixedAssets').style.color = "#000000";
		document.getElementById('td_DSCMSEShop').style.color = "#000000";
		document.getElementById('td_DSCMSEProduct').style.color = "#000000";
		document.getElementById('td_DSCMSProfessional').style.color = "#000000";
		document.getElementById('td_DsHrPayRoll').style.color = "#000000";
		document.getElementById('td_DsPointofSell').style.color = "#000000";
		document.getElementById('td_DsFinancial').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSFixedAssets').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSCMSEShop').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSCMSEProduct').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DSCMSProfessional').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DsHrPayRoll').style.backgroundColor = "#FFFFFF";
		document.getElementById('td_DsPointofSell').style.backgroundColor = "#FFFFFF";
		document.getElementById(dtd).style.color = "white"
		document.getElementById(dtd).style.backgroundColor = "black"

		var dd = document.getElementById(d);
		var chd='';
		switch(d)
		{
			case 'DSCMSProfessional':
				chd='DSCMSEShop';
				break;
			case 'DSCMSEShop':
				chd='DSCMSEProduct';
				break;
			case 'DSCMSEProduct':
				chd='DsFinancial';
				break;
			case 'DsFinancial':
				chd='DsHrPayRoll';
				break;
			case 'DsHrPayRoll':
				chd='DsPointofSell';
				break;
			case 'DsPointofSell':
				chd='DSFixedAssets';
				break;	
			case 'DSFixedAssets':
				chd='DSCMSProfessional';
				break;	
		} 
		dd.style.display = "block";
		clearTimeout(timer);
	}
	function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}
//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
	object.filter = "alpha(opacity=" + opacity + ")";
	object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
	
	
}
function shiftOpacity(id, millisec) 
{
    //if an element is invisible, make it visible, else make it ivisible
	document.getElementById('1').style.display="none";
	document.getElementById('2').style.display="none";
	document.getElementById('3').style.display="none";
	document.getElementById('4').style.display="none";
	document.getElementById('5').style.display="none";
	document.getElementById('6').style.display="none";
	
	document.getElementById(id).style.display="block";
    if(document.getElementById(id).style.opacity == 0) {
        opacity(id, 0, 90, millisec);
    } else {
        opacity(id, 90, 0, millisec);
    }
	var newid = '';
	switch(id)
	{
		case '1':
			newid = '2';
			break;
		case '2':
			newid = '3';
			break;
		case '3':
			newid = '4';
		case '4':
			newid = '5';
			break;
		case '5':
			newid = '6';
			break;
		case '6':
			newid = '1';
			break;
	}
	setTimeout("shiftOpacity('"+newid+"',10000)",11000);
}
var currentChar=1;
var destination="[not defined]";

function shiftOpacity2(id) {
    //if an element is invisible, make it visible, else make it ivisible
	document.getElementById(id).innerHTML="";
	document.getElementById(id).style.display="block";
	type(id);
}
function type(d)
{
	if(d=="Good")
		var text="YOU DEMAND GOOD<br>BUT<br>WE OFFER THE BEST";
	
  if (document.getElementById)
  {
    var dest=document.getElementById(d);
    if (dest)
    {
		dest.innerHTML=text.substr(0, currentChar);
		currentChar++;
		if (currentChar>text.length)
		{
			currentChar=1;
			setTimeout("type('"+d+"')", 5000);
		}
		else
		{
			setTimeout("type('"+d+"')", 100);
		}
    }
  }
}
	function ServiceMenu(color)
	{
		for (var i=1; i<=6; i++) 
		{
		document.getElementById('a_'+i).style.fontSize="";
		document.getElementById('a_'+i).style.color="";
		}
		for (var i=1; i<=2; i++) 
		{
		document.getElementById('Service'+i).style.display="none";
		}
		var ds = document.getElementById(color);
		ds.style.color="#36A9EA";	
		ds.style.fontSize="13px";
	}

	function showServiceText(dd,col)
	{
		for (var i=1; i<=2; i++) 
		{
		document.getElementById('Service'+i).style.display="none"; }
		for (var i=1; i<=6; i++) 
		{
		document.getElementById('a_'+i).style.fontSize='';
		document.getElementById('a_'+i).style.color="";
		}
		var ddd= document.getElementById(dd);
		var ds = document.getElementById(col);
		ddd.style.display="block";	
		ds.style.color="#36A9EA";	
		ds.style.fontSize="13px";
	}
	
	function showPortfolioText(dd,col)
	{
		for (var i=1; i<=2; i++) 
		{
		document.getElementById('Port'+i).style.display="none"; }
		for (var i=1; i<=2; i++) 
		{
		document.getElementById('p_'+i).style.fontSize="";
		document.getElementById('p_'+i).style.color="";
		}
		var ddd= document.getElementById(dd);
		var ds = document.getElementById(col);
		ddd.style.display="block";	
		ds.style.color="#36A9EA";	
		ds.style.fontSize="13px";
	}
	
	function mouseover(img_name, img_src)
   	{
  		document.getElementById(img_name).src=img_src;
   	}
	
	function menuimage(img_name, img_src)
   	{
		for (var i=1; i<=6; i++)
		{
		document.getElementById('imgs_'+i).style.display="none";
		}
		document.getElementById(img_name).style.display="block";
   	}
	
	function Portmenuimage(img_name, img_src)
   	{
		for (var i=1; i<=2; i++)
		{
		document.getElementById('imgs_'+i).style.display="none";
		}
		document.getElementById(img_name).style.display="block";
   	}
	
	function showServiceText2(dd)
	{
		var dddd = 'imgs_' + dd ;	
		for (var i=1; i<=5; i++) 
		{
		 	document.getElementById('s_'+i).style.color="#656565";
			document.getElementById('imgs_s_'+i).style.display = "none";
		}
		for (var a=1; a<=4; a++) 
		{
			document.getElementById('s2_'+a).style.color="#656565";
			document.getElementById('s4_'+a).style.color="#656565";
			document.getElementById('imgs_s2_'+a).style.display = "none";
			document.getElementById('imgs_s4_'+a).style.display = "none";
		}
			
		document.getElementById(dd).style.color="#36A9EA";
		document.getElementById(dddd).style.display="block";
	}
	
	function showPortText(d)
	{
		for (var i=1; i<=9; i++) 
		{
		 	document.getElementById('s_'+i).style.color="#656565";
			document.getElementById('imgs_s_'+i).style.display = "none";
		}
		document.getElementById(d).style.color="#36A9EA";
		document.getElementById(d).style.display="block";
	}	
	
	function showContact(d)
	{
		document.getElementById(d).style.display="block";	
	}
	function hideContact(d)
	{
		document.getElementById(d).style.display="none";	
	}
	
	function movercolor(d)
	{
		document.getElementById(d).style.color="#36A9EA";
	}
	function moutcolor(d)
	{
		document.getElementById(d).style.color="#656565";
	}