function audioConferencingMenu(){
	
	if(this.document.all.lifesize_audio.style.display=="none"){
	(this.document.all.lifesize_audio.style.display="block")
	}else{
		//(this.document.all.clearone_audio.style.display="none");
		}
	
	
}



//-------------------------------------------------------------------------------//
function contactUs(name, company, jobtitle, email, phone, opt, mynotes, formId){

if(name=="" || name=="Name"){
alert("Please enter your name");
return false;
}else if(email=="" || email=="Email"){
alert("Please enter your Email address");
return false;
}else if(phone=="" || phone=="Phone"){
alert("Please enter your contact number");
return false;
}else{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {alert("Your browser does not support XMLHTTP!");}

	xmlhttp.onreadystatechange=function()
	{
		
		if(xmlhttp.readyState==1){
		document.contactus.name.value="";
		document.contactus.company.value="";
		document.contactus.jobtitle.value="";
		document.contactus.email.value="";
		document.contactus.phone.value="";
		document.contactus.opt.value=0;
		document.contactus.mynotes.value="";
		document.contactus.result.style.display="block";
		document.contactus.waiting.style.display="block";
		document.contactus.result.value="Please Wait...";
		}

		if(xmlhttp.readyState==4)
		  {
			//document.contactus.contact_btn.style.display="none";
			document.contactus.name.value="Name";
			document.contactus.company.value="Company";
			document.contactus.jobtitle.value="Job Title";
			document.contactus.email.value="Email";
			document.contactus.phone.value="Phone";
			document.contactus.opt.value=0;
			document.contactus.mynotes.value="Notes and Comments";
			document.contactus.formId.value=1;
			document.contactus.waiting.style.display="none";
			document.contactus.result.value=xmlhttp.responseText;

		  }
	}
xmlhttp.open("GET", "./functions/email.php?name="+name+"&company="+company+"&jobtitle="+jobtitle+"&email="+email+"&phone="+phone+"&opt="+opt+"&mynotes="+mynotes+"&formId="+formId, true)
xmlhttp.send(null);

}//else return true end
}


//-------------------------------------------------------------------------------//
function contactUs_2(name, company, jobtitle, email, phone, opt, mynotes, formId){

if(name=="" || name=="Name"){
alert("Please enter your name");
return false;
}else if(email=="" || email=="Email"){
alert("Please enter your Email address");
return false;
}else if(phone=="" || phone=="Phone"){
alert("Please enter your contact number");
return false;
}else{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {alert("Your browser does not support XMLHTTP!");}

	xmlhttp.onreadystatechange=function()
	{
		
		if(xmlhttp.readyState==1){
		document.contactus.name.value="";
		document.contactus.company.value="";
		document.contactus.jobtitle.value="";
		document.contactus.email.value="";
		document.contactus.phone.value="";
		document.contactus.opt.value=0;
		document.contactus.mynotes.value="";
		document.contactus.result.style.display="block";
		document.contactus.waiting.style.display="block";
		document.contactus.result.value="Please Wait...";
		}

		if(xmlhttp.readyState==4)
		  {
			//document.contactus.contact_btn.style.display="none";
			document.contactus.name.value="Name";
			document.contactus.company.value="Company";
			document.contactus.jobtitle.value="Job Title";
			document.contactus.email.value="Email";
			document.contactus.phone.value="Phone";
			document.contactus.opt.value=0;
			document.contactus.mynotes.value="Notes and Comments";
			document.contactus.formId.value=1;
			document.contactus.waiting.style.display="none";
			document.contactus.result.value=xmlhttp.responseText;

		  }
	}
xmlhttp.open("GET", "../functions/email.php?name="+name+"&company="+company+"&jobtitle="+jobtitle+"&email="+email+"&phone="+phone+"&opt="+opt+"&mynotes="+mynotes+"&formId="+formId, true)
xmlhttp.send(null);

}//else return true end
}



///////////////////////////////////////////////////

//This is a function to swap images on mouse over

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



//----------This Function is to scroll text on top of contact us form available on different pages-------//
// Realised by apachejeff
var contents=new Array() // Your message list
contents[1]='<font color=#FFFFFF>To book videoconferencing room'
contents[2]='<font color=#FFFFFF>To organize onsite presentation</font>'
contents[3]='<font color=#FFFFFF>To request support'
contents[4]='<font color=#FFFFFF>To evaluate classroom audio</font>'
contents[5]='<font color=#FFFFFF>To experience HD video'
contents[6]='<font color=#FFFFFF>For ROI on video conferencing</font>'
contents[7]='<font color=#FFFFFF>To hire video conferencing studio'
contents[0]='<font color=#FFFFFF>To schedule demonstration</font>'

i=0; // Initialises i to zero
pause=5000

function change(){
if(i>contents.length-1){// if i equals the length of the array contents reset i to zero
i=0 
}

document.getElementById("div_scroll_gr1").innerHTML=contents[i]; // Show results at div id example
i++
timer=setTimeout("change()",pause) // repeat after set time
}
window.onload=change // run script when page has loaded



