/*--------------Holdlink()---------------*/
function holdlink(menu_id, submenu_id){
	document.getElementById(menu_id).className='current';
	document.getElementById(submenu_id).className='currentsub';
}

function holdlink1(id){
	document.getElementById(id).className='cueernt-left-curve';	
}
function holdlink2(id){
	document.getElementById(id).className='cueernt-right-curve';	
}
function holdlink3(menu_id, submenu_id){
	document.getElementById(menu_id).className='current';
	document.getElementById(submenu_id).className='currentsub2';
}

var prvlink='a1';
function setLink(id)
	{
		document.getElementById(prvlink).className='div_menu';
	 	document.getElementById(id).className='div_menu_selected';
		prvlink=id;
	}
	
	//////////////////////////////////////////////////----------------------------/////////////////////////
var ids=new Array('a1','a2','a3','a4');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}


function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}
function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
		//document.getElementById(id).style.color='#6c6f71';
		//setTimeout("document.body.text='333333'",5000); 
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

/*--------------Holdlink()---------------*/

/*------------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);
    element.innerHTML = req.responseText;
  } 
}
/*------------include function---------------------*/

/*------------Popup function---------------------*/
function rmaRequest()
{
	var NewWin;
	NewWin=window.open("rma-request.htm",'NewWin','height=650,width=670,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin.focus();
}

function requestProductDemonstration()
{
	var NewWin1;
	NewWin1=window.open("request-product-demonstration.htm",'NewWin1','height=650,width=670,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin1.focus();
}

function downloadBrochurs()
{
	var NewWin2;
	NewWin2=window.open("download-brochurs.htm",'NewWin2','height=650,width=670,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin2.focus();
}

function dealer()
{
	var NewWin3;
	NewWin3=window.open("dealer.htm",'NewWin3');
	NewWin3.focus();
}
/*------------Popup function---------------------*/
