
function imgSwap(oImg)
{
   var strOver  = "_over"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1)
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}



function menuSet(inp,div) {

	switch (inp)
	{
	case "abt":
		document.getElementById(div).style.backgroundPosition = "0px -27px";
	  	break
	case "srv":
		document.getElementById(div).style.backgroundPosition = "0px -54px";
		break
	case "rsc":
		document.getElementById(div).style.backgroundPosition = "0px -81px";
		break
	case "cnt":
		document.getElementById(div).style.backgroundPosition = "0px -108px";
		break
	}
}

function menuReset(inp,div) {

	switch (inp)
	{
	case "abt":
		document.getElementById(div).style.backgroundPosition = "0px -27px";
		break
	case "srv":
		document.getElementById(div).style.backgroundPosition = "0px -54px";
		break
	case "rsc":
		document.getElementById(div).style.backgroundPosition = "0px -81px";
		break
	case "cnt":
		document.getElementById(div).style.backgroundPosition = "0px -108px";
		break
	default:
		document.getElementById(div).style.backgroundPosition = "0px 0px";
		break
	}
}

function expand(div){
	document.getElementById(div).style.width = "328px";
	document.getElementById(div).style.left = "-163px";
	//document.getElementById(div).style.backgroundPosition = "0 0";
}

function resetExpand(div) {
	document.getElementById(div).style.width = "165px";
	document.getElementById(div).style.left = "0px";
	document.getElementById(div).style.backgroundPosition = "top right";
}


function resiz(){

  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
	if (myWidth<=900) {
		document.getElementById('main').style.marginLeft='0px';
	} else if (myWidth<=1000)  {
		document.getElementById('main').style.marginLeft='25px';
	} else if (myWidth<=1100)  {
		document.getElementById('main').style.marginLeft='50px';
	} else if (myWidth<=1200)  {
		document.getElementById('main').style.marginLeft='100px';
	} else if (myWidth<=1300)  {
		document.getElementById('main').style.marginLeft='150px';
	} else if (myWidth<=1400)  {
		document.getElementById('main').style.marginLeft='200px';
	} else if (myWidth<=1500)  {
		document.getElementById('main').style.marginLeft='250px';
	} else if (myWidth<=1600)  {
		document.getElementById('main').style.marginLeft='300px';
	}


}

function showChart(divid) {

	if (document.getElementById(divid).style.display=='none') {
		document.getElementById(divid).style.display='block'
	} else if (document.getElementById(divid).style.display=='block') {
		document.getElementById(divid).style.display='none'
	}
}




