/*--------------Holdlink()---------------*/
function holdlink(menu_id, submenu_id){
	document.getElementById(menu_id).className='current';
}
/*--------------Holdlink()---------------*/

/*--------------------------popup() ----------------------------*/
function requestInfo()
	{
		var NewWin1;
		NewWin1=window.open("requestInfo.htm",'NewWin1','height=580,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin1.focus();
	}

function StretchWrapMachines()
	{
		var NewWin2;
		NewWin2=window.open("StretchWrapMachines.htm",'NewWin2','height=400,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin2.focus();
	}

function SealedAirPackagingSystems()
	{
		var NewWin3;
		NewWin3=window.open("SealedAirPackagingSystems.htm",'NewWin','height=610,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin3.focus();
	}

function StrappingEquipment()
	{
		var NewWin4;
		NewWin4=window.open("StrappingEquipment.htm",'NewWin4','height=580,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin4.focus();
	}

function AirPillowSystems()
	{
		var NewWin5;
		NewWin5=window.open("AirPillowSystems.htm",'NewWin5','height=580,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin5.focus();
	}

function Workstations()
	{
		var NewWin6;
		NewWin6=window.open("Workstations.htm",'NewWin6','height=400,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin6.focus();
	}

function PaperMachines()
	{
		var NewWin7;
		NewWin7=window.open("PaperMachines.htm",'NewWin7','height=580,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin7.focus();
	}

function ElectronicTapeDispensers()
	{
		var NewWin8;
		NewWin8=window.open("ElectronicTapeDispensers.htm",'NewWin8','height=400,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin8.focus();
	}

function Staplers()
	{
		var NewWin9;
		NewWin9=window.open("Staplers.htm",'NewWin9','height=400,width=670,top=150,left=250,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
		NewWin9.focus();
	}

function closeWindow()
	{
        window.close ();
	}
/*--------------------------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);
    element.innerHTML = req.responseText;
  } 
}
/*------------include function---------------------*/


/*---------------------Photo Gallery Functions-------------------------
var images_tot=10;
var image_per_page = 5;
var image_start=0;
var image_scroll_no = 5;
var image_scroll_height = 515;
var image_scroll_active=false;*/

	var currentImage = 0;
	var totalImages = 5;
	var viewSize = 5;
	var scroll_active=0;
	var imagewidth =560;
	var nextimage=5;
	
function moveToPrevious()
{
  if(currentImage > 0 && scroll_active==0)
  {
	scroll_active=1;
	new Effect.Move('imageBoxInside', { x: imagewidth, y: 0, transition: Effect.Transitions.sinoidal });
	currentImage=currentImage-nextimage;
	setTimeout('scroll_active=0;',1000);
  }
  
}
function moveToNext()
{
  if(currentImage < totalImages-viewSize  && scroll_active==0)
  {
	scroll_active=1;
	new Effect.Move('imageBoxInside', { x: -imagewidth, y: 0, transition: Effect.Transitions.sinoidal });
	currentImage=currentImage+nextimage;
	setTimeout('scroll_active=0;',1000);
  }
}

function changeImg(path) {
	if(document.getElementById('bigimg').src!='images/photogallery/photo_gallery_big'+path+'.jpg') {
	imgPreloader = new Image();
	// once image is preloaded, resize image container
	document.getElementById('bigimg').style.display="none";
	document.getElementById('loading_img').style.display="";
	imgPreloader.onload=function(){
	document.getElementById('loading_img').style.display="none";
	document.getElementById('bigimg').src='images/photogallery/photo_gallery_big'+path+'.jpg';
	//document.getElementById('bigimg').style.display="";
	new Effect.Appear('bigimg',{ duration: 0.7, from: 0.0, to: 1.0});
	imgPreloader.onload=function(){};
	imgPreloader.src="";
	}
	imgPreloader.src='images/photogallery/photo_gallery_big'+path+'.jpg';
	}
}

/*---------------------Photo Gallery Functions-------------------------*/

/*---------------------Google Analytics-------------------------
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' 

type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15132271-1");
pageTracker._trackPageview();
} catch(err) {}
---------------------Google Analytics-------------------------*/
