<!--

//url example for CSS: list-style-image: url(/images/arrowWhite.gif);


//Preload Main menu images

menuImage0Over= new Image(46,20);
menuImage0Over.src="/images/intMhomeOver.gif";
menuImage1Over= new Image(63,20);
menuImage1Over.src="/images/intMcompanyOver.gif";
menuImage2Over= new Image(62,20);
menuImage2Over.src="/images/intMproductsOver.gif";
menuImage3Over= new Image(89,20);
menuImage3Over.src="/images/intMnewsOver.gif";
menuImage4Over= new Image(42,20);
menuImage4Over.src="/images/intMstoreOver.gif";
menuImage5Over= new Image(56,20);
menuImage5Over.src="/images/intMcontactOver.gif";

menuSpacerOver= new Image(2,20);
menuSpacerOver.src="/images/intMspacerOver.gif";

menuImage0Out= new Image(46,20);
menuImage0Out.src="/images/intMhome.gif";
menuImage1Out= new Image(63,20);
menuImage1Out.src="/images/intMcompany.gif";
menuImage2Out= new Image(62,20);
menuImage2Out.src="/images/intMproducts.gif";
menuImage3Out= new Image(89,20);
menuImage3Out.src="/images/intMnews.gif";
menuImage4Out= new Image(42,20);
menuImage4Out.src="/images/intMstore.gif";
menuImage5Out= new Image(56,20);
menuImage5Out.src="/images/intMcontact.gif";

menuSpacerOut= new Image(2,20);
menuSpacerOut.src="/images/intMspacer.gif";

arrowWhite= new Image(15,15);
arrowWhite.src="/images/arrowWhite.gif";
arrowGrey= new Image(15,15);
arrowGrey.src="/images/arrowGrey.gif";
arrowGreen= new Image(15,15);
arrowGreen.src="/images/arrowGreen.gif";

dotGreen= new Image(1,1);
dotGreen.src="/images/dotGreen.gif";
dotPurple= new Image(1,1);
dotPurple.src="/images/dotPurple.gif";

line189white = new Image(189,1);
line189white.src="/images/line189white.gif";
line448white = new Image(448,1);
line448white.src="/images/line448.gif";
line736white = new Image(736,1);
line736white.src="/images/line736.gif";

frontImage2Over= new Image(216,44);
frontImage2Over.src="/images/intFrontImage2eOver.gif";
frontImage3Over= new Image(216,46);
frontImage3Over.src="/images/intFrontImage2cOver.gif";
frontImage4Over= new Image(216,44);
frontImage4Over.src="/images/intFrontImage2dOver.gif";
frontImage5Over= new Image(216, 44);
frontImage5Over.src="/images/intFrontImage2fOver.gif";

frontImage2Out= new Image(216,44);
frontImage2Out.src="/images/intFrontImage2e.gif";
frontImage3Out= new Image(216,46);
frontImage3Out.src="/images/intFrontImage2c.gif";
frontImage4Out= new Image(216,44);
frontImage4Out.src="/images/intFrontImage2d.gif";
frontImage5Out= new Image(216, 44);
frontImage5Out.src="/images/intFrontImage2f.gif";

var menuFade=0;
var menuIn=-1;

// add the .inputQuantity class for broswers that support borders on inputs
if(document.getElementById){
 document.write("<style type='text/css'>");
 document.write(".inputQuantity { margin: 2px; margin-top: 0px; margin-bottom: 4px; padding: 2px; border: 1px #505050 solid; }");
 document.write(".inputSelect { margin: 2px; border-width: 1px #505050 solid; }");
 document.write("</style>");
}

// add map code for the header link
if(document.getElementById){
 document.write("<map name='header'>");
 document.write("<area shape='rect' coords='0,0,159,59' href='/index.html'>");
 document.write("</map>");
}

//  Rollover
function genOver(which){
if(document.images){
 document.images[which].src=eval(which+"Over.src");
}
}

// Rollout
function genOut(which){
if(document.images){
 document.images[which].src=eval(which+"Out.src");
}
}


// Hide all subMenus then show current one
function menuOver(menuCurrent){
if(document.getElementById){

 menuFade = 0;

 for (i=0; i < 6; i++){
  if (i != menuCurrent){
	 document.images["menuImage"+i].src=eval("menuImage"+i+"Out.src");	 
	 if (document.images["menuSpacer"+i]){
		document.images["menuSpacer"+i].src=eval("menuSpacerOut.src");
	 }
	 if (document.images["menuSpacer"+(i-1)]) {
		document.images["menuSpacer"+(i-1)].src=eval("menuSpacerOut.src");
	 }	 
	 if (document.getElementById("menu"+i)){
		document.getElementById("menu"+i).style.visibility="hidden";
	 }	 
	}
 }
 if (document.getElementById("menu"+menuCurrent)){
  document.getElementById("menu"+menuCurrent).style.visibility="visible";
 }
 // menuImage Rollover
 document.images["menuImage"+menuCurrent].src=eval("menuImage"+menuCurrent+"Over.src");
 if (document.images["menuSpacer"+menuCurrent]){
  document.images["menuSpacer"+menuCurrent].src=eval("menuSpacerOver.src");
 }
 if (document.images["menuSpacer"+(menuCurrent-1)]) {
  document.images["menuSpacer"+(menuCurrent-1)].src=eval("menuSpacerOver.src");
 }
}
}

