//-------------------------------------
// Home Section
//----------------------------------
function setBodyHome(text,img1,img2) {
    hideBox('map_canvas','hide');
    
 document.getElementById('BodyText').innerHTML = "<p><strong>W</strong>estwind Plastics was established as a sole propreitorship with a goal "+
      "of creating high quality, close-tolerance injection molds for a variety of clients. Our commitment to excellence has ensured our success "+
      "in the mold making market. As of today, our goal has not changed. We strive to achieve unsurpassed quality in our products, while "+
      "maintaining a commitment to customer service.</p>"+
      "<p><strong>W</strong>e specialize in both "+
      "prototype and production molds. Utilizing our three Fadal Vertical Machining " +
      "Centers and MasterCam Level 3 design and machining software, molds can be " +
      "produced up to 20\" x 40\". We also have all support equipment needed to " +
      "build most any mold.</p>" +
      "<p><strong>W</strong>e can also supply molded parts for our customers who desire this option. " +
      "We also do CNC machining of details, parts and graphite electrodes. Westwind " +
      "Plastics is known for doing high quality, close tolerance work. We are able to hold tolerance from customers specifications to within 0.0005 inches.</p>" +
      "<p><strong>O</strong>ur work week is scheduled to meet our customer's needs.</p>" +
      "" +
      "<p><strong>F</strong>uture aquisitions include: CNC Sinker EDM and " +
      "Wire EDM in addition to two more Fadal Machining Centers.</p>"

document.getElementById('BodyImages').innerHTML = '<img src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/parts-01thumb.jpg\"><br>'+
            '<img src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/compscreen-01thumb.jpg\">'

}

//--------------------------------
// About Us Section
//--------------------------------
function setBodyAboutUs() {

    hideBox('map_canvas','hide');
    
    document.getElementById('BodyText').innerHTML = "<P> <STRONG>W</STRONG>estwind Plastics was established as a sole propreitorship with a goal of creating high quality, " +
    "close-tolerance injection molds for a variety of clients. Our commitment to excellence has ensured our success in the " +
    "mold making market. As of today, our goal has not changed. We strive to achieve unsurpassed quality in our products, " +
    "while maintaining a commitment to customer service. </P>" +
    "" +
    "<p><STRONG>U</STRONG>pon gaining corporation status, the company's founder Robert DeMeulenaere was made president/treasurer. " +
    "At this time Westwind Plastics, Inc. grew substantially, and acquired equipment to increase capacity and to gain new abilities. " +
    "Westwind Plastics Inc. is currently located in the Saint Clair County Air Industial Park.</p>" +
    "" +
    "<p><Strong>T</strong>o exemplify our commitment to quality, Westwind Plastics became ISO 9001-2000 certified in September of 2003. Over time, Westwind Plastics, " +
    "Inc. has employed one to three team members and used various subcontractors at different times until the present. " +
    "We currently have two moldmakers on staff, with a combined experience of over fifty years.</p>" +
    "" +
    "<p><STRONG>W</STRONG>estwind Plastics, Inc. is growing at an exponential rate, while continuing to maintain a close relationship with " +
    "its clients. Our staff is able to spot potential molding problems during the mold process and make corrections so in " +
    "most cases, you will not have to redesign your part. We are dedicated to producing high quality, close tolerance " +
    "injection molds in a very short amount of time; usually two to four weeks for prototypes. In the future, we envision " +
    "expanding our capabilities and reaching into new markets in the field of mold making.</p>"

document.getElementById('BodyImages').innerHTML =""
}


//------------------------------------------
// News Section
//-----------------------------------------
function setBodyNews() {
    hideBox('map_canvas','hide');
 document.getElementById('BodyText').innerHTML = "<strong>September 2003</strong><hr>We have completed the process leading to ISO 9001-2000 Certification.<br><br><strong>July 2003</strong><hr>We have acquired a Charmilles Roboform 55P to increase our capabilities so that we may handle larger jobs.<br>";
 document.getElementById('BodyImages').innerHTML = "<img src=\"http://www.westwindplastics.com/website/graphics/machines/T-Charmilles.jpg\">";
}

