

/*Navigation slide*/
var menu_effect=0;
var previous_obj;
var pre_head_obj;
var pre_block_obj;
function show_block(head_obj,block_obj)
{
		if(block_obj.style.display=='') {
			if(menu_effect==0) {
				menu_effect=1;
				new Effect.SlideUp(block_obj , { duration: 1.5});
				previous_obj=head_obj;
				setTimeout("hide_block();", 1500);
				pre_head_obj=false;
			}
		} else {			
			if(menu_effect==0) {
				menu_effect=1;
				new Effect.SlideDown(block_obj , { duration: 1.5});
				head_obj.className='current';
				if(typeof(pre_head_obj)!="undefined") {
					if(pre_head_obj) {
						new Effect.SlideUp(pre_block_obj , { duration: 1.5});
						previous_obj=pre_head_obj;
						setTimeout("hide_block();", 1500);
					}
				}
				pre_head_obj=head_obj;
				pre_block_obj=block_obj;
				setTimeout("menu_effect=0", 1500);
			}
			
		}
 }
function hide_block() {
		previous_obj.className='';
		menu_effect=0;
}
/*Navigation slide*/

/*--------------Holdlink()---------------*/
function holdlink(id, sub_id){
	if(id=='services' || id=='mailtech' || id=='faq'){
	document.getElementById(id).className='current';
	document.getElementById(sub_id).className='current';
	document.getElementById(id+'_menu').style.display='';
	} else
	document.getElementById(id).className='current';
}
/*--------------Holdlink()---------------*/
function wclose()
{
	window.close();	
}

/*--------------------------request quote() ----------------------------*/
function quote(path)
{

	var NewWin3;
	NewWin3=window.open(path,'NewWin1','height=420,width=420,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin3.focus();
}
/*--------------------------request quote() ----------------------------*/


/*------------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---------------------*/