// menuImage Rollout
function menuOut(){
if(document.getElementById){
 setTimeout('menuClear()','150');
 menuFade = 1;
}
}

// Clear menu
function menuClear(){
if(document.getElementById){

 if (menuFade == 1){
  for (i=0; i < 6; i++){
	 document.images["menuImage"+i].src=eval("menuImage"+i+"Out.src");	 
	 if (document.images["menuSpacer"+i]){
		document.images["menuSpacer"+i].src=eval("menuSpacerOut.src");
	 } 
	 if (document.getElementById("menu"+i)){
		document.getElementById("menu"+i).style.visibility="hidden";
	 }
  }
	if (menuIn>=0){
	 document.images["menuImage"+menuIn].src=eval("menuImage"+menuIn+"Over.src");
	 if (document.images["menuSpacer"+menuIn]){
	  document.images["menuSpacer"+menuIn].src=eval("menuSpacerOver.src");
	 }
	 if (document.images["menuSpacer"+(menuIn-1)]) {
	  document.images["menuSpacer"+(menuIn-1)].src=eval("menuSpacerOver.src");
	 }
	}
 }
}
}

// News & Menu Rollovers
function rollOver(idName){
if(document.getElementById){

 idLength = idName.length;
 idNum = idName.substring(idLength-2, idLength);
 idName = idName.substring(0,idLength-2);
 if (idName.indexOf('Arrow') > 0){
  idName = idName.substring(0,idName.length-5);
 } else if (idName.indexOf('Date') > 0){
  idName = idName.substring(0,idName.length-4);
 } 
 if (idName == "sideTitle"){
  document.getElementById(idName+idNum).style.color="#FFFFFF";
 } else if (idName == "sideItem"){
  document.getElementById(idName+idNum).style.color="#550F86";
 } else {
  document.getElementById(idName+idNum).style.color="#000000";
	if (document.getElementById(idName+"Date"+idNum)){
	 document.getElementById(idName+"Date"+idNum).style.color="#000000";
	}
 }
 if (document.getElementById(idName+"Arrow"+idNum)){
  arrowType = document.getElementById(idName+"Arrow"+idNum).firstChild.src;
	arrowType = arrowType.slice((arrowType.indexOf("arrow")+5),arrowType.indexOf(".gif"));
	document.getElementById(idName+"Arrow"+idNum).firstChild.src="/images/arrow" + arrowType + "Over.gif";
 }
}
}

// News & Menu Rollouts
function rollOut(idName){
if(document.getElementById){

 idLength = idName.length;
 idNum = idName.substring(idLength-2, idLength);
 idName = idName.substring(0,idLength-2);
 if (idName.indexOf('Arrow') > 0){
  idName = idName.substring(0,idName.length-5);
 } else if (idName.indexOf('Date') > 0){
  idName = idName.substring(0,idName.length-4);
 }
 if (idName == "sideTitle"){
  document.getElementById(idName+idNum).style.color="#550F86";
 } else if (idName == "sideItem"){
  document.getElementById(idName+idNum).style.color="#FFFFFF";
 } else {
  document.getElementById(idName+idNum).style.color="#505050";
	if (document.getElementById(idName+"Date"+idNum)){
	 document.getElementById(idName+"Date"+idNum).style.color="#505050";
	}
 }
 if (document.getElementById(idName+"Arrow"+idNum)){
  document.getElementById(idName+"Arrow"+idNum).firstChild.src="/images/arrow" + arrowType + ".gif";
 }
}
}

/* Pop-up window function
	 (Options to be included in the windowOptios variable: width, height, and scrollbars) */

function windowPopup(pageName,windowOptions){
 if (pageName){
  popupWin = window.open(pageName,'popup','resizable=yes,'+windowOptions+',toolbar=no,location=no,directories=no,status=no,menubar=yes');
	popupWin.focus();
 }
}

// Date Modified function

function dateLastModSet(){
 var lastModDate = new Date(document.lastModified);
 modYear = lastModDate.getYear()
 modMonth = lastModDate.getMonth()
 modDate = lastModDate.getDate()
 if (modYear < 1900){
  modYear = modYear + 1900;
 }
 modMonth++;
 if (modMonth < 10){
  modMonth = "0" + modMonth;
 }
 if (modDate < 10){
  modDate = "0" + modDate;
 }
 dateLastMod = modMonth+"."+modDate+"."+modYear;
 document.write(dateLastMod);
}
//-->