//------------------------------------------
// Facilities Section
//-----------------------------------------
function setBodyFacilities() {
    hideBox('map_canvas', 'show');
    initialize();
    
    document.getElementById('BodyText').innerHTML = "<strong>W</strong>estwind Plastics, Inc. is located in the Saint Clair County Air Industrial Park off of Gratiot Avenue, " +
        "in Kimball Township, Michigan. <br><br>" +
        "<strong>O</strong>ur location is about an hour Northeast of Detroit, and is a short distance " +
        "from I-94 exit 266 and accessible from I-69 also.  We are housed in a new, fully air conditioned building " +
        "9,000 square feet in size.<br> " +
        "<br> ";
    document.getElementById('BodyImages').innerHTML = "<img src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/building-01thumb.jpg\"><br><br>"+
        "<img src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/floor-01thumb.jpg\">";
}

//------------------------------------------
// Equipment Section
//-----------------------------------------
function setBodyEquipment(){
    document.getElementById('BodyText').innerHTML = "<ul type=\"disc\">"+ 
	      "<li> 1 Charmilles Roboform 55P<br>"+
	      "<li> 3 Fadal Machining Centers<br>"+
		           "Sizes from 20\"x16\" to 40\"x20\"<br>"+ 
		  "<li> 6 Alliant Vertical Mills"+ 
		  "<li> 3 Surface Grinders<br> "+
		  "<li> 2 Sinker EDM Machines<br>"+ 
		  "<li> 1 Radial Drill<br><br> "+
		  "<li> Various Bandsaws &amp; Misc. Equipment<br>"+ 
	  "</ul> "+
	  "<center><a onclick=setBodyEquipmentDetail()>Click Here for a <br>Detailed List of Equipment</a></center> ";

    document.getElementById('BodyImages').innerHTML = "<IMG src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/fadal-02thumb.jpg\" border=0 height=\"158\" width=\"211\"> \&nbsp\;" +
	      " <IMG src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/grinding-03thumb.jpg\" border=0 height=\"158\" width=\"211\">   <br> "+
	     "<IMG src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/sinkers-01thumb.jpg\" border=0 height=\"158\" width=\"211\">";
    hideBox('map_canvas','hide');

}

