﻿       function loadImages()
            {
            img1 = new Image();
            img1.src = "blank.gif";
            }     
            
       function openWindow(apage) {
    msgWindow = window.open('','','width=700,height=500,top=100,left=10,resizable=yes,scrollbars=yes,toolbar=yes,location=yes,menubar=yes');
    msgWindow.location.href = apage;
}

   function openWindowNoControls(apage) {
    msgWindow = window.open('','','width=700,height=500,top=100,left=10,resizable=yes,scrollbars=yes,toolbar=no,location=no,menubar=no');
    msgWindow.location.href = apage;
}

function openWindowChat(apage) {
    msgWindow = window.open('','','width=270,height=320,top=100,left=160,resizable=no,scrollbars=no,toolbar=no,location=no,menubar=no');
    msgWindow.location.href = apage;
}

 function toggleDivCaseStudies(divid, divid2, divid3, divid4){
  document.getElementById(divid).style.display = 'block';
document.getElementById(divid2).style.display = 'none';
document.getElementById(divid3).style.display = 'none';
document.getElementById(divid4).style.display = 'none';
	  }

 function toggleDiv1(divid){
  document.getElementById(divid).style.display = 'block';
	  }
	  
	function toggleDiv2(divid){
      document.getElementById(divid).style.display = 'none';
	  }
	  
	  function setcolorsSel(divid){
	  document.getElementById(divid).style.bgColor = 'White';
	  document.getElementById(divid).style.Color = 'Black';
	  }
	  
	  function setcolors(divid){
	  document.getElementById(divid).bgColor = '#095af1;';
	  document.getElementById(divid).Color = 'White';
	  }
	  
	    
	  function settopdiv_on(divid){
	  
	  if (document.getElementById(divid).className == 'tabtext')
	  {
	    document.getElementById(divid).className = 'tabtext_sub';
	  }
	  else
	  {
	    document.getElementById(divid).className = 'tabtext_selected';
	  }
	  }
	  
	  function settopdiv_off(divid){
	  
	  if (document.getElementById(divid).className == 'tabtext_sub')
	  {
	    document.getElementById(divid).className = 'tabtext';
	  }
	  else
	  {
	    document.getElementById(divid).className = 'tabtext_selected';
	  }
	  
	  }
	  
	  function mouseover()
{
document.getElementById("thediv").style.backgroundcolor='black';
}
function mouseout()
{
document.getElementById("thediv").style.backgroundcolor='red';
}
function setMovingApps()
{
document.getElementById("iconApps").src = "/images/IconAppsMouseOver.gif";
}
function closeMovingApps()
{
document.getElementById("iconApps").src = "/images/iconApps.gif";
}

function setWhy()
{
document.getElementById("why").src = "/images/IconWhyIsMouseOver.gif";
}

function setdesign()
{
document.getElementById("design").src = "/images/IconGlobeMouseOver.gif";
}
function setconsult()
{
document.getElementById("consult").src = "/images/IconConsultingMouseOver.gif";
}





function setMovingApps2()
{
document.getElementById("iconApps2").src = "/images/IconAppsMouseOver.gif";
}
function closeMovingApps()
{
document.getElementById("iconApps").src = "/images/iconApps.gif";
}

function setWhy2()
{
document.getElementById("why2").src = "/images/IconWhyIsMouseOver.gif";
}

function setdesign2()
{
document.getElementById("design2").src = "/images/IconGlobeMouseOver.gif";
}
function setconsult2()
{
document.getElementById("consult2").src = "/images/IconConsultingMouseOver.gif";
}










//menu

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}






// close layer when click-out
document.onclick = mclose; 

