﻿
var txtSmallMsgDiv = document.getElementById("SmallMsgDiv");
var txtBigText = document.getElementById("BigText");
var txtBigPerminantText = document.getElementById("BigPerminantText");
var txtBigFadeInFadeOutTest = document.getElementById("BigFadeInFadeOutTest");

jQuery(txtSmallMsgDiv).css('filter', 'alpha(opacity=100)');
jQuery(txtBigText).css('filter', 'alpha(opacity=100)');
jQuery(txtBigPerminantText).css('filter', 'alpha(opacity=100)');
jQuery(txtBigFadeInFadeOutTest).css('filter', 'alpha(opacity=100)');

jQuery(txtSmallMsgDiv).hide();
jQuery(txtBigText).hide();
jQuery(txtBigPerminantText).hide();
jQuery(txtBigFadeInFadeOutTest).hide();

$(window).load(function () {

   
    window.setTimeout(function () {
        jQuery(txtSmallMsgDiv).fadeIn(2000);
    }
            , 2500);

    window.setTimeout(function () {
        jQuery(txtBigText).fadeIn(2000);
    }
            , 3500);

    window.setTimeout(function () {
        jQuery(txtBigPerminantText).fadeIn(2000);
    }
            , 4500);

    window.setTimeout(function () {
        jQuery(txtBigFadeInFadeOutTest).fadeIn(2000);
    }
            , 4500);

 var init2 = setInterval("changeText() ", 5000);

});  
        

    var text = 0;

    var message = new Array();
    message[0] = "make IT happen."
    message[1] = "identify problems."
    message[2] = "find solutions."
    message[3] = "make your business grow."
    message[4] = "are what set us apart."
//    message[4] = "are a pain in the arse."


    
   

    function changeText() {
        jQuery(txtBigFadeInFadeOutTest).fadeOut(1000, function () {

            if (message.length > 0) {


                txtBigFadeInFadeOutTest.innerHTML = message[text];
                text++;
            }
            jQuery(txtBigFadeInFadeOutTest).fadeIn(1000);
            if (text == 5) { text = 0; }  // change the # 4 at the left to the maximum # of message lines you want included
           // window.setTimeout("changeText()", 5000);

        });

    }
