function getClientHeight()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

function HeightCheck(path){
if(document.getElementById('workcontent').clientHeight < 256)
	{ document.getElementById('workcontent').style.height = 214+'px';
          document.getElementById('bottom').style.marginTop = "30px";
	};
	
if((document.getElementById('workcontent').clientHeight > 255) && (document.getElementById('workcontent').clientHeight < 307))
   { document.getElementById('workcontent').style.height = 266+'px';
	  if(path != undefined) document.getElementById('whiteboxbottom').src = path+"img/whiteboxbottom_white.jpg";
	  else document.getElementById('whiteboxbottom').src = "img/whiteboxbottom_white.jpg";}
  
if(document.getElementById('workcontent').clientHeight >= 308){
	  if(path != undefined) document.getElementById('whiteboxbottom').src = path+"img/whiteboxbottom_white.jpg";
	  else document.getElementById('whiteboxbottom').src = "img/whiteboxbottom_white.jpg";}
}

///faqs

function allshow(){
	for(var di=1;di<11;di++){
	showhide("a"+di, 'on');
	}
};

function allhide(){
	for(var di=1;di<11;di++){
	showhide("a"+di, 'off');
	}
};

function showhide(id, f){
		if(document.getElementById(id).style.display == 'block')
			{document.getElementById(id).style.display = 'none';
			document.getElementById(id+'a').style.backgroundPosition='0px 3px';}
		else {document.getElementById(id).style.display = 'block';
			document.getElementById(id+'a').style.backgroundPosition='0px -14px';
			//var tmp = new String;
			//tmp = document.getElementById(id).innerHTML;
			//document.getElementById(id).innerText = "";
			//for(var i=0;i<tmp.length;i++){
				//document.getElementById(id).innerText += tmp.charAt(i);
				//}
			}
		if(f == 'off') {document.getElementById(id).style.display = 'none'; document.getElementById(id+'a').style.backgroundPosition='0px 3px';}
		if(f == 'on') {document.getElementById(id).style.display = 'block'; document.getElementById(id+'a').style.backgroundPosition='0px -14px';}
};

//end faqs