/*--------------Holdlink()---------------*/
function holdlink(id){
	
	document.getElementById(id).className='current';
	
}
/*--------------Holdlink()---------------*/

/*--------------------------popup() ----------------------------*/

function info()
{

	var NewWin;
	NewWin=window.open("consultationForm.htm",'NewWin','height=540,width=420,top=50,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin.focus();
}
/*--------------------------popup() ----------------------------*/

/*------------include function---------------------*/
function include_file(id, url) {	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 //alert("I am here");
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    
	if(id=="topHeader") {
		if(typeof(page_name)=="undefined") 
			page_name="";
		element.innerHTML = req.responseText.replace(/\[PAGENAME\]/g,page_name);		
	} else {
		element.innerHTML = req.responseText;	
	}
  } 
}
/*------------include function---------------------*/


/*------------flash function---------------------*/

function flashFuncAudioSystems(){
		window.location='audioSystems.htm';
	}
function flashFuncControlSystems(){
		window.location='controlSystems.htm';
	}
function flashFuncDigitalSignage(){
		window.location='digitalSignage.htm';
	}
function flashFuncObservationCom(){
		window.location='observationSystems.htm';
	}
function flashFuncRichMedia(){
		window.location='richMediaRecordingSystems.htm';
	}
function flashFuncVideoSystems(){
		window.location='videoSystems.htm';
	}
function flashFuncHomeTheater(){
		window.location='homeTheater.htm';
	}
function flashFuncLightingControl(){
		window.location='lightingControl.htm';
	}
function flashFuncObservationRes(){
		window.location='observation.htm';
	}
function flashFuncWholeHomeAudio(){
		window.location='wholeHomeAudio.htm';
	}
function flashFuncWholeHomeVideo(){
		window.location='wholeHomeVideo.htm';
	}

/*------------flash function---------------------*/