//------------------------------------------
// Equipment Detail Section
//-----------------------------------------
function setBodyEquipmentDetail(){
    document.getElementById('BodyText').innerHTML = ""+
    
    "<center><table cellspacing=\"2\" cellpadding=\"2\" border=\"1\">"+ 
        "<tr> "+
            "<td valign=\"top\"><b><h3>Milling <br>Machines</h3></b></td> "+
            "<td valign=\"top\"> "+
	            "<li>1 Fadal VMC 4020"+
		        "<li>1 Fadal VMC 3016"+
   		        "<li>1 Fadal VMC 2016"+
    	        "<li>6 Alliant Vertical Mills"+
	        "</td> "+
	        "<td valign=\"top\"> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/machines/Vmc4020.jpg\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/machines/Vmc15-xt.jpg\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/machines/Vmc15.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/machines/Alliant.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a> "+
	        "</td> "+
        "</tr> "+
        "<tr> "+
            "<td valign=\"top\"><b><h3>EDM</h3></b></td> "+
            "<td> "+
	            "<li>1 Charmilles Roboform 55P with Tool Changer"+
	            "<li>1 Sharp 300C EDM"+
	            "<li>1 Elox #8-2012 EDM w/Marc power supply"+
	        "</td> "+
	        "<td valign =\"top\"> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/machines/Charmilles.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/shoppics/sinkers-01.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	            "<a href=\"http://www.westwindplastics.com/website/graphics/shoppics/sinkers-01.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	        "</td> "+
        "</tr> "+
    "<tr> "+
        "<td valign=\"top\"><b><h3>Lathes</td>"+ 
        "<td valign=\"top\"> "+
	        "<li>1 Clausing Variable Speed Lathe"+
	    "</td> "+
	    "<td valign =\"top\"> "+
	      "<a href=\"http://www.westwindplastics.com/website/graphics/machines/ClausingDrill.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a> "+
	    "</td> "+
    "</tr> "+
    "<tr> "+
        "<td valign=\"top\"><b><h3>Drills</h3></b></td> "+
        "<td> "+
		    "<li>1 Abarboga Maskiner Radial Drill"+
		    "<li>1 Delta 8\" Drill Press"+
	    "</td> "+
	    "<td valign =\"top\"> "+
	        "<br> "+
	    "</td> "+
    "</tr> "+
    "<tr> "+
        "<td valign=\"top\"><b><h3>Saws</h3></b></td>"+ 
        "<td> "+
	        "<li>1 Mighty LCM-450 Vertical Bandsaw"+
            "<li>1 Powermatic Vertical Bandsaw"+
            "<li>1 Caterpillar Horizontal Saw"+
	    "</td> "+
	    "<td valign =\"top\"> "+
	        "<a href=\"http://www.westwindplastics.com/website/graphics/machines/MightyBandSaw.JPG\" target=\"_blank\">"+
                "<img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	        "<a href=\"http://www.westwindplastics.com/website/graphics/machines/PowermaticSaw.jpg\" target=\"_blank\">"+
                "<img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	        "<a href=\"http://www.westwindplastics.com/website/graphics/machines/CaterpillarSaw.JPG\" target=\"_blank\">"+
                "<img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
	    "</td> "+
    "</tr> "+
    "<tr> "+
        "<td valign=\"top\"><b><h3>Grinders</h3></b></td>"+ 
        "<td> "+
	        "<li>1 Okamoto Surface Grinder"+
            "<li>2 Boyar-Schultz 618 Surface Grinders"+
            "<li>1 Kuhlmann Grinder"+
            "<li>2 Deckel Cutter Grinders"+
            "<li>1 Baldor Grinder"+
	    "</td> "+
	    "<td valign =\"top\"> "+
	        "<a href=\"http://www.westwindplastics.com/website/graphics/shoppics/grinding-03.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br> "+
            "<a href=\"http://www.westwindplastics.com/website/graphics/machines/ChallengerGrinder.JPG\" target=\"_blank\"><img src=\"http://www.westwindplastics.com/website/graphics/image.gif\" border =\"0\"></a><br><br> "+
	    "</td> "+
    "</tr> "+
    "<tr> "+
        "<td valign=\"top\"><b><h3>Misc.</h3></b></td>"+ 
        "<td> "+
	        "<li>1 Microtron Welder"+
            "<li>1 Nikon 6C Profile Projector"+
            "<li>1 Trinco Dry Blast Sandblaster"+
		    "<li>1 Caterpillar #5000 Electric Forklift"+
		    "<li>Mastercam level 3 Mill and <br>  Design Cad Cam package"+
	    "</td> "+
	    "<td valign =\"top\"> "+
	        "<br> "+
	    "</td> "+
    "</tr> "+
"</table></center>"+
    
    "";
    document.getElementById('BodyImages').innerHTML = "";
    hideBox('map_canvas','hide');
}

