/*--------------Holdlink()---------------*/
function holdlink(id){
	//alert(id);
	document.getElementById(id).className='current';
}
/*--------------Holdlink()---------------*/

/*--------------------------popup() ----------------------------*/

function info()
{

	var NewWin;
	NewWin=window.open(SITE_URL+"static/popup/consultationForm/",'NewWin','height=540,width=445,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);
  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=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=1';
		window.location=SITE_URL+'static/resComServices/flash/commercial/1';
	}
function flashFuncControlSystems(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=2';
		window.location=SITE_URL+'static/resComServices/flash/commercial/2';
	}
function flashFuncDigitalSignage(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=3';
		window.location=SITE_URL+'static/resComServices/flash/commercial/3';
	}
function flashFuncObservationCom(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=4';
		window.location=SITE_URL+'static/resComServices/flash/commercial/4';
	}
function flashFuncRichMedia(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=5';
		window.location=SITE_URL+'static/resComServices/flash/commercial/5';
	}
function flashFuncVideoSystems(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=6';
		window.location=SITE_URL+'static/resComServices/flash/commercial/6';
	}
function flashFuncHomeTheater(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=residential&linkNo=1';
		window.location=SITE_URL+'static/resComServices/flash/residential/1';
	}
function flashFuncLightingControl(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=residential&linkNo=2';
		window.location=SITE_URL+'static/resComServices/flash/residential/2';
	}
function flashFuncObservationRes(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=residential&linkNo=3';
		window.location=SITE_URL+'static/resComServices/flash/residential/3';
	}
function flashFuncWholeHomeAudio(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=residential&linkNo=4';
		window.location=SITE_URL+'static/resComServices/flash/residential/4';
	}
function flashFuncWholeHomeVideo(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=residential&linkNo=5';
		window.location=SITE_URL+'static/resComServices/flash/residential/5';
	}

function flashFuncServices(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=0';
		window.location=SITE_URL+'static/resComServices/flash/commercial/0';
	}
function flashFuncCommercial(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=commercial&linkNo=0';
		window.location=SITE_URL+'static/resComServices/flash/commercial/0';
	}
function flashFuncResidential(){
		//window.location=SITE_URL+'static/resComServices/?selectedSectionMain=residential&linkNo=0';
		window.location=SITE_URL+'static/resComServices/flash/residential/0';
	}
function flashFuncContact(){
		window.location=SITE_URL+'static/contactus/';
	}
/*------------flash function---------------------*/

