//// JavaScript Document
//// ©2011 All My Sons Moving & Storage
//// jonc@allmysons.com

//$(document).ready(function () {
//    var easing = 'swing';

//    // Quote Form Stretcher

//    $('#stretch').click(function () {
//        $('.lf-column').animate({ opacity: '0', width: '200px' }, { duration: 1 }, easing);
//        $('.qholder').animate({ marginLeft: '315' }, { duration: 1 }, easing);
//        $('.thanksholder').animate({ width: '0px' }, { duration: 1 }, easing);
//        $('#closestretch').animate({ opacity: '0' }, { duration: 1 }, easing);
//        $('.quotegobuttonholder').animate({ opacity: '0' }, { duration: 1 }, easing);
//        $('#stretch').animate({ opacity: '0', right: '300' }, { duration: 200 }, easing);
//        $('.qholder').delay(200).animate({ width: '660px' }, { duration: 500 }, easing);
//        $('.lf-column').delay(1000).animate({ opacity: '1' }, { duration: 500 }, easing);
//        $('.quotegobuttonholder').delay(1000).animate({ opacity: '1', right: '14' }, { duration: 500 }, easing);
//        $('#closestretch').delay(1200).animate({ opacity: '1' }, { duration: 300 }, easing);

//        return false;
//    });

//    $('#closestretch').click(function () {
//        $('#closestretch').animate({ opacity: '0' }, { duration: 300 }, easing);
//        $('.quotegobuttonholder').animate({ opacity: '0' }, { duration: 300 }, easing);
//        $('.lf-column').animate({ opacity: '0' }, { duration: 500 }, easing);
//        $('.qholder').delay(400).animate({ width: '0' }, { duration: 500 }, easing);
//        $('#stretch').delay(800).animate({ opacity: '1', right: '150' }, { duration: 200 }, easing);
//        return false;
//    });

//    $('.quotegobuttonholder').click(function () {
////        var firstname = $('<%=txtFirstName.ClientID%>').value;
////        
////        var lastname = $('<%=txtLastName.ClientID%>').value;
////        var email = $('<%=txtEmail.ClientID%>').value;

////        var e = $("<%=sizeMove.ClientID%>");

////        //var sizemove = e.options[e.selectedIndex].value;
////        


////        var homephone = $('<%=txtHomePhone.ClientID%>').value;
////        var delagacionorigen = $('<%=DelegacionOrigen.ClientID%>').value;
////        var delagaciondestino = $('<%=DelegacionDestino.ClientID%>').value;
////        var movingdate = $('<%=tbMovingDate.ClientID%>').value;

////        var moverequiredimg = document.getElementById('movedaterequired');
////        var firstnamerequiredimg = document.getElementById('firstnamerequired');
////        var lastnamerequiredimg = document.getElementById('lastnamerequired');
////        var emailrequiredimg = document.getElementById('emailrequired');
////        var homephonerequiredimg = document.getElementById('homephonerequired');

////        if (firstname == null || firstname == "" || firstname == undefined) 
////        {
////            firstnamerequiredimg.style.visibility = "visible";
////           return false;
////        }
////        else 
////        {
////            firstnamerequiredimg.style.visibility = "hidden";
////        }
////        if (lastname == null || lastname == "") {
////            lastnamerequiredimg.style.visibility = "visible";
////            return false;
////        }
////        else {
////            lastnamerequiredimg.style.visibility = "hidden";
////        }
////        if (movingdate == null || movingdate == "") {
////            moverequiredimg.style.visibility = "visible";
////            return false;
////        }
////        else {
////            moverequiredimg.style.visibility = "hidden";
////        }
////        if (email == null || email == "") {
////            emailrequiredimg.style.visibility = "visible";
////            return false;
////        }
////        else {
////            emailrequiredimg.style.visibility = "hidden";
////        }
////        if (homephone == null || homephone == "") {
////            homephonerequiredimg.style.visibility = "visible";
////            return false;
////        }
////        else {
////            homephonerequiredimg.style.visibility = "hidden";
////        }



//        $('.lf-column').animate({ opacity: '0', width: '0' }, { duration: 200 }, easing);
//        $('.quotesholder').animate({ width: '0' }, { duration: 500 }, easing);

//        $('.quotegobuttonholder').animate({ opacity: '0' }, { duration: 500 }, easing);
//        $('.qholder').animate({ marginLeft: '25px', width: '302px' }, { duration: 500 }, easing);
//        $('.thanksholder').animate({ left: '0', width: '302px' }, { duration: 500 }, easing);
//        return false;
//    });

//    $('#gopage3').click(function () {
//        $('#qpage3').animate({ left: '0px' }, { duration: 500 }, easing);
//        return false;
//    });

//});

