function bindRollOverActions(target,url,rollColor,clearColor) {
  if(!rollColor) {
    var rollColor = "#e4e9d9";
  }
  if(!clearColor) {
    var clearColor = "#fff";
  }
  $("#" + target).bind("mouseover",function() { $(this).css("cursor","pointer"); });
  $("#" + target).bind("click",function() { document.location = url; });
  $("#" + target).hover(function() { $(this).css("background",rollColor) },function() { $(this).css("background",clearColor); });
}
function launchDemo(url) {
  window.open(url,"demo","status=no,toolbar=no,location=no,menubar=no,resizable=no,scrollbars=no,height=768,width=1016");
  return false;
}
function customerRotate(targetElements,interval) {
  var currentInt = 0;
  var nextInt = 0;
  var upperLimit = 0;
  var imageArray = targetElements;
  var interval = interval;

  this.init = function() {
    currentInt = Math.floor(Math.random()*imageArray.size());
    upperLimit = imageArray.size();
    $(imageArray[currentInt]).fadeIn();
    setInterval(swapImage,interval);
  }

  var setNextInt = function() {
   if(currentInt < (upperLimit - 1)) {
    nextInt = currentInt + 1;
   } else {
    nextInt = 0;
   }
  }

  var swapImage = function() {
    setNextInt(); 
    $(imageArray[currentInt]).fadeOut(
      function()
      {
        $(imageArray[nextInt]).fadeIn();
        currentInt = nextInt;
    });
  }

  this.init();
}

/* begin - Worldwide Flyout */
var Worldwide = {
  init: function() {    
		$('#Toolbar li.global').hover(this.mouseenter, this.mouseleave);
  },
	mouseenter: function() { 
		$('#Toolbar ul.globalFlyout').show(); 
	},
	mouseleave: function() { 
		$('#Toolbar ul.globalFlyout').hide(); 
	}
};
$(function() { Worldwide.init(); });
/* end - Worldwide */

/* begin - open new window for external links */
	$(document).ready(function() {
		$('#outerWrap a.popup').popupwindow(); // links with the popup class
	});
/* end - open new window for external links */

/* begin - Product Infographic */
var ProductInfographic = {
  init: function() {    
		$('#Content .productInfographic a').hover(this.mouseenter, this.mouseleave);
  },
	mouseenter: function() { 
		var currentID = $(this).parent().attr("id");
		currentID += "Desc";
		$('#'+currentID).show(); 
	},
	mouseleave: function() { 
		var currentID = $(this).parent().attr("id");
		currentID += "Desc";
		$('#'+currentID).hide(); 
	}
};
$(function() { ProductInfographic.init(); });
/* end - Product Infographic */