/****************************************************************************************************
*** All I know is that this is for the js scroll on the Index page				  ***
*****************************************************************************************************/

	function right(e) {
	if (navigator.appName == 'Netscape' &&
	(e.which == 3 || e.which == 2))
	return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' &&
	(event.button == 2 || event.button == 3)) {
	alert("Give us a call to receive hard copy documentation.");
	return false;
	}
	return true;
	} 
  
	document.onmousedown=right;
	document.onmouseup=right;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	window.onmousedown=right;
	window.onmouseup=right;
	
	
	
/****************************************************************************************************
*** All I know is that this is for the // Gallery script.
// With image cross fade effect for those browsers that support it.
// Script copyright (C) 2004 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.		  ***
*****************************************************************************************************/

function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
  if (document.all)
  {
    document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
    document.getElementById(pictureName).filters.blendTrans.Apply();
  }
  document.getElementById(pictureName).src = imageFile;
  if (document.all)
  {
    document.getElementById(pictureName).filters.blendTrans.Play();
  }
}

/****************************************************************************************************
*** All I know is that this is for the marquee on the left menu	  ***
*****************************************************************************************************/

//-- Begin Scroller's Parameters and message -->
//scroller width: change to your own;
var swidth=210;

//scroller height: change to your own;
var sheight=50;

//background color: change to your own; 
var sbcolor="none";

//scroller's speed: change to your own;
var sspeed=1;
var restart=sspeed;
rspeed=sspeed;

//text: change to your own

wholemessage='<div align="center" class=tabb>'+
'We take pride in providing the perfect production solutions for your enterprise.'+
'<br><br>Please contact our Sales Team.'+
'<br><br>We will be happy to speak with you personally.'+
'<br><br>Processing, Filling, Packaging'+
'<br><br>Innovation, Partnership, Performance'+
'<br><br>Your partner in the pursuit of perfection!'+
'<br><br>Perfection is our Goal. <br>Excellence is not tolerated.'+ 
'</div>';

//Or you may do a slide show running up any number of images too!
//Preload is recommended (no downloading check) - otherwise you may skip this:
//preload1 = new Image();
//preload1.src = "http://...";
//preload2 = new Image();
//preload2.src = "http://...";
//preload3 = new Image();
//preload3.src = "http://...";
// ...

//if no preloading, replace below '+ preload... +' with the actual Images path "..."

//wholemessage='<img src='+preload1.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload2.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload3.src+' width=... height=... alt="..."><br>'+
//'<img ... >';

//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
function goup(){if(sspeed!=rspeed*8){sspeed=sspeed*2;restart=sspeed;}}
function godown(){if(sspeed>rspeed){sspeed=sspeed/2;restart=sspeed;}}
function start(){if(document.getElementById)ns6marquee(document.getElementById('slider'));else if(document.all)iemarquee(slider);else if(document.layers)ns4marquee(document.slider1.document.slider2);}function iemarquee(whichdiv){iediv=eval(whichdiv);iediv.style.pixelTop=sheight;iediv.innerHTML=wholemessage;sizeup=iediv.offsetHeight;ieslide();}function ieslide(){if(iediv.style.pixelTop>=sizeup*(-1)){iediv.style.pixelTop-=sspeed;setTimeout("ieslide()",100);}else{iediv.style.pixelTop=sheight;ieslide();}}function ns4marquee(whichlayer){ns4layer=eval(whichlayer);ns4layer.top=sheight;ns4layer.document.write(wholemessage);ns4layer.document.close();sizeup=ns4layer.document.height;ns4slide();}function ns4slide(){if(ns4layer.top>=sizeup*(-1)){ns4layer.top-=sspeed;setTimeout("ns4slide()",100);}else{ns4layer.top=sheight;ns4slide();}}function ns6marquee(whichdiv){ns6div=eval(whichdiv);ns6div.style.top=sheight;ns6div.innerHTML=wholemessage;sizeup=ns6div.offsetHeight;ns6slide();}function ns6slide(){if(parseInt(ns6div.style.top)>=sizeup*(-1)){ns6div.style.top=parseInt(ns6div.style.top)-sspeed;setTimeout("ns6slide()",100);}else{ns6div.style.top=sheight;ns6slide();}}
//-- end Algorithm -->