//--------------------------------------------------------------------------------------------
//
// SlideShow with Cross-Fade but without Captions 
//

// 
// Setting variables
// 

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 5500;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 4;

var Picture = new Array();

// Specify the image files...
//
// To add more images, just continue the pattern, 
// adding to the array below.

Picture[1]  = 'images_new/photos/plane_detail.gif';
Picture[2]  = 'images_new/photos/windsurfing.gif';
Picture[3]  = 'images_new/photos/industry_man.gif';
Picture[4]  = 'images_new/photos/car_nature.gif';
Picture[5]  = 'images_new/photos/car_factory.gif';
Picture[6]  = 'images_new/photos/laboratory.gif';
Picture[7]  = 'images_new/photos/keyboard_hands.gif';
Picture[8]  = 'images_new/photos/golf.gif';
Picture[9]  = 'images_new/photos/sterile_env.gif';
Picture[10]  = 'images_new/photos/manufacturing.gif';
Picture[11]  = 'images_new/photos/sailing_man.gif';
Picture[12]  = 'images_new/photos/couple_document.gif';
Picture[13]  = 'images_new/photos/running.gif';


var t;
var i;
var j=1;
var no_of_pictures = Picture.length-1;

var preLoad = new Array();

for (i = 1; i < no_of_pictures+1; i++){
    preLoad[i] = new Image();
    preLoad[i].src = Picture[i];}

function runSlideShow(){
if (document.all){
    document.images.PictureBox.style.filter="blendTrans(duration=2)";
    document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
    document.images.PictureBox.filters.blendTrans.Apply();}
	
document.images.PictureBox.src = preLoad[j].src;

if (document.all) 
    document.images.PictureBox.filters.blendTrans.Play();
	
j = j + 1;
if (j > (no_of_pictures))
    j=1;
	
t = setTimeout('runSlideShow()', SlideShowSpeed);
}

//--------------------------------------------------------------------------------------------
//
// Validate Contact Request Form
// Returns 'true' if valid and 'false' if invalid
//
//
function validate_contact(form) { 
    if (form.firstName.value.length == 0) 
    { 
        alert("Please enter your first name."); 
        form.firstName.focus() ;
        return false;
    } 

    if (form.lastName.value.length == 0) 
    { 
        alert("Please enter your last name."); 
        form.lastName.focus(); 
        return false; 
    } 

    if (form.title.value.length == 0) 
    { 
        alert("Please enter your title."); 
        form.title.focus(); 
        return false; 
    } 

    if (form.phone.value.length == 0) 
    { 
        alert("Please enter your phone number, with area code."); 
        form.phone.focus(); 
        return false; 
    } 

    if (form.email.value.length == 0) 
    { 
        alert("Please enter your e-mail address."); 
        form.email.focus(); 
        return false; 
    } 

    if (form.email.value.indexOf("@") == -1) 
    { 
        alert("Please enter a valid e-mail address."); 
        form.email.focus(); 
        return false; 
    } 

    if (form.company.value.length == 0) 
    { 
        alert("Please enter your company name."); 
        form.company.focus(); 
        return false; 
    } 

    if (form.city.value.length == 0) 
    { 
        alert("Please enter your city."); 
        form.city.focus(); 
        return false; 
    } 

} 