//------------------------------------------
// Gallery Section
//-----------------------------------------
function setBodyGallery(imgNumber){
    var imgArray = imgFullImg();
    var html = new String();
    var bigImage = new String();

    //------------------------------------------------------
    // Creates the large table above the navigation tools
    bigImage = "" +
    "<table cellspacing=\"2\" cellpadding=\"2\" border=\"1\">" +
        "<tr> " +
            "<td valign=\"top\"><h3>" + imgArray[imgNumber].title + " " + imgNumber +"</h3>" +
                "Description: <br>" + imgArray[imgNumber].description + "<br><br>" +
                "<a href = \"" + imgArray[imgNumber].fullImg + "\" target=\"_blank\">" +
                "Click here for a full size image</a>"+
            "</td> " +
            "<td valign=\"top\"> " +
                "<a href = \"" +imgArray[imgNumber].fullImg +"\" target=\"_blank\">"+
	            "<img src=\"" + imgArray[imgNumber].fullImg + "\" border=0 alt=\"Click Here for a Full Size Image\" width=343 height=257>" +
                "</a>"+
	        "</td> " +

        "</tr> " +
        "</table><br> ";
    html = "<center>";
    html += bigImage;
    //---------------------------------------------------
    
    
    //---------- If Selected Image is not too large or too small ---------------
    if ((imgNumber > 2) && (imgNumber < (imgArray.length - 2))) {
        html += "<img src=\"Left_Arrow.gif\" onclick=setBodyGallery(" + (imgNumber - 1) + ") height=40 width=40>";
        for (i = imgNumber - 2; i <= imgNumber + 2; i++) {
            html += "<a href=\"\" onclick=setBodyGallery(" + i + ")>";
            html += "<img src=\"" + imgArray[i].thumbImg + "\" border=0 alt=\"" + imgArray[i].title + " " + i + ": " + imgArray[i].description + "\"></a>\&nbsp\;";
        }
        html += "<img src=\"Right_Arrow.gif\" onclick=setBodyGallery(" + (imgNumber + 1) + ") height=40 width=40>";
    }
    
    //---------If Selected Image is too small---------------------------------------------
    else if (imgNumber <= 2) {
        if (imgNumber != 1) {
            html += "<img src=\"Left_Arrow.gif\" onclick=setBodyGallery(" + (imgNumber - 1) + ") height=40 width=40>";
        }
        for (i = 1; i <= 5; i++) {
            html += "<a href=\"\" onclick=setBodyGallery(" + i + ")>";
            html += "<img src=\"" + imgArray[i].thumbImg + "\" border=0 alt=\"" + imgArray[i].title + " " + i + ": " + imgArray[i].description + "\"></a>\&nbsp\;";
        }
        html += "<img src=\"Right_Arrow.gif\" onclick=setBodyGallery(" + (imgNumber + 1) + ") height=40 width=40>";
    }
    
    //--------- Iff Selected Image is too large ----------------------------------
    else if (imgNumber >= (imgArray.length - 2)) {
    html += "<img src=\"Left_Arrow.gif\" onclick=setBodyGallery(" + (imgNumber - 1) + ") height=40 width=40>";
        for (i = imgArray.length - 5; i <= imgArray.length - 1; i++) {
            html += "<a href=\"\" onclick=setBodyGallery(" + i + ")>";
            html += "<img src=\"" + imgArray[i].thumbImg + "\" border=0 alt=\"" + imgArray[i].title + " " + i + ": " + imgArray[i].description + "\"></a>\&nbsp\;";
            /*if ((i % 5 == 0)) {
            html += "<br>";
            }*/
        }
            if (imgNumber != (imgArray.length - 1)) {
                html += "<img src=\"Right_Arrow.gif\" onclick=setBodyGallery(" + (imgNumber + 1) + ") height=40 width=40>";
            }
        
    }
    
    //----- Catch Indexing Error ----------
    else {
        html += "Processing error. Please contact the system administrator";
    }

    html += "</center>";
    
     
    
    document.getElementById('BodyText').innerHTML = html;
        
    document.getElementById('BodyImages').innerHTML = "";
    hideBox('map_canvas','hide');
}

//------------------------------------------
// Contact Us Section
//-----------------------------------------
function setBodyContactUs() {
    document.getElementById('map_canvas').style.display = 'block';
    initialize();

    document.getElementById('BodyText').innerHTML = "<p><strong>Address:</strong><br>" +
            "Westwind Plastics<br>" +
            "92 Gaffield Drive<br> " +
         "Kimball, MI 48074</p> " +
         "<p><strong><i>St. Clair County Air Industrial Park</i></strong></p>" +
          "<p>" +
             "<strong>Phone Number:</strong><br> (810) 364-9130<BR> " +
             "<strong>Fax Number:</strong><br> (810) 364-2981<BR><br> " +
             "<strong>Email:</strong> <A href=\"mailto:bob@westwindplastics.com\">bob@westwindplastics.com</A> " +
         "</p>";
   document.getElementById('BodyImages').innerHTML = "<img src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/building-01thumb.jpg\"><br><br>"+
        "<img src=\"http://www.westwindplastics.com/website/graphics/shoppics/thumbs/grinding-04thumb.jpg\">";


}


