/** Script Written by Tyler Minard for Godlan (tyler.minard@godlan.com) **/
/** INSYNC ANYWHERE BUSINESS PAGE JAVASCRIPT **/
/**
 * @author tyler.minard@godlan.com <Tyler Minard>
 * @copyright 2011 Godlan, Inc
 * @date 1.15.2011
**/

boot();

jQuery(document).ready(function() {
  triggerNewsFades();
  triggerPromos();
});



/**
 * boot site
**/
function boot()
{
  /** animate feature listings if found **/
 // if (jQuery('#advancedDCFeatures')) {
  //  attachAccordion();
  //}
}

function coreGoGodlan()
{
}

function attachAccordion()
{
  jQuery('#advancedDCFeatures').accordion({
    event: "click",
    autoHeight: false
    });
}

function hidePromos()
{
  jQuery('#hiddenPromoOverlay').fadeOut('slow');
}
function triggerPromos()
{
}
function triggerNewsFades()
{
  jQuery('#newsLogo').fadeIn('slow');
  //if (jQuery("#pageFadeTitle").html() == "Advanced Data Collection" || jQuery("#pageFadeTitle").html() == "Mobile Sales") {
    //jQuery("#newsBlock1").animate({width: 0}, 500, function() { jQuery('#pageFadeTitle').delay(300).fadeIn('slow');});
    //jQuery('#pageFadeTitle').delay(300).fadeIn('slow');
  //}
  //jQuery('#newsBlock2 img').delay(300).fadeIn('slow');
  //jQuery('#newsBlock1 img').delay(460).fadeIn('slow');
}

