
function preLoadImages() {    
    jQuery('body').eq(0).before('<div id="preloaded-images"> \
    <img src="../templates/template1/images/HomeMobileArchitectureButtonDOWN.png" width="1" height="1" alt="" /> \
    <img src="../templates/template1/images/HomeMobileAppsButton_DOWN.png" width="1" height="1" alt="" /> \
    <img src="../templates/template1/images/HomeSUPButton_DOWN.png" width="1" height="1" alt="" /> \
    </div>');
}

function loadLiquid() {
    jQuery.fn.exists = function(){return jQuery(this).length>0;};
    
    preLoadImages();
    
    if (jQuery(".zbutton").exists()) {
        
        jQuery(".zbutton").click(function() {
            var upSrc = jQuery(this).attr("src");
            var Id = jQuery(this).attr("id");
            jQuery(this).attr("src", jQuery(this).attr("downsource"));
            var t=setTimeout('$("#'+ Id +'").attr("src", "' + upSrc + '")  ',500);
      });
    }
    
    if (jQuery('#guidedTourBtn').exists()) {
        
        //jQuery('#basic-modal-content #embeddedVido').html('<video src="LiquidDecisions_video1.mp4" controls="controls" width="960" height="580">your browser does not support the video tag</video>');
        jQuery('#basic-modal-content #embeddedVido').html('<iframe width="720" height="420" src="http://www.youtube.com/embed/dFytNCJGX2s?hd=1" frameborder="0" allowfullscreen></iframe>');
        
        //jQuery('#dialog').modal();

        jQuery('#guidedTourBtn').click(function() {
             jQuery('#basic-modal-content').modal({overlayClose:true, escClose:true  });
      });

    }
    
    
    //jQuery('#smoothmenu1 li :last').attr('href', 'http://liquidblog.liquidanalytics.com/?page_id=300');
    
}


