// Mouseover Images



if (document.images) {



   homeon = new Image();

   homeon.src = "grafix/nav_homero.gif";



   abouton = new Image();

   abouton.src = "grafix/nav_aboutro.gif";



   productson = new Image();

   productson.src = "grafix/nav_productsro.gif";



   requeston = new Image();

   requeston.src = "grafix/nav_requestro.gif";



   confon = new Image();

   confon.src = "grafix/nav_confro.gif";



   contacton = new Image();

   contacton.src = "grafix/nav_contactro.gif";



   homeoff = new Image();

   homeoff.src = "grafix/nav_home.gif";



   aboutoff = new Image();

   aboutoff.src = "grafix/nav_about.gif";



   productsoff = new Image();

   productsoff.src = "grafix/nav_products.gif";



   requestoff = new Image();

   requestoff.src = "grafix/nav_request.gif";



   confoff = new Image();

   confoff.src = "grafix/nav_conf.gif";



   contactoff = new Image();

   contactoff.src = "grafix/nav_contact.gif";

}



function changeImages() {

  if (document.images) {

    for (var i=0; i<changeImages.arguments.length; i+=2) {

      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");

    }

  }

}



// Random Image Generator

// Set to number of image/links available.

var number=4;

// Becomes generated random  number.

var random_number=0;



// Random number generating.

today=new Date();

jran=today.getTime();

ia=9301;

ic=49297;

im=233280;

jran = (jran*ia+ic) % im;

random_number=Math.ceil( (jran/(im*1.0)) *number);



// Create and define arrays.

imageA = new Array(4);

imageB = new Array(4);

imageC = new Array(4);

imageD = new Array(4);

imageE = new Array(4);



imageA[0] = "grafix/topnav_image1.jpg";

imageA[1] = "grafix/topnav_image6.jpg";

imageA[2] = "grafix/topnav_image11.jpg";

imageA[3] = "grafix/topnav_image16.jpg";


imageB[0] = "grafix/topnav_image2.jpg";

imageB[1] = "grafix/topnav_image7.jpg";

imageB[2] = "grafix/topnav_image12.jpg";

imageB[3] = "grafix/topnav_image17.jpg";


imageC[0] = "grafix/topnav_image3.jpg";

imageC[1] = "grafix/topnav_image8.jpg";

imageC[2] = "grafix/topnav_image13.jpg";

imageC[3] = "grafix/topnav_image18.jpg";


imageD[0] = "grafix/topnav_image4.jpg";

imageD[1] = "grafix/topnav_image9.jpg";

imageD[2] = "grafix/topnav_image14.jpg";

imageD[3] = "grafix/topnav_image19.jpg";


imageE[0] = "grafix/topnav_image5.jpg";

imageE[1] = "grafix/topnav_image10.jpg";

imageE[2] = "grafix/topnav_image15.jpg";

imageE[3] = "grafix/topnav_image20.jpg";





/////////////////////////////////////////////////////////////////////////////





// Used to open a generic popup window

function OpenVariableWindow(link, winName, intWidth, intHeight){

    var newWindow;

    var screenWidth = screen.width;

    var displayPos = ((screenWidth/2) - (intWidth/2));

    newWindow = window.open( link, winName, "menubar,toolbar,width=" + intWidth + ",height=" + intHeight + ",left=" + displayPos + ",scrollbars,resizable");

    newWindow.focus();

}