//------------------------------------------
// Hide Box Function
//      - Used to hide the map <div>
//-----------------------------------------
function hideBox(boxName, showorhide) {
    if (showorhide == "hide") {
        document.getElementById(boxName).style.display = 'none';
    }
    else {
        document.getElementById(boxName).style.display = 'block';
    }
}


//------------------------------------------
// Initialize Map Section
//-----------------------------------------
function initialize() {
    if (GBrowserIsCompatible()) {
        var point = new GLatLng(42.90805005576813, -82.5168514251709)
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(point, 13);
        map.addOverlay(new GMarker(point));
        map.setUIToDefault();
    }
}

function imgFullImg() {
    var images = new Array(
        "",
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-002X.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-002x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-005X.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-005x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-018X.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-018x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-021X.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-021x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-022X.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-022x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-045l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-045l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-051l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-051l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-054l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-054l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-059l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-059l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-060l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-060l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-067x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-067x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-071x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-071x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-072x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-072x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-074x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-074x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-076x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-076x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-078x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-078x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-100x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-100x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-101x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-101x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-102x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-102x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-103x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-103x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-104x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-104x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-105x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-105x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-106x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-106x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-107x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-107x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-396l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-396l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/Mvc-397l.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-397l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-426L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-426l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-427L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-427l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-442L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-442l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-443L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-443l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-444L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-444l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-446L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-446l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-449L.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-449l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-452L.JPG", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-452l.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-453L.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-453L.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-454L.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-454L.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-455L.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-455L.gif", "Mold", "This mold was made at Westwind Plastics, Inc."),
        new img("http://www.westwindplastics.com/website/graphics/jobpics/MVC-139x.jpg", "http://www.westwindplastics.com/website/graphics/jobpics/thumbs/T-139x.gif", "Mold", "This mold was made at Westwind Plastics, Inc."));

    return images;
}


function img(fullImg, thumbImg, title, description) {
    this.fullImg = fullImg;
    this.thumbImg = thumbImg;
    this.title = title;
    this.description = description;
}


function updateClock() {
    var currentTime = new Date();

    var currentYear = currentTime.getFullYear();
    var currentMonth = formatMonth(currentTime.getMonth());
    var currentWeekday = formatWeekday(currentTime.getDay());
    var currentDate = currentTime.getDate();
    
    var currentHours = currentTime.getHours();
    var currentMinutes = currentTime.getMinutes();
    var currentSeconds = currentTime.getSeconds();

    // Pad the minutes and seconds with leading zeros, if required
    currentMinutes = (currentMinutes < 10 ? "0" : "") + currentMinutes;
    currentSeconds = (currentSeconds < 10 ? "0" : "") + currentSeconds;

    // Choose either "AM" or "PM" as appropriate
    var timeOfDay = (currentHours < 12) ? "AM" : "PM";

    // Convert the hours component to 12-hour format if needed
    currentHours = (currentHours > 12) ? currentHours - 12 : currentHours;

    // Convert an hours component of "0" to "12"
    currentHours = (currentHours == 0) ? 12 : currentHours;

    // Compose the string for display
    var currentTimeString = currentWeekday + ", " + currentMonth + " " + currentDate + ", " + currentYear + " " + currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;

    // Update the time display
    document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}

function formatMonth(month) {
    if (month == 0) return "January";
    else if (month == 1) return "February";
    else if (month == 2) return "March";
    else if (month == 3) return "April";
    else if (month == 4) return "May";
    else if (month == 5) return "June";
    else if (month == 6) return "July";
    else if (month == 7) return "August";
    else if (month == 8) return "September";
    else if (month == 9) return "October";
    else if (month == 10) return "November";
    else if (month == 11) return "December";
}

function formatWeekday(weekday) {
    if (weekday == 0) return "Sunday";
    else if (weekday == 1) return "Monday";
    else if (weekday == 2) return "Tuesday";
    else if (weekday == 3) return "Wednesday";
    else if (weekday == 4) return "Thursday";
    else if (weekday == 5) return "Friday";
    else if (weekday == 6) return "Saturday";
